1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-20 01:55:56 -05:00

Clean up typography updates

This commit is contained in:
Patrick Marsceill 2020-05-05 12:48:45 -04:00
parent d9b2822448
commit 6345c61aae
No known key found for this signature in database
GPG Key ID: 286B93882D828F40
5 changed files with 37 additions and 21 deletions

View File

@ -31,17 +31,13 @@ dl,
pre, pre,
address, address,
blockquote, blockquote,
.table-wrapper {
margin-top: 0.5em;
}
table, table,
p,
div, div,
hr, hr,
form, form,
fieldset, fieldset,
noscript { noscript
.table-wrapper {
margin-top: 0; margin-top: 0;
} }
@ -51,14 +47,16 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
margin-top: 1.5em; margin-top: 0;
margin-bottom: 0.25em; margin-bottom: 1em;
font-weight: 500; font-weight: 500;
line-height: $body-heading-line-height; line-height: $body-heading-line-height;
color: $body-heading-color; color: $body-heading-color;
} }
p { p {
margin-top: 1em;
margin-bottom: 1em; margin-bottom: 1em;
} }

View File

@ -15,6 +15,7 @@ pre.highlight,
figure.highlight { figure.highlight {
padding: $sp-3; padding: $sp-3;
margin-bottom: 0; margin-bottom: 0;
margin-top: 0;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
background-color: $code-background-color; background-color: $code-background-color;

View File

@ -8,6 +8,16 @@
.page-content { .page-content {
line-height: $content-line-height; line-height: $content-line-height;
ol,
ul,
dl,
pre,
address,
blockquote,
.table-wrapper {
margin-top: 0.5em;
}
a { a {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -19,6 +29,12 @@
padding-left: 1.5em; padding-left: 1.5em;
} }
li {
.highlight {
margin-top: $sp-1;
}
}
ol { ol {
list-style-type: none; list-style-type: none;
counter-reset: step-counter; counter-reset: step-counter;
@ -156,15 +172,22 @@
h5, h5,
h6 { h6 {
position: relative; position: relative;
margin-top: 1.5em;
margin-bottom: 0.25em;
&:first-child { &:first-child {
margin-top: $sp-2;
}
+ table,
+ .table-wrapper,
+ .code-example,
+ .highlighter-rouge {
margin-top: 1em;
}
+ p {
margin-top: 0; margin-top: 0;
} }
} }
+ table,
.table-wrapper,
.code-example,
.highlighter-rouge {
margin-top: 1em;
}
} }

View File

@ -39,12 +39,6 @@ h6,
color: $grey-dk-200; color: $grey-dk-200;
} }
li {
.highlight {
margin-top: $sp-2;
}
}
.text-small { .text-small {
@include fs-2; @include fs-2;
} }

View File

@ -79,7 +79,7 @@ This paragraph will have 2rem/32px of padding on the right and left at all scree
| `.flex-justify-between` | `justify-content: space-between` | | `.flex-justify-between` | `justify-content: space-between` |
| `.flex-justify-around` | `justify-content: space-around` | | `.flex-justify-around` | `justify-content: space-around` |
Note any of the `flex-` classes must be used on a parent element that has `d-flex` applied to it. _Note: any of the `flex-` classes must be used on a parent element that has `d-flex` applied to it._
## Vertical Alignment ## Vertical Alignment