2013-11-18 12:14:28 +01:00
|
|
|
// Config file : variables, mixins, ...
|
|
|
|
|
|
|
|
// LESS values : adapt them to your design
|
|
|
|
@basefont : 14px; // if "14px" then 1em = 14px
|
|
|
|
@lh : 1.5; // equiv line-height 1.5em
|
2013-11-22 17:35:03 +01:00
|
|
|
@h1-size : 32px; // equiv "32px"
|
|
|
|
@h2-size : 28px; // equiv "28px"
|
|
|
|
@h3-size : 24px; // equiv "24px"
|
|
|
|
@h4-size : 20px; // equiv "20px"
|
|
|
|
@h5-size : 18px; // equiv "18px"
|
|
|
|
@h6-size : 16px; // equiv "16px"
|
2013-11-18 12:14:28 +01:00
|
|
|
@basecolor : #000; // text color on body
|
|
|
|
@basebg : #fff; // body background color
|
|
|
|
@basecolor-link : #333; // primary links color;
|
|
|
|
@basecolor-link-hover : #000; // primary hovered/focused links color;
|
|
|
|
@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-11-22 17:35:03 +01:00
|
|
|
@fontstack1 : Helvetica, Arial, sans-serif; // common font
|
|
|
|
@fontstack2 : Consolas, 'DejaVu Sans Mono', Courier, monospace; // monospace font
|
2013-11-18 12:14:28 +01:00
|
|
|
@fontstack3 : FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif; // universal stack
|
|
|
|
|
|
|
|
// LESS mixins : don't touch or you'll be banned ;)
|
|
|
|
// px to em/rem
|
|
|
|
.rem(@size, @bf: @basefont){
|
|
|
|
@rem: round((@size / 10),4);
|
|
|
|
font-size: unit(@rem, rem);
|
|
|
|
}
|
2013-11-22 17:35:03 +01:00
|
|
|
.em(@size, @bf: @basefont){
|
|
|
|
@em: round((@size / @bf),4);
|
|
|
|
font-size: unit(@em, em);
|
|
|
|
}
|
2013-11-18 12:14:28 +01:00
|
|
|
// flow for headings
|
|
|
|
.flow(@size, @bf: @basefont, @bh: @lh) {
|
|
|
|
@marg: @bh * @bf / @size;
|
2013-11-22 17:35:03 +01:00
|
|
|
@mt: unit(@marg,em);
|
2013-11-18 12:14:28 +01:00
|
|
|
margin-top: @mt;
|
|
|
|
margin-bottom: 0;
|
|
|
|
@rem: round((@size / 10),4);
|
|
|
|
font-size: unit(@rem, rem);
|
|
|
|
@coef: ceil(1/@mt);
|
|
|
|
line-height: unit((@mt * @coef));
|
|
|
|
}
|