Skip to content

Instantly share code, notes, and snippets.

@iamshaunjp
Created October 17, 2016 14:15
Show Gist options
  • Save iamshaunjp/cc5a520c0ec4f9ef525a790d3c5d8706 to your computer and use it in GitHub Desktop.
Save iamshaunjp/cc5a520c0ec4f9ef525a790d3c5d8706 to your computer and use it in GitHub Desktop.
/* index.css */
body{
background: #eee;
margin: 20px;
font-family: tahoma;
}
#todo-wrapper{
width: 80%;
margin: 0 auto;
background: #fff;
border-top: 3px solid #7f4cc1;
padding: 10px;
border-radius: 2px;
box-shadow: 1px 3px 5px rgba(0,0,0,0.2);
color: #333;
}
#todo-wrapper p{
color: #777;
font-style: italic;
}
#todo-list ul{
list-style-type: none;
padding: 0;
}
/* todoItem.css */
.todo-item{
padding: 16px 5px;
border-bottom: 1px dashed #bbb;
display: flex;
}
.todo-item:hover{
background: #eee;
}
.item-name{
flex-basis: 0;
flex-grow: 9;
}
.item-remove{
flex-basis: 0;
flex-grow: 1;
text-align: right;
color: #7f4cc1;
font-weight: bold;
cursor: pointer;
}
/* addItem.css */
#add-todo{
display: flex;
}
#add-todo input[type="text"]{
flex-basis: 0;
flex-grow: 7;
padding: 10px;
border: 2px solid #7f4cc1;
border-radius: 4px 0 0 4px;
color: #777;
}
#add-todo input[type="submit"]{
flex-basis: 0;
flex-grow: 3;
padding: 10px;
background: #7f4cc1;
border-radius: 0 4px 4px 0;
border: 2px solid #7f4cc1;
color: #fff;
text-transform: uppercase;
cursor: pointer;
}
@mzohaibqc
Copy link

Thanks man, it's great for developers like me who don't know much css.. Great work (y)

@sylvacoin
Copy link

do you have a slack channel we could communicate easily?
especially for this project

@kmcc505
Copy link

kmcc505 commented Apr 28, 2018

I am the senate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment