KNACSS/sass/00-config.scss

78 lines
2.8 KiB
SCSS
Raw Normal View History

2014-05-07 11:33:47 +02:00
/* ----------------------------- */
/* ==configuration */
/* ----------------------------- */
2014-05-04 15:48:00 +02:00
2014-05-07 11:33:47 +02:00
// Output conf booleans
2014-05-04 15:48:00 +02:00
$enable-ie678 : true; // "true" to activate IE6/IE7/IE8 support
$enable-styling : true; // "true" to design basic elements like code, mark, blockquotes, etc.
$enable-gmaps : true; // if google maps is used
$enable-skip-links : true; // "true" to design skip links for accessibility concerns
$enable-hyphens : true; // activate automatic hyphens on small screens
$enable-helpers-width : true; // decide whether or not you need width helpers
$enable-helpers-spacing : true; // decide whether or not you need spacing helpers
2014-05-07 11:33:47 +02:00
// Font sizes
$base-font-size : 14px; // if "14px" then 1em = 14px
$line-height : 1.5; // equiv line-height 1.5
2014-05-04 15:48:00 +02:00
$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"
2014-05-07 11:33:47 +02:00
// Font stacks
$font-stack-common : "Helvetica", "Arial", sans-serif; // common font
$font-stack-monospace : "Consolas", "DejaVu Sans Mono", "Courier", monospace; // monospace font
$font-stack-universal : "FreeSans", "Arimo", "Droid Sans", "Helvetica", "Arial", sans-serif; // universal stack
2014-05-04 15:48:00 +02:00
2014-05-07 11:33:47 +02:00
// Font colors
2014-05-04 15:48:00 +02:00
$base-color : #000; // text color on body
$base-color-link : #333; // primary links color;
$base-color-link-hover : #000; // primary hovered/focused links color;
2014-05-07 11:33:47 +02:00
// Backgrounds
2014-05-04 15:48:00 +02:00
$base-background : #fff; // body background color
2014-05-07 11:33:47 +02:00
// Spacings
2014-05-04 15:48:00 +02:00
$tiny-value : 0.5em; // tiny value for margins / paddings
2014-05-07 11:33:47 +02:00
$small-value : 1em; // small value for margins / paddings
$medium-value : 2em; // medium value for margins / paddings
$large-value : 4em; // large value for margins / paddings
$extra-large-value : 6em; // extra large value for margins / paddings
$ultra-large-value : 10em; // ultra large value for margins / paddings
2014-05-04 15:48:00 +02:00
2014-05-07 11:33:47 +02:00
// Breakpoints
$tiny-screen : 320px; // tiny screens media query
$small-screen : 480px; // small screens media query
$medium-screen : 768px; // small screens media query
2014-05-04 15:48:00 +02:00
$large-screen : 1024px; // large screens media query
$extra-large-screen : 1280px; // extra large screens media query
$ultra-large-screen : 1600px; // ultra large screens media query
2014-05-07 11:33:47 +02:00
// Miscellaneous
2014-05-04 15:48:00 +02:00
$gutter : 20px; // gutter value (%, px, em, rem) for grid layouts
2014-05-07 11:39:59 +02:00
// [Mixin] Rem with px fallback
2014-05-07 11:33:47 +02:00
@mixin rem($size) {
2014-05-04 15:48:00 +02:00
@if unitless($size) {
font-size: ($size * 1rem) / 1rem * $base-font-size;
font-size: $size * 1rem;
}
@else {
2014-05-07 11:33:47 +02:00
@warn "Please make sure `$size` is unitless.";
2014-05-04 15:48:00 +02:00
}
}
2014-05-07 11:33:47 +02:00
2014-05-07 11:39:59 +02:00
// [Mixin] Em from px
2014-05-07 11:33:47 +02:00
@mixin em($size) {
2014-05-04 15:48:00 +02:00
@if unitless($size) {
$bf: $base-font-size / 1px;
font-size: $size / $bf * 1em;
}
@else {
2014-05-07 11:33:47 +02:00
@warn "Please make sure `$size` is unitless.";
2014-05-04 15:48:00 +02:00
}
2014-05-07 11:33:47 +02:00
}