763 lines
13 KiB
CSS
763 lines
13 KiB
CSS
/* Variables
|
|
/* ---------------------------------------------------------- */
|
|
|
|
:root {
|
|
|
|
/* Colours */
|
|
--color-primary: #004AC2;
|
|
--color-base: #131313;
|
|
--color-grey: #555;
|
|
--color-border: #e2e8ec;
|
|
--color-bg: #f5f7f9;
|
|
--color-success: #80b912;
|
|
--color-error: #f05230;
|
|
|
|
/* Fonts */
|
|
--font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
--font-serif: Georgia, serif;
|
|
--font-mono: Menlo, Courier, monospace;
|
|
|
|
/* Sizes */
|
|
--height: 4rem;
|
|
--margin: 2rem;
|
|
--radius: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
/* Reset
|
|
/* ---------------------------------------------------------- */
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
font-size: 62.5%;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
padding: 0;
|
|
color: #273033;
|
|
font-family: var(--font-sans-serif);
|
|
font-size: 1.5rem;
|
|
line-height: 1.6em;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
background: #fff;
|
|
scroll-behavior: smooth;
|
|
overflow-x: hidden;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
p,
|
|
ul,
|
|
ol,
|
|
li,
|
|
dl,
|
|
dd,
|
|
hr,
|
|
pre,
|
|
form,
|
|
table,
|
|
video,
|
|
figure,
|
|
figcaption,
|
|
blockquote {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ul[class],
|
|
ol[class] {
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
fieldset {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 0.9em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
hr {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
height: 1px;
|
|
border: 0;
|
|
border-top: 1px solid currentcolor;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
::selection {
|
|
text-shadow: none;
|
|
background: #cbeafb;
|
|
}
|
|
|
|
mark {
|
|
background-color: #fdffb6;
|
|
}
|
|
|
|
small {
|
|
font-size: 80%;
|
|
}
|
|
|
|
sub,
|
|
sup {
|
|
position: relative;
|
|
font-size: 75%;
|
|
line-height: 0;
|
|
vertical-align: baseline;
|
|
}
|
|
sup {
|
|
top: -0.5em;
|
|
}
|
|
sub {
|
|
bottom: -0.25em;
|
|
}
|
|
|
|
ul:not([class]) li + li {
|
|
margin-top: 0.6em;
|
|
}
|
|
|
|
a:not([class]) {
|
|
color: var(--color-primary);
|
|
text-decoration-skip-ink: auto;
|
|
}
|
|
|
|
a[class] {
|
|
outline: none;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: 0.4s ease;
|
|
}
|
|
|
|
a[class]:hover {
|
|
transition: 0.2s ease;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
margin: 0;
|
|
line-height: 1.15em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3.6rem;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
@media (max-width: 500px) {
|
|
h1 {
|
|
font-size: 2.7rem;
|
|
}
|
|
}
|
|
|
|
h2 {
|
|
font-size: 3rem;
|
|
}
|
|
@media (max-width: 500px) {
|
|
h2 {
|
|
font-size: 2.2rem;
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
font-size: 2.8rem;
|
|
}
|
|
@media (max-width: 500px) {
|
|
h3 {
|
|
font-size: 1.8rem;
|
|
}
|
|
}
|
|
|
|
h4 {
|
|
font-size: 2.6rem;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 2.4rem;
|
|
}
|
|
|
|
h6 {
|
|
font-size: 2.2rem;
|
|
}
|
|
|
|
strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
a.gh-powered,
|
|
a.gh-powered:hover {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 6px 9px 6px 6px;
|
|
border: none;
|
|
font-size: 12px;
|
|
line-height: 12px;
|
|
letter-spacing: -0.3px;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
color: #383838;
|
|
background: #fff;
|
|
border-radius: 5px;
|
|
box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.06);
|
|
cursor: pointer;
|
|
}
|
|
|
|
a.gh-powered svg {
|
|
height: 16px;
|
|
width: 16px;
|
|
margin: 0 6px 0 0;
|
|
}
|
|
|
|
/* Remove all animations and transitions for people that prefer not to see them */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
|
|
/* Main
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-container {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.gh-head {
|
|
padding: 6vmin 0 30px;
|
|
width: 100%;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.gh-head a {
|
|
display: inline-block;
|
|
color: currentColor;
|
|
text-decoration: none;
|
|
}
|
|
|
|
ul.nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
margin: 1rem 0 0 0;
|
|
padding: 0 0 30px 0;
|
|
border-bottom: var(--color-border) 1px solid;
|
|
}
|
|
|
|
ul.nav a {
|
|
margin: 0 1vmin;
|
|
padding: 5px;
|
|
text-transform: uppercase;
|
|
font-size: 1.3rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
ul.nav a:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
|
|
/* Index
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-postfeed .post {
|
|
display: block;
|
|
padding: 1vmin 0;
|
|
}
|
|
|
|
.gh-postfeed .post span {
|
|
color: var(--color-primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
|
|
/* Author Archive
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-author-image {
|
|
height: 12vmin;
|
|
width: 12vmin;
|
|
margin: 0 auto 1.5em;
|
|
border-radius: 100%;
|
|
overflow: hidden;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.gh-author-meta {
|
|
margin: 2vmin 0 0 0;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.gh-author-links {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.gh-author-links a {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin: 0 0.75vmin;
|
|
}
|
|
|
|
.gh-author-links a + a:before {
|
|
display: block;
|
|
content: "";
|
|
margin: 0 1.25vmin 0 0;
|
|
height: 1em;
|
|
width: 1px;
|
|
background: rgba(0,0,0,0.3);
|
|
transform: rotate(20deg);
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.gh-author-meta {
|
|
font-size: 1.6rem;
|
|
}
|
|
}
|
|
|
|
|
|
/* Post
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0 0 8vmin 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.gh-feature-image {
|
|
width: 100%;
|
|
max-width: 800px;
|
|
margin: 30px auto 0;
|
|
}
|
|
|
|
.gh-post-meta {
|
|
display: block;
|
|
margin: 0.5rem 0 0;
|
|
font-size: 1.3rem;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
color: #555;
|
|
font-weight: 500;
|
|
}
|
|
|
|
|
|
/* Content
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-content {
|
|
display: grid;
|
|
grid-template-columns:
|
|
[full-start]
|
|
minmax(calc(calc(100% - 800px) / 2), 1fr)
|
|
[wide-start]
|
|
auto
|
|
[main-start]
|
|
600px
|
|
[main-end]
|
|
auto
|
|
[wide-end]
|
|
minmax(calc(calc(100% - 800px) / 2), 1fr)
|
|
[full-end]
|
|
;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.gh-content {
|
|
grid-template-columns:
|
|
[full-start]
|
|
4vmin
|
|
[wide-start]
|
|
0
|
|
[main-start]
|
|
auto
|
|
[main-end]
|
|
0
|
|
[wide-end]
|
|
4vmin
|
|
[full-end]
|
|
;
|
|
}
|
|
}
|
|
|
|
.gh-content > * {
|
|
grid-column: main-start / main-end;
|
|
}
|
|
|
|
.kg-width-wide {
|
|
grid-column: wide-start / wide-end;
|
|
}
|
|
|
|
.kg-width-full {
|
|
grid-column: full-start / full-end;
|
|
}
|
|
|
|
.kg-width-full img {
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
/* Content & Typography
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-content > * + * {
|
|
margin-top: 4vmin;
|
|
}
|
|
|
|
.gh-content > [id] + * {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.gh-content [id]:not(:first-child) {
|
|
margin: 1.5em 0 0;
|
|
}
|
|
|
|
.gh-content [id] + .kg-card,
|
|
.gh-content blockquote + .kg-card {
|
|
margin-top: 6vmin;
|
|
}
|
|
|
|
.gh-content > blockquote,
|
|
.gh-content > ol,
|
|
.gh-content > ul,
|
|
.gh-content > dl,
|
|
.gh-content > p {
|
|
font-weight: 300;
|
|
font-size: 1.7rem;
|
|
line-height: 1.55em;
|
|
-webkit-font-smoothing: auto;
|
|
-moz-osx-font-smoothing: auto;
|
|
}
|
|
|
|
.gh-content > ul,
|
|
.gh-content > ol,
|
|
.gh-content > dl {
|
|
padding-left: 1.9em;
|
|
}
|
|
|
|
.gh-content hr {
|
|
margin-top: 6vmin;
|
|
}
|
|
|
|
.gh-content hr + * {
|
|
margin-top: 6vmin !important;
|
|
}
|
|
|
|
.gh-content blockquote {
|
|
position: relative;
|
|
font-style: italic;
|
|
}
|
|
|
|
.gh-content blockquote::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: -1.5em;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 0.3rem;
|
|
background: var(--color-primary);
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
.gh-content blockquote,
|
|
.gh-content ol,
|
|
.gh-content ul,
|
|
.gh-content dl,
|
|
.gh-content p {
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.gh-content blockquote::before {
|
|
left: -4vmin;
|
|
}
|
|
}
|
|
|
|
|
|
/* Content cards
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-content :not(pre) code {
|
|
vertical-align: middle;
|
|
padding: 0.15em 0.4em 0.15em;
|
|
border: #e1eaef 1px solid;
|
|
font-weight: 400 !important;
|
|
font-size: 0.9em;
|
|
line-height: 1em;
|
|
color: #dc0050;
|
|
background: #f0f6f9;
|
|
border-radius: 0.25em;
|
|
}
|
|
|
|
.gh-content > pre {
|
|
overflow: scroll;
|
|
padding: 16px 20px;
|
|
background: rgba(255,255,255,0.8);
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
|
|
}
|
|
|
|
.kg-embed-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.kg-image-card img {
|
|
margin: auto;
|
|
}
|
|
|
|
|
|
/* Galleries
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.kg-gallery-card + .kg-gallery-card {
|
|
margin-top: 0.75em;
|
|
}
|
|
|
|
.kg-gallery-container {
|
|
position: relative;
|
|
}
|
|
|
|
.kg-gallery-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
}
|
|
|
|
.kg-gallery-image img {
|
|
display: block;
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.kg-gallery-row:not(:first-of-type) {
|
|
margin: 0.75em 0 0 0;
|
|
}
|
|
|
|
.kg-gallery-image:not(:first-of-type) {
|
|
margin: 0 0 0 0.75em;
|
|
}
|
|
|
|
|
|
/* Bookmark Cards
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.kg-bookmark-card,
|
|
.kg-bookmark-publisher {
|
|
position: relative;
|
|
}
|
|
|
|
.kg-bookmark-container,
|
|
.kg-bookmark-container:hover {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row-reverse;
|
|
color: currentColor;
|
|
background: rgba(255,255,255,0.6);
|
|
font-family: var(--font-sans-serif);
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.4);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.kg-bookmark-content {
|
|
flex-basis: 0;
|
|
flex-grow: 999;
|
|
padding: 20px;
|
|
order: 1;
|
|
}
|
|
|
|
.kg-bookmark-title {
|
|
font-weight: 600;
|
|
font-size: 1.5rem;
|
|
line-height: 1.3em;
|
|
}
|
|
|
|
.kg-bookmark-description {
|
|
display: -webkit-box;
|
|
max-height: 45px;
|
|
margin: 0.5em 0 0 0;
|
|
font-size: 1.4rem;
|
|
line-height: 1.55em;
|
|
overflow: hidden;
|
|
opacity: 0.8;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.kg-bookmark-metadata {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.kg-bookmark-metadata {
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 500;
|
|
font-size: 1.3rem;
|
|
line-height: 1.3em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.kg-bookmark-description {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.kg-bookmark-icon {
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.kg-bookmark-thumbnail {
|
|
display: flex;
|
|
flex-basis: 24rem;
|
|
flex-grow: 1;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.kg-bookmark-thumbnail img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
vertical-align: bottom;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.kg-bookmark-author {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.kg-bookmark-publisher::before {
|
|
content: "•";
|
|
margin: 0 .5em;
|
|
}
|
|
|
|
|
|
/* Card captions
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.kg-width-full.kg-card-hascaption {
|
|
display: grid;
|
|
grid-template-columns: inherit;
|
|
}
|
|
|
|
.kg-width-wide.kg-card-hascaption img {
|
|
grid-column: wide-start / wide-end;
|
|
}
|
|
.kg-width-full.kg-card-hascaption img {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.kg-width-full.kg-card-hascaption figcaption {
|
|
grid-column: main-start / main-end;
|
|
}
|
|
|
|
|
|
/* Tables
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-content table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
.gh-content th {
|
|
padding: 0.5em 0.8em;
|
|
text-align: left;
|
|
font-size: .75em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.gh-content td {
|
|
padding: 0.4em 0.7em;
|
|
}
|
|
|
|
.gh-content tbody tr:nth-child(2n + 1) {
|
|
background-color: rgba(0,0,0,0.1);
|
|
padding: 1px;
|
|
}
|
|
|
|
.gh-content tbody tr:nth-child(2n + 2) td:last-child {
|
|
box-shadow:
|
|
inset 1px 0 rgba(0,0,0,0.1),
|
|
inset -1px 0 rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.gh-content tbody tr:nth-child(2n + 2) td {
|
|
box-shadow: inset 1px 0 rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.gh-content tbody tr:last-child {
|
|
border-bottom: 1px solid rgba(0,0,0,.1);
|
|
}
|
|
|
|
|
|
/* Site Footer
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.page-footer {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
padding: 40px 4vmin;
|
|
margin: 40px auto 0;
|
|
border-top: var(--color-border) 1px solid;
|
|
text-align: center;
|
|
}
|