wezm.net/v2/sass/screen.scss

493 lines
7.3 KiB
SCSS
Raw Permalink Normal View History

2020-01-27 06:53:47 +00:00
$heading-margin: 0.25em 0 0.5em 0;
$heading-family: "Manrope VF", sans-serif;
$link-color: hsl(204, 50.8%, 26.1%);
@font-face {
font-family: "Manrope VF";
src: url("ManropeGX.ttf") format("truetype-variations");
font-style: normal;
font-weight: 200 800;
}
html {
background-color: #fcfcfc;
min-height: 100%;
}
body {
margin:40px auto;
max-width: 800px;
line-height:1.6;
font-family: "Manrope VF", sans-serif;
font-size:18px;
color:#444;
padding:0 10px;
display: flex;
flex-direction: column;
min-height: 100%;
}
body.home {
max-width: 1000px;
}
pre, code {
font-family: "Pragmata Pro", "Pragmata Pro Mono", "JetBrains Mono", "Iosevka", "Consolas", monospace;
}
:not(pre) > code {
2020-01-27 06:53:47 +00:00
background-color: #ffedf0;
padding: 0.1em 0.2em;
2020-03-21 03:51:11 +00:00
font-size: 16px;
2020-01-27 06:53:47 +00:00
border-radius: 3px;
overflow-wrap: anywhere;
2020-01-27 06:53:47 +00:00
}
pre {
padding: 0.5em 1em;
2024-02-19 06:35:15 +00:00
overflow: auto;
2020-03-21 03:51:11 +00:00
font-size: 14px;
2020-05-22 11:57:10 +00:00
color: #fcfcfc;
2024-02-20 10:46:58 +00:00
position: relative;
}
2024-09-28 11:52:52 +00:00
pre[data-lang]:after {
position: absolute;
top: 0px;
right: 0px;
color: black;
background-color: #fffa;
padding: 0 0.5em 1px 0.5em;
border-bottom-left-radius: 8px;
content: attr(data-lang);
text-transform: capitalize;
2020-01-27 06:53:47 +00:00
}
h1,h2,h3,h4 {
font-family: $heading-family;
margin: $heading-margin;
line-height: 1.2;
}
h1,h2 {
font-weight: 300;
}
h3 {
font-weight: 400;
}
main img {
max-width: 100%;
}
main.home {
h1 {
text-align: center;
font-size: 5em;
font-weight: 200;
line-height: 1.2;
}
h2 {
font-size: 2em;
font-weight: 800;
2020-01-27 21:48:36 +00:00
position: relative;
left: -2px;
2020-01-27 06:53:47 +00:00
}
h3 {
font-weight: 300;
}
article {
h3 {
font-size: 1.5em;
}
.post-metadata {
font-size: smaller;
color: #666;
}
.date-icon {
width: 20px;
}
}
section h2 {
margin-bottom: 1em;
}
}
a {
text-decoration: underline;
}
a:link, a:visited {
color: $link-color;
}
.hover-underline:hover {
border-bottom: 1px solid currentColor;
}
nav a:link, nav a:visited {
color: #666;
}
.intro {
max-width: 800px;
margin: 0 auto 3em;
}
.post-metadata {
display: flex;
flex-wrap: wrap;
font-weight: 500;
color: #555;
em {
color: #7a7a7a;
font-style: oblique 10deg;
.updated {
margin-right: 0.5em;
}
}
}
article {
h2,h3 {
a:link, a:visited {
color: currentColor;
text-decoration: none;
border-bottom: 2px solid currentColor;
}
}
h2 {
font-size: 2.5em;
}
h3 {
font-size: 2em;
font-weight: 300;
line-height: 1.5;
}
h4 {
font-size: 1.25em;
font-weight: 400;
}
blockquote {
border-left: 3px solid skyblue;
font-style: oblique 10deg;
background-color: hsl(197.4, 23.4%, 97.5%);
padding: 1px 1em;
margin: 1em 0;
clear: both;
}
aside {
padding: 1em 1em 0;
box-sizing: border-box;
border: 1px solid #eaeae1;
background-color: rgba(255, 255, 246, 0.3);
border-radius: 5px;
font-size: smaller;
width: 240px;
.emoji {
margin-bottom: 0.5em;
}
}
aside.float-right {
margin: 0 0 1em 1em;
}
}
2020-05-22 11:57:10 +00:00
.respond {
margin: 4em 0 0.5em 0;
svg {
vertical-align: middle;
}
}
2020-01-27 06:53:47 +00:00
img, canvas, iframe, video, svg {
max-width: 100%;
margin: 0 auto;
}
figure {
margin: 0 auto 1.5em;
}
2022-04-19 20:48:54 +00:00
.figure-border img {
border: 1px solid #AAA;
}
2023-03-20 00:21:13 +00:00
.figure-pixelated img {
image-rendering: pixelated;
}
2020-01-27 06:53:47 +00:00
figcaption {
font-size: 16px;
font-weight: 500;
text-align: center;
}
footer {
color: #888;
font-size: 14px;
border-top: 1px solid #AAA;
margin: 1em 0px 2em;
clear: both;
}
footer .copyright {
margin-top: 1em;
}
.no-border {
border: none;
text-decoration: none;
}
.text-center {
text-align: center;
}
.text-smaller {
font-size: 0.5em;
}
.flex {
display: flex;
}
.logo {
font-size: 1.75em;
a {
color: #555;
}
}
.breadcrumb-sep {
color: #999;
}
.tagline {
line-height: 2;
font-weight: 300;
2021-01-03 21:37:22 +00:00
font-size: 1.85em;
2020-01-27 06:53:47 +00:00
margin: $heading-margin;
font-family: $heading-family;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.action-button {
background-color: $link-color;
border-radius: 0.25em;
border: 2px solid $link-color;
color: white;
display: inline-block;
font-size: 12px;
font-weight: 750;
margin: 0.75em 0;
padding: 0.5em 1em;
text-decoration: none;
text-transform: uppercase;
}
.action-button-ghost {
background-color: initial;
color: $link-color;
}
.action-button-ghost:hover {
background-color: $link-color;
color: white;
}
.posts-section {
width: 100%;
2020-05-22 11:57:10 +00:00
article {
margin-bottom: 3em;
}
2020-01-27 06:53:47 +00:00
}
.projects-section {
width: 300px;
flex-shrink: 0;
margin-left: 2em;
}
ul.projects {
padding: 0;
margin: 0;
list-style: none;
li {
margin: 1em 0;
}
img, svg {
width: 32px;
vertical-align: middle;
2024-07-28 23:44:58 +00:00
margin-right: 0.25em;
2020-01-27 06:53:47 +00:00
}
2021-01-03 21:37:22 +00:00
.emoji-img {
2021-11-11 22:26:40 +00:00
display: inline-block;
width: 32px;
font-size: 24px;
margin-right: 0.25rem;
text-align: center;
2021-01-03 21:37:22 +00:00
}
2020-01-27 06:53:47 +00:00
p {
margin-left: calc(32px + 0.5em);
font-size: smaller;
margin-top: 0;
}
}
#zola-continue-reading {
margin: 0;
}
.post-body h3 {
margin-top: 1.5em;
}
.footnote-definition {
font-size: smaller;
}
.footnote-definition-label {
float: left;
margin-right: 0.5em;
}
.date-icon {
width: 24px;
vertical-align: top;
margin-right: 9px;
}
.ornament {
display: inline-block;
margin: 0 auto;
width: 33px;
text-align: center;
}
.screenshot img {
border: 1px solid #666;
}
2020-11-02 01:46:39 +00:00
.media-source {
font-size: 12px;
display: block;
}
2024-07-28 23:44:58 +00:00
.image-left {
float: left;
margin: 0.5em 1em 1em 0;
}
2020-01-27 06:53:47 +00:00
.image-right {
float: right;
margin: 0.5em 0 1em 1em;
}
.float-right {
float: right;
}
.small-caps {
text-transform: uppercase;
font-size: 14px;
letter-spacing: 1px;
font-weight: 600;
}
.three-columns {
columns: 3;
ul {
margin-top: 0;
margin-bottom: 0;
}
}
2020-11-02 01:46:39 +00:00
.tweet-list li {
padding-left: 1em;
margin-bottom: 3em;
}
2023-01-20 10:48:37 +00:00
.no-overlay {
position: relative;
}
.no-overlay::after {
content: '🚫';
position: absolute;
top: 30px;
left: 0;
right: 0;
bottom: 0;
font-size: 96pt;
z-index: 1;
}
2020-01-27 06:53:47 +00:00
.socials {
2020-05-22 11:57:10 +00:00
margin-top: 2em;
2020-01-27 06:53:47 +00:00
a {
text-transform: uppercase;
font-weight: 600;
font-size: 12px;
letter-spacing: 1px;
color: #888;
padding: 0 0.5em;
text-decoration: none;
}
}
2023-03-31 10:59:03 +00:00
.mastodon-embed {
display: block;
}
2020-01-27 06:53:47 +00:00
@media screen and (max-width: 800px) {
.tagline {
display: initial;
}
.emoji-pair {
text-align: center;
}
.home .flex {
flex-direction: column
}
.projects-section {
margin: 0;
width: auto;
}
}
@media screen and (max-width: 600px) {
article {
h2 {
a:link, a:visited {
border-bottom: none;
}
}
}
}
@media screen and (max-width: 375px) {
main.home {
h1 {
font-size: 4em;
}
}
article {
aside {
width: auto;
&.float-right, &.float-left {
float: none;
margin-left: 0;
margin-right: 0;
}
}
}
footer {
font-size: 16px;
}
.tagline {
font-size: 1.75em;
}
.date-published {
margin-top: 0.75em;
}
.ornament {
visibility: hidden;
}
.date-updated {
margin-top: 0.5em;
position: relative;
left: -33px;
}
.socials {
text-align: center;
a {
font-size: 14px;
line-height: 3;
padding: 0 1em;
}
}
}
2022-04-19 20:48:54 +00:00
@media print {
html {
background-color: white;
}
body {
color: black;
// margin: 0;
// max-width: auto;
}
}