@charset "UTF-8"; /*------------------------------------*\ $FORMS \*------------------------------------*/ /** * * Demo: jsfiddle.net/inuitcss/MhHHU * */ fieldset{ padding:$base-spacing-unit; } /** * Text inputs * * Instead of a `[type]` selector for each kind of form input, we just use a * class to target any/every one, e.g.: * */ .text-input, textarea{ /** * Style these via your theme stylesheet. */ } /** * Group sets of form fields in a list, e.g.: * * */ .form-fields{ list-style:none; margin:0; } .form-fields > li{ @extend %sass-margin-bottom; } .form-fields > li:last-child{ margin-bottom:0; } /** * Labels * * Define a `.label` class as well as a `label` element. This means we can apply * label-like styling to meta-labels for groups of options where a `label` * element is not suitable, e.g.: *
  • Select an option below:
  • * */ label, .label{ display:block; } /** * Extra help text in `label`s, e.g.: * * */ .additional{ display:block; font-weight:normal; } /* * Groups of checkboxes and radios, e.g.: *
  • * */ .check-list{ list-style:none; margin:0; } /* * Labels in check-lists */ .check-label, .check-list label, .check-list .label{ display:inline-block; } /** * Spoken forms are for forms that read like spoken word, e.g.: *
  • Hello, my is . My home is
  • * */ .spoken-form label{ display:inline-block; font:inherit; } /** * Extra help text displayed after a field when that field is in focus, e.g.: * .edu emails only * * We leave the help text in the document flow and merely set it to * `visibility:hidden;`. This means that it won’t interfere with anything once * it reappears. * */ /*small*/.extra-help{ display:inline-block; visibility:hidden; } .text-input:active + .extra-help, .text-input:focus + .extra-help{ visibility:visible; }