2013-11-18 12:14:28 +01:00
|
|
|
// Config file : variables, mixins, ...
|
|
|
|
|
2014-04-20 20:34:39 +02:00
|
|
|
|
|
|
|
// booleans
|
|
|
|
@ie678 : true; // "true" to activate IE6/IE7/IE8 support
|
|
|
|
@styling : true; // "true" to design basic elements like code, mark, blockquotes, etc.
|
2014-04-20 20:56:10 +02:00
|
|
|
@gmaps : true; // if google maps is used
|
2014-04-20 20:34:39 +02:00
|
|
|
@skip-links : true; // "true" to design skip links for accessibility concerns
|
|
|
|
@hyphens : true; // activate automatic hyphens on small screens
|
|
|
|
@helpers-width : true; // decide whether or not you need width helpers
|
|
|
|
@helpers-spacing : true; // decide whether or not you need spacing helpers
|
|
|
|
|
2014-04-20 19:52:20 +02:00
|
|
|
// font sizes
|
2014-04-20 20:34:39 +02:00
|
|
|
@basefont : 14px; // if "14px" then 1em = 14px
|
2014-05-03 12:27:25 +02:00
|
|
|
@lh : 1.5; // equiv line-height 1.5
|
2014-04-20 20:34:39 +02: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"
|
2014-04-20 19:52:20 +02:00
|
|
|
|
|
|
|
// font stacks
|
2014-04-20 20:34:39 +02:00
|
|
|
@fontstack1 : Helvetica, Arial, sans-serif; // common font
|
|
|
|
@fontstack2 : Consolas, 'DejaVu Sans Mono', Courier, monospace; // monospace font
|
|
|
|
@fontstack3 : FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif; // universal stack
|
2013-11-18 12:14:28 +01:00
|
|
|
|
2014-04-20 19:52:20 +02:00
|
|
|
// font colors
|
|
|
|
@basecolor : #000; // text color on body
|
|
|
|
@basecolor-link : #333; // primary links color;
|
|
|
|
@basecolor-link-hover : #000; // primary hovered/focused links color;
|
|
|
|
|
|
|
|
// backgrounds
|
|
|
|
@basebg : #fff; // body background color
|
|
|
|
|
|
|
|
// spacings
|
2014-05-03 11:17:44 +02:00
|
|
|
@tiny-value : 0.5em; // tiny value for margins / paddings
|
2014-04-20 19:52:20 +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
|
|
|
|
|
|
|
|
// 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
|
2014-04-20 19:52:20 +02:00
|
|
|
|
|
|
|
|
2013-11-18 12:14:28 +01:00
|
|
|
// LESS mixins : don't touch or you'll be banned ;)
|
|
|
|
// px to em/rem
|
|
|
|
.rem(@size, @bf: @basefont){
|
2014-05-03 12:38:15 +02:00
|
|
|
@rem: @size;
|
|
|
|
font-size: unit(round(@basefont * @size), px);
|
2013-11-18 12:14:28 +01:00
|
|
|
font-size: unit(@rem, rem);
|
|
|
|
}
|
2013-11-22 17:35:03 +01:00
|
|
|
.em(@size, @bf: @basefont){
|
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);
|
2013-11-18 12:14:28 +01:00
|
|
|
}
|