Skip to content

Instantly share code, notes, and snippets.

@cladjidane
Last active May 17, 2023 13:02
Show Gist options
  • Save cladjidane/2c38ffa430bc901abdf1a893c8290654 to your computer and use it in GitHub Desktop.
Save cladjidane/2c38ffa430bc901abdf1a893c8290654 to your computer and use it in GitHub Desktop.
/*
Organisation
1-Positionnement
2-Dimensions
3-Texte
4-Bordures et fonds
5-Propriétés CSS3 ou spécifiques navigateurs
*/
h1 {
margin: 30px 0;
text-align: center;
font-size: 30px;
}
h2 {
margin-bottom: 50px;
text-align: center;
font-size: 20px;
}
.list-todo {
width: 70%;
max-width: 1200px;
min-width: 320px;
margin: 20px auto 0;
list-style-type: none;
}
.list-todo li {
display: flex;
align-items: center;
width: 100%;
margin: 5px 0;
padding: 10px;
color: #333;
font-size: 15px;
background: #f1f1f1;
border-radius: 10px;
}
.list-todo li input {
width: 20px;
height: 20px;
margin-left: 10px;
}
.list-todo li button {
height: 20px;
width: 20px;
margin-left: auto;
padding: 0;
background: transparent;
background-image: url('./ressources/fermer.svg');
border: none;
cursor: pointer;
}
.list-todo li button:hover {
opacity: .5;
}
.list-todo li span {
margin-left: 20px;
font-size: 15px;
}
.list-todo li.ok span {
text-decoration: line-through;
}
form {
display: block;
max-width: 1200px;
min-width: 320px;
width: 70%;
margin: 0 auto;
padding: 20px;
background: white;
border-radius: 10px;
}
form .fields {
display: flex;
align-items: center;
gap: 20px;
}
form label {
display: block;
color: black;
font-size: 15px;
font-weight: bold;
}
form select {
width: 50%;
margin: 10px 0;
padding: 12px 10px;
font-size: 15px;
}
form input {
width: 50%;
margin: 10px 0;
padding: 10px;
font-size: 15px;
}
form button {
padding: 10px;
font-size: 15px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment