2013-10-13 10:50:39 +02:00
|
|
|
/*!
|
|
|
|
* www.KNACSS.com V2.9 (2013-10) @author: Raphael Goetter, Alsacreations
|
|
|
|
* Licence WTFPL http://www.wtfpl.net/
|
2013-03-31 10:19:51 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
// LESS values : adapt them to your design
|
2013-09-16 21:21:06 +02:00
|
|
|
@basefont : 14px; // if "14px" then 1em = 14px
|
|
|
|
@lh : 1.5; // equiv line-height 1.5em
|
2013-09-12 11:59:14 +02:00
|
|
|
@smallvalue : 10px; // small value for margins / paddings
|
|
|
|
@mediumvalue : 20px; // medium value for margins / paddings
|
|
|
|
@largevalue : 30px; // large value for margins / paddings
|
|
|
|
@tinyscreen : 480px; // tiny screens media query
|
|
|
|
@smallscreen : 768px; // small screens media query
|
|
|
|
@largescreen : 1280px; // large screens media query
|
|
|
|
@gutter : 20px; // gutter value (%, px, em, rem, etc) for grid layouts
|
2013-09-23 12:04:49 +02:00
|
|
|
@fontstack1 : helvetica, arial, sans-serif; // common font
|
|
|
|
@fontstack2 : consolas, 'DejaVu Sans Mono', courier, monospace; // monospace font
|
2013-10-13 10:50:39 +02:00
|
|
|
@fontstack3 : FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif; // universal stack
|
2013-09-12 11:59:14 +02:00
|
|
|
|
2013-09-16 14:19:16 +02:00
|
|
|
// LESS mixins : don't touch or you'll be banned ;)
|
2013-09-16 21:21:06 +02:00
|
|
|
// px to em/rem
|
|
|
|
.rem(@size, @bf: @basefont){
|
|
|
|
@em: round((@size / @bf),4);
|
|
|
|
font-size: unit(@em, em);
|
|
|
|
@rem: round((@size / 10),4);
|
|
|
|
font-size: unit(@rem, rem);
|
|
|
|
}
|
|
|
|
// flow for headings
|
|
|
|
.flow(@size, @bf: @basefont, @bh: @lh) {
|
|
|
|
@marg: @bh * @bf / @size;
|
|
|
|
@mt: unit(round(@marg,4),em);
|
|
|
|
margin-top: @mt;
|
|
|
|
margin-bottom: 0;
|
|
|
|
@em: round((@size / @bf),4);
|
|
|
|
font-size: unit(@em, em);
|
|
|
|
@rem: round((@size / 10),4);
|
|
|
|
font-size: unit(@rem, rem);
|
|
|
|
@coef: ceil(1/@mt);
|
2013-09-23 12:04:49 +02:00
|
|
|
line-height: unit((@mt * @coef));
|
2013-03-31 10:19:51 +02:00
|
|
|
}
|
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
// LESS base styles
|
|
|
|
@import "01-base.less";
|
2013-03-31 10:19:51 +02:00
|
|
|
|
|
|
|
/* ----------------------------- */
|
2013-09-12 11:59:14 +02:00
|
|
|
/* ==own stylesheet */
|
2013-08-01 09:04:09 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* Here should go your own CSS styles */
|
2013-09-16 14:19:16 +02:00
|
|
|
/* You can link them with a LESS @import */
|
2013-09-12 11:59:14 +02:00
|
|
|
/* @import "my-styles.less"; */
|
|
|
|
|
|
|
|
// LESS files : chose the ones you need
|
|
|
|
@import "02-grids.less";
|
|
|
|
@import "03-tables.less";
|
|
|
|
@import "04-forms.less";
|
|
|
|
@import "05-icons.less";
|
|
|
|
@import "06-rwd.less";
|
|
|
|
@import "07-flexbox.less";
|
|
|
|
@import "08-print.less";
|