rainyday.dev/freecodcamp/build-a-survey-form/styles.css

80 lines
1.2 KiB
CSS

body {
width: 100%;
height: 100vh;
margin: 0;
background: linear-gradient(#01377D 85%,#009DD1, #97E7F5) no-repeat fixed;
color: #F5C400;
}
form {
margin: 0;
}
.container {
min-width: 300px;
width: 80%;
max-width: 500px;
margin: 16px auto;
background-color: #0018407F;
border-radius: 10px;
padding: 48px;
}
#title, #description {
text-align: center;
}
#description {
margin-bottom: -4px;
}
input {
display: block;
height: 35px;
width: 100%;
}
input, select, textarea {
margin: 8px 0;
background-color: #001840;
color: #FFFDF0;
}
input[type="radio"], input[type="checkbox"] {
width: unset;
display: inline;
}
fieldset:nth-child(2) label, fieldset:nth-child(3) label {
display: block;
}
fieldset {
border: none;
border-bottom: 1px solid #000000;
}
fieldset:last-of-type {
border-bottom: none;
}
textarea {
width: 100%;
margin-bottom: 8px;
}
input[type=submit] {
background-color: #7ED348;
color: #00184D;
}
input[type="radio"], input[type="checkbox"] {
vertical-align: middle;
margin-right: 8px;
}
legend {
margin-top: 16px;
}