diff options
Diffstat (limited to 'assets/css/main.css')
| -rw-r--r-- | assets/css/main.css | 177 |
1 files changed, 177 insertions, 0 deletions
diff --git a/assets/css/main.css b/assets/css/main.css new file mode 100644 index 0000000..fc159a3 --- /dev/null +++ b/assets/css/main.css @@ -0,0 +1,177 @@ +:root { + --link-color: #841212; + --main-font: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; + --main-font-size: 1.1em; + --heading-font: sans-serif; + --heading-color: #404040; + --text-color: #454545; +} + +*, +*:before, +*:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +html, body { + margin: 0; + padding: 0; + overflow-x: hidden; +} + +html { + font-family: var(--main-font); + font-size: 1em; + line-height: 1.5; +} + +@media (min-width: 38em) { + html { + font-size: var(--main-font-size); + } +} + +body { + color: var(--text-color); + background-color: #fff; + @include text-size-adjust(100%); +} + +.content { + margin-bottom: 4rem; +} + +.wrap { + position: relative; + width: 100%; +} + +.container { + max-width: 32rem; + padding-left: 1rem; + padding-right: 1rem; + margin-left: auto; + margin-right: auto; +} + +@media (min-width: 56em) { + .container { + max-width: 38rem; + } +} + +h1, h2, h3, h4, h5, h6 { + font-family: var(--heading-font); + margin-bottom: .5rem; + font-weight: normal; + color: var(--heading-color); + letter-spacing: -.025rem; + line-height: 1.25; + text-rendering: optimizeLegibility; +} + +h1, h1.text-title { + font-size: 1.4rem; +} + +h2 { + margin-top: 1rem; + font-size: 1.2rem; +} + +h3, h4, h5, h6 { + margin-top: 1rem; + font-size: 1rem; +} + +h3 { + margin-top: 1.5rem; +} + +p { + margin-top: 0; + margin-bottom: 1rem; +} + +a { + color: var(--link-color); + text-decoration: none; +} + +a.external::after { + background-color: var(--link-color); + content: ''; + display: inline-flex; + height: 10px; + margin-left: 4px; + width: 10px; + mask-size: cover; + mask-image: url(/assets/images/external-link.svg); +} + +ul { + list-style: circle; +} + +ul, ol { + margin-top: 0; + margin-bottom: 1rem; +} + +hr { + position: relative; + margin: 1.5rem 0; + border: 0; + border-top: 1px solid #eee; + border-bottom: 1px solid #fff; +} + +img { + display: block; + max-width: 100%; + margin: 0 0 1rem; + border-radius: 5px; +} + +.masthead { + border-bottom: 1px solid #eee; + margin-bottom: 3rem; + padding-top: 26px; + padding-bottom: 1rem; + text-align: center; +} + +.masthead-title { + color: #505050; + font-family: var(--main-font); + font-size: 1.8rem; + line-height: .777em; + margin: 2em 0 0; + text-align: center; +} + +.masthead-title small { + color: var(--text-color); + display: none; /* This is an accessibility no-no */ + font-family: var(--heading-font); + font-size: .78rem; + font-weight: normal; + letter-spacing: .05rem; +} + +@media (min-width: 320px) { + .masthead-title { + margin-top: 2px; + margin-right: 15%; + margin-left: 15%; + } +} + +@media (min-width: 48em) { + .masthead-title small { + display: inline; + } +} + |
