2016-03-10 17:13:54 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
BASE ELEMENTS
|
|
|
|
========================================================================== */
|
|
|
|
|
2016-07-20 15:10:37 +02:00
|
|
|
html {
|
|
|
|
/* sticky footer fix */
|
|
|
|
position: relative;
|
|
|
|
min-height: 100%;
|
2024-01-13 19:17:18 +01:00
|
|
|
/* hacks-guide change start: add text selection custom colours */
|
|
|
|
::selection {
|
|
|
|
color: $text-color;
|
|
|
|
background: $text-highlight-color;
|
|
|
|
}
|
|
|
|
/* hacks-guide change end */
|
2016-07-20 15:10:37 +02:00
|
|
|
}
|
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
color: $text-color;
|
2016-04-05 21:18:05 +02:00
|
|
|
font-family: $global-font-family;
|
2016-03-31 04:20:55 +02:00
|
|
|
line-height: 1.5;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
&.overflow--hidden {
|
|
|
|
/* when primary navigation is visible, the content in the background won't scroll */
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2016-04-08 03:17:26 +02:00
|
|
|
margin: 2em 0 0.5em;
|
2016-03-30 22:59:48 +02:00
|
|
|
line-height: 1.2;
|
2016-04-05 21:18:05 +02:00
|
|
|
font-family: $header-font-family;
|
2016-03-31 04:20:55 +02:00
|
|
|
font-weight: bold;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2016-03-30 22:59:48 +02:00
|
|
|
margin-top: 0;
|
2020-03-05 18:39:35 +01:00
|
|
|
font-size: $h-size-1;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
h2 {
|
2020-03-05 18:39:35 +01:00
|
|
|
font-size: $h-size-2;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
h3 {
|
2020-03-05 18:39:35 +01:00
|
|
|
font-size: $h-size-3;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
h4 {
|
2020-03-05 18:39:35 +01:00
|
|
|
font-size: $h-size-4;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
h5 {
|
2020-03-05 18:39:35 +01:00
|
|
|
font-size: $h-size-5;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
h6 {
|
2020-03-05 18:39:35 +01:00
|
|
|
font-size: $h-size-6;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
small,
|
|
|
|
.small {
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-6;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-bottom: 1.3em;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
u,
|
|
|
|
ins {
|
|
|
|
text-decoration: none;
|
|
|
|
border-bottom: 1px solid $text-color;
|
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
del a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* reduce orphans and widows when printing */
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
p,
|
|
|
|
pre,
|
|
|
|
blockquote,
|
|
|
|
ul,
|
|
|
|
ol,
|
|
|
|
dl,
|
|
|
|
figure,
|
|
|
|
table,
|
|
|
|
fieldset {
|
2016-03-10 17:13:54 +01:00
|
|
|
orphans: 3;
|
|
|
|
widows: 3;
|
|
|
|
}
|
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
/* abbreviations */
|
2016-03-10 17:13:54 +01:00
|
|
|
|
|
|
|
abbr[title],
|
|
|
|
abbr[data-original-title] {
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: help;
|
|
|
|
border-bottom: 1px dotted $text-color;
|
|
|
|
}
|
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
/* blockquotes */
|
2016-03-10 17:13:54 +01:00
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 2em 1em 2em 0;
|
|
|
|
padding-left: 1em;
|
|
|
|
padding-right: 1em;
|
|
|
|
font-style: italic;
|
2016-04-05 21:18:05 +02:00
|
|
|
border-left: 0.25em solid $primary-color;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
cite {
|
2016-03-31 04:20:55 +02:00
|
|
|
font-style: italic;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
&:before {
|
|
|
|
content: "\2014";
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
/* links */
|
2016-03-10 17:13:54 +01:00
|
|
|
|
|
|
|
a {
|
|
|
|
&:focus {
|
|
|
|
@extend %tab-focus;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-09-12 18:01:43 +02:00
|
|
|
&:visited {
|
|
|
|
color: $link-color-visited;
|
|
|
|
}
|
2018-09-05 21:16:31 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $link-color-hover;
|
|
|
|
outline: 0;
|
|
|
|
}
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
/* buttons */
|
|
|
|
|
|
|
|
button:focus {
|
|
|
|
@extend %tab-focus;
|
|
|
|
}
|
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
/* code */
|
2016-03-10 17:13:54 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
tt,
|
|
|
|
code,
|
|
|
|
kbd,
|
|
|
|
samp,
|
|
|
|
pre {
|
2016-03-10 17:13:54 +01:00
|
|
|
font-family: $monospace;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
pre {
|
2016-08-08 22:01:37 +02:00
|
|
|
overflow-x: auto; /* add scrollbars to wide code blocks*/
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-30 22:59:48 +02:00
|
|
|
p > code,
|
2016-04-04 03:42:02 +02:00
|
|
|
a > code,
|
2016-04-04 03:52:52 +02:00
|
|
|
li > code,
|
2016-04-12 22:48:27 +02:00
|
|
|
figcaption > code,
|
|
|
|
td > code {
|
2016-03-10 17:13:54 +01:00
|
|
|
padding-top: 0.1rem;
|
|
|
|
padding-bottom: 0.1rem;
|
2018-11-26 01:52:45 +01:00
|
|
|
font-size: 0.8em;
|
2016-03-25 14:33:28 +01:00
|
|
|
background: $code-background-color;
|
2016-03-10 17:13:54 +01:00
|
|
|
border-radius: $border-radius;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
&:before,
|
|
|
|
&:after {
|
2016-03-10 17:13:54 +01:00
|
|
|
letter-spacing: -0.2em;
|
2016-08-08 22:01:37 +02:00
|
|
|
content: "\00a0"; /* non-breaking space*/
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
/* horizontal rule */
|
2016-03-10 17:13:54 +01:00
|
|
|
|
|
|
|
hr {
|
|
|
|
display: block;
|
|
|
|
margin: 1em 0;
|
|
|
|
border: 0;
|
|
|
|
border-top: 1px solid $border-color;
|
|
|
|
}
|
|
|
|
|
2016-04-06 03:15:39 +02:00
|
|
|
/* lists */
|
|
|
|
|
|
|
|
ul li,
|
|
|
|
ol li {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
li ul,
|
|
|
|
li ol {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
/*
|
|
|
|
Media and embeds
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
/* Figures and images */
|
|
|
|
|
|
|
|
figure {
|
2016-08-08 22:01:37 +02:00
|
|
|
display: -webkit-box;
|
2016-03-10 17:13:54 +01:00
|
|
|
display: flex;
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-box-pack: justify;
|
2017-12-07 14:56:14 +01:00
|
|
|
justify-content: space-between;
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-box-align: start;
|
2017-12-07 14:56:14 +01:00
|
|
|
align-items: flex-start;
|
2016-03-10 17:13:54 +01:00
|
|
|
flex-wrap: wrap;
|
|
|
|
margin: 2em 0;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
img,
|
|
|
|
iframe,
|
|
|
|
.fluid-width-video-wrapper {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
border-radius: $border-radius;
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-transition: $global-transition;
|
2016-04-05 21:18:05 +02:00
|
|
|
transition: $global-transition;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
> a {
|
|
|
|
display: block;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
&.half {
|
|
|
|
> a,
|
|
|
|
> img {
|
|
|
|
@include breakpoint($small) {
|
|
|
|
width: calc(50% - 0.5em);
|
|
|
|
}
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
figcaption {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
&.third {
|
|
|
|
> a,
|
|
|
|
> img {
|
|
|
|
@include breakpoint($small) {
|
|
|
|
width: calc(33.3333% - 0.5em);
|
|
|
|
}
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
figcaption {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Figure captions */
|
|
|
|
|
|
|
|
figcaption {
|
2016-03-30 22:59:48 +02:00
|
|
|
margin-bottom: 0.5em;
|
2017-09-12 18:01:43 +02:00
|
|
|
color: $muted-text-color;
|
2016-04-05 21:18:05 +02:00
|
|
|
font-family: $caption-font-family;
|
2016-03-30 22:59:48 +02:00
|
|
|
font-size: $type-size-6;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
a {
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-transition: $global-transition;
|
2016-04-05 21:18:05 +02:00
|
|
|
transition: $global-transition;
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
&:hover {
|
2017-09-12 18:01:43 +02:00
|
|
|
color: $link-color-hover;
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fix IE9 SVG bug */
|
|
|
|
|
|
|
|
svg:not(:root) {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
Navigation lists
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes margins, padding, and bullet points from navigation lists
|
|
|
|
*
|
|
|
|
* Example usage:
|
|
|
|
* <nav>
|
|
|
|
* <ul>
|
|
|
|
* <li><a href="#link-1">Link 1</a></li>
|
|
|
|
* <li><a href="#link-2">Link 2</a></li>
|
|
|
|
* <li><a href="#link-3">Link 3</a></li>
|
|
|
|
* </ul>
|
|
|
|
* </nav>
|
|
|
|
*/
|
|
|
|
|
|
|
|
nav {
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
li {
|
|
|
|
list-style: none;
|
|
|
|
}
|
2016-03-21 21:36:24 +01:00
|
|
|
|
2016-03-10 17:13:54 +01:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2016-04-06 03:15:39 +02:00
|
|
|
|
|
|
|
/* override white-space for nested lists */
|
|
|
|
ul li,
|
|
|
|
ol li {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
li ul,
|
|
|
|
li ol {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2016-03-10 17:13:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
Global animation transition
|
|
|
|
========================================================================== */
|
|
|
|
|
2017-12-07 14:56:14 +01:00
|
|
|
b,
|
|
|
|
i,
|
|
|
|
strong,
|
|
|
|
em,
|
|
|
|
blockquote,
|
|
|
|
p,
|
|
|
|
q,
|
|
|
|
span,
|
|
|
|
figure,
|
|
|
|
img,
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
header,
|
|
|
|
input,
|
|
|
|
a,
|
|
|
|
tr,
|
|
|
|
td,
|
|
|
|
form button,
|
|
|
|
input[type="submit"],
|
|
|
|
.btn,
|
|
|
|
.highlight,
|
|
|
|
.archive__item-teaser {
|
2016-08-08 22:01:37 +02:00
|
|
|
-webkit-transition: $global-transition;
|
2016-04-05 21:18:05 +02:00
|
|
|
transition: $global-transition;
|
2017-12-07 14:56:14 +01:00
|
|
|
}
|