Skip to content

Instantly share code, notes, and snippets.

@eezhal92
Created January 24, 2018 12:13
Show Gist options
  • Save eezhal92/88339f3ea8af34c67ad71780c6d75bc7 to your computer and use it in GitHub Desktop.
Save eezhal92/88339f3ea8af34c67ad71780c6d75bc7 to your computer and use it in GitHub Desktop.
todo-list.css
body {
width: 600px;
margin: 0 auto;
padding: 0 2rem;
font-family: sans-serif;
font-size: 16px;
}
.todo {
overflow: hidden;
padding: 1rem;
background: #ccc;
margin-bottom: 1rem;
}
.todo__text {
float: left;
}
.todo__remove-btn {
float: right;
background-color: red;
color: #fff;
border: none;
padding: .5rem;
}
.add-form {
overflow: hidden;
margin-bottom: 1rem;
}
.add-form__text-input {
display: block;
float: left;
box-sizing: border-box;
width: 100%;
border: 1px solid #ccc;
padding: 0.5rem;
margin-bottom: 0.5rem;
}
.add-form__text-input:focus {
outline: none;
border: 1px solid blue;
}
.add-form__submit-btn {
display: block;
padding: 0.5rem;
border: none;
background-color: blue;
color: #fff;
float: right;
}
.add-form__submit-btn:focus, .add-form__submit-btn:active {
outline: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment