syndicate-2017/style.css

188 lines
4.2 KiB
CSS

---
layout:
body-margin: "2rem"
---
@font-face {
font-family: "Bebas Neue";
src: url("/fonts/BebasNeue-Regular.ttf");
}
@font-face {
font-family: "Libre Barcode 39 Text";
src: url("/fonts/LibreBarcode39Text-Regular.ttf");
}
@font-face {
font-family: "Major Mono Display Text";
src: url("/fonts/MajorMonoDisplay-Regular.ttf");
}
@font-face {
font-family: "Inconsolata Regular";
src: url("/fonts/Inconsolata-Regular.ttf");
}
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; src: url("/fonts/IBMPlexSans-Light.ttf"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: italic; src: url("/fonts/IBMPlexSans-LightItalic.ttf"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 300; font-style: normal; src: url("/fonts/IBMPlexMono-Light.ttf"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; src: url("/fonts/IBMPlexMono-Medium.ttf"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; src: url("/fonts/IBMPlexMono-SemiBold.ttf"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 300; font-style: italic; src: url("/fonts/IBMPlexMono-LightItalic.ttf"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: italic; src: url("/fonts/IBMPlexMono-MediumItalic.ttf"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: italic; src: url("/fonts/IBMPlexMono-SemiBoldItalic.ttf"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 300; font-style: normal; src: url("/fonts/IBMPlexSerif-Light.ttf"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 300; font-style: italic; src: url("/fonts/IBMPlexSerif-LightItalic.ttf"); }
html {
margin: 0;
padding: 0;
font-size: 15pt;
}
html, body, * { box-sizing: border-box; }
body {
font-family: "IBM Plex Sans";
font-weight: 300;
margin: 0 {{ page.body-margin }};
padding: 0;
}
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 {
text-transform: uppercase;
font-family: "IBM Plex Mono";
font-size: 1rem;
font-style: italic;
font-weight: 500;
margin: 2rem 0 0 0;
}
h3 { text-decoration: underline; font-weight: 600; }
main h1, main h2 {
font-family: "Inconsolata Regular";
text-transform: uppercase;
letter-spacing: 0.5rem;
}
main h1 {
border-bottom: solid magenta 0.4rem;
}
main h2 {
border-bottom: solid magenta 0.32rem;
}
pre, code {
font-family: "IBM Plex Mono";
}
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: "Libre Barcode 39 Text";
font-size: 3.75rem;
color: yellow;
margin: 0;
padding: 0;
line-height: 1;
border-bottom: solid magenta 0.125rem;
}
nav {
font-family: "Inconsolata Regular";
text-transform: uppercase;
letter-spacing: 0.5rem;
}
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.5rem;
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;
border-top: solid #ddd 0.0675rem;
margin-top: 1rem;
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;
}
}