funky-framadate-front/public/style.css

295 lines
4.2 KiB
CSS

:root {
--primary-color: royalblue;
}
body {
max-width: 320px;
margin: auto;
padding: 30px 20px;
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 2;
}
/* Titres */
h1 {
text-align: center;
font-size: 20px;
}
h1 span {
font-size: 60%;
font-weight: 400;
}
/* Formulaires */
.select-wrapper {
position: relative;
display: inline-block;
margin-bottom: 12px;
}
.select-wrapper:after {
content: '▾';
position: absolute;
top: 0;
right: 10px;
line-height: 44px;
}
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 10px 30px 10px 10px;
color: var(--primary-color);
font-weight: bold;
border: 1px solid rgb(128, 126, 126);
background: none;
}
.btn,
button,
[type="submit"] {
display: block;
width: 200px;
margin: 10px auto auto;
padding: 8px 0;
text-align: center;
color: var(--primary-color);
font-weight: 600;
border: 2px solid var(--primary-color);
border-radius: 4px;
background-color: white;
transition: all 0.2s ease-in-out;
cursor: pointer;
}
.btn:hover,
button:hover,
[type="submit"]:hover {
color: #fff;
background-color: var(--primary-color);
text-decoration: none;
}
.champ-vide-long {
min-width: 100px;
display: inline-block;
height: 20px;
}
.btn.btn-primary {
color: #fff;
background-color: var(--primary-color);
}
.btn.btn-primary:hover {
color: var(--primary-color);
background-color: #fff;
}
.btn.btn-secondary {
position: relative;
display: inline;
width: auto;
padding: 0;
color: var(--primary-color);
border: none;
border-bottom: 1px solid var(--primary-color);
border-radius: 0;
}
.btn.btn-secondary:before {
content: '+';
margin-right: 10px;
}
.btn.btn-secondary:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
display: block;
width: 100%;
height: 1px;
background-color: var(--primary-color);
}
.btn.btn-secondary:hover {
background: none;
}
.btn.btn-secondary:hover:after {
height: 2px;
}
.btn-no-style {
display: inline-block;
width: auto;
margin: 0;
padding: 0;
border: 0;
color: inherit;
}
section button {
width: 100%;
color: #4a4a4a;
border-color: #4a4a4a;
}
section button:hover {
color: #fff;
background-color: #4a4a4a;
}
label,
input {
display: inline;
}
p {
margin-bottom: 2rem;
/* line-height: 2.7; */
}
/* Listes */
ul {
padding-left: 0;
list-style-type: none;
}
li+li {
margin-top: 20px;
}
.default-list {
padding-left: 20px;
list-style-type: disc;
}
.default-list li+li {
margin-top: 0;
}
/* Apparence */
section:not(:last-of-type) {
margin-bottom: 30px;
}
input[type="text"] {
border: 0;
border-bottom: 1px solid black;
line-height: 60%;
}
input[type="date"] {
width: 60%;
border-radius: 4px;
}
input[type="date"]:disabled {
opacity: 0.7;
}
[type="email"] {
width: 100%;
}
textarea {
display: block;
width: 100%;
min-height: 130px;
margin-top: 12px;
}
select,
.toggle-field,
textarea,
[type=date],
[type=email],
[type=password] {
color: black;
line-height: 1.5;
font-weight: normal;
background-color: rgba(65, 105, 225, .2);
border: none;
}
.toggle-field,
textarea,
[type=date],
[type=email],
[type=password] {
padding: 8px 10px;
}
.toggle-field {
min-height: 42px;
height: auto;
cursor: pointer;
/* border: 1px solid rgb(128, 126, 126); */
}
.overlay {
background: rgba(1, 1, 1, .3);
height: 100%;
top: 0;
left: 0;
position: absolute;
width: 100%;
z-index: 5;
}
.modal {
background: #fff;
top: 10%;
left: 40%;
padding: 10px;
position: absolute;
z-index: 10;
}
i {
color: #4a4a4a;
}
.fa-calendar-alt {
font-size: 22px;
margin-right: .2em;
}
.fa-trash-alt {
color: #9b9b9b;
}
.item-disabled {
opacity: 0.7;
}
section+nav {
margin-top: 2rem;
}
.w100 {
width: 100%;
}
.bold {
font-weight: 600;
}
article+article {
margin-top: 40px;
}
a {
color: #4a4a4a;
}
a:hover {
color: var(--primary-color);
}