306 lines
3.8 KiB
SCSS
306 lines
3.8 KiB
SCSS
/* ----------------------------- */
|
|
/* ==Base (basic styles) */
|
|
/* ----------------------------- */
|
|
|
|
/* switching to border-box model for all elements */
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
* {
|
|
box-sizing: inherit;
|
|
/* avoid min-width: auto on flex and grid children */
|
|
min-width: 0;
|
|
// min-height: 0;
|
|
}
|
|
|
|
html {
|
|
/* 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 */
|
|
font-size: calc(1em * 0.625);
|
|
}
|
|
|
|
body {
|
|
font-size: $font-size-base;
|
|
background-color: $background-base;
|
|
color: $color-base;
|
|
font-family: $font-family-base;
|
|
line-height: $line-height-base;
|
|
}
|
|
|
|
/* Links */
|
|
a {
|
|
color: $link-color;
|
|
text-decoration: $link-decoration;
|
|
|
|
&:focus,
|
|
&:hover,
|
|
&:active {
|
|
color: $link-color-hover;
|
|
text-decoration: $link-decoration-hover;
|
|
}
|
|
}
|
|
|
|
/* Headings */
|
|
h1, .h1-like {
|
|
font-size: $h1-size;
|
|
@if variable_exists(font-family-headings) and $font-family-headings != $font-family-base{
|
|
font-family: $font-family-headings;
|
|
}
|
|
font-weight: $weight-medium;
|
|
}
|
|
|
|
h2, .h2-like {
|
|
font-size: $h2-size;
|
|
@if variable_exists(font-family-headings) and $font-family-headings != $font-family-base{
|
|
font-family: $font-family-headings;
|
|
}
|
|
font-weight: $weight-medium;
|
|
}
|
|
|
|
h3, .h3-like {
|
|
font-size: $h3-size;
|
|
font-weight: $weight-medium;
|
|
}
|
|
|
|
h4, .h4-like {
|
|
font-size: $h4-size;
|
|
font-weight: $weight-medium;
|
|
}
|
|
|
|
h5, .h5-like {
|
|
font-size: $h5-size;
|
|
font-weight: $weight-medium;
|
|
}
|
|
|
|
h6, .h6-like {
|
|
font-size: $h6-size;
|
|
font-weight: $weight-medium;
|
|
}
|
|
|
|
/* Vertical rythm for blocks */
|
|
p,
|
|
.p-like,
|
|
ul,
|
|
ol,
|
|
dl,
|
|
blockquote,
|
|
pre,
|
|
td,
|
|
th,
|
|
label,
|
|
textarea,
|
|
caption,
|
|
details,
|
|
figure {
|
|
margin-top: 0.75em;
|
|
margin-bottom: 0;
|
|
line-height: $line-height-base;
|
|
}
|
|
|
|
/* Avoid top margins on first content element */
|
|
p,
|
|
.p-like,
|
|
ul,
|
|
ol,
|
|
dl,
|
|
blockquote,
|
|
label,
|
|
pre,
|
|
h1,
|
|
.h1-like,
|
|
h2,
|
|
.h2-like,
|
|
h3,
|
|
.h3-like,
|
|
h4,
|
|
.h4-like,
|
|
h5,
|
|
.h5-like,
|
|
h6,
|
|
.h6-like {
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
/* Avoid margins on nested elements */
|
|
li p,
|
|
li .p-like,
|
|
li ul,
|
|
li ol {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
|
|
/* Alternate font-sizing */
|
|
.smaller {
|
|
font-size: 0.6em;
|
|
}
|
|
|
|
.small {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.big {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.bigger {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.biggest {
|
|
font-size: 2em;
|
|
}
|
|
|
|
/* Max values */
|
|
img,
|
|
table,
|
|
td,
|
|
blockquote,
|
|
code,
|
|
pre,
|
|
textarea,
|
|
input,
|
|
video,
|
|
svg {
|
|
max-width: 100%;
|
|
}
|
|
|
|
img {
|
|
height: auto;
|
|
}
|
|
|
|
/* Styling elements */
|
|
ul,
|
|
ol {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
img {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
em,
|
|
.italic,
|
|
address,
|
|
cite,
|
|
i,
|
|
var {
|
|
font-style: italic;
|
|
}
|
|
|
|
code,
|
|
kbd,
|
|
mark {
|
|
border-radius: 2px;
|
|
}
|
|
|
|
kbd {
|
|
padding: 0 2px;
|
|
border: 1px solid #999;
|
|
}
|
|
|
|
pre {
|
|
tab-size: 2;
|
|
}
|
|
|
|
code {
|
|
padding: 2px 4px;
|
|
background: rgba(0, 0, 0, 0.04);
|
|
color: #b11;
|
|
}
|
|
|
|
pre code {
|
|
padding: 0;
|
|
background: none;
|
|
color: inherit;
|
|
border-radius: 0;
|
|
}
|
|
|
|
mark {
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
sup,
|
|
sub {
|
|
vertical-align: 0;
|
|
}
|
|
|
|
sup {
|
|
bottom: 1ex;
|
|
}
|
|
|
|
sub {
|
|
top: 0.5ex;
|
|
}
|
|
|
|
blockquote {
|
|
position: relative;
|
|
padding-left: 3em;
|
|
min-height: 2em;
|
|
}
|
|
|
|
blockquote::before {
|
|
content: "\201C";
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
font-family: georgia, serif;
|
|
font-size: 5em;
|
|
height: .4em;
|
|
line-height: .9;
|
|
color: $quote-color;
|
|
}
|
|
|
|
blockquote > footer {
|
|
margin-top: .75em;
|
|
font-size: 0.9em;
|
|
color: rgba(0, 0, 0, .7);
|
|
|
|
&::before {
|
|
content: "\2014 \0020";
|
|
}
|
|
}
|
|
|
|
q {
|
|
font-style: normal;
|
|
}
|
|
|
|
q,
|
|
.q {
|
|
quotes: "“\00a0" "\00a0”";
|
|
|
|
&:lang(fr) {
|
|
quotes: "«\00a0" "\00a0»";
|
|
}
|
|
}
|
|
|
|
hr {
|
|
display: block;
|
|
clear: both;
|
|
height: 1px;
|
|
margin: 1em 0 2em;
|
|
padding: 0;
|
|
border: 0;
|
|
color: #ccc;
|
|
background-color: #ccc;
|
|
}
|
|
|
|
blockquote,
|
|
figure {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
|
|
code,
|
|
pre,
|
|
samp,
|
|
kbd {
|
|
white-space: pre-wrap;
|
|
font-family: $font-family-monospace;
|
|
line-height: normal;
|
|
}
|