Skip to content

Instantly share code, notes, and snippets.

@ismaelrak
Last active January 12, 2021 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismaelrak/eb3182ddb2d0ca3ea6a0ed42f0668240 to your computer and use it in GitHub Desktop.
Save ismaelrak/eb3182ddb2d0ca3ea6a0ed42f0668240 to your computer and use it in GitHub Desktop.
CSS TO-DO
*{
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