1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-09-24 18:18:49 +02:00
blog/_src/_assets/styl/variables.styl

159 lines
5.2 KiB
Stylus
Raw Normal View History

2014-07-12 02:00:18 +02:00
//
// kremalicious3
// --------------
// Global variables & settings
//
// Settings
/////////////////////////////////////
vendors = official webkit // Stylus' @keyframes settings
vendor-prefixes = webkit moz official // Nib vendor prefixes
support-for-ie = false // Nib IE 8 support
// Asset Paths
/////////////////////////////////////
2015-06-10 22:53:29 +02:00
$img-path = '/assets/img/'
2014-07-12 21:22:47 +02:00
$font-path = '/assets/fonts/'
2014-07-12 02:00:18 +02:00
// Colors
/////////////////////////////////////
$brand-dark = #015565
$brand-light = #e7eef4
$brand-cyan = #3a9085
$brand-grey = #56666e
2015-06-10 23:09:15 +02:00
$brand-grey-light = lighten($brand-grey, 15%)
2015-06-10 22:53:29 +02:00
// Text Colors
/////////////////////////////////////
$text-color = $brand-grey-light
$text-color-light = lighten($brand-grey-light, 30%)
2015-06-11 01:51:55 +02:00
$text-color-dimmed = lighten($brand-grey-light, 50%)
2014-07-12 02:00:18 +02:00
// Typography
/////////////////////////////////////
$font-size-base = 18px
$font-size-large = ceil($font-size-base * 1.35) // ~24px
$font-size-small = ceil($font-size-base * 0.8) // ~14px
$font-size-mini = ceil($font-size-base * 0.7) // ~12px
2014-07-12 02:00:18 +02:00
$font-size-h1 = floor(($font-size-base * 2.75))
$font-size-h2 = floor(($font-size-base * 2))
$font-size-h3 = ceil(($font-size-base * 1.75))
$font-size-h4 = $font-size-large
$font-size-h5 = $font-size-base
$font-size-h6 = $font-size-small
$font-size-h1-large = floor(($font-size-large * 2.75))
$font-size-h2-large = floor(($font-size-large * 2))
$font-size-h3-large = ceil(($font-size-large * 1.75))
$font-size-h4-large = ceil(($font-size-large * 1.25))
$font-size-h5-large = $font-size-large
$font-size-h6-large = $font-size-base
2015-06-10 22:53:29 +02:00
$font-size-h1-small = floor(($font-size-small * 2.75))
$font-size-h2-small = floor(($font-size-small * 2))
$font-size-h3-small = ceil(($font-size-small * 1.75))
$font-size-h4-small = ceil(($font-size-small * 1.25))
2015-06-10 23:09:15 +02:00
$line-height-base = 1.5555555556 // 28px/18px
2014-07-12 02:00:18 +02:00
$line-height-computed = floor($font-size-base * $line-height-base)
$line-height-large = 1.5 // 36px/24px
2014-07-12 02:00:18 +02:00
$line-height-small = 1.1428571429
$font-family-base = 'ff-tisa-sans-web-pro', 'Helvetica Neue', Helvetica, Arial, sans-serif
$font-weight-base = 400
2015-06-10 22:53:29 +02:00
$font-color-base = $text-color
2014-07-12 02:00:18 +02:00
$font-family-monospace = Menlo, Monaco, Consolas, 'Courier New', monospace
$headings-font-family = 'brandon-grotesque','Helvetica Neue',Helvetica,Arial,sans-serif
$headings-font-weight = 500 // Medium
2014-07-12 21:22:47 +02:00
$headings-line-height = 1.1
2014-07-12 02:00:18 +02:00
$headings-color = $brand-dark
// Scaffolding
/////////////////////////////////////
$body-bg = #dfe8ef
$page-bg = $brand-light
// Links
/////////////////////////////////////
$link-color = lighten($brand-cyan, 5%)
$link-color-hover = lighten($link-color, 10%)
// Components spacing
/////////////////////////////////////
$border-radius-base = 3px
$border-radius-small = $border-radius-base
$border-radius-large = $border-radius-base
2014-07-12 21:22:47 +02:00
$padding-base-vertical = 12px
$padding-base-horizontal = 32px
2014-07-12 02:00:18 +02:00
$padding-small-vertical = ($padding-base-vertical / 2)
$padding-small-horizontal = ($padding-base-horizontal / 2)
$padding-large-vertical = ($padding-base-vertical * 2)
$padding-large-horizontal = ($padding-base-horizontal * 2)
// Forms
/////////////////////////////////////
2014-07-12 21:22:47 +02:00
$input-bg = #fff
$input-bg-focus = #fff
2014-07-12 02:00:18 +02:00
$input-bg-disabled = $brand-grey-light
$input-font-size = $font-size-base
2014-07-12 21:22:47 +02:00
$input-font-weight = $font-weight-base
2014-07-12 02:00:18 +02:00
$input-color = $font-color-base
$input-color-placeholder = rgba(46, 79, 92, .3)
$input-border = $brand-grey-light
$input-border-radius = $border-radius-base
$input-border-focus = $brand-cyan
$input-height-base = ($line-height-computed + ($padding-base-vertical * 2) + 2)
$input-height-large = (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 1)
$input-height-small = (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2)
// Code
/////////////////////////////////////
2015-06-10 23:09:15 +02:00
$code-bg = rgba(255,255,255,.8)
$code-color = $text-color
2014-07-12 02:00:18 +02:00
$kbd-bg = $code-bg
$kbd-color = $code-color
// Responsive breakpoints
/////////////////////////////////////
$breakpoint1 = 'only screen and (min-width: 30em)'
$breakpoint2 = 'only screen and (min-width: 40.625em)'
$breakpoint3 = 'only screen and (min-width: 87.500em)'
// High dpi media query
/////////////////////////////////////
$highDPI = 'print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) '
2015-06-10 22:53:29 +02:00
$highDPI_3x = 'print, (-webkit-min-device-pixel-ratio: 3), (min-resolution: 344dpi) '