160 lines
2.6 KiB
CSS
Executable File
160 lines
2.6 KiB
CSS
Executable File
*, *:before, *:after {
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Nunito', sans-serif;
|
|
color: #384047;
|
|
background: #4169e11c;
|
|
}
|
|
|
|
form {
|
|
width: 30%;
|
|
margin: 10px auto;
|
|
padding: 10px 20px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 30px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
input[type="date"],
|
|
input[type="datetime"],
|
|
input[type="email"],
|
|
input[type="number"],
|
|
input[type="search"],
|
|
input[type="tel"],
|
|
input[type="time"],
|
|
input[type="url"],
|
|
textarea,
|
|
select {
|
|
background: rgba(255,255,255,0.1);
|
|
border: none;
|
|
font-size: 16px;
|
|
height: 40px;
|
|
margin: 0;
|
|
outline: 0;
|
|
padding: 15px;
|
|
width: 100%;
|
|
background-color: #f4f7f8;
|
|
color: #8a97a0;
|
|
box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
|
|
margin-bottom: 15px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
input[type="radio"]{
|
|
margin: 0 4px 8px 0;
|
|
}
|
|
|
|
button {
|
|
padding: 19px 39px 18px 39px;
|
|
color: #FFF;
|
|
background-color: #4169e1;
|
|
font-size: 18px;
|
|
text-align: center;
|
|
font-style: normal;
|
|
border-radius: 5px;
|
|
width: 100%;
|
|
border: none;
|
|
border-width: 1px 1px 3px;
|
|
box-shadow: 0 -1px 0 rgba(255,255,255,0.1) inset;
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
fieldset {
|
|
margin-bottom: 30px;
|
|
border: none;
|
|
}
|
|
|
|
legend {
|
|
font-size: 1.4em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
label.light {
|
|
font-weight: 300;
|
|
display: inline;
|
|
}
|
|
|
|
.number {
|
|
background-color: #5fcf80;
|
|
color: #fff;
|
|
height: 30px;
|
|
width: 30px;
|
|
display: inline-block;
|
|
font-size: 0.8em;
|
|
margin-right: 4px;
|
|
line-height: 30px;
|
|
text-align: center;
|
|
text-shadow: 0 1px 0 rgba(255,255,255,0.2);
|
|
border-radius: 100%;
|
|
}
|
|
|
|
input[type=checkbox] + label {
|
|
display: block;
|
|
margin: 0.2em;
|
|
cursor: pointer;
|
|
padding: 0.2em;
|
|
}
|
|
|
|
input[type=checkbox] {
|
|
display: none;
|
|
}
|
|
|
|
input[type=checkbox] + label:before {
|
|
content: "\2714";
|
|
border: 0.1em solid #000;
|
|
border-radius: 0.2em;
|
|
display: inline-block;
|
|
width: 1.2em;
|
|
height: 1.3em;
|
|
padding-left: 0.2em;
|
|
padding-bottom: 0.3em;
|
|
margin-right: 1em;
|
|
vertical-align: bottom;
|
|
color: transparent;
|
|
transition: .2s;
|
|
}
|
|
|
|
input[type=checkbox] + label:active:before {
|
|
transform: scale(0);
|
|
}
|
|
|
|
input[type=checkbox]:checked + label:before {
|
|
background-color: #4169e1;
|
|
border-color: #4169e1;
|
|
color: #fff;
|
|
}
|
|
|
|
input[type=checkbox]:disabled + label:before {
|
|
transform: scale(1);
|
|
border-color: #aaa;
|
|
}
|
|
|
|
input[type=checkbox]:checked:disabled + label:before {
|
|
transform: scale(1);
|
|
background-color: #bfb;
|
|
border-color: #bfb;
|
|
}
|
|
|
|
@media screen and (max-width: 800px) {
|
|
form {
|
|
width: 97%;
|
|
}
|
|
|
|
}
|