2013-09-12 11:59:14 +02:00
|
|
|
/* ----------------------------- */
|
2014-01-01 12:00:49 +01:00
|
|
|
/* == soft reset */
|
|
|
|
/* ----------------------------- */
|
|
|
|
|
2015-03-04 14:58:29 +01:00
|
|
|
/* switching to border-box model for all elements */
|
|
|
|
html {
|
2015-07-01 13:47:48 +02:00
|
|
|
box-sizing: border-box;
|
2014-01-01 12:00:49 +01:00
|
|
|
}
|
|
|
|
|
2015-03-04 14:58:29 +01:00
|
|
|
* {
|
2015-07-01 13:47:48 +02:00
|
|
|
box-sizing: inherit;
|
2015-03-04 14:58:29 +01:00
|
|
|
}
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
ul,
|
|
|
|
ol {
|
2015-07-01 13:47:48 +02:00
|
|
|
padding-left: 2em;
|
2014-01-01 12:00:49 +01:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
ul.@{kna-namespace}unstyled {
|
2015-07-01 13:47:48 +02:00
|
|
|
list-style: none;
|
2014-01-01 12:00:49 +01:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
img {
|
2015-07-01 13:47:48 +02:00
|
|
|
vertical-align: middle;
|
2014-01-01 12:00:49 +01:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-03-04 14:58:29 +01:00
|
|
|
/* height auto only for non SVG images */
|
|
|
|
img:not([src$=".svg"]) {
|
2015-07-01 13:47:48 +02:00
|
|
|
height: auto;
|
2015-03-04 14:58:29 +01:00
|
|
|
}
|
|
|
|
|
2014-07-10 16:06:02 +02:00
|
|
|
blockquote,
|
2014-07-10 15:59:19 +02:00
|
|
|
figure {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
2014-07-10 15:59:19 +02:00
|
|
|
}
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
/* ----------------------------- */
|
|
|
|
/* == typography */
|
2013-09-12 11:59:14 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
|
|
|
html {
|
2015-05-05 23:22:30 +02:00
|
|
|
|
2015-07-01 13:47:48 +02:00
|
|
|
/* set base font-size to equiv "10px", which is adapted to rem unit */
|
|
|
|
font-size: 62.5%;
|
2015-05-05 23:22:30 +02:00
|
|
|
|
2015-07-01 13:47:48 +02:00
|
|
|
/* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */
|
|
|
|
/* thanks to @guardian, @victorbritopro and @eQRoeil */
|
|
|
|
font-size: ~'calc(1em * .625)';
|
2015-05-05 23:22:30 +02:00
|
|
|
|
2015-07-01 13:47:48 +02:00
|
|
|
/* disallow text zooming on orientation change (non standard property) */
|
|
|
|
-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 {
|
2015-05-05 23:22:30 +02:00
|
|
|
|
2015-07-01 13:47:48 +02:00
|
|
|
/* set body font-size in em (1.4em equiv "14px") */
|
|
|
|
font-size: unit((@base-font-size / 10), em);
|
2015-05-05 23:22:30 +02:00
|
|
|
|
2015-07-01 13:47:48 +02:00
|
|
|
background-color: @base-background;
|
|
|
|
color: @base-color;
|
|
|
|
font-family: @font-stack-common;
|
|
|
|
line-height: @line-height;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
2014-06-30 21:16:22 +02:00
|
|
|
a {
|
2015-07-01 13:47:48 +02:00
|
|
|
color: @base-color-link;
|
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
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,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}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 {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-top: 0.75em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
line-height: @line-height;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h1,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h1-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: @h1-size;
|
|
|
|
font-family: @font-stack-headings;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h2,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h2-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: @h2-size;
|
|
|
|
font-family: @font-stack-headings;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h3,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h3-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: @h3-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h4,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h4-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: @h4-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h5,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h5-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: @h5-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
|
|
|
h6,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h6-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: @h6-size;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* alternate font-sizing */
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}smaller {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 0.6em;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}small {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 0.8em;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}big {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 1.2em;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}bigger {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 1.5em;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}biggest {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 2em;
|
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 {
|
2015-07-01 13:47:48 +02:00
|
|
|
/* IE fix */
|
|
|
|
white-space: pre-line;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
font-family: @font-stack-monospace;
|
|
|
|
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,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}italic,
|
2014-05-03 13:11:11 +02:00
|
|
|
address,
|
|
|
|
cite,
|
|
|
|
i,
|
|
|
|
var {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-style: italic;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
2014-06-30 21:22:58 +02:00
|
|
|
|
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-07-02 09:19:33 +02:00
|
|
|
.visually-hidden {
|
2015-07-01 13:47:48 +02:00
|
|
|
position: absolute !important;
|
|
|
|
border: 0 !important;
|
|
|
|
height: 1px !important;
|
|
|
|
width: 1px !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
overflow: hidden !important;
|
2015-08-27 11:11:40 +02:00
|
|
|
clip: rect(0, 0, 0, 0) !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) {
|
2015-07-01 13:47:48 +02:00
|
|
|
.@{kna-namespace}no-small-screen {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-05-03 11:31:26 +02:00
|
|
|
}
|
2014-05-07 10:45:47 +02:00
|
|
|
|
2014-05-03 11:31:26 +02:00
|
|
|
@media (min-width: @large-screen) {
|
2015-07-01 13:47:48 +02:00
|
|
|
.@{kna-namespace}no-large-screen {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-05-03 11:31:26 +02:00
|
|
|
}
|
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-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}p-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
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-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h1-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h2,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h2-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h3,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h3-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h4,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h4-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h5,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h5-like,
|
2015-03-04 14:43:27 +01:00
|
|
|
h6,
|
2015-05-05 23:22:30 +02:00
|
|
|
.@{kna-namespace}h6-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* avoid margins on nested elements */
|
|
|
|
li p,
|
2015-05-05 23:22:30 +02:00
|
|
|
li .@{kna-namespace}p-like,
|
2013-09-12 11:59:14 +02:00
|
|
|
li ul,
|
|
|
|
li ol {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* max values */
|
2015-03-04 11:47:46 +01:00
|
|
|
img,
|
|
|
|
table,
|
|
|
|
td,
|
|
|
|
blockquote,
|
|
|
|
code,
|
|
|
|
pre,
|
|
|
|
textarea,
|
|
|
|
input,
|
2015-04-25 09:18:22 +02:00
|
|
|
video,
|
|
|
|
svg {
|
2015-07-01 13:47:48 +02:00
|
|
|
max-width: 100%;
|
2013-09-12 11:59:14 +02:00
|
|
|
}
|
|
|
|
|
2014-01-01 12:00:49 +01:00
|
|
|
/* margin-bottom on tables */
|
2014-05-07 10:45:47 +02:00
|
|
|
table {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-bottom: @medium-value;
|
2014-05-07 10:45:47 +02:00
|
|
|
}
|