blog.gabrielsimmer.com/themes/gs/static/css/styles.css

124 lines
2.8 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Based on Skeleton V2.0.4
*
*
* Skeleton
* Copyright 2014, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 12/29/2014
*/
/**
* Language highlight colours. Should be or match the language/technology's
* branding guidelines.
*/
:root {
--background-colour: #fff;
--text-colour: #222;
}
.pagination {
margin: 0 auto;
}
.pagination > ul {
list-style: none;
display: flex;
justify-content: space-between;
}
img {
max-width: 100%;
}
iframe {
max-width: 100%;
}
article, .article-list {
max-width: 72ch;
margin: 0 auto;
padding: 1ch;
}
h1 > a, h1 > a:visited {
text-decoration: none;
color: var(--text-colour);
}
h1:hover > a {
color: #0FA0CE;
}
/* Links
*/
a {
color: #1EAEDB;
}
a:hover {
color: #0FA0CE;
}
/* Base Styles
*/
/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
* {
box-sizing: border-box;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-kerning: auto;
}
html {
font-size: 62.5%;
-webkit-text-size-adjust: 100%;
}
body {
font-size: 1.8em; /* currently ems cause chrome bug misinterpreting rems on body element */
line-height: 1.6;
font-weight: 400;
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,segoe ui,helvetica neue,helvetica,Cantarell,Ubuntu,roboto,noto,arial,sans-serif;
color: var(--text-colour);
background-color: var(--background-colour);
margin: 20px 0;
}
@media (prefers-color-scheme: dark) {
:root {
--background-colour: #202225;
--text-colour: #dcddde;
}
}
/* Typography
*/
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
font-weight: 300;
margin-bottom: 0; }
h1 { font-size: 4.0rem; line-height: 1.2; font-weight: 500; }
h2 { font-size: 3.6rem; line-height: 1.25; }
h3 { font-size: 3.0rem; line-height: 1.3; font-weight: 500; }
h4 { font-size: 2.4rem; line-height: 1.35; }
h5 { font-size: 1.8rem; line-height: 1.5; }
h6 { font-size: 1.5rem; line-height: 1.6; }
.project h4, .experiment h4 {
margin-bottom: 0.05rem;
}
/* Larger than phablet */
@media (min-width: 550px) {
h1 { font-size: 5.0rem; }
h2 { font-size: 4.2rem; }
h3 { font-size: 3.6rem; }
h4 { font-size: 3.0rem; }
h5 { font-size: 2.4rem; }
h6 { font-size: 1.5rem; }
}