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

124 lines
2.8 KiB
CSS
Raw Permalink Normal View History

/*
* 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;
}
2021-08-19 20:42:55 +01:00
img {
max-width: 100%;
}
iframe {
max-width: 100%;
}
2023-07-21 09:52:33 +01:00
article, .article-list {
max-width: 72ch;
margin: 0 auto;
padding: 1ch;
2023-07-21 09:52:33 +01:00
}
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 {
2023-07-21 09:52:33 +01:00
font-size: 1.8em; /* currently ems cause chrome bug misinterpreting rems on body element */
line-height: 1.6;
font-weight: 400;
2023-07-21 09:52:33 +01:00
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;
2023-07-21 09:52:33 +01:00
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; }
}