166 lines
2.8 KiB
CSS
166 lines
2.8 KiB
CSS
---
|
|
layout:
|
|
|
|
display-font: '"Libre Barcode 39 Text"'
|
|
nav-font: '"Inconsolata Regular"'
|
|
|
|
heading-font: '"Inconsolata Regular"'
|
|
heading-font-small: '"IBM Plex Mono"'
|
|
|
|
body-font: '"IBM Plex Sans"'
|
|
body-margin: "2rem"
|
|
|
|
code-font: '"IBM Plex Mono"'
|
|
---
|
|
|
|
@import 'font-definitions.css';
|
|
|
|
html {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 14pt;
|
|
}
|
|
|
|
html, body, * { box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: {{ page.body-font }};
|
|
font-weight: 300;
|
|
margin: 0 {{ page.body-margin }};
|
|
padding: 0;
|
|
background: white;
|
|
}
|
|
|
|
pre {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: normal;
|
|
clear: both;
|
|
}
|
|
|
|
h1 a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
h1 { font-size: 1.56rem; }
|
|
h2 { font-size: 1.25rem; }
|
|
h3, h4, h5, h6 { font-size: 1rem; }
|
|
|
|
h3, h4, h5, h6 {
|
|
text-transform: uppercase;
|
|
font-family: {{ page.heading-font-small }};
|
|
font-style: italic;
|
|
font-weight: 500;
|
|
margin: 2rem 0 0 0;
|
|
}
|
|
h3 { text-decoration: underline; font-weight: 600; }
|
|
|
|
main h1, main h2 {
|
|
font-family: {{ page.heading-font }};
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.33em;
|
|
margin-top: 2rem;
|
|
border-left: solid magenta 1rem;
|
|
padding-left: 0.5rem;
|
|
margin-left: -1.5rem;
|
|
border-bottom: solid magenta 0.26em;
|
|
}
|
|
|
|
pre, code {
|
|
font-family: {{ page.code-font }};
|
|
}
|
|
|
|
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
|
|
font-family: inherit;
|
|
}
|
|
|
|
header {
|
|
margin: 0 -{{ page.body-margin }};
|
|
}
|
|
|
|
header h1 {
|
|
background: black;
|
|
color: white;
|
|
font-family: {{ page.display-font }};
|
|
font-size: 3.75rem;
|
|
color: yellow;
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 1;
|
|
border-bottom: solid magenta 0.125rem;
|
|
}
|
|
|
|
nav {
|
|
font-family: {{ page.nav-font }};
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.33em;
|
|
}
|
|
|
|
nav > ul {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
justify-content: flex-end;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: black;
|
|
color: white;
|
|
}
|
|
|
|
nav > ul > li {
|
|
display: block;
|
|
width: auto;
|
|
padding-left: 0.33em;
|
|
margin: 0 0 0 1rem;
|
|
border-bottom: solid cyan 0.25rem;
|
|
}
|
|
|
|
nav a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
main, footer {
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
clear: both;
|
|
}
|
|
|
|
footer {
|
|
clear: both;
|
|
margin-top: 2rem;
|
|
font-size: 0.9rem;
|
|
text-align: right;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
@media all and (min-width: 960px) {
|
|
html {
|
|
font-size: 16pt;
|
|
}
|
|
|
|
nav > ul {
|
|
flex-direction: row;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.rightfloat { float: right; margin-left: 1rem; margin-bottom: 1rem; }
|
|
.leftfloat { float: left; margin-right: 1rem; margin-bottom: 1rem; }
|
|
|
|
.frontpage_code_examples {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.frontpage_code_examples > div {
|
|
padding: 0 0.5rem;
|
|
}
|
|
}
|