app/assets/stylesheets/survey.scss
// Place all the styles related to the Form controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.survey {
padding: 25px;
}
h1 {
margin-top: 0;
}
.usa-grid {
border-left: 2px dotted #ddd;
margin: 0;
}
form {
margin: 4rem 0 2rem 0;
max-width: 100%;
fieldset {
padding-bottom: 3rem;
.input {
width: 350px;
margin-right: 2rem;
vertical-align: top;
display: inline-block;
}
.description {
width: 350px;
border: 1px solid #eee;
border-radius: 0.5rem;
padding: 1.5rem 2rem;
margin-left: 2rem;
vertical-align: top;
display: inline-block;
p {
margin: 0;
}
}
}
label {
font-weight: 600;
margin-top: 0;
padding-bottom: 1rem;
}
input[type="text"] {
border-radius: 0.3rem;
}
.usa-unstyled-list {
padding: 0 0.5rem;
label {
margin-top: 1rem;
}
}
form input[type="submit"] {
margin-top: 5rem;
}
}
/* image issue with Web Standards code */
input[type="checkbox"]:checked + label::before {
background-image: image-url('correct8.png');
background-image: image-url('correct8.svg');
background-position: 50%;
background-repeat: no-repeat;
}