Restauration du $ avant les variables pour des raisons de compatibilité
This commit is contained in:
parent
7e97249bae
commit
2aa7f8cb9d
18 changed files with 416 additions and 396 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
// Warning : you should use your own values, regardless of the devices
|
||||
// Best practise : (max-width: $BP) and (min-width: ($BP + 1))
|
||||
tiny = 543px // or 'em' if you prefer, of course
|
||||
small = 767px
|
||||
medium = 991px
|
||||
large = 1199px
|
||||
extra-large = 1439px
|
||||
$tiny = 543px // or 'em' if you prefer, of course
|
||||
$small = 767px
|
||||
$medium = 991px
|
||||
$large = 1199px
|
||||
$extra-large = 1439px
|
||||
|
|
|
@ -1,27 +1,27 @@
|
|||
// Additionnal "utility" breakpoints aliases
|
||||
// ex. @include respond-to("medium-up") {...}
|
||||
breakpoint(bp)
|
||||
if bp == 'tiny'
|
||||
return '(max-width: %s)' % tiny
|
||||
else if bp == 'small'
|
||||
return '(max-width: %s)' % small
|
||||
else if bp == 'medium'
|
||||
return '(max-width: %s)' % medium
|
||||
else if bp == 'large'
|
||||
return '(max-width: %s)' % large
|
||||
else if bp == 'extra-large'
|
||||
return '(max-width: %s)' % extra-large
|
||||
else if bp == 'tiny-up'
|
||||
return '(min-width: %s + 1)' % tiny
|
||||
else if bp == 'small-up'
|
||||
return '(min-width: %s + 1)' % small
|
||||
else if bp == 'medium-up'
|
||||
return '(min-width: %s + 1)' % medium
|
||||
else if bp == 'large-up'
|
||||
return '(min-width: %s + 1)' % large
|
||||
else if bp == 'extra-large-up'
|
||||
return '(min-width: %s + 1)' % extra-large
|
||||
else if bp == 'retina'
|
||||
breakpoint($bp)
|
||||
if $bp == 'tiny'
|
||||
return '(max-width: %s)' % $tiny
|
||||
else if $bp == 'small'
|
||||
return '(max-width: %s)' % $small
|
||||
else if $bp == 'medium'
|
||||
return '(max-width: %s)' % $medium
|
||||
else if $bp == 'large'
|
||||
return '(max-width: %s)' % $large
|
||||
else if $bp == 'extra-large'
|
||||
return '(max-width: %s)' % $extra-large
|
||||
else if $bp == 'tiny-up'
|
||||
return '(min-width: %s + 1)' % $tiny
|
||||
else if $bp == 'small-up'
|
||||
return '(min-width: %s + 1)' % $small
|
||||
else if $bp == 'medium-up'
|
||||
return '(min-width: %s + 1)' % $medium
|
||||
else if $bp == 'large-up'
|
||||
return '(min-width: %s + 1)' % $large
|
||||
else if $bp == 'extra-large-up'
|
||||
return '(min-width: %s + 1)' % $extra-large
|
||||
else if $bp == 'retina'
|
||||
return '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx)'
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,50 +1,50 @@
|
|||
// Config file and project variables
|
||||
|
||||
// font sizes
|
||||
base-font-size = 1.6rem // ex. 1.6rem would be "16px" equivalent
|
||||
line-height = 1.5 // equiv line-height 1.5
|
||||
h1-size = 3.2rem // equiv "32px"
|
||||
h2-size = 2.8rem // equiv "28px"
|
||||
h3-size = 2.4rem // equiv "24px"
|
||||
h4-size = 2.0rem // equiv "20px"
|
||||
h5-size = 1.8rem // equiv "18px"
|
||||
h6-size = 1.6rem // equiv "16px"
|
||||
$base-font-size = 1.6rem // ex. 1.6rem would be "16px" equivalent
|
||||
$line-height = 1.5 // equiv line-height 1.5
|
||||
$h1-size = 3.2rem // equiv "32px"
|
||||
$h2-size = 2.8rem // equiv "28px"
|
||||
$h3-size = 2.4rem // equiv "24px"
|
||||
$h4-size = 2.0rem // equiv "20px"
|
||||
$h5-size = 1.8rem // equiv "18px"
|
||||
$h6-size = 1.6rem // equiv "16px"
|
||||
|
||||
// font stacks
|
||||
font-stack-common = sans-serif // common font
|
||||
font-stack-headings = sans-serif // headings font
|
||||
font-stack-monospace = consolas, courier, monospace // monospace font
|
||||
$font-stack-common = sans-serif // common font
|
||||
$font-stack-headings = sans-serif // headings font
|
||||
$font-stack-monospace = consolas, courier, monospace // monospace font
|
||||
|
||||
// color scheme
|
||||
color1 = #000
|
||||
color2 = #fff
|
||||
color3 = #333
|
||||
color4 = #000
|
||||
color5 = #6FA939
|
||||
$color1 = #000
|
||||
$color2 = #fff
|
||||
$color3 = #333
|
||||
$color4 = #000
|
||||
$color5 = #6FA939
|
||||
|
||||
// colors used in project
|
||||
base-color = color1
|
||||
link-color = color3
|
||||
base-background = color2
|
||||
$base-color = $color1
|
||||
$link-color = $color3
|
||||
$base-background = $color2
|
||||
// If you don't want any effect on focused/hovered links,
|
||||
// comment variable below or make it equal to either link-color or false or null
|
||||
link-hover-color = color4
|
||||
brand-primary = color5
|
||||
$link-hover-color = $color4
|
||||
$brand-primary = $color5
|
||||
|
||||
|
||||
// spacings (choose unit you prefer)
|
||||
tiny-value = .5rem // tiny value for margins / paddings
|
||||
tiny-plus-value = .7rem // tiny+ value for margins / paddings
|
||||
small-value = 1rem // small value for margins / paddings
|
||||
small-plus-value = 1.5rem // small+ value for margins / paddings
|
||||
medium-value = 2rem // medium value for margins / paddings
|
||||
medium-plus-value = 3rem // medium+ value for margins / paddings
|
||||
large-value = 4rem // large value for margins / paddings
|
||||
large-plus-value = 6rem // large value for margins / paddings
|
||||
extra-large-value = 8rem // extra large value for margins / paddings
|
||||
extra-large-plus-value = 12rem // extra large value for margins / paddings
|
||||
ultra-large-value = 16rem // ultra large value for margins / paddings
|
||||
ultra-large-plus-value = 20rem // ultra large value for margins / paddings
|
||||
$tiny-value = .5rem // tiny value for margins / paddings
|
||||
$tiny-plus-value = .7rem // tiny+ value for margins / paddings
|
||||
$small-value = 1rem // small value for margins / paddings
|
||||
$small-plus-value = 1.5rem // small+ value for margins / paddings
|
||||
$medium-value = 2rem // medium value for margins / paddings
|
||||
$medium-plus-value = 3rem // medium+ value for margins / paddings
|
||||
$large-value = 4rem // large value for margins / paddings
|
||||
$large-plus-value = 6rem // large value for margins / paddings
|
||||
$extra-large-value = 8rem // extra large value for margins / paddings
|
||||
$extra-large-plus-value = 12rem // extra large value for margins / paddings
|
||||
$ultra-large-value = 16rem // ultra large value for margins / paddings
|
||||
$ultra-large-plus-value = 20rem // ultra large value for margins / paddings
|
||||
|
||||
//kna-namespace (default : null)
|
||||
kna-namespace = null;
|
||||
$kna-namespace = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue