2013-11-18 12:14:28 +01:00
|
|
|
// Config file : variables, mixins, ...
|
|
|
|
|
2014-04-20 19:52:20 +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"
|
2014-04-20 19:52:20 +02:00
|
|
|
|
|
|
|
// font stacks
|
2014-05-04 15:30:21 +02:00
|
|
|
@font-stack-common : Helvetica, Arial, sans-serif; // common font
|
2014-06-30 21:16:22 +02:00
|
|
|
@font-stack-headings : Helvetica, Arial, sans-serif; // headings font
|
2014-05-04 15:30:21 +02:00
|
|
|
@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
|
|
|
|
2014-04-20 19:52:20 +02:00
|
|
|
// font colors
|
2014-07-02 16:12:58 +02:00
|
|
|
@base-color : #000; // text color on body and content
|
|
|
|
@primary-color : #000; // text color on primary elements
|
|
|
|
@secondary-color : #000; // text color on secondary elements
|
2014-06-30 21:16:22 +02:00
|
|
|
@headings-color : #000; // text color on headings
|
2014-07-02 16:12:58 +02:00
|
|
|
@base-color-link : #333; // base links color
|
|
|
|
@base-color-link-hover : #000; // base hovered/focused links color
|
2014-04-20 19:52:20 +02:00
|
|
|
|
|
|
|
// backgrounds
|
2014-07-02 16:12:58 +02:00
|
|
|
@base-background : #fff; // body background color
|
|
|
|
@primary-background : #fff; // primary elements background color
|
|
|
|
@secondary-background : #fff; // secondary elements background color
|
2014-04-20 19:52:20 +02:00
|
|
|
|
2014-08-22 09:34:59 +02:00
|
|
|
// spacings (choose unit you prefer)
|
|
|
|
@tiny-value : 5px; // tiny value for margins / paddings
|
|
|
|
@small-value : 10px; // small value for margins / paddings
|
|
|
|
@medium-value : 20px; // medium value for margins / paddings
|
|
|
|
@large-value : 40px; // large value for margins / paddings
|
|
|
|
@extra-large-value : 80px; // extra large value for margins / paddings
|
|
|
|
@ultra-large-value : 160px; // ultra large value for margins / paddings
|
2014-04-20 19:52:20 +02:00
|
|
|
|
2014-08-22 09:34:59 +02:00
|
|
|
// breakpoints (choose unit you prefer)
|
2014-09-12 09:36:09 +02:00
|
|
|
@tiny-screen : 480px; // tiny screens media query (less than 480px)
|
|
|
|
@small-screen : 768px; // screens between 481px and 768px
|
|
|
|
@medium-screen : 1024px; // screens between 769px and 1024px
|
|
|
|
@large-screen : 1280px; // screens between 1025px and 1280px
|
|
|
|
@extra-large-screen : 1600px; // screens between 1281px and 1600px
|
|
|
|
@ultra-large-screen : 1920px; // ultra large screens
|
2014-04-20 19:52:20 +02:00
|
|
|
|
2014-08-22 09:34:59 +02:00
|
|
|
// misc (choose unit you prefer)
|
2014-06-28 12:59:02 +02:00
|
|
|
@gutter : 20px; // gutter value for grid layouts. Unit can be: %, px, em, rem
|
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
|
2014-05-04 15:30:21 +02:00
|
|
|
.rem(@size, @bf: @base-font-size){
|
2014-05-21 17:45:26 +02:00
|
|
|
@rem: @size / 10;
|
|
|
|
font-size: unit(round(@base-font-size * @size /10), 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
|
|
|
}
|
2014-08-21 17:26:34 +02:00
|
|
|
.px(@size, @bf: @base-font-size){
|
|
|
|
@px: @size * @bf;
|
|
|
|
font-size: unit(round(@px,2), px);
|
|
|
|
}
|