2014-01-31 15:30:55 +01:00
|
|
|
@import "00-config";
|
|
|
|
/*!
|
2014-05-03 11:48:25 +02:00
|
|
|
* www.KNACSS.com V3.0.0 (2014-05) @author: Raphael Goetter, Alsacreations
|
2014-01-31 15:30:55 +01:00
|
|
|
* 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 {
|
2014-04-20 21:51:59 +02:00
|
|
|
height: auto;
|
2014-01-01 12:00:49 +01:00
|
|
|
vertical-align: middle;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
audio,
|
|
|
|
canvas,
|
|
|
|
video {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
svg:not(:root) {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2014-05-03 13:50:05 +02:00
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
/* ----------------------------- */
|
|
|
|
/* == typography */
|
2013-09-12 11:59:14 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
2014-05-03 13:50:05 +02:00
|
|
|
/* base font-size corresponds to "10px" and is adapted to rem unit */
|
2013-09-12 11:59:14 +02:00
|
|
|
html {
|
|
|
|
font-size: 62.5%;
|
2014-01-01 12:00:49 +01:00
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
-ms-text-size-adjust: 100%;
|
2014-05-03 11:14:28 +02:00
|
|
|
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);
|
2014-04-20 21:51:59 +02:00
|
|
|
line-height: @lh;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* font-sizing for content */
|
|
|
|
p,
|
2014-05-03 11:14:28 +02:00
|
|
|
.p-like,
|
2013-09-12 11:59:14 +02:00
|
|
|
ul,
|
|
|
|
ol,
|
|
|
|
dl,
|
|
|
|
blockquote,
|
|
|
|
pre,
|
|
|
|
td,
|
|
|
|
th,
|
|
|
|
label,
|
|
|
|
textarea,
|
|
|
|
caption,
|
|
|
|
details,
|
|
|
|
figure,
|
|
|
|
hgroup {
|
2014-05-03 12:25:11 +02:00
|
|
|
margin-top: 0.75em;
|
2013-09-16 21:21:06 +02:00
|
|
|
margin-bottom: 0;
|
|
|
|
line-height: @lh;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h1, .h1-like {
|
2014-05-03 12:38:15 +02:00
|
|
|
.rem(@h1-size / 10);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h2, .h2-like {
|
2014-05-03 12:38:15 +02:00
|
|
|
.rem(@h2-size / 10);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h3, .h3-like {
|
2014-05-03 12:38:15 +02:00
|
|
|
.rem(@h3-size / 10);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h4, .h4-like {
|
2014-05-03 12:38:15 +02:00
|
|
|
.rem(@h4-size / 10);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h5, .h5-like {
|
2014-05-03 12:38:15 +02:00
|
|
|
.rem(@h5-size / 10);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
h6, .h6-like {
|
2014-05-03 12:38:15 +02:00
|
|
|
.rem(@h6-size / 10);
|
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
|
|
|
}
|
2014-05-03 11:28:17 +02:00
|
|
|
em,
|
2014-05-03 13:11:11 +02:00
|
|
|
.em,
|
|
|
|
address,
|
|
|
|
cite,
|
|
|
|
dfn,
|
|
|
|
i,
|
|
|
|
var {
|
2013-09-12 11:59:14 +02:00
|
|
|
font-style: italic;
|
|
|
|
}
|
2014-05-03 11:28:17 +02:00
|
|
|
.no-em {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
strong,
|
|
|
|
.strong {
|
2013-09-12 11:59:14 +02:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2014-05-03 11:28:17 +02:00
|
|
|
.no-strong {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2014-05-03 13:11:11 +02:00
|
|
|
small,
|
|
|
|
sub,
|
|
|
|
sup {
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
2014-01-01 12:00:49 +01:00
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* == hiding content */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
2014-04-20 19:58:53 +02:00
|
|
|
.visually-hidden {
|
|
|
|
position: absolute !important;
|
|
|
|
clip: rect(1px, 1px, 1px, 1px);
|
2014-01-01 12:00:49 +01:00
|
|
|
overflow: hidden;
|
2014-04-20 19:58:53 +02:00
|
|
|
height: 1px; width: 1px;
|
2014-01-01 12:00:49 +01:00
|
|
|
}
|
2014-05-03 12:25:11 +02:00
|
|
|
body > script {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2014-05-03 11:31:26 +02:00
|
|
|
@media print {
|
|
|
|
.no-print {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: @small-screen) {
|
|
|
|
.no-small-screen {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: @large-screen) {
|
|
|
|
.no-large-screen {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2014-01-01 12:00:49 +01:00
|
|
|
/* ----------------------------- */
|
|
|
|
/* == browsers consistency */
|
|
|
|
/* ----------------------------- */
|
2013-09-12 11:59:14 +02:00
|
|
|
|
|
|
|
/* avoid top margins on first content element */
|
2014-05-03 11:14:28 +02:00
|
|
|
p, .p-like, ul, ol, dl,
|
2013-09-12 11:59:14 +02:00
|
|
|
blockquote, pre,
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* avoid margins on nested elements */
|
|
|
|
li p,
|
2014-05-03 11:14:28 +02:00
|
|
|
li .p-like,
|
2013-09-12 11:59:14 +02:00
|
|
|
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 */
|
2014-04-20 20:58:28 +02:00
|
|
|
table { margin-bottom: @medium-value; }
|
2014-01-01 12:00:49 +01:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* ==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 */
|
2014-05-03 11:11:15 +02:00
|
|
|
.clearfix,
|
|
|
|
.line {
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
|
|
|
}
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 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) */
|
|
|
|
/* ------------------------------ */
|
|
|
|
|
2014-04-20 20:02:32 +02:00
|
|
|
/* left (or starting) elements */
|
|
|
|
.left,
|
|
|
|
.start {
|
2013-09-12 11:59:14 +02:00
|
|
|
float: left;
|
|
|
|
}
|
2014-04-20 20:02:32 +02:00
|
|
|
img.left,
|
|
|
|
img.start {
|
|
|
|
margin-right: @small-value;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-04-20 20:02:32 +02:00
|
|
|
/* right (or ending) elements */
|
|
|
|
.right,
|
|
|
|
.end {
|
2013-09-12 11:59:14 +02:00
|
|
|
float: right;
|
|
|
|
}
|
2014-04-20 20:02:32 +02:00
|
|
|
img.right,
|
|
|
|
img.end {
|
|
|
|
margin-left: @small-value;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-04-20 20:02:32 +02:00
|
|
|
img.left, img.right,
|
|
|
|
img.start, img.end {
|
|
|
|
margin-bottom: @tiny-value;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
.center { margin-left: auto; margin-right: auto; }
|
|
|
|
.txtleft { text-align: left; }
|
|
|
|
.txtright { text-align: right; }
|
|
|
|
.txtcenter { text-align: center; }
|
|
|
|
|
|
|
|
|
2014-04-20 20:34:39 +02:00
|
|
|
// width helpers boolean
|
|
|
|
& when (@helpers-width = true) {
|
|
|
|
/* 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; }
|
|
|
|
.w1140p { width: 1140px; }
|
|
|
|
.mw1140p { max-width: 1140px; }
|
|
|
|
.wauto { width: auto; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// spacing helpers boolean
|
|
|
|
& when (@helpers-spacing = true) {
|
|
|
|
/* spacing helpers
|
|
|
|
p,m = padding,margin
|
|
|
|
a,t,r,b,l = all,top,right,bottom,left
|
|
|
|
s,m,l,n = small, medium, large, none
|
|
|
|
*/
|
2014-05-03 11:25:32 +02:00
|
|
|
.man { margin: 0; }
|
|
|
|
.pan { padding: 0; }
|
|
|
|
.mas { margin: @small-value; }
|
|
|
|
.mam { margin: @medium-value; }
|
|
|
|
.mal { margin: @large-value; }
|
|
|
|
.pas { padding: @small-value; }
|
|
|
|
.pam { padding: @medium-value; }
|
|
|
|
.pal { padding: @large-value; }
|
|
|
|
|
|
|
|
.mtn { margin-top: 0; }
|
|
|
|
.mts { margin-top: @small-value; }
|
|
|
|
.mtm { margin-top: @medium-value; }
|
|
|
|
.mtl { margin-top: @large-value; }
|
|
|
|
.mrn { margin-right: 0; }
|
|
|
|
.mrs { margin-right: @small-value; }
|
|
|
|
.mrm { margin-right: @medium-value; }
|
|
|
|
.mrl { margin-right: @large-value; }
|
|
|
|
.mbn { margin-bottom: 0; }
|
|
|
|
.mbs { margin-bottom: @small-value; }
|
|
|
|
.mbm { margin-bottom: @medium-value; }
|
|
|
|
.mbl { margin-bottom: @large-value; }
|
|
|
|
.mln { margin-left: 0; }
|
|
|
|
.mls { margin-left: @small-value; }
|
|
|
|
.mlm { margin-left: @medium-value; }
|
|
|
|
.mll { margin-left: @large-value; }
|
|
|
|
|
|
|
|
.ptn { padding-top: 0; }
|
|
|
|
.pts { padding-top: @small-value; }
|
|
|
|
.ptm { padding-top: @medium-value; }
|
|
|
|
.ptl { padding-top: @large-value; }
|
|
|
|
.prn { padding-right: 0; }
|
|
|
|
.prs { padding-right: @small-value; }
|
|
|
|
.prm { padding-right: @medium-value; }
|
|
|
|
.prl { padding-right: @large-value; }
|
|
|
|
.pbn { padding-bottom: 0; }
|
|
|
|
.pbs { padding-bottom: @small-value; }
|
|
|
|
.pbm { padding-bottom: @medium-value; }
|
|
|
|
.pbl { padding-bottom: @large-value; }
|
|
|
|
.pln { padding-left: 0; }
|
|
|
|
.pls { padding-left: @small-value; }
|
|
|
|
.plm { padding-left: @medium-value; }
|
|
|
|
.pll { padding-left: @large-value; }
|
2013-11-22 17:35:03 +01:00
|
|
|
}
|