2014-01-31 15:30:55 +01:00
|
|
|
/*!
|
2014-10-20 17:42:52 +02:00
|
|
|
* www.KNACSS.com V3.1.0 (2014-10-20) @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;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
ul.unstyled {
|
|
|
|
list-style: none;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
img {
|
2014-04-20 21:51:59 +02:00
|
|
|
height: auto;
|
2014-01-01 12:00:49 +01:00
|
|
|
vertical-align: middle;
|
|
|
|
border: 0;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-07-10 16:06:02 +02:00
|
|
|
blockquote,
|
2014-07-10 15:59:19 +02:00
|
|
|
figure {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
audio,
|
|
|
|
canvas,
|
|
|
|
video {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
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-19 10:46:39 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
html {
|
2014-05-19 10:46:39 +02:00
|
|
|
|
|
|
|
/* set base font-size to equiv "10px", which is adapted to rem unit */
|
2013-09-12 11:59:14 +02:00
|
|
|
font-size: 62.5%;
|
2014-05-19 10:46:39 +02:00
|
|
|
|
|
|
|
/* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */
|
|
|
|
/* thanks to @guardian, @victorbritopro and @eQRoeil */
|
2015-03-04 11:47:46 +01:00
|
|
|
font-size: calc(1em * 0.625);
|
2014-05-19 10:46:39 +02:00
|
|
|
|
|
|
|
/* disallow text zooming on orientation change (non standard property) */
|
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
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
body {
|
2014-05-19 10:46:39 +02:00
|
|
|
|
|
|
|
/* set body font-size in em (1.4em equiv "14px") */
|
|
|
|
font-size: unit((@base-font-size / 10), em);
|
|
|
|
|
2014-07-02 16:12:58 +02:00
|
|
|
background-color: @base-background;
|
|
|
|
color: @base-color;
|
2015-03-04 11:47:46 +01:00
|
|
|
font-family: @font-stack-common;
|
2014-05-03 14:03:41 +02:00
|
|
|
line-height: @line-height;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
2014-06-30 21:16:22 +02:00
|
|
|
a {
|
2014-07-02 16:12:58 +02:00
|
|
|
color: @base-color-link;
|
2014-06-30 21:16:22 +02:00
|
|
|
&:hover, &:focus, &:active {
|
2014-07-02 16:12:58 +02:00
|
|
|
color: @base-color-link-hover;
|
2014-06-30 21:16:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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,
|
2015-03-04 11:47:46 +01:00
|
|
|
details,
|
2014-05-07 10:45:47 +02:00
|
|
|
figure {
|
2014-05-03 12:25:11 +02:00
|
|
|
margin-top: 0.75em;
|
2013-09-16 21:21:06 +02:00
|
|
|
margin-bottom: 0;
|
2014-05-03 14:03:41 +02:00
|
|
|
line-height: @line-height;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h1,
|
|
|
|
.h1-like {
|
2014-05-03 14:20:00 +02:00
|
|
|
font-size: @h1-size;
|
2014-07-02 16:12:58 +02:00
|
|
|
font-family: @font-stack-headings;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h2,
|
|
|
|
.h2-like {
|
2014-05-03 14:20:00 +02:00
|
|
|
font-size: @h2-size;
|
2014-07-02 16:12:58 +02:00
|
|
|
font-family: @font-stack-headings;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h3,
|
|
|
|
.h3-like {
|
2014-05-03 14:20:00 +02:00
|
|
|
font-size: @h3-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h4,
|
|
|
|
.h4-like {
|
2014-05-03 14:20:00 +02:00
|
|
|
font-size: @h4-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h5,
|
|
|
|
.h5-like {
|
2014-05-03 14:20:00 +02:00
|
|
|
font-size: @h5-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h6,
|
|
|
|
.h6-like {
|
2014-05-03 14:20:00 +02:00
|
|
|
font-size: @h6-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* alternate font-sizing */
|
|
|
|
.smaller {
|
2014-05-04 15:30:21 +02:00
|
|
|
.em(@base-font-size - 4);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
.small {
|
2014-05-07 09:55:55 +02:00
|
|
|
.em(@base-font-size - 2);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
.big {
|
2014-05-07 09:58:28 +02:00
|
|
|
.em(@base-font-size + 2);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
.bigger {
|
2014-05-07 09:55:55 +02:00
|
|
|
.em(@base-font-size + 4);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
.biggest {
|
2014-05-07 09:55:55 +02:00
|
|
|
.em(@base-font-size + 6);
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
2015-03-04 11:47:46 +01:00
|
|
|
code,
|
2013-09-12 11:59:14 +02:00
|
|
|
pre,
|
|
|
|
samp,
|
|
|
|
kbd {
|
2014-05-19 10:46:39 +02:00
|
|
|
/* IE fix */
|
2015-03-04 11:47:46 +01:00
|
|
|
white-space: pre-line;
|
2013-09-12 11:59:14 +02:00
|
|
|
white-space: pre-wrap;
|
2014-05-04 15:30:21 +02:00
|
|
|
font-family: @font-stack-monospace;
|
2014-04-20 19:36:57 +02:00
|
|
|
line-height: normal;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-06-30 21:22:58 +02:00
|
|
|
|
2014-05-03 11:28:17 +02:00
|
|
|
em,
|
2014-06-30 21:22:58 +02:00
|
|
|
.italic,
|
2014-05-03 13:11:11 +02:00
|
|
|
address,
|
|
|
|
cite,
|
|
|
|
dfn,
|
|
|
|
i,
|
|
|
|
var {
|
2013-09-12 11:59:14 +02:00
|
|
|
font-style: italic;
|
|
|
|
}
|
2014-06-30 21:22:58 +02:00
|
|
|
|
2014-05-03 11:28:17 +02:00
|
|
|
strong,
|
2014-06-30 21:22:58 +02:00
|
|
|
.bold {
|
2013-09-12 11:59:14 +02:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2014-06-30 21:22:58 +02:00
|
|
|
|
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-06-28 12:59:02 +02:00
|
|
|
/* hidden but not for an assistive technology like a screen reader, Yahoo! method */
|
2015-03-04 11:47:46 +01:00
|
|
|
.visually-hidden {
|
2014-05-07 10:45:47 +02:00
|
|
|
position: absolute !important;
|
2015-03-04 11:47:46 +01:00
|
|
|
border: 0 !important;
|
|
|
|
height: 1px !important;
|
|
|
|
width: 1px !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
overflow: hidden !important;
|
|
|
|
clip: rect(1px, 1px, 1px, 1px) !important;
|
2014-01-01 12:00:49 +01:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-05-03 11:31:26 +02:00
|
|
|
@media (max-width: @small-screen) {
|
|
|
|
.no-small-screen {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-05-03 11:31:26 +02:00
|
|
|
@media (min-width: @large-screen) {
|
|
|
|
.no-large-screen {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
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-07 10:45:47 +02:00
|
|
|
p,
|
2015-03-04 11:47:46 +01:00
|
|
|
.p-like,
|
|
|
|
ul,
|
|
|
|
ol,
|
2014-05-07 10:45:47 +02:00
|
|
|
dl,
|
2015-03-04 11:47:46 +01:00
|
|
|
blockquote,
|
2014-05-07 10:45:47 +02:00
|
|
|
pre,
|
2015-03-04 11:47:46 +01:00
|
|
|
h1,
|
2015-03-04 14:43:27 +01:00
|
|
|
.h1-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h2,
|
2015-03-04 14:43:27 +01:00
|
|
|
.h2-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h3,
|
2015-03-04 14:43:27 +01:00
|
|
|
.h3-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h4,
|
2015-03-04 14:43:27 +01:00
|
|
|
.h4-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h5,
|
2015-03-04 14:43:27 +01:00
|
|
|
.h5-like,
|
|
|
|
h6,
|
|
|
|
.h6-like {
|
2013-09-12 11:59:14 +02:00
|
|
|
&: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 */
|
2015-03-04 11:47:46 +01:00
|
|
|
img,
|
|
|
|
table,
|
|
|
|
td,
|
|
|
|
blockquote,
|
|
|
|
code,
|
|
|
|
pre,
|
|
|
|
textarea,
|
|
|
|
input,
|
2014-05-07 10:45:47 +02:00
|
|
|
video {
|
2013-09-12 11:59:14 +02:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
/* margin-bottom on tables */
|
2014-05-07 10:45:47 +02:00
|
|
|
table {
|
|
|
|
margin-bottom: @medium-value;
|
|
|
|
}
|
2013-09-12 11:59:14 +02:00
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* ==layout and modules */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
/* float layout */
|
|
|
|
/* module, gains superpower "BFC" Block Formating Context */
|
2015-03-04 14:43:27 +01:00
|
|
|
.mod {
|
2013-09-12 11:59:14 +02:00
|
|
|
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;
|
2014-08-22 09:34:59 +02:00
|
|
|
border-collapse: collapse;
|
2014-05-03 11:11:15 +02:00
|
|
|
}
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* table layout */
|
|
|
|
.row {
|
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
.row > *,
|
|
|
|
.col {
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
2015-03-04 14:49:50 +01:00
|
|
|
/* no table-cell for script tag when body is a .row */
|
|
|
|
body > script {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2013-09-12 11:59:14 +02:00
|
|
|
/* 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-05-07 10:45:47 +02:00
|
|
|
|
2014-04-20 20:02:32 +02:00
|
|
|
img.left,
|
2015-03-04 14:43:27 +01:00
|
|
|
img.start {
|
2014-04-20 20:02:32 +02:00
|
|
|
margin-right: @small-value;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +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-05-07 10:45:47 +02:00
|
|
|
|
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-05-07 10:45:47 +02:00
|
|
|
|
2015-03-04 11:47:46 +01:00
|
|
|
img.left,
|
2014-05-07 10:45:47 +02:00
|
|
|
img.right,
|
2015-03-04 11:47:46 +01:00
|
|
|
img.start,
|
2014-05-07 10:45:47 +02:00
|
|
|
img.end {
|
2014-04-20 20:02:32 +02:00
|
|
|
margin-bottom: @tiny-value;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
2015-03-04 11:47:46 +01:00
|
|
|
.center {
|
|
|
|
margin-left: auto;
|
2014-05-07 10:45:47 +02:00
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2015-03-04 11:47:46 +01:00
|
|
|
.txtleft {
|
2014-05-07 10:45:47 +02:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2015-03-04 11:47:46 +01:00
|
|
|
.txtright {
|
2014-05-07 10:45:47 +02:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.txtcenter {
|
|
|
|
text-align: center;
|
|
|
|
}
|