1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-15 01:34:49 +01:00
website/_src/_assets/scss/_typography.scss

137 lines
2.1 KiB
SCSS
Raw Normal View History

2017-08-09 17:12:21 +02:00
@import 'variables';
html {
font-size: $font-size-root;
-webkit-tap-highlight-color: transparent;
@media ($screen-lg) {
font-size: $font-size-root-lg;
}
}
body {
font-family: $font-family-base;
font-size: $font-size-base;
font-weight: $font-weight-normal;
2017-08-09 17:12:21 +02:00
line-height: $line-height;
color: $text-color;
background: #fff;
2017-08-09 17:12:21 +02:00
margin: 0;
// Controversial! But prevents text flickering in
// Safari/Firefox when animations are running
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
//
// Quickly fade in all content after
// fonts have loaded. Not quite useful,
// but beautiful.
//
.hero,
.header,
.section,
.content {
.row {
transition: .15s ease-out;
.wf-loading & {
opacity: 0;
}
.wf-active &,
.wf-inactive & {
opacity: 1;
}
}
}
//
// Headings
//
2017-08-11 00:51:21 +02:00
/* stylelint-disable selector-list-comma-newline-after */
2017-08-24 13:47:28 +02:00
h1, h2, h3, h4, h5, h6 {
color: $headings-color;
font-family: $headings-font-family;
font-weight: $headings-font-weight;
line-height: $headings-line-height;
2017-08-09 17:12:21 +02:00
margin-top: $spacer;
margin-bottom: $spacer;
&:first-child {
margin-top: 0;
}
}
2017-08-11 00:51:21 +02:00
h1, .h1,
2017-08-24 13:47:28 +02:00
h2, .h2 {
2017-08-11 00:51:21 +02:00
margin-top: ($spacer * 2);
2017-08-24 13:47:28 +02:00
margin-bottom: $spacer;
2017-08-11 00:51:21 +02:00
}
2017-08-24 13:47:28 +02:00
h3, .h3,
2017-08-11 00:51:21 +02:00
h4, .h4,
h5, .h5,
h6, .h6 {
margin-top: $spacer;
2017-08-24 13:47:28 +02:00
margin-bottom: $spacer / 2;
2017-08-11 00:51:21 +02:00
}
h1, .h1 { font-size: $font-size-h1; }
h2, .h2 { font-size: $font-size-h2; }
h3, .h3 { font-size: $font-size-h3; }
h4, .h4 { font-size: $font-size-h4; }
h5, .h5 { font-size: $font-size-h5; }
h6, .h6 { font-size: $font-size-h6; }
/* stylelint-enable */
//
// Body text
//
2017-08-09 17:12:21 +02:00
p,
ul,
ol {
margin: 0 0 $spacer;
}
strong {
font-weight: $font-weight-bold;
}
2017-08-09 17:12:21 +02:00
//
// Links
//
a {
color: $link-color;
2017-08-11 00:51:21 +02:00
text-decoration: none;
&:hover,
&:focus {
2017-08-24 17:18:17 +02:00
color: darken($link-color, 10%);
2017-08-11 00:51:21 +02:00
outline: 0;
}
}
2017-08-09 17:12:21 +02:00
//
// Lists
//
ul,
ol {
margin-left: 0;
padding-left: $spacer;
}
.lead {
color: $brand-03;
font-size: $font-size-large;
}