nicolabs.net/_sass/base/_typography.scss
2020-04-01 08:04:44 +02:00

123 lines
1.8 KiB
SCSS

body {
color: $base-font-color;
font-family: $base-font-family;
font-feature-settings: "kern", "liga", "pnum";
font-size: $base-font-size;
line-height: $base-line-height;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $heading-font-family;
font-size: $base-font-size;
line-height: $heading-line-height;
margin: 0 0 $small-spacing;
font-weight: 300;
color: #000;
}
h1 {
font-size: rem(45);
margin: 0 0 $small-spacing;
font-weight: bold;
}
h2 {
font-size: rem(26);
margin: $base-spacing 0 $base-spacing;
font-weight: bold;
}
h3 {
font-size: rem(24);
margin: $base-spacing 0 $small-spacing;
font-weight: 400;
}
h4 {
font-size: rem(20);
margin: 1em 0 1em;
}
h5,
h6 {
font-size: rem(16);
margin: 1em 0 .5em;
}
p {
margin: 0 0 $small-spacing;
&.lead {
font-size: rem(22);
font-weight: 300;
}
}
a {
color: $action-color;
text-decoration: none;
transition: color $base-duration $base-timing;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr {
border-bottom: $base-border;
border-left: 0;
border-right: 0;
border-top: 0;
margin: $base-spacing 0;
}
img,
picture {
max-width: 100%;
/** to center images in markdown */
display:block;
margin: $base-spacing auto;
&.inline {
display: inline;
margin: auto;
}
}
blockquote {
padding: 0 0 0 $base-spacing;
margin: $base-spacing 0;
color: $medium-gray-color;
line-height: 1.8;
border-left: $small-spacing solid $light-gray-color;
}
code {
background: none;
border-radius: 0;
border: none;
font-family: "Courier New", monospace;
font-size: 0.9em;
margin: 0;
padding: 0 5px;
background-color: lighten($light-gray-color, 13%);
}
pre {
-webkit-overflow-scrolling: touch;
font-family: "Courier New", monospace;
font-size: 0.9em;
margin: 0;
code {
line-height: 1.75em;
}
}