Forms

    Create a new forms directory

    1. $ midir forms/extends

    Add the following to forms/extends/_manifest.scss:

    1. @import "default-inputs";
    2. @import "display-block";

    Add the following to forms/extends/_display-block.scss:

    1. %display-block {
    2. width: 100%;
    3. display: block;
    4. }

    Add the following to _forms.scss:

    1. @import "forms/manifest";
    2. .form {
    3. ul {
    4. border-bottom: 1px solid $hotel-gray;
    5. background-color: $white;
    6. }
    7. li {
    8. border-bottom: 0;
    9. position: relative;
    10. }
    11. }
    12. label {
    13. @extend %display-block;
    14. position: absolute;
    15. font-size: em(16);
    16. top: .5em;
    17. left: 1em;
    18. color: orange;
    19. opacity: 1;
    20. transition: #{$trans} top, #{$trans} opacity;
    21. .js-hide-label & {
    22. top: 1.5em;
    23. }
    24. input[type="text"] {
    25. @extend %display-block;
    26. @extend %default-inputs;
    27. }
    28. input[type="email"] {
    29. @extend %display-block;
    30. @extend %default-inputs;
    31. }
    32. textarea {
    33. @extend %display-block;
    34. @extend %default-inputs;
    35. height: 8em;