KNACSS/less/00-config.less

65 lines
2.5 KiB
Text
Raw Permalink Normal View History

2013-11-18 12:14:28 +01:00
// Config file : variables, mixins, ...
2014-04-20 20:34:39 +02:00
// booleans
2014-05-04 15:30:21 +02:00
@enable-ie678 : true; // "true" to activate IE6/IE7/IE8 support
2014-05-04 14:54:52 +02:00
@enable-styling : true; // "true" to design basic elements like code, mark, blockquotes, etc.
2014-05-04 15:30:21 +02:00
@enable-gmaps : true; // if google maps is used
@enable-skip-links : true; // "true" to design skip links for accessibility concerns
2014-05-04 14:54:52 +02:00
@enable-hyphens : true; // activate automatic hyphens on small screens
2014-05-04 15:30:21 +02:00
@enable-helpers-width : true; // decide whether or not you need width helpers
2014-05-04 14:54:52 +02:00
@enable-helpers-spacing : true; // decide whether or not you need spacing helpers
2014-04-20 20:34:39 +02:00
// font sizes
2014-05-04 15:30:21 +02:00
@base-font-size : 14px; // if "14px" then 1em = 14px
2014-05-03 14:03:41 +02:00
@line-height : 1.5; // equiv line-height 1.5
2014-05-03 14:20: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"
// font stacks
2014-05-04 15:30:21 +02:00
@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
2013-11-18 12:14:28 +01:00
// font colors
2014-05-04 15:30:21 +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;
// backgrounds
2014-05-04 15:30:21 +02:00
@base-background : #fff; // body background color
// spacings
2014-05-03 11:17:44 +02:00
@tiny-value : 0.5em; // tiny value for margins / paddings
@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
// breakpoints
@tiny-screen : 320px; // tiny screens media query
@small-screen : 480px; // small screens media query
@medium-screen : 768px; // small screens media query
@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
// misc
2014-04-20 20:34:39 +02:00
@gutter : 20px; // gutter value (%, px, em, rem) for grid layouts
2013-11-18 12:14:28 +01:00
// LESS mixins : don't touch or you'll be banned ;)
// px to em/rem
2014-05-04 15:30:21 +02:00
.rem(@size, @bf: @base-font-size){
2014-05-03 12:38:15 +02:00
@rem: @size;
2014-05-04 15:30:21 +02:00
font-size: unit(round(@base-font-size * @size), px);
2013-11-18 12:14:28 +01:00
font-size: unit(@rem, rem);
}
2014-05-04 15:30:21 +02:00
.em(@size, @bf: @base-font-size){
2013-11-22 21:37:10 +01:00
@em: @size / @bf;
2014-05-03 12:38:15 +02:00
font-size: unit(round(@em,2), em);
2014-05-07 10:45:47 +02:00
}