Commit 286d4919 authored by Dan Allen's avatar Dan Allen

use CSS var for doc margin

parent 064fb848
......@@ -2,7 +2,7 @@
color: var(--doc-font-color);
font-size: var(--doc-font-size);
line-height: var(--doc-line-height);
margin: 0 auto;
margin: var(--doc-margin);
max-width: var(--doc-max-width);
padding: 0 1rem 4rem;
}
......@@ -10,7 +10,7 @@
@media screen and (min-width: 1024px) {
.doc {
font-size: var(--doc-font-size--desktop);
margin: 0 2rem;
margin: var(--doc-margin--desktop);
max-width: var(--doc-max-width--desktop);
}
}
......
......@@ -73,6 +73,8 @@
--doc-font-size: inherit;
--doc-font-size--desktop: calc(17 / var(--rem-base) * 1rem);
--doc-line-height: 1.6;
--doc-margin: 0 auto;
--doc-margin--desktop: 0 2rem;
--heading-font-color: var(--color-jet-80);
--heading-font-weight: normal;
--alt-heading-font-weight: var(--body-font-weight-bold);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment