mirror of https://github.com/kremalicious/blog.git
365 lines
5.4 KiB
CSS
365 lines
5.4 KiB
CSS
@import '_variables.css';
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
font-size: var(--font-size-root);
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family-base);
|
|
font-weight: var(--font-weight-base);
|
|
font-size: var(--font-size-base);
|
|
line-height: var(--line-height);
|
|
color: var(--text-color);
|
|
text-rendering: optimizeLegibility;
|
|
font-feature-settings: 'liga', 'kern';
|
|
min-height: 100vh;
|
|
background: var(--body-background-color);
|
|
transition: 0.4s var(--easing);
|
|
position: relative;
|
|
|
|
/* handling long text, like URLs */
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
}
|
|
|
|
p,
|
|
ul,
|
|
ol {
|
|
margin: 0 0 calc(var(--spacer) / var(--line-height));
|
|
}
|
|
|
|
/* Reset fonts for relevant elements
|
|
///////////////////////////////////// */
|
|
|
|
input,
|
|
button,
|
|
select,
|
|
textarea {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
}
|
|
|
|
/* Reset default button element */
|
|
button {
|
|
padding: 0;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: 0;
|
|
-webkit-appearance: none;
|
|
outline: 0;
|
|
}
|
|
|
|
button:active {
|
|
transition: none;
|
|
text-shadow: none;
|
|
}
|
|
|
|
/* Links
|
|
///////////////////////////////////// */
|
|
|
|
a {
|
|
color: var(--brand-cyan);
|
|
text-decoration: none;
|
|
transition: 0.2s ease-out;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Headings
|
|
///////////////////////////////////// */
|
|
|
|
h1 {
|
|
font-size: var(--font-size-h1);
|
|
}
|
|
|
|
h2 {
|
|
font-size: var(--font-size-h2);
|
|
}
|
|
|
|
h3 {
|
|
font-size: var(--font-size-h3);
|
|
}
|
|
|
|
h4 {
|
|
font-size: var(--font-size-h4);
|
|
}
|
|
|
|
h5 {
|
|
font-size: var(--font-size-h5);
|
|
}
|
|
|
|
h6 {
|
|
font-size: var(--font-size-h6);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-family: var(--font-family-headings);
|
|
line-height: var(--line-height-headings);
|
|
color: var(--color-headings);
|
|
font-weight: var(--font-weight-headings);
|
|
margin: var(--spacer) 0;
|
|
letter-spacing: -0.01em;
|
|
transition: color 0.2s ease-out;
|
|
}
|
|
|
|
.wf-loading h1,
|
|
.wf-loading h2,
|
|
.wf-loading h3,
|
|
.wf-loading h4,
|
|
.wf-loading h5,
|
|
.wf-loading h6 {
|
|
font-weight: 600;
|
|
}
|
|
|
|
h1 .anchor.before,
|
|
h2 .anchor.before,
|
|
h3 .anchor.before,
|
|
h4 .anchor.before,
|
|
h5 .anchor.before,
|
|
h6 .anchor.before {
|
|
opacity: 0;
|
|
font-size: var(--font-size-h4);
|
|
bottom: 0;
|
|
top: 0.3em;
|
|
}
|
|
|
|
h1:hover .anchor,
|
|
h2:hover .anchor,
|
|
h3:hover .anchor,
|
|
h4:hover .anchor,
|
|
h5:hover .anchor,
|
|
h6:hover .anchor {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Responsive Media
|
|
///////////////////////////////////// */
|
|
|
|
figure,
|
|
img,
|
|
svg,
|
|
video,
|
|
audio,
|
|
embed,
|
|
canvas,
|
|
picture {
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin: 0 auto;
|
|
display: block;
|
|
}
|
|
|
|
img {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
figcaption {
|
|
font-size: var(--font-size-small);
|
|
color: var(--text-color-light);
|
|
font-style: italic;
|
|
text-align: center;
|
|
margin-top: calc(var(--spacer) / 4);
|
|
}
|
|
|
|
/* Lists
|
|
///////////////////////////////////// */
|
|
|
|
ul,
|
|
ol {
|
|
margin-top: 0;
|
|
margin-bottom: var(--spacer);
|
|
padding-left: var(--spacer);
|
|
list-style: none;
|
|
}
|
|
|
|
li {
|
|
position: relative;
|
|
margin-bottom: calc(var(--spacer) / 2);
|
|
}
|
|
|
|
ul ul li {
|
|
margin-bottom: calc(var(--spacer) / 8);
|
|
}
|
|
|
|
li::before {
|
|
position: absolute;
|
|
left: -2rem;
|
|
top: -1px;
|
|
color: var(--text-color-light);
|
|
user-select: none;
|
|
}
|
|
|
|
li p {
|
|
margin-bottom: calc(var(--spacer) / 4);
|
|
}
|
|
|
|
ul li::before {
|
|
/* horizontal bar: ― ― */
|
|
content: ' \2015';
|
|
}
|
|
|
|
ol {
|
|
counter-reset: ol-counter;
|
|
}
|
|
|
|
ol li::before {
|
|
content: counter(ol-counter) '.';
|
|
counter-increment: ol-counter;
|
|
}
|
|
|
|
ol ul li::before {
|
|
display: none;
|
|
}
|
|
|
|
/* Inline typography
|
|
///////////////////////////////////// */
|
|
|
|
b,
|
|
strong,
|
|
.bold {
|
|
font-weight: var(--font-weight-bold);
|
|
font-style: normal;
|
|
}
|
|
|
|
em,
|
|
.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
abbr[title],
|
|
dfn {
|
|
text-transform: none;
|
|
font-style: normal;
|
|
font-size: inherit;
|
|
border-bottom: 1px dashed var(--brand-grey-dimmed);
|
|
cursor: help;
|
|
font-feature-settings: inherit;
|
|
}
|
|
|
|
mark {
|
|
background: #fffaab;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
hr {
|
|
margin: 0;
|
|
border: 0;
|
|
}
|
|
|
|
/* Quotes
|
|
///////////////////////////////////// */
|
|
|
|
q {
|
|
font-style: italic;
|
|
}
|
|
|
|
cite {
|
|
font-style: normal;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
blockquote,
|
|
blockquote > p {
|
|
font-style: italic;
|
|
color: var(--text-color-light);
|
|
}
|
|
|
|
blockquote {
|
|
margin: 0 0 var(--spacer);
|
|
position: relative;
|
|
padding-left: calc(var(--spacer) * 1.25);
|
|
}
|
|
|
|
/* quotation marks */
|
|
blockquote::before {
|
|
content: '“';
|
|
font-size: 300%;
|
|
color: var(--text-color-dimmed);
|
|
position: absolute;
|
|
left: -10px;
|
|
top: -20px;
|
|
}
|
|
|
|
table {
|
|
border-spacing: 0;
|
|
border-collapse: collapse;
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
margin-bottom: var(--spacer);
|
|
}
|
|
|
|
th {
|
|
text-align: left;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: calc(var(--spacer) / 2);
|
|
word-wrap: normal;
|
|
word-break: normal;
|
|
overflow-wrap: normal;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Selection
|
|
///////////////////////////////////// */
|
|
|
|
::-moz-selection {
|
|
background: #2e4f5c;
|
|
color: #fff;
|
|
}
|
|
|
|
::selection {
|
|
background: #2e4f5c;
|
|
color: #fff;
|
|
}
|
|
|
|
/* More basic elements
|
|
///////////////////////////////////// */
|
|
|
|
.medium-zoom-overlay {
|
|
background-color: var(--body-background-color) !important;
|
|
}
|
|
|
|
#___gatsby {
|
|
/* // display: flex;
|
|
// min-height: 100vh;
|
|
// flex-direction: column; */
|
|
position: relative;
|
|
}
|
|
|
|
.gatsby-resp-image-figure {
|
|
margin-bottom: var(--spacer);
|
|
}
|
|
|
|
.gatsby-image-wrapper,
|
|
.gatsby-image-wrapper-constrained {
|
|
max-height: 100vh;
|
|
display: block !important;
|
|
}
|