Skip to content

Commit

Permalink
Create styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-the-practical-programmer authored Jul 22, 2024
1 parent a682495 commit 7837bea
Showing 1 changed file with 156 additions and 0 deletions.
156 changes: 156 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
@import url('https://fonts.googleapis.com/css2?family=K2D:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root{
--background: #11141b;
--primary-color: #3a3c442f;
--secondary-color: #4A4D57;
--accent-color: rgb(100, 25, 240);
--text-color: #F9F6F9;
}

*{
margin: 0;
padding: 0;
}

html {
font-family: 'K2D', monospace;
font-size: 13.69pt;
color: var(--text-color);
}

body {
min-height: 100vh;
padding: 10px;
background-color: var(--background);
display: flex;
flex-direction: column;
align-items: center;
}

h1 {
margin-top: 100px;
margin-bottom: 20px;
font-size: 3rem;
font-weight: 800;
text-transform: uppercase;
text-align: center;
color: var(--accent-color);
}

.wrapper {
width: 700px;
max-width: 100%;
display: flex;
flex-direction: column;
gap: 10px;
}

#todo-input {
box-sizing: border-box;
padding: 12px 20px;
width: 100%;
background: none;
border: 2px solid var(--secondary-color);
border-radius: 1000px;
font: inherit;
color: var(--text-color);
caret-color: var(--accent-color);
}

#todo-input:focus {
outline: none;
}

form {
position: relative;
}

#add-btn {
position: absolute;
top: 0;
right: 0;
background-color: var(--accent-color);
height: 100%;
padding: 0 22px;
border: none;
border-radius: 1000px;
font: inherit;
font-weight: 600;
color: var(--background);
cursor: pointer;
}

.todo {
margin-bottom: 10px;
padding: 0 3vw;
background-color: var(--primary-color);
border-radius: 15px;
display: flex;
align-items: center;
}

.todo .todo-text {
padding: 13.69px;
padding-right: 0;
flex-grow: 1;
transition: 200ms ease;
}

.del-btn {
padding: 3px;
background: none;
border: none;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}

.del-btn svg {
transition: 200ms ease;
}

.del-btn:hover svg{
fill: #ff0616;
}

.custom-checkbox {
border: 2px solid var(--accent-color);
border-radius: 60%;
min-height: 20px;
min-width: 26;
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
transition: 200ms ease;
cursor: pointer;
}

input[type="checkbox"]:checked ~ .custom-checkbox {
background-color: var(--accent-color);
}

input[type="checkbox"]:checked ~ .custom-checkbox svg{
fill: #211;
}

input[type="checkbox"]:checked ~ .todo-text {
text-decoration: line-through;
color: var(--secondary-color);
}

input[type="checkbox"] {
display: none;
}

@media(max-width: 500px) {
html {
font-size: 12pt;
}
h1 {
margin-top: 50px;
font-size: 15vw;
}
}

0 comments on commit 7837bea

Please sign in to comment.