eight.css
Version:
A micro (and modular) CSS framework based on 8pt grid
91 lines (59 loc) • 1.6 kB
text/stylus
/* Const */
$source-sans-pro = 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif
$ept = 8px
/* Breakpoints */
$xs = 479px
$sm = 576px
$md = 768px
$lg = 992px
$xl = 1200px
/* Colors */
$black-color = #000
$white-color = #FFF
$text-color = #212121
$text-inverted-color = #FAFAFA
$border-color = #BDBDBD
$border-dark-color = #212121
/* Radius, margins, padding */
$base-border-radius = 0 * $ept
$base-top-margin = 0 * $ept
$base-bottom-margin = 2 * $ept
$base-side-margin = 2 * $ept
$base-margin = $base-top-margin $base-side-margin $base-bottom-margin
/* Text */
$base-font-size = 2 * $ept
$base-font-weight = 300
$base-highlight-font-weight = 400
$base-font-family = $source-sans-pro
$base-line-height = 1.5
$base-letter-spacing = normal
/* Headers */
$header-font-family = $base-font-family
$header-font-weight = 400
$header-line-height = 1
$header-letter-spacing = normal
$header-base-top-margin = 2 * $ept
$header-base-bottom-margin = 2 * $ept
/* Grid */
$container-gutter = 0
$grid-col-gutter = 1 * $ept
/* Images */
$img-xs-width = 8 * $ept
$img-sm-width = 16 * $ept
$img-md-width = 32 * $ept
$img-lg-width = 64 * $ept
$img-xl-width = 128 * $ept
/* Buttons */
$button-padding = 1.5 * $ept 2 * $ept
$button-default-color = #E0E0E0
/* Forms */
$form-fieldset-padding = 2 * $ept
$form-input-max-width = 48 * $ept
$form-input-min-height = 5 * $ept
$form-textarea-max-width = 72 * $ept
$form-textarea-min-height = 24 * $ept
$form-input-padding = 1 * $ept
$form-legend-font-weight = 400
$form-label-font-weight = 700
/* Tables */
$table-cell-padding = 1 * $ept 2 * $ept