Skip to content

Instantly share code, notes, and snippets.

@sergey-shambir
Last active February 14, 2020 18:36
Show Gist options
  • Save sergey-shambir/4a6c5823bc49b93514dc7e3a3020a8ef to your computer and use it in GitHub Desktop.
Save sergey-shambir/4a6c5823bc49b93514dc7e3a3020a8ef to your computer and use it in GitHub Desktop.
To-Do List App CSS
html {
min-height: 100%;
}
body {
min-height: 100%;
height: 100%;
font-family: Bad Script;
background: #91eae4;
/* fallback for old browsers */
background: -webkit-linear-gradient(to bottom, #91EAE4, #86A8E7, #7F7FD5);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to bottom, #91EAE4, #86A8E7, #7F7FD5);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
h1 {
text-transform: uppercase;
background: #86a8e7;
color: white;
margin: 0;
padding: 10px 28px;
font-weight: normal;
}
input {
background: white;
width: 100%;
box-sizing: border-box;
height: 50px;
font-size: 20px;
font-weight: 0.5px;
padding-left: 25px;
border: 3px solid gray;
color: gray;
}
input:focus {
background: #edf1f5;
border: 3px solid #86a8e7;
outline: none;
color: #86a8e7;
}
span.todo-trash {
margin-right: 10px;
text-align: center;
height: 50px;
width: 0;
opacity: 0;
-webkit-transition: 0.3s;
transition: 0.3s linear;
}
i {
cursor: pointer;
}
button {
background-color: #86a8e7;
border: 2px solid #86a8e7;
color: white;
padding: 8px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 4px;
font-family: Bad Script;
-webkit-transition-duration: 0.4s;
/* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
button:hover {
background-color: white;
color: black;
border: 2px solid #86a8e7;
}
#buttons {
display: inline-block;
text-align: center;
margin: 2px 4px;
}
#todo {
margin: 0 auto;
box-shadow: 0 0 1em black;
max-width: 400px;
height: 100%;
background: white;
position: relative;
}
#overlay {
height: 0;
width: 100%;
position: fixed;
z-index: 1;
left: 0;
top: 0;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.7);
overflow-x: hidden;
transition: 0.5s;
-webkit-transition: 0.5s;
}
#overlay .closeTips {
position: absolute;
top: 15px;
right: 40px;
font-size: 60px;
color: #86a8e7;
cursor: pointer;
}
#overlay li {
padding: 8px;
list-style-type: circle;
font-size: 30px;
color: #818181;
display: block;
}
.todos {
list-style-type: none;
margin: 0;
padding: 0;
}
.todos li {
background: #f7f7f7;
height: 50px;
line-height: 50px;
cursor: pointer;
font-size: 20px;
}
.todos li span.todo-text {
padding: 0 8px;
}
.todos li:nth-child(2n) {
background: #edf1f5;
}
.todos li:hover span.todo-trash {
width: 50px;
opacity: 1.0;
margin-left: 5px;
}
.display {
display: none;
transition: 0.3s linear;
}
.checked {
color: gray;
text-decoration: line-through;
}
.fa-pencil-alt {
float: right;
padding-top: 8px;
}
.fa-trash-alt {
color: #7f7fd5;
}
.tips {
position: relative;
top: 20%;
width: 100%;
text-align: center;
margin-top: 25px;
}
/* if screen size less than 450px, resize tips lists and close btn so they don't overlap */
@media screen and (max-height: 450px) {
.overlay a {
font-size: 20px
}
.overlay .closebtn {
font-size: 40px;
top: 15px;
right: 35px;
}
#todo {
width: 100%;
height: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment