Skip to content

Instantly share code, notes, and snippets.

@jarodsim
Created July 29, 2023 12:12
Show Gist options
  • Save jarodsim/d24cdd27560fed6310a0bde1fac05cac to your computer and use it in GitHub Desktop.
Save jarodsim/d24cdd27560fed6310a0bde1fac05cac to your computer and use it in GitHub Desktop.
CSS - TODO
/* Geral */
* {
padding: 0;
margin: 0;
font-family: Helvetica;
color: #333;
box-sizing: border-box;
}
body {
background-image: url("../img/jjkwall.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}
button {
background-color: #FDFDFD;
color: #102F5e;
border: 2px solid #102F5e;
padding: .3rem .6rem;
font-size: 1rem;
display: flex;
justify-content: center;
align-items: center;
transition: 0.4s;
}
button:hover {
background-color: #102F5e;
color: #fff;
}
button:hover > i {
color: #fff;
}
button i {
color: #102F5e;
font-weight: bold;
pointer-events: none;
}
input,
select {
padding: 0.25rem 0.5rem;
}
.hide {
display: none;
}
/* Todo header */
.todo-container {
max-width: 450px;
margin: 8rem auto;
background-color: rgba(255, 255, 255, 0.8);
padding: 1.5rem;
border-radius: 15px;
}
.todo-container header {
text-align: center;
padding: 0 1rem 1rem;
border-bottom: 1px solid;
}
/* Todo form */
#todo-form, #edit-form {
padding: 1rem;
border-bottom: 1px solid #CCC;
}
#todo-form p,
#edit-form p {
margin-bottom: 0.5rem;
font-weight: bold;
}
.form-control {
display: flex;
}
.form-control input{
margin-right: 0.3rem;
}
#cancel-edit-btn {
margin-top: 1rem;
}
/* Todo toolbar */
#toolbar {
padding: 1rem;
border-bottom: 1px solid #CCC;
display: flex;
}
#toolbar h4 {
margin-bottom: .5rem;
}
#search {
border-right: 1px solid #DDD;
padding-right: 1rem;
margin-right: 1rem;
width: 65%;
display: flex;
flex-direction: column;
}
#search form {
display: flex;
}
#search input {
width: 100%;
margin-right: 0.3rem;
}
#filter {
width: 35%;
display: flex;
flex-direction: column;
}
#filter select {
flex: 1;
}
/* Todo list */
.todo {
display: flex;
justify-content: space-around;
align-items: center;
padding: 1rem;
border-bottom: 1px solid #ddd;
transition: .3s;
}
.todo h3 {
flex: 1;
font-size: 0.9rem;
}
.todo button {
margin-left: 0.4rem;
}
.done {
background-color: #395169;
}
.done h3 {
color: #fff;
text-decoration: line-through;
font-style: italic;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment