// // Forms // -------------------------------------------------- // Labels %label { display: block; color: $darkgrey; font-size: 1.3rem; font-weight: bold; } // Form Wrapper form { label { @extend %label; } } // form // Form Groups .form-group { position: relative; margin-bottom: 1.6em; width: 100%; max-width: 500px; p { margin: 4px 0 0 0; color: #B3B2A8; font-size: 1.3rem; } label { margin-bottom: 4px; } @media (max-width: 550px) { max-width: 100%; } } // .form-group // If the from group has an icon... .input-icon[class*='icon-'] { position: relative; display: block; #{$all-text-inputs} { padding-left: 3.2rem; } .gh-select { select { padding-left: 3.2rem; } } &:before { position: absolute; top: 50%; left: 1.1rem; font-size: 1.3rem; -webkit-transform: translateY(-52%); -ms-transform: translateY(-52%); transform: translateY(-52%); z-index: 100; } } // .thing[class*='icon-'] // Wrapper for input[type="radio"] and input[type="checkbox"] elements .for-radio, .for-checkbox { @include clearfix; label { display: block; padding-bottom: 4px; p { font-weight: normal; color: #000; } &:hover { input:not(:checked) + .input-toggle-component { border-color: $midbrown; } } } input { @include position(absolute, 0 0 0 -9999px); } .input-toggle-component { position: relative; top: 1px; display: inline-block; float: left; width: 18px; height: 18px; margin-right: 7px; background: #F7F7F3; border: 1px solid $lightbrown; } p { font-weight: normal; color: #B3B2A8; white-space: nowrap; } } // .for-radio, .for-checkbox // Fieldsets fieldset { border: none; margin: 0 0 3em 0; padding: 0; } // fieldset // Legends legend { display: block; width: 100%; margin: 2em 0; border-bottom: $lightbrown 1px solid; font-size: 1.2em; line-height: 2.0em; color: $brown; } // legend // Input, textarea & select #{$all-text-inputs}, textarea, .gh-select, select { display: block; padding: 8px 10px; width: 100%; border: 1px solid #E0DFD7; border-radius: $rounded; font-size: 1.4rem; font-weight: normal; color: $darkgrey; @include transition(border-color 0.15s linear); &:focus { border-color: $brown; } } textarea { width: 100%; max-width: 500px; min-width: 250px; height: auto; min-height: 10rem; line-height: 1.5; } input[type="number"] { &::-webkit-inner-spin-button, &::-webkit-outer-spin-button { padding-right: 6px; } } // Checkboxes // --- //
This is a label
//What does this thing mean?
//