2014-05-04 15:48:00 +02:00
|
|
|
/* ----------------------------- */
|
2016-05-20 08:58:56 +02:00
|
|
|
/* ==Base (basic styles) */
|
2014-05-04 15:48:00 +02:00
|
|
|
/* ----------------------------- */
|
|
|
|
|
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-05-04 15:48:00 +02: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-05-04 15:48:00 +02:00
|
|
|
html {
|
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%;
|
|
|
|
/* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */
|
|
|
|
/* thanks to @guardian, @victorbritopro and @eQRoeil */
|
|
|
|
font-size: calc(1em * 0.625);
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2014-05-04 15:48:00 +02:00
|
|
|
body {
|
2015-12-12 11:20:29 +01:00
|
|
|
font-size: $base-font-size;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(base-font-size-l) and $base-font-size-l != $base-font-size {
|
|
|
|
@include respond-to("tiny-up") {
|
|
|
|
font-size: $base-font-size-l;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
background-color: $background-base;
|
|
|
|
color: $color-base;
|
2015-07-01 13:47:48 +02:00
|
|
|
font-family: $font-stack-common;
|
|
|
|
line-height: $line-height;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(line-height-l) and $line-height-l != $line-height {
|
|
|
|
@include respond-to("tiny-up") {
|
|
|
|
line-height: $line-height-l;
|
|
|
|
}
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
|
|
|
|
2014-06-30 21:20:07 +02:00
|
|
|
a {
|
2017-03-03 16:51:48 +01:00
|
|
|
color: $color-link;
|
2016-12-08 14:24:27 +01:00
|
|
|
|
2016-12-15 20:10:26 +01:00
|
|
|
// No styling on focus/hover if there's no effect. Avoids to then have to
|
|
|
|
// override it countless times. See Issue #232
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(color-link-hover) and
|
|
|
|
( null == index( ($color-link, null, false), $color-link-hover) ) {
|
2016-12-15 20:10:26 +01:00
|
|
|
&:focus,
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
2017-03-03 16:51:48 +01:00
|
|
|
color: $color-link-hover;
|
2016-12-15 20:10:26 +01:00
|
|
|
}
|
2015-07-01 13:47:48 +02:00
|
|
|
}
|
2014-06-30 21:20:07 +02:00
|
|
|
}
|
|
|
|
|
2016-09-27 16:10:21 +02:00
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote,
|
|
|
|
figure {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2014-05-04 15:48:00 +02:00
|
|
|
/* font-sizing for content */
|
|
|
|
p,
|
2017-07-31 11:45:22 +02:00
|
|
|
.p-like,
|
2014-05-04 15:48:00 +02:00
|
|
|
ul,
|
|
|
|
ol,
|
|
|
|
dl,
|
|
|
|
blockquote,
|
|
|
|
pre,
|
|
|
|
td,
|
|
|
|
th,
|
|
|
|
label,
|
|
|
|
textarea,
|
|
|
|
caption,
|
2015-03-04 11:47:46 +01:00
|
|
|
details,
|
2014-05-07 11:12:14 +02:00
|
|
|
figure {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-top: 0.75em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
line-height: $line-height;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
h1, .h1-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: $h1-size;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(h1-size-l) and $h1-size-l != $h1-size {
|
|
|
|
@include respond-to("tiny-up") {
|
|
|
|
font-size: $h1-size-l;
|
|
|
|
}
|
|
|
|
}
|
2017-01-10 10:28:18 +01:00
|
|
|
@if variable_exists(font-stack-headings) and $font-stack-headings != $font-stack-common {
|
2016-12-07 10:57:06 +01:00
|
|
|
font-family: $font-stack-headings;
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
h2, .h2-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: $h2-size;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(h2-size-l) and $h2-size-l != $h2-size {
|
|
|
|
@include respond-to("tiny-up") {
|
|
|
|
font-size: $h2-size-l;
|
|
|
|
}
|
|
|
|
}
|
2017-01-10 10:28:18 +01:00
|
|
|
@if variable_exists(font-stack-headings) and $font-stack-headings != $font-stack-common {
|
2016-12-07 10:57:06 +01:00
|
|
|
font-family: $font-stack-headings;
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
h3, .h3-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: $h3-size;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(h3-size-l) and $h3-size-l != $h3-size {
|
|
|
|
@include respond-to("tiny-up") {
|
|
|
|
font-size: $h3-size-l;
|
|
|
|
}
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
h4, .h4-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: $h4-size;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(h4-size-l) and $h4-size-l != $h4-size {
|
|
|
|
@include respond-to("tiny-up") {
|
|
|
|
font-size: $h4-size-l;
|
|
|
|
}
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
h5, .h5-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: $h5-size;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(h5-size-l) and $h5-size-l != $h5-size {
|
|
|
|
@include respond-to("tiny-up") {
|
|
|
|
font-size: $h5-size-l;
|
|
|
|
}
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
h6, .h6-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: $h6-size;
|
2017-03-03 16:51:48 +01:00
|
|
|
@if variable_exists(h6-size-l) and $h6-size-l != $h6-size {
|
|
|
|
@include respond-to("tiny-up") {
|
2017-04-28 13:39:09 +02:00
|
|
|
font-size: $h6-size-l;
|
2017-03-03 16:51:48 +01:00
|
|
|
}
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* alternate font-sizing */
|
2017-07-31 11:45:22 +02:00
|
|
|
.smaller {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 0.6em;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.small {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 0.8em;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.big {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 1.2em;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.bigger {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 1.5em;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2017-07-31 11:45:22 +02:00
|
|
|
.biggest {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-size: 2em;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
|
|
|
|
2015-03-04 11:47:46 +01:00
|
|
|
code,
|
2014-05-04 15:48:00 +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;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2014-05-04 15:48:00 +02:00
|
|
|
em,
|
2017-07-31 11:45:22 +02:00
|
|
|
.italic,
|
2014-05-04 15:48:00 +02:00
|
|
|
address,
|
|
|
|
cite,
|
|
|
|
i,
|
|
|
|
var {
|
2015-07-01 13:47:48 +02:00
|
|
|
font-style: italic;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2014-05-07 11:12:14 +02:00
|
|
|
|
2014-05-04 15:48:00 +02:00
|
|
|
/* avoid top margins on first content element */
|
2015-03-04 11:47:46 +01:00
|
|
|
p,
|
2017-07-31 11:45:22 +02:00
|
|
|
.p-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
ul,
|
|
|
|
ol,
|
2014-05-07 11:12:14 +02:00
|
|
|
dl,
|
2015-03-04 11:47:46 +01:00
|
|
|
blockquote,
|
2014-05-07 11:12:14 +02:00
|
|
|
pre,
|
2015-03-04 11:47:46 +01:00
|
|
|
h1,
|
2017-07-31 11:45:22 +02:00
|
|
|
.h1-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h2,
|
2017-07-31 11:45:22 +02:00
|
|
|
.h2-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h3,
|
2017-07-31 11:45:22 +02:00
|
|
|
.h3-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h4,
|
2017-07-31 11:45:22 +02:00
|
|
|
.h4-like,
|
2015-03-04 11:47:46 +01:00
|
|
|
h5,
|
2017-07-31 11:45:22 +02:00
|
|
|
.h5-like,
|
2015-03-04 14:43:27 +01:00
|
|
|
h6,
|
2017-07-31 11:45:22 +02:00
|
|
|
.h6-like {
|
2015-07-01 13:47:48 +02:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* avoid margins on nested elements */
|
|
|
|
li p,
|
2017-07-31 11:45:22 +02:00
|
|
|
li .p-like,
|
2014-05-04 15:48:00 +02:00
|
|
|
li ul,
|
|
|
|
li ol {
|
2015-07-01 13:47:48 +02:00
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* max values */
|
2015-03-04 11:47:46 +01:00
|
|
|
img,
|
|
|
|
table,
|
|
|
|
td,
|
|
|
|
blockquote,
|
|
|
|
code,
|
|
|
|
pre,
|
|
|
|
textarea,
|
|
|
|
input,
|
2015-04-25 09:20:31 +02:00
|
|
|
video,
|
|
|
|
svg {
|
2015-07-01 13:47:48 +02:00
|
|
|
max-width: 100%;
|
2014-05-04 15:48:00 +02:00
|
|
|
}
|
2016-09-27 16:10:21 +02:00
|
|
|
|
|
|
|
img {
|
|
|
|
height: auto;
|
2016-10-31 10:53:57 +01:00
|
|
|
}
|