mirror of
https://github.com/ipdb/website.git
synced 2024-11-15 01:34:49 +01:00
133 lines
2.0 KiB
SCSS
133 lines
2.0 KiB
SCSS
@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;
|
|
line-height: $line-height;
|
|
color: $text-color;
|
|
background: #fff;
|
|
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
|
|
//
|
|
|
|
/* stylelint-disable selector-list-comma-newline-after */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: $headings-color;
|
|
font-family: $headings-font-family;
|
|
font-weight: $headings-font-weight;
|
|
line-height: $headings-line-height;
|
|
margin-top: $spacer;
|
|
margin-bottom: $spacer;
|
|
|
|
&:first-child {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
h1, .h1,
|
|
h2, .h2 {
|
|
margin-top: ($spacer * 2);
|
|
margin-bottom: $spacer;
|
|
}
|
|
|
|
h3, .h3,
|
|
h4, .h4,
|
|
h5, .h5,
|
|
h6, .h6 {
|
|
margin-top: $spacer;
|
|
margin-bottom: $spacer / 2;
|
|
}
|
|
|
|
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
|
|
//
|
|
p,
|
|
ul,
|
|
ol {
|
|
margin: 0 0 $spacer;
|
|
}
|
|
|
|
|
|
//
|
|
// Links
|
|
//
|
|
a {
|
|
color: $link-color;
|
|
text-decoration: none;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: lighten($link-color, 10%);
|
|
outline: 0;
|
|
}
|
|
}
|
|
|
|
|
|
//
|
|
// Lists
|
|
//
|
|
ul,
|
|
ol {
|
|
margin-left: 0;
|
|
padding-left: $spacer;
|
|
}
|
|
|
|
|
|
.lead {
|
|
color: $brand-03;
|
|
font-size: $font-size-large;
|
|
}
|