KNACSS/sass/_config/_variables.scss

114 lines
4.1 KiB
SCSS
Raw Normal View History

// Config file and project variables
2014-05-04 15:48:00 +02:00
2017-03-03 16:51:48 +01:00
// tiny font sizes (mobile first)
2017-07-31 17:30:43 +02:00
$base-font-size : 1.4rem; // ex. 1.4rem would be "14px" equivalent
$line-height : 1.4;
$h1-size : 2.8rem; // equiv "28px"
$h2-size : 2.4rem; // equiv "24px"
$h3-size : 2.0rem; // equiv "20px"
$h4-size : 1.8rem; // equiv "18px"
$h5-size : 1.6rem; // equiv "16px"
$h6-size : 1.4rem; // equiv "14px"
2017-03-03 16:51:48 +01:00
// large font sizes
2017-07-31 17:30:43 +02:00
$base-font-size-l : 1.6rem; // ex. 1.6rem would be "16px" equivalent
$line-height-l : 1.5;
$h1-size-l : 3.2rem; // equiv "32px"
$h2-size-l : 2.8rem; // equiv "28px"
$h3-size-l : 2.4rem; // equiv "24px"
$h4-size-l : 2.0rem; // equiv "20px"
$h5-size-l : 1.8rem; // equiv "18px"
$h6-size-l : 1.6rem; // equiv "16px"
2014-05-04 15:48:00 +02:00
// font stacks
2017-07-31 17:30:43 +02:00
$font-stack-common : -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; // system font stack
$font-stack-headings : sans-serif; // headings font
$font-stack-monospace : consolas, courier, monospace; // monospace font
2014-05-04 15:48:00 +02:00
2016-11-22 14:47:41 +01:00
// color scheme
2017-07-31 13:24:04 +02:00
$color-light : #fff;
2017-07-31 17:30:43 +02:00
$color-dark : #000;
2017-08-02 17:13:10 +02:00
$color-gray1 : #333;
$color-gray2 : #454d5d;
$color-gray3 : #727e96;
$color-gray4 : #acb3c2;
$color-gray5 : #e7e9ed;
2017-08-02 11:16:36 +02:00
$color-brand : #6FA939;
2017-07-31 13:24:04 +02:00
$color-primary : #0275D8;
$color-success : #5CB85C;
$color-info : #5BC0DE;
$color-warning : #F0AD4E;
2017-07-31 13:26:20 +02:00
$color-danger : #D9534F;
2017-07-31 13:24:04 +02:00
$color-inverse : #292B2C;
2017-07-31 14:00:06 +02:00
$color-ghost : transparent;
2017-07-31 13:24:04 +02:00
$color-muted : #F7F7F7;
2016-11-22 14:47:41 +01:00
2016-12-08 11:23:35 +01:00
// colors used in project
2017-08-02 11:16:36 +02:00
$color-base : $color-dark;
$background-base : $color-light;
2017-03-03 16:51:48 +01:00
2017-08-02 17:13:10 +02:00
$color-link : $color-gray1;
2017-08-02 11:16:36 +02:00
$color-link-hover: $color-dark;
2017-07-31 13:24:04 +02:00
2017-08-02 17:13:10 +02:00
$color-forms : $color-gray3;
2017-07-31 20:34:26 +02:00
2017-09-07 15:11:47 +02:00
// buttons, badges, alerts color variants list
2017-07-31 16:01:20 +02:00
// name - background-color - color - border
$variants-list: (
(primary, $color-primary, $color-light, none),
(success, $color-success, $color-light, none),
(info, $color-info, $color-light, none),
(warning, $color-warning, $color-light, none),
(danger, $color-danger, $color-light, none),
(inverse, $color-inverse, $color-light, none),
(ghost, $color-ghost, $color-light, 0 0 0 1px $color-light inset)
);
2017-09-07 15:54:20 +02:00
// tabs
$border-tabs : $color-gray5;
$border-tabs-active : $color-gray3;
$color-tabs : $color-base;
$color-tabs-active : $color-gray3;
$background-tabs : transparent;
$background-tabs-active : transparent;
$border-radius-tabs : 0;
2017-09-07 18:52:29 +02:00
// nav burger button
2017-09-07 15:11:47 +02:00
$color-burger : $color-gray1;
$background-burger : transparent;
$background-burger-hover : transparent;
2017-09-07 18:48:39 +02:00
$size-burger : 2.6rem;
$weight-burger : 5px; // size of stripes
2017-09-07 15:11:47 +02:00
$padding-burger : 0;
// spacings (choose unit you prefer)
2017-07-31 15:49:38 +02:00
$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
2017-07-31 11:37:12 +02:00
// grid gutters (for .has-gutter-* classes)
$grid-gutters: ( '': 1rem, '-l': 2rem, '-xl': 4rem );
2017-07-31 15:49:38 +02:00
// border-radius
$border-radius: 0;
// Responsive breakpoints variables
// Warning : you should use your own values, regardless of the devices
// Best practise is Mobile First: (max-width: ($BP - 1)) and (min-width: $BP)
$tiny: 480px !default; // or 'em' if you prefer, of course
$small: 576px !default;
$medium: 768px !default;
$large: 992px !default;
$extra-large: 1200px !default;