feat: Style improvements, use Source Code Pro for monospace, update Inter to 4.0, pill-like nav on desktop, color changes
This commit is contained in:
@ -27,7 +27,7 @@ The main repo is https://git.exozy.me/daudix/duckquill, but since only exozy.me
|
|||||||
- [Cassidy James](https://cassidyjames.com) for the [Mastodon-powered Comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon)
|
- [Cassidy James](https://cassidyjames.com) for the [Mastodon-powered Comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon)
|
||||||
- [Mehdi Merah](https://mehdi.cc) for the [CSS Scanlines](https://codepen.io/meduzen/pen/zxbwRV)
|
- [Mehdi Merah](https://mehdi.cc) for the [CSS Scanlines](https://codepen.io/meduzen/pen/zxbwRV)
|
||||||
- [Bootstrap team](https://getbootstrap.com/docs/5.3/about/team/) for the [Bootstrap Icons](https://icons.getbootstrap.com)
|
- [Bootstrap team](https://getbootstrap.com/docs/5.3/about/team/) for the [Bootstrap Icons](https://icons.getbootstrap.com)
|
||||||
|
- [Adobe Fonts](https://github.com/adobe-fonts) for the [Source Code Pro](https://github.com/adobe-fonts/source-code-pro) font
|
||||||
- [Rasmus](https://rsms.me) for the [Inter](https://rsms.me/inter/) font
|
- [Rasmus](https://rsms.me) for the [Inter](https://rsms.me/inter/) font
|
||||||
- [JetBrains](https://www.jetbrains.com) for the [JetBrains Mono](https://www.jetbrains.com/lp/mono/) font
|
|
||||||
- dwb, ejm and jgs for the ASCII art
|
- dwb, ejm and jgs for the ASCII art
|
||||||
- Everyone who supported me and said good stuff <3
|
- Everyone who supported me and said good stuff <3
|
||||||
|
@ -17,11 +17,11 @@ jgs~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~
|
|||||||
|
|
||||||
Edit a bit of metadata and tweak some of the included graphics and have a blog up in minutes!
|
Edit a bit of metadata and tweak some of the included graphics and have a blog up in minutes!
|
||||||
|
|
||||||
- Pretty, yet lightweight. No JavaScript are used.
|
- Pretty, yet lightweight. No JavaScript is used.
|
||||||
- For a very pleasant look, the colors are tinted with the primary color.
|
- For a very pleasant look, the colors are tinted with the primary color.
|
||||||
- Proper favicon for modern browsers and Apple device icons.
|
- Proper favicon for modern browsers and Apple device icons.
|
||||||
- Mastodon, Lemmy and other social media meta cards for easy sharing. Try [Share Preview](https://apps.gnome.org/SharePreview/) to test.
|
- Mastodon, Lemmy and other social media meta cards for easy sharing. Try [Share Preview](https://apps.gnome.org/SharePreview/) to test.
|
||||||
- Local copy of the amazing [Inter](https://rsms.me/inter/) and [JetBrains Mono](https://www.jetbrains.com/lp/mono/) fonts, plus [Bootstrap Icons](https://icons.getbootstrap.com). No slowdowns pulling from external hosting.
|
- Local copy of the amazing [Inter](https://rsms.me/inter/) and [Source Code Pro](https://adobe-fonts.github.io/source-code-pro/) fonts, plus [Bootstrap Icons](https://icons.getbootstrap.com). No slowdowns pulling from external hosting.
|
||||||
- Mobile friendly, with proper dark variant.
|
- Mobile friendly, with proper dark variant.
|
||||||
- [Mastodon-powered comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon). Comment using any ActivityPub service by replying to Mastodon post.
|
- [Mastodon-powered comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon). Comment using any ActivityPub service by replying to Mastodon post.
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ First, change the primary color in `config.toml`:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[extra]
|
[extra]
|
||||||
primary_color = "#HEX_COLOR_CODE"
|
primary_color = "COLOR_CODE"
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, add `custom.css` to additional stylesheets.
|
Then, add `custom.css` to additional stylesheets.
|
||||||
@ -102,17 +102,20 @@ Then, paste the following code inside `sass/custom.scss` (inside your site, not
|
|||||||
```scss
|
```scss
|
||||||
@use "sass:color";
|
@use "sass:color";
|
||||||
|
|
||||||
$primary-color: #HEX_COLOR_CODE;
|
$primary-color: COLOR_CODE;
|
||||||
$primary-color-alpha: color.scale($primary-color, $alpha: -80%);
|
$primary-color-alpha: color.scale($primary-color, $alpha: -80%);
|
||||||
|
|
||||||
$bg-color-l: color.mix($primary-color, rgb(250, 250, 250), 10%);
|
$bg-color-l: color.scale($primary-color, $lightness: 80%);
|
||||||
$bg-color-d: color.mix($primary-color, rgb(11, 11, 11), 5%);
|
$bg-color-d: color.scale($primary-color, $lightness: -90%, $saturation: -50%);
|
||||||
|
|
||||||
$crt-bg: radial-gradient(
|
$crt-bg: radial-gradient(
|
||||||
color.scale($primary-color, $lightness: -80%),
|
color.scale($primary-color, $lightness: -80%),
|
||||||
color.scale($primary-color, $lightness: -90%)
|
color.scale($primary-color, $lightness: -90%)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$nav-bg-l: color.scale($bg-color-l, $alpha: -20%, $lightness: 50%);
|
||||||
|
$nav-bg-d: color.scale($bg-color-d, $alpha: -20%, $lightness: 5%, $saturation: -50%);
|
||||||
|
|
||||||
$glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
$glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
||||||
0 2px 6px 2px color.scale($primary-color, $alpha: -95%),
|
0 2px 6px 2px color.scale($primary-color, $alpha: -95%),
|
||||||
0 4px 24px 4px color.scale($primary-color, $alpha: -90%);
|
0 4px 24px 4px color.scale($primary-color, $alpha: -90%);
|
||||||
@ -120,6 +123,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
|||||||
:root {
|
:root {
|
||||||
--bg-color: #{$bg-color-l};
|
--bg-color: #{$bg-color-l};
|
||||||
--crt-bg: #{$crt-bg};
|
--crt-bg: #{$crt-bg};
|
||||||
|
--nav-bg: #{$nav-bg-l};
|
||||||
--primary-color-alpha: #{$primary-color-alpha};
|
--primary-color-alpha: #{$primary-color-alpha};
|
||||||
--primary-color: #{$primary-color};
|
--primary-color: #{$primary-color};
|
||||||
--glow: #{$glow};
|
--glow: #{$glow};
|
||||||
@ -128,6 +132,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
|||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--bg-color: #{$bg-color-d};
|
--bg-color: #{$bg-color-d};
|
||||||
|
--nav-bg: #{$nav-bg-d};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -156,7 +161,7 @@ The main repo is [git.exozy.me/daudix/duckquill](https://git.exozy.me/daudix/duc
|
|||||||
- [Cassidy James](https://cassidyjames.com) for the [Mastodon-powered Comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon)
|
- [Cassidy James](https://cassidyjames.com) for the [Mastodon-powered Comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon)
|
||||||
- [Mehdi Merah](https://mehdi.cc) for the [CSS Scanlines](https://codepen.io/meduzen/pen/zxbwRV)
|
- [Mehdi Merah](https://mehdi.cc) for the [CSS Scanlines](https://codepen.io/meduzen/pen/zxbwRV)
|
||||||
- [Bootstrap team](https://getbootstrap.com/docs/5.3/about/team/) for the [Bootstrap Icons](https://icons.getbootstrap.com)
|
- [Bootstrap team](https://getbootstrap.com/docs/5.3/about/team/) for the [Bootstrap Icons](https://icons.getbootstrap.com)
|
||||||
|
- [Adobe Fonts](https://github.com/adobe-fonts) for the [Source Code Pro](https://adobe-fonts.github.io/source-code-pro/) font
|
||||||
- [Rasmus](https://rsms.me) for the [Inter](https://rsms.me/inter/) font
|
- [Rasmus](https://rsms.me) for the [Inter](https://rsms.me/inter/) font
|
||||||
- [JetBrains](https://www.jetbrains.com) for the [JetBrains Mono](https://www.jetbrains.com/lp/mono/) font
|
|
||||||
- dwb, ejm and jgs for the ASCII art
|
- dwb, ejm and jgs for the ASCII art
|
||||||
- Everyone who supported me and said good stuff <3
|
- Everyone who supported me and said good stuff <3
|
||||||
|
15
content/blog/ipsum/index.md
Normal file
15
content/blog/ipsum/index.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
+++
|
||||||
|
title = "Ipsum"
|
||||||
|
description = "Lorem ipsum dolor sit amet."
|
||||||
|
date = 1970-01-02
|
||||||
|
[taxonomies]
|
||||||
|
tags = ["Lorem", "Ipsum"]
|
||||||
|
[extra]
|
||||||
|
toc = false
|
||||||
|
+++
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea.
|
||||||
|
|
||||||
|
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est.
|
||||||
|
|
||||||
|
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea.
|
15
content/blog/lorem/index.md
Normal file
15
content/blog/lorem/index.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
+++
|
||||||
|
title = "Lorem"
|
||||||
|
description = "Lorem ipsum dolor sit amet."
|
||||||
|
date = 1970-01-01
|
||||||
|
[taxonomies]
|
||||||
|
tags = ["Lorem", "Ipsum"]
|
||||||
|
[extra]
|
||||||
|
toc = false
|
||||||
|
+++
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim aeque doleamus animo, cum corpore dolemus, fieri tamen permagna accessio potest, si aliquod aeternum et infinitum impendere malum nobis opinemur. Quod idem licet transferre in voluptatem, ut postea.
|
||||||
|
|
||||||
|
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea bona praeterita grata recordatione renovata delectant. Est.
|
||||||
|
|
||||||
|
Ullus investigandi veri, nisi inveneris, et quaerendi defatigatio turpis est, cum esset accusata et vituperata ab Hortensio. Qui liber cum et mortem contemnit, qua qui est imbutus quietus esse numquam potest. Praeterea.
|
@ -62,6 +62,7 @@ section#comments {
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding: 0.25rem 0.75rem;
|
padding: 0.25rem 0.75rem;
|
||||||
|
transition: var(--transition);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
|
@ -1,23 +1,34 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Inter";
|
font-family: "Inter Variable";
|
||||||
font-weight: 100 900;
|
|
||||||
font-display: swap;
|
|
||||||
font-style: oblique italic 0deg 10deg;
|
|
||||||
src: url("./fonts/inter.woff2?v=4.0") format("woff2");
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "JetBrains Mono";
|
|
||||||
font-weight: 100 900;
|
|
||||||
font-display: swap;
|
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url("./fonts/jetbrains-mono.woff2?v=2.304") format("woff2");
|
font-weight: 100 900;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("./fonts/inter-variable.woff2?v=4.0") format("woff2"),
|
||||||
|
url("./fonts/inter-variable.ttf?v=4.0") format("truetype");
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "Inter Variable";
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 100 900;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("./fonts/inter-variable-italic.woff2?v=4.0") format("woff2"),
|
||||||
|
url("./fonts/inter-variable-italic.ttf?v=4.0") format("truetype");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "JetBrains Mono";
|
font-family: "Source Code VF";
|
||||||
font-weight: 100 900;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-weight: 200 900;
|
||||||
font-style: italic;
|
font-stretch: normal;
|
||||||
src: url("./fonts/jetbrains-mono-italic.woff2?v=2.304") format("woff2");
|
src: url("./fonts/source-code-vf-upright.woff2?v=1.026R") format("woff2"),
|
||||||
|
url("./fonts/source-code-vf-upright.ttf?v=1.026R") format("truetype");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Source Code VF";
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 200 900;
|
||||||
|
font-stretch: normal;
|
||||||
|
src: url("./fonts/source-code-vf-italic.woff2?v=1.026R") format("woff2"),
|
||||||
|
url("./fonts/source-code-vf-italic.ttf?v=1.026R") format("truetype");
|
||||||
}
|
}
|
||||||
|
166
sass/_main.scss
166
sass/_main.scss
@ -9,6 +9,7 @@ html {
|
|||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
scrollbar-color: var(--primary-color) transparent;
|
scrollbar-color: var(--primary-color) transparent;
|
||||||
accent-color: var(--primary-color);
|
accent-color: var(--primary-color);
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
// smaller font size on mobile
|
// smaller font size on mobile
|
||||||
@ -25,7 +26,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Inter", sans-serif;
|
font-family: "Inter Variable", sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: var(--fg-color);
|
color: var(--fg-color);
|
||||||
@ -58,7 +59,7 @@ body {
|
|||||||
|
|
||||||
// LAYOUT
|
// LAYOUT
|
||||||
.container {
|
.container {
|
||||||
width: 80%;
|
width: 80vw;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
max-width: var(--content-width);
|
max-width: var(--content-width);
|
||||||
@ -66,7 +67,7 @@ body {
|
|||||||
|
|
||||||
@media only screen and (max-device-width: 480px) {
|
@media only screen and (max-device-width: 480px) {
|
||||||
.container {
|
.container {
|
||||||
width: 90%;
|
width: 90vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +100,7 @@ h6 {
|
|||||||
h1 {
|
h1 {
|
||||||
letter-spacing: -0.08rem;
|
letter-spacing: -0.08rem;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-size: 2.4rem;
|
font-size: 3rem;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
@ -112,17 +113,35 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.4rem;
|
font-size: 2.4rem;
|
||||||
|
letter-spacing: -0.04rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-weight: 600;
|
|
||||||
text-decoration: none;
|
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-weight: 600;
|
||||||
|
text-decoration: none;
|
||||||
|
text-decoration: underline;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline wavy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,18 +172,16 @@ dl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
background-color: var(--primary-color);
|
border: 0.125rem solid var(--fg05);
|
||||||
height: 0.3rem;
|
margin: 3rem auto;
|
||||||
margin: 3rem auto 4rem;
|
|
||||||
width: 40%;
|
width: 40%;
|
||||||
border: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
color: var(--fg50);
|
color: var(--fg50);
|
||||||
border-left: 0.3rem solid var(--primary-color);
|
border-left: 0.25rem solid var(--primary-color);
|
||||||
|
|
||||||
> :first-child {
|
> :first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@ -185,34 +202,19 @@ abbr {
|
|||||||
text-decoration: underline dotted;
|
text-decoration: underline dotted;
|
||||||
}
|
}
|
||||||
|
|
||||||
kbd {
|
// CODE
|
||||||
display: inline-block;
|
pre,
|
||||||
line-height: normal;
|
code {
|
||||||
font-family: "JetBrains Mono", monospace;
|
font-family: "Source Code VF", monospace;
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: var(--rounded-corner-small);
|
|
||||||
background-color: var(--fg05);
|
|
||||||
box-shadow: inset 0 -2px 0 var(--fg09), 0 -1px 0 var(--fg09);
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
// small nice thingy, keys can be pressed!
|
|
||||||
&:active {
|
|
||||||
background-color: var(--fg09);
|
|
||||||
box-shadow: inset 0 1px 0 var(--fg09);
|
|
||||||
transform: translateY(2px);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CODE
|
code:not(pre code) {
|
||||||
code {
|
|
||||||
font-family: "JetBrains Mono", monospace;
|
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
border-radius: var(--rounded-corner-small);
|
border-radius: var(--rounded-corner-small);
|
||||||
background-color: var(--fg05);
|
background-color: var(--fg05);
|
||||||
color: var(--red-fg);
|
color: var(--red-fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// apply monospace font to everything inside the <pre>
|
|
||||||
pre {
|
pre {
|
||||||
line-height: normal; // unset line height
|
line-height: normal; // unset line height
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
@ -222,17 +224,6 @@ pre {
|
|||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
& * {
|
|
||||||
font-family: "JetBrains Mono", monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
background-color: unset;
|
|
||||||
border-radius: unset;
|
|
||||||
color: unset;
|
|
||||||
padding: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
table td {
|
table td {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
@ -263,6 +254,23 @@ pre {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kbd {
|
||||||
|
display: inline-block;
|
||||||
|
line-height: normal;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: var(--rounded-corner-small);
|
||||||
|
background-color: var(--fg05);
|
||||||
|
box-shadow: inset 0 -2px 0 var(--fg09), 0 -1px 0 var(--fg09);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
// small nice thingy, keys can be pressed!
|
||||||
|
&:active {
|
||||||
|
background-color: var(--fg09);
|
||||||
|
box-shadow: inset 0 1px 0 var(--fg09);
|
||||||
|
transform: translateY(2px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
border-radius: var(--rounded-corner-small);
|
border-radius: var(--rounded-corner-small);
|
||||||
@ -293,13 +301,8 @@ details {
|
|||||||
// TABLES
|
// TABLES
|
||||||
table {
|
table {
|
||||||
display: block;
|
display: block;
|
||||||
|
overflow-x: auto;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
|
||||||
max-width: 100vw;
|
|
||||||
overflow: auto;
|
|
||||||
word-break: normal;
|
|
||||||
word-break: keep-all; // for Firefox to horizontally scroll wider tables.
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
|
|
||||||
th {
|
th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -360,12 +363,12 @@ img {
|
|||||||
// NAVBAR
|
// NAVBAR
|
||||||
.nav {
|
.nav {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
width: 80%;
|
width: 80vw;
|
||||||
max-width: var(--content-width);
|
max-width: var(--content-width);
|
||||||
margin: 1rem auto;
|
margin: 1rem auto;
|
||||||
box-shadow: var(--shadow);
|
box-shadow: 0px 12px 24px -16px rgba(0, 0, 0, 0.5);
|
||||||
border-radius: var(--rounded-corner-big);
|
border-radius: var(--rounded-corner-big);
|
||||||
background-color: var(--fg05);
|
background-color: var(--nav-bg);
|
||||||
backdrop-filter: blur(24px);
|
backdrop-filter: blur(24px);
|
||||||
-webkit-backdrop-filter: blur(24px);
|
-webkit-backdrop-filter: blur(24px);
|
||||||
position: sticky;
|
position: sticky;
|
||||||
@ -400,8 +403,7 @@ img {
|
|||||||
transition: var(--transition);
|
transition: var(--transition);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover,
|
&:hover {
|
||||||
&:focus {
|
|
||||||
background-color: var(--fg05);
|
background-color: var(--fg05);
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
@ -409,13 +411,15 @@ img {
|
|||||||
|
|
||||||
@media only screen and (max-device-width: 480px) {
|
@media only screen and (max-device-width: 480px) {
|
||||||
& {
|
& {
|
||||||
width: 90%;
|
width: 90vw;
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 600px) {
|
@media (min-width: 600px) {
|
||||||
& {
|
& {
|
||||||
|
border-radius: 9999px;
|
||||||
|
|
||||||
&-container {
|
&-container {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@ -425,6 +429,10 @@ img {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -460,12 +468,19 @@ img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.inline-button {
|
.inline-button {
|
||||||
|
background-color: var(--fg05);
|
||||||
|
border-radius: var(--rounded-corner);
|
||||||
|
color: var(--fg-color);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
padding: 0.4rem 1rem;
|
padding: 0.4rem 1rem;
|
||||||
border-radius: var(--rounded-corner);
|
text-decoration: none;
|
||||||
background-color: var(--fg05);
|
transition: var(--transition);
|
||||||
color: var(--fg-color);
|
}
|
||||||
|
|
||||||
|
.inline-button:hover {
|
||||||
|
background-color: var(--fg09);
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CRT
|
// CRT
|
||||||
@ -509,20 +524,22 @@ img {
|
|||||||
// STATEMENTS
|
// STATEMENTS
|
||||||
.statement-container {
|
.statement-container {
|
||||||
margin: 1rem 0 1rem;
|
margin: 1rem 0 1rem;
|
||||||
padding: 1rem 1rem;
|
padding: 1rem 1rem 0.5rem 1rem;
|
||||||
border-radius: var(--rounded-corner);
|
border-radius: var(--rounded-corner);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
|
|
||||||
h2 {
|
* {
|
||||||
margin: 0 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
p,
|
||||||
margin: 0;
|
ul,
|
||||||
|
ol {
|
||||||
|
margin: 0.5rem 0 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.big {
|
||||||
|
font-size: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.archive {
|
&.archive {
|
||||||
@ -548,3 +565,18 @@ img {
|
|||||||
height: min(90px, 12.367vw);
|
height: min(90px, 12.367vw);
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pill {
|
||||||
|
background-color: var(--fg05);
|
||||||
|
border-radius: 9999px;
|
||||||
|
color: var(--fg-color);
|
||||||
|
padding: 0.25rem 0.75rem;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: var(--transition);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--fg09);
|
||||||
|
color: var(--primary-color);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -3,14 +3,17 @@
|
|||||||
$primary-color: #ff7800;
|
$primary-color: #ff7800;
|
||||||
$primary-color-alpha: color.scale($primary-color, $alpha: -80%);
|
$primary-color-alpha: color.scale($primary-color, $alpha: -80%);
|
||||||
|
|
||||||
$bg-color-l: color.mix($primary-color, rgb(250, 250, 250), 10%);
|
$bg-color-l: color.scale($primary-color, $lightness: 80%);
|
||||||
$bg-color-d: color.mix($primary-color, rgb(11, 11, 11), 5%);
|
$bg-color-d: color.scale($primary-color, $lightness: -90%, $saturation: -50%);
|
||||||
|
|
||||||
$crt-bg: radial-gradient(
|
$crt-bg: radial-gradient(
|
||||||
color.scale($primary-color, $lightness: -80%),
|
color.scale($primary-color, $lightness: -80%),
|
||||||
color.scale($primary-color, $lightness: -90%)
|
color.scale($primary-color, $lightness: -90%)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$nav-bg-l: color.scale($bg-color-l, $alpha: -20%, $lightness: 50%);
|
||||||
|
$nav-bg-d: color.scale($bg-color-d, $alpha: -20%, $lightness: 5%, $saturation: -50%);
|
||||||
|
|
||||||
$glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
$glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
||||||
0 2px 6px 2px color.scale($primary-color, $alpha: -95%),
|
0 2px 6px 2px color.scale($primary-color, $alpha: -95%),
|
||||||
0 4px 24px 4px color.scale($primary-color, $alpha: -90%);
|
0 4px 24px 4px color.scale($primary-color, $alpha: -90%);
|
||||||
@ -20,7 +23,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
|||||||
--bg-color: #{$bg-color-l};
|
--bg-color: #{$bg-color-l};
|
||||||
--content-width: 720px;
|
--content-width: 720px;
|
||||||
--crt-bg: #{$crt-bg};
|
--crt-bg: #{$crt-bg};
|
||||||
--fg-color: var(--dark4);
|
--fg-color: rgba(0, 0, 0, 0.8);
|
||||||
--primary-color-alpha: #{$primary-color-alpha};
|
--primary-color-alpha: #{$primary-color-alpha};
|
||||||
--primary-color: #{$primary-color};
|
--primary-color: #{$primary-color};
|
||||||
--rounded-corner-big: 1.2rem;
|
--rounded-corner-big: 1.2rem;
|
||||||
@ -31,6 +34,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
|||||||
--fg05: rgba(0, 0, 0, 0.05);
|
--fg05: rgba(0, 0, 0, 0.05);
|
||||||
--fg09: rgba(0, 0, 0, 0.09);
|
--fg09: rgba(0, 0, 0, 0.09);
|
||||||
--fg50: rgba(0, 0, 0, 0.5);
|
--fg50: rgba(0, 0, 0, 0.5);
|
||||||
|
--nav-bg: #{$nav-bg-l};
|
||||||
|
|
||||||
--orange-bg: rgba(255, 120, 0, 0.1);
|
--orange-bg: rgba(255, 120, 0, 0.1);
|
||||||
--orange-fg: rgb(255, 120, 0);
|
--orange-fg: rgb(255, 120, 0);
|
||||||
@ -50,6 +54,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
|||||||
drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
|
drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
|
||||||
--glow: #{$glow};
|
--glow: #{$glow};
|
||||||
|
|
||||||
|
--transition-bezier: 350ms cubic-bezier(0.17, 0.89, 0.32, 1.28);
|
||||||
--transition-long: 800ms;
|
--transition-long: 800ms;
|
||||||
--transition-longer: 400ms;
|
--transition-longer: 400ms;
|
||||||
--transition: 200ms;
|
--transition: 200ms;
|
||||||
@ -61,12 +66,13 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
|
|||||||
|
|
||||||
// GENERAL SETUP
|
// GENERAL SETUP
|
||||||
--bg-color: #{$bg-color-d};
|
--bg-color: #{$bg-color-d};
|
||||||
--fg-color: var(--light2);
|
--fg-color: rgb(255, 255, 255);
|
||||||
|
|
||||||
// CUSTOM COLOR PALETTE
|
// CUSTOM COLOR PALETTE
|
||||||
--fg05: rgba(255, 255, 255, 0.05);
|
--fg05: rgba(255, 255, 255, 0.05);
|
||||||
--fg09: rgba(255, 255, 255, 0.09);
|
--fg09: rgba(255, 255, 255, 0.09);
|
||||||
--fg50: rgba(255, 255, 255, 0.5);
|
--fg50: rgba(255, 255, 255, 0.5);
|
||||||
|
--nav-bg: #{$nav-bg-d};
|
||||||
|
|
||||||
--orange-bg: rgba(255, 190, 111, 0.1);
|
--orange-bg: rgba(255, 190, 111, 0.1);
|
||||||
--orange-fg: rgb(255, 190, 111);
|
--orange-fg: rgb(255, 190, 111);
|
||||||
|
BIN
static/fonts/inter-variable-italic.ttf
Normal file
BIN
static/fonts/inter-variable-italic.ttf
Normal file
Binary file not shown.
BIN
static/fonts/inter-variable-italic.woff2
Normal file
BIN
static/fonts/inter-variable-italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/inter-variable.ttf
Normal file
BIN
static/fonts/inter-variable.ttf
Normal file
Binary file not shown.
BIN
static/fonts/inter-variable.woff2
Normal file
BIN
static/fonts/inter-variable.woff2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
static/fonts/source-code-vf-italic.ttf
Normal file
BIN
static/fonts/source-code-vf-italic.ttf
Normal file
Binary file not shown.
BIN
static/fonts/source-code-vf-italic.woff2
Normal file
BIN
static/fonts/source-code-vf-italic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/source-code-vf-upright.ttf
Normal file
BIN
static/fonts/source-code-vf-upright.ttf
Normal file
Binary file not shown.
BIN
static/fonts/source-code-vf-upright.woff2
Normal file
BIN
static/fonts/source-code-vf-upright.woff2
Normal file
Binary file not shown.
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<picture>
|
<picture>
|
||||||
<source srcset="{{ get_url(path='404.png') }}" class="full pixels transparent no-hover" media="(prefers-reduced-motion: reduce)"></source>
|
<source srcset="{{ get_url(path='404.png') }}" media="(prefers-reduced-motion: reduce)"></source>
|
||||||
<img srcset="{{ get_url(path='404.gif') }}" class="full pixels transparent no-hover">
|
<img srcset="{{ get_url(path='404.gif') }}" class="full pixels transparent no-hover">
|
||||||
</picture>
|
</picture>
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
{%- for name, taxon in page.taxonomies %}
|
{%- for name, taxon in page.taxonomies %}
|
||||||
•
|
•
|
||||||
{%- for item in taxon %}
|
{%- for item in taxon %}
|
||||||
<a href="{{ get_taxonomy_url(kind=name, name=item) }}">
|
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
|
||||||
<i class="bi bi-tag-fill"></i>
|
<i class="bi bi-tag-fill"></i>
|
||||||
{{ item }}
|
{{ item }}
|
||||||
</a>
|
</a>
|
||||||
@ -25,21 +25,21 @@
|
|||||||
|
|
||||||
{% if page.extra.archive %}
|
{% if page.extra.archive %}
|
||||||
<div class="statement-container archive">
|
<div class="statement-container archive">
|
||||||
<h2>⚠ Archived</h2>
|
<strong class="big">⚠ Archived</strong>
|
||||||
{{ page.extra.archive | markdown | safe }}
|
{{ page.extra.archive | markdown | safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.extra.trigger %}
|
{% if page.extra.trigger %}
|
||||||
<div class="statement-container trigger">
|
<div class="statement-container trigger">
|
||||||
<h2>⚠ Trigger Warning</h2>
|
<strong class="big">⚠ Trigger Warning</strong>
|
||||||
{{ page.extra.trigger | markdown | safe }}
|
{{ page.extra.trigger | markdown | safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.extra.disclaimer %}
|
{% if page.extra.disclaimer %}
|
||||||
<div class="statement-container disclaimer">
|
<div class="statement-container disclaimer">
|
||||||
<h2>⚠ Disclaimer(s)</h2>
|
<strong class="big">⚠ Disclaimer(s)</strong>
|
||||||
{{ page.extra.disclaimer | markdown | safe }}
|
{{ page.extra.disclaimer | markdown | safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
<article>
|
<article>
|
||||||
<h2>
|
<h3>
|
||||||
<a class="link-page" href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
<a class="link-page" href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||||
</h2>
|
</h3>
|
||||||
{%- if page.description %}
|
{%- if page.description %}
|
||||||
<p>{{ page.description }}</p>
|
<p>{{ page.description }}</p>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@ -28,7 +28,7 @@
|
|||||||
{%- for name, taxon in page.taxonomies %}
|
{%- for name, taxon in page.taxonomies %}
|
||||||
•
|
•
|
||||||
{%-for item in taxon %}
|
{%-for item in taxon %}
|
||||||
<a href="{{ get_taxonomy_url(kind=name, name=item) }}">
|
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
|
||||||
<i class="bi bi-tag-fill"></i>
|
<i class="bi bi-tag-fill"></i>
|
||||||
{{ item }}
|
{{ item }}
|
||||||
</a>
|
</a>
|
||||||
@ -38,5 +38,6 @@
|
|||||||
</small>
|
</small>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</article>
|
</article>
|
||||||
|
<hr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<br />
|
<br />
|
||||||
{% for tag in terms %}
|
{% for tag in terms %}
|
||||||
<small>
|
<small>
|
||||||
<a href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">
|
<a class="pill" href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">
|
||||||
<i class="bi bi-tag-fill"></i>
|
<i class="bi bi-tag-fill"></i>
|
||||||
{{ tag.name }}
|
{{ tag.name }}
|
||||||
</a>
|
</a>
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
</small>
|
</small>
|
||||||
<article>
|
<article>
|
||||||
{% for page in term.pages %}
|
{% for page in term.pages %}
|
||||||
<h2>
|
<h3>
|
||||||
<a class="link-page" href="{{ page.permalink | safe }}">
|
<a class="link-page" href="{{ page.permalink | safe }}">
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h3>
|
||||||
<small>
|
<small>
|
||||||
<time datetime='{{ page.date | date(format='%+') }}' pubdate>
|
<time datetime='{{ page.date | date(format='%+') }}' pubdate>
|
||||||
{{- page.date | date(format=config.extra.date_format) -}}
|
{{- page.date | date(format=config.extra.date_format) -}}
|
||||||
@ -22,7 +22,7 @@
|
|||||||
{%- for name, taxon in page.taxonomies %}
|
{%- for name, taxon in page.taxonomies %}
|
||||||
•
|
•
|
||||||
{%- for item in taxon %}
|
{%- for item in taxon %}
|
||||||
<a href="{{ get_taxonomy_url(kind=name, name=item) }}">
|
<a class="pill" href="{{ get_taxonomy_url(kind=name, name=item) }}">
|
||||||
<i class="bi bi-tag-fill"></i>
|
<i class="bi bi-tag-fill"></i>
|
||||||
{{ item }}
|
{{ item }}
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user