2014-01-31 15:30:55 +01:00
|
|
|
@import "00-config";
|
|
|
|
/*!
|
|
|
|
* www.KNACSS.com V2.9.3 (2014-02) @author: Raphael Goetter, Alsacreations
|
|
|
|
* Licence WTFPL http://www.wtfpl.net/
|
|
|
|
*/
|
2013-09-12 11:59:14 +02:00
|
|
|
|
|
|
|
/* ----------------------------- */
|
2014-01-01 12:00:49 +01:00
|
|
|
/* == soft reset */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* switching box model for all elements */
|
|
|
|
* {
|
2014-02-01 18:37:56 +01:00
|
|
|
box-sizing: border-box;
|
2014-01-01 12:00:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* soft reset */
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
|
|
|
ul.unstyled {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
audio,
|
|
|
|
canvas,
|
|
|
|
video {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
svg:not(:root) {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
figure {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* == typography */
|
2013-09-12 11:59:14 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* base font-size corresponds to 10px and is adapted to rem unit */
|
|
|
|
html {
|
|
|
|
font-size: 62.5%;
|
2014-01-01 12:00:49 +01:00
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-ms-text-size-adjust: 100%;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
body {
|
2013-11-18 12:14:28 +01:00
|
|
|
background-color: @basebg;
|
|
|
|
color: @basecolor;
|
2013-09-12 11:59:14 +02:00
|
|
|
font-family: @fontstack1;
|
2013-09-16 21:21:06 +02:00
|
|
|
font-size: unit((@basefont / 10), em);
|
|
|
|
line-height: @lh; // adapt to your design
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* font-sizing for content */
|
|
|
|
/* preserve vertical-rythm, thanks to http://soqr.fr/vertical-rhythm/ */
|
|
|
|
p,
|
|
|
|
ul,
|
|
|
|
ol,
|
|
|
|
dl,
|
|
|
|
blockquote,
|
|
|
|
pre,
|
|
|
|
td,
|
|
|
|
th,
|
|
|
|
label,
|
|
|
|
textarea,
|
|
|
|
caption,
|
|
|
|
details,
|
|
|
|
figure,
|
|
|
|
hgroup {
|
2013-09-16 21:21:06 +02:00
|
|
|
margin-top: .75em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
line-height: @lh;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h1, .h1-like {
|
2013-11-22 17:35:03 +01:00
|
|
|
.flow(@h1-size);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h2, .h2-like {
|
2013-11-22 17:35:03 +01:00
|
|
|
.flow(@h2-size);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h3, .h3-like {
|
2013-11-22 17:35:03 +01:00
|
|
|
.flow(@h3-size);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h4, .h4-like {
|
2013-11-22 17:35:03 +01:00
|
|
|
.flow(@h4-size);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h5, .h5-like {
|
2013-11-22 17:35:03 +01:00
|
|
|
.flow(@h5-size);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h6, .h6-like {
|
2013-11-22 17:35:03 +01:00
|
|
|
.flow(@h6-size);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* alternate font-sizing */
|
|
|
|
.smaller {
|
2013-11-22 17:35:03 +01:00
|
|
|
.em(@basefont - 4);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
.small {
|
2013-11-22 17:35:03 +01:00
|
|
|
.em(@basefont - 2);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
.big {
|
2013-11-22 17:35:03 +01:00
|
|
|
.em(@basefont + 2);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
.bigger {
|
2013-11-22 17:35:03 +01:00
|
|
|
.em(@basefont + 4);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
.biggest {
|
2013-11-22 17:35:03 +01:00
|
|
|
.em(@basefont + 6);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
code,
|
|
|
|
pre,
|
|
|
|
samp,
|
|
|
|
kbd {
|
2014-01-01 12:00:49 +01:00
|
|
|
white-space: pre-line; /* IE fix */
|
2013-09-12 11:59:14 +02:00
|
|
|
white-space: pre-wrap;
|
|
|
|
font-family: @fontstack2;
|
2014-04-20 19:36:57 +02:00
|
|
|
line-height: normal;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
code, kbd, mark {
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
em {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
strong {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
kbd {
|
|
|
|
padding: 0 2px;
|
|
|
|
border: 1px solid #999;
|
|
|
|
}
|
|
|
|
code {
|
|
|
|
padding: 2px 4px;
|
|
|
|
background: rgba(0,0,0,.04);
|
|
|
|
color: #b11;
|
|
|
|
}
|
|
|
|
mark {
|
|
|
|
padding:2px 4px;
|
|
|
|
background: #ff0;
|
|
|
|
}
|
2014-01-01 12:00:49 +01:00
|
|
|
sup,
|
|
|
|
sub {
|
|
|
|
vertical-align: 0;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
sup {
|
|
|
|
bottom: 1ex;
|
|
|
|
}
|
|
|
|
sub {
|
|
|
|
top: .5ex;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* == hiding content */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* hiding content */
|
|
|
|
.visually-hidden {
|
|
|
|
position: absolute;
|
|
|
|
left: -7000px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
[dir=rtl] .visually-hidden {
|
|
|
|
left: auto;
|
|
|
|
right: -7000px;
|
|
|
|
}
|
|
|
|
.desktop-hidden { display: none; } /* hidden on desktop */
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* == skip links styling */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
.skip-links {
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
a {
|
|
|
|
position: absolute;
|
|
|
|
left: -7000px;
|
|
|
|
padding: 0.5em;
|
|
|
|
background: black;
|
|
|
|
color: white;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* == browsers consistency */
|
|
|
|
/* ----------------------------- */
|
2013-09-12 11:59:14 +02:00
|
|
|
|
|
|
|
/* avoid top margins on first content element */
|
|
|
|
p, ul, ol, dl,
|
|
|
|
blockquote, pre,
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* avoid margins on nested elements */
|
|
|
|
li p,
|
|
|
|
li ul,
|
|
|
|
li ol {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* max values */
|
|
|
|
img, table, td, blockquote, code, pre, textarea, input, video {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
/* margin-bottom on tables */
|
|
|
|
table { margin-bottom: 1.5em; }
|
|
|
|
|
2013-10-13 10:50:39 +02:00
|
|
|
/* Google Gmap3 bug fix on images */
|
|
|
|
:not(.gm-style) img {
|
2013-10-21 09:54:59 +02:00
|
|
|
height: auto !important;
|
2013-10-13 10:50:39 +02:00
|
|
|
}
|
|
|
|
.ie678 .gm-style img {
|
|
|
|
height: 100%; /* IE678 hack */
|
|
|
|
}
|
2013-09-12 11:59:14 +02:00
|
|
|
.gm-style img,
|
|
|
|
.gmnoscreen img,
|
2013-10-13 10:50:39 +02:00
|
|
|
.gmnoprint img {
|
|
|
|
max-width: none !important;
|
|
|
|
}
|
2013-09-12 11:59:14 +02:00
|
|
|
|
|
|
|
/* scripts */
|
|
|
|
body > script {display: none !important;}
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* ==layout and modules */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* float layout */
|
|
|
|
/* module, gains superpower "BFC" Block Formating Context */
|
|
|
|
.mod {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that needs to be placed under floats */
|
|
|
|
.clear,
|
|
|
|
.line,
|
|
|
|
.row {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* blocks that must contain floats */
|
|
|
|
.clearfix:after,
|
2014-04-20 19:35:39 +02:00
|
|
|
.line:after {
|
2013-09-12 11:59:14 +02:00
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* table layout */
|
|
|
|
.row {
|
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.row > *,
|
|
|
|
.col {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block */
|
|
|
|
.inbl {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* alignments (blocks and inline) */
|
|
|
|
/* ------------------------------ */
|
|
|
|
|
|
|
|
/* left elements */
|
|
|
|
.left {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
img.left {
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
/* right elements */
|
|
|
|
.right {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
img.right {
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
|
|
|
img.left, img.right {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
.center { margin-left: auto; margin-right: auto; }
|
|
|
|
.txtleft { text-align: left; }
|
|
|
|
.txtright { text-align: right; }
|
|
|
|
.txtcenter { text-align: center; }
|
|
|
|
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
/* ----------------------------- */
|
|
|
|
/* == width helpers */
|
|
|
|
/* .. use only when needed */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
/* blocks widths (percentage and pixels) */
|
|
|
|
.w10 { width: 10%; }
|
|
|
|
.w20 { width: 20%; }
|
|
|
|
.w25 { width: 25%; }
|
|
|
|
.w30 { width: 30%; }
|
|
|
|
.w33 { width: 33.3333%; }
|
|
|
|
.w40 { width: 40%; }
|
|
|
|
.w50 { width: 50%; }
|
|
|
|
.w60 { width: 60%; }
|
|
|
|
.w66 { width: 66.6666%; }
|
|
|
|
.w70 { width: 70%; }
|
|
|
|
.w75 { width: 75%; }
|
|
|
|
.w80 { width: 80%; }
|
|
|
|
.w90 { width: 90%; }
|
|
|
|
.w100 { width: 100%; }
|
|
|
|
|
|
|
|
.w50p { width: 50px; }
|
|
|
|
.w100p { width: 100px; }
|
|
|
|
.w150p { width: 150px; }
|
|
|
|
.w200p { width: 200px; }
|
|
|
|
.w300p { width: 300px; }
|
|
|
|
.w400p { width: 400px; }
|
|
|
|
.w500p { width: 500px; }
|
|
|
|
.w600p { width: 600px; }
|
|
|
|
.w700p { width: 700px; }
|
|
|
|
.w800p { width: 800px; }
|
|
|
|
.w960p { width: 960px; }
|
|
|
|
.mw960p { max-width: 960px; }
|
2013-10-13 10:50:39 +02:00
|
|
|
.w1140p { width: 1140px; }
|
|
|
|
.mw1140p { max-width: 1140px; }
|
2014-01-31 15:30:55 +01:00
|
|
|
.wauto { width: auto; }
|
2013-09-12 11:59:14 +02:00
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* == spacing helpers */
|
|
|
|
/* .. use only when needed */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
/* spacing helpers
|
|
|
|
p,m = padding,margin
|
|
|
|
a,t,r,b,l = all,top,right,bottom,left
|
|
|
|
s,m,l,n = small(10px),medium(20px),large(30px),none(0)
|
|
|
|
source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
|
|
|
|
*/
|
|
|
|
.m-reset, .ma0 { margin: 0; }
|
|
|
|
.p-reset, .pa0 { padding: 0; }
|
|
|
|
.ma1, .mas { margin: @smallvalue; }
|
|
|
|
.ma2, .mam { margin: @mediumvalue; }
|
|
|
|
.ma3, .mal { margin: @largevalue; }
|
|
|
|
.pa1, .pas { padding: @smallvalue; }
|
|
|
|
.pa2, .pam { padding: @mediumvalue; }
|
|
|
|
.pa3, .pal { padding: @largevalue; }
|
|
|
|
|
|
|
|
.mt0, .mtn { margin-top: 0; }
|
|
|
|
.mt1, .mts { margin-top: @smallvalue; }
|
|
|
|
.mt2, .mtm { margin-top: @mediumvalue; }
|
|
|
|
.mt3, .mtl { margin-top: @largevalue; }
|
|
|
|
.mr0, .mrn { margin-right: 0; }
|
|
|
|
.mr1, .mrs { margin-right: @smallvalue; }
|
|
|
|
.mr2, .mrm { margin-right: @mediumvalue; }
|
|
|
|
.mr3, .mrl { margin-right: @largevalue; }
|
|
|
|
.mb0, .mbn { margin-bottom: 0; }
|
|
|
|
.mb1, .mbs { margin-bottom: @smallvalue; }
|
|
|
|
.mb2, .mbm { margin-bottom: @mediumvalue; }
|
|
|
|
.mb3, .mbl { margin-bottom: @largevalue; }
|
|
|
|
.ml0, .mln { margin-left: 0; }
|
|
|
|
.ml1, .mls { margin-left: @smallvalue; }
|
|
|
|
.ml2, .mlm { margin-left: @mediumvalue; }
|
|
|
|
.ml3, .mll { margin-left: @largevalue; }
|
|
|
|
|
|
|
|
.pt0, .ptn { padding-top: 0; }
|
|
|
|
.pt1, .pts { padding-top: @smallvalue; }
|
|
|
|
.pt2, .ptm { padding-top: @mediumvalue; }
|
|
|
|
.pt3, .ptl { padding-top: @largevalue; }
|
|
|
|
.pr0, .prn { padding-right: 0; }
|
|
|
|
.pr1, .prs { padding-right: @smallvalue; }
|
|
|
|
.pr2, .prm { padding-right: @mediumvalue; }
|
|
|
|
.pr3, .prl { padding-right: @largevalue; }
|
|
|
|
.pb0, .pbn { padding-bottom: 0; }
|
|
|
|
.pb1, .pbs { padding-bottom: @smallvalue; }
|
|
|
|
.pb2, .pbm { padding-bottom: @mediumvalue; }
|
|
|
|
.pb3, .pbl { padding-bottom: @largevalue; }
|
|
|
|
.pl0, .pln { padding-left: 0; }
|
|
|
|
.pl1, .pls { padding-left: @smallvalue; }
|
|
|
|
.pl2, .plm { padding-left: @mediumvalue; }
|
|
|
|
.pl3, .pll { padding-left: @largevalue; }
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- */
|
2014-01-01 12:00:49 +01:00
|
|
|
/* == iefix */
|
2013-09-12 11:59:14 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
2013-11-22 17:35:03 +01:00
|
|
|
/* Make sure you are using Conditional Classes in your HTML */
|
|
|
|
/* see : http://www.alsacreations.com/astuce/lire/988-classes-conditionnelles-HTML.html */
|
|
|
|
|
|
|
|
.ie678 h1, .ie678 .h1-like {
|
|
|
|
.em(@h1-size);
|
|
|
|
}
|
|
|
|
.ie678 h2, .ie678 .h2-like {
|
|
|
|
.em(@h2-size);
|
|
|
|
}
|
|
|
|
.ie678 h3, .ie678 .h3-like {
|
|
|
|
.em(@h3-size);
|
|
|
|
}
|
|
|
|
.ie678 h4, .ie678 .h4-like {
|
|
|
|
.em(@h4-size);
|
|
|
|
}
|
|
|
|
.ie678 h5, .ie678 .h5-like {
|
|
|
|
.em(@h5-size);
|
|
|
|
}
|
|
|
|
.ie678 h6, .ie678 .h6-like {
|
|
|
|
.em(@h6-size);
|
|
|
|
}
|
|
|
|
|
2014-01-31 15:30:55 +01:00
|
|
|
/* hasLayout for IE6/IE7 */
|
2013-09-12 11:59:14 +02:00
|
|
|
.ie67 .clearfix,
|
|
|
|
.ie67 .line,
|
|
|
|
.ie67 .mod,
|
|
|
|
.ie67 .row,
|
|
|
|
.ie67 .col {
|
|
|
|
zoom: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* inline-block and table-cell for IE6/IE7 */
|
|
|
|
/* warning: .col needs width on IE6/IE7 */
|
|
|
|
.ie67 .btn,
|
|
|
|
.ie67 .col,
|
|
|
|
.ie67 .inbl {
|
|
|
|
display: inline;
|
|
|
|
zoom: 1;
|
|
|
|
}
|
|
|
|
.ie8 img {
|
|
|
|
width: auto; /* @bugfix for IE8 */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Active box-sizing for IE6/IE7 */
|
|
|
|
/* @source https://github.com/Schepp/box-sizing-polyfill */
|
|
|
|
/*
|
|
|
|
.ie67 * {
|
2014-01-01 12:00:49 +01:00
|
|
|
behavior: url(/lib/box-sizing-polyfill/boxsizing.htc);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
/* ----------------------------- */
|
2014-01-01 12:00:49 +01:00
|
|
|
/* == quick print reset */
|
2013-09-12 11:59:14 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
p,
|
|
|
|
blockquote {
|
|
|
|
orphans: 2;
|
|
|
|
widows: 2;
|
|
|
|
}
|
|
|
|
blockquote,
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
caption {
|
|
|
|
page-break-after: avoid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* debug helper */
|
|
|
|
.knacss-debug {
|
|
|
|
background: pink;
|
|
|
|
outline: 3px solid maroon;
|
2013-10-13 10:50:39 +02:00
|
|
|
}
|