Last active
January 12, 2021 09:40
-
-
Save ismaelrak/eb3182ddb2d0ca3ea6a0ed42f0668240 to your computer and use it in GitHub Desktop.
CSS TO-DO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{ | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body{ | |
background: linear-gradient(to right, #d1913c, #ffd194); | |
font-family: 'Poppins', sans-serif; | |
color: white; | |
min-height: 100vh; | |
} | |
header,form{ | |
display: flex; | |
min-height: 15vh; | |
justify-content: center; | |
align-items: center; | |
} | |
form input, form button{ | |
padding: 0.4rem; | |
border: none; | |
font-size: 1.6rem; | |
background: white; | |
} | |
form button{ | |
color: #c065c0; | |
background: white; | |
cursor: pointer; | |
transition: all 0.3s ease; | |
} | |
form button:hover{ | |
background: #c065c0; | |
color: white; | |
} | |
/* STYLING DROPDOWN */ | |
select{ | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
outline: none; | |
border: none; | |
} | |
.select{ | |
margin: 1rem; | |
position: relative; | |
overflow: hidden; | |
} | |
select{ | |
color: #c065c0; | |
width: 8rem; | |
cursor: pointer; | |
padding: 0.7rem; | |
} | |
.select::after{ | |
content: "\25bc"; | |
position: absolute; | |
color: #c065c0; | |
top: 7px; | |
right: 6px; | |
pointer-events: none; | |
} | |
.select:hover::after{ | |
color: #583429; | |
} | |
.todo_container{ | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
.todo_list{ | |
min-width: 40%; | |
list-style: none; | |
} | |
.todo{ | |
margin: 5px auto; | |
background: white; | |
color: #000000; | |
display: flex; | |
font-size: 1.2rem; | |
padding: 0.3rem; | |
justify-content: space-between; | |
align-items: center; | |
transition: all 0.5s ease; | |
} | |
.todo li { | |
flex: 1; | |
} | |
.complete_btn, | |
.delete_btn{ | |
padding: 0.5rem; | |
background: #ff3700; | |
color: white; | |
border: none; | |
margin-left: 0.2rem; | |
cursor: pointer; | |
font-size: 1rem; | |
} | |
.complete_btn{ | |
background: rgb(67, 179, 67); | |
} | |
.complete_btn:active{ | |
background: green; | |
} | |
.delete_btn:active{ | |
background: #b65337; | |
} | |
.fa-trash, | |
.fa-check{ | |
pointer-events: none; | |
} | |
.completedItem{ | |
text-decoration: line-through; | |
opacity: 0.5; | |
transform: scale(0.96); | |
} | |
.fall{ | |
transform: translateY(4rem) scale(0.4) rotateZ(20deg); | |
opacity: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment