Skip to content

Instantly share code, notes, and snippets.

@ironfroggy
Created January 11, 2018 16:15
Show Gist options
  • Save ironfroggy/9f82084f90117477abf210b8225e37e5 to your computer and use it in GitHub Desktop.
Save ironfroggy/9f82084f90117477abf210b8225e37e5 to your computer and use it in GitHub Desktop.
// CSS Lockes / Not Mobile First
fieldset
input
graduated(font-size, 14px, 16px)
graduated(line-height, 18px, 22px)
input[type=text], input[type=password]
margin-top: $line-height-base !important
margin-bottom: 0px !important
border: 1px solid $palette.grayscale.light
input[disabled]
background: $palette.disabled.very-light
input + label
graduated(font-size, 12px, 14px)
height: 0
padding-left: 0
padding-bottom: 0
color: darkgrey
top: -4em
// Mobile First Version
fieldset
input
font-size: 14px
line-height: 18px
input[type=text], input[type=password]
margin-top: $line-height-base !important
margin-bottom: 0px !important
border: 1px solid $palette.grayscale.light
input[disabled]
background: $palette.disabled.very-light
input + label
font-size: 12px
height: 0
padding-left: 0
padding-bottom: 0
color: darkgrey
top: -4em
@media (min-width: 960px)
fieldset
input
font-size: 16px
line-height: 22px
input + label
font-size: 14px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment