feat: Use fonts provided by system, new navbar (again)
This commit is contained in:
@ -22,8 +22,5 @@ If you want to improve Duckquill in any way, feel free to open an issue, or bett
|
||||
## Thanks to ♥
|
||||
|
||||
- [Jakub Steiner](https://jimmac.eu) for the [OS Component Website](https://jimmac.github.io/os-component-website), on top of which this whole thing is built
|
||||
- [Cassidy James](https://cassidyjames.com) for the [Mastodon-powered Comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon)
|
||||
- [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
|
||||
- [Bootstrap](https://getbootstrap.com) for the [Bootstrap Icons](https://icons.getbootstrap.com) font
|
||||
- [Carl Schwan](https://carlschwan.eu) for the [Mastodon-powered Comments](https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/)
|
||||
- Everyone who supported me and said good stuff <3
|
||||
|
@ -20,9 +20,8 @@ Edit a bit of metadata and tweak some of the included graphics and have a blog u
|
||||
- For a very pleasant look, the colors are tinted with the primary color.
|
||||
- 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.
|
||||
- Local copy of the amazing [Inter](https://rsms.me/inter/) and [JetBrains Mono](https://www.jetbrains.com/lp/mono/) fonts. No slowdowns pulling from external hosting.
|
||||
- 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://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/). Comment using compatible ActivityPub server by replying to a Mastodon post.
|
||||
|
||||
> Duckquill is made based on needs of [my website](https://daudix.codeberg.page), if you need some feature/configuration that doesn't exist feel free to open an issue or better yet, pull request!
|
||||
|
||||
@ -103,8 +102,5 @@ If you want to improve Duckquill in any way, feel free to open an issue, or bett
|
||||
## Thanks to ♥
|
||||
|
||||
- [Jakub Steiner](https://jimmac.eu) for the [OS Component Website](https://jimmac.github.io/os-component-website), on top of which this whole thing is built
|
||||
- [Cassidy James](https://cassidyjames.com) for the [Mastodon-powered Comments](https://cassidyjames.com/blog/fediverse-blog-comments-mastodon)
|
||||
- [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
|
||||
- [Bootstrap](https://getbootstrap.com) for the [Bootstrap Icons](https://icons.getbootstrap.com) font
|
||||
- [Carl Schwan](https://carlschwan.eu) for the [Mastodon-powered Comments](https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/)
|
||||
- Everyone who supported me and said good stuff <3
|
||||
|
@ -143,6 +143,8 @@ The final element.
|
||||
|
||||
Alright now that the generic (slightly extended) ~~Jekyll~~ Zola demo page have ended, we can get to the custom stuff, which believe me, is neat.
|
||||
|
||||
😭😂🥺🤣❤️✨🙏😍🥰😊
|
||||
|
||||
### Shortcodes
|
||||
|
||||
Duckquill provides a few useful [shortcodes](https://www.getzola.org/documentation/content/shortcodes/) that simplify some tasks.
|
||||
|
@ -7,4 +7,4 @@
|
||||
|
||||
Sadly, the cake is a _lie_
|
||||
|
||||
<a class="inline-button" href="demo">Go Crying</a>
|
||||
<a class="inline-button" href="../">Go Crying</a>
|
||||
|
@ -87,28 +87,19 @@ section#comments {
|
||||
}
|
||||
|
||||
&::before {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
content: "\F4B5";
|
||||
display: inline-block;
|
||||
font-family: "bootstrap-icons" !important;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: normal !important;
|
||||
line-height: 1;
|
||||
content: "✔";
|
||||
margin-inline-end: 0.25rem;
|
||||
text-transform: none;
|
||||
vertical-align: -0.125em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.emoji {
|
||||
all: unset;
|
||||
display: inline;
|
||||
height: 1.25rem;
|
||||
height: 2rem;
|
||||
vertical-align: middle;
|
||||
width: 1.25rem;
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
time {
|
||||
@ -149,18 +140,8 @@ section#comments {
|
||||
}
|
||||
|
||||
&::before {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
content: "\F417";
|
||||
display: inline-block;
|
||||
font-family: "bootstrap-icons" !important;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: normal !important;
|
||||
line-height: 1;
|
||||
content: "♥";
|
||||
margin-inline-end: 0.25rem;
|
||||
text-transform: none;
|
||||
vertical-align: -0.125em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,31 +0,0 @@
|
||||
@font-face {
|
||||
font-family: InterVariable;
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url("./fonts/InterVariable.woff2?v=4.0") format("woff2");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: InterVariable;
|
||||
font-style: italic;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url("./fonts/InterVariable-Italic.woff2?v=4.0") format("woff2");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: JetBrainsMono;
|
||||
font-style: normal;
|
||||
font-weight: 100 800;
|
||||
font-display: swap;
|
||||
src: url("./fonts/JetBrainsMono.woff2?v=2.304") format("woff2");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: JetBrainsMono;
|
||||
font-style: italic;
|
||||
font-weight: 100 800;
|
||||
font-display: swap;
|
||||
src: url("./fonts/JetBrainsMono-Italic.woff2?v=2.304") format("woff2");
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
/* GNOME HIG Colors */
|
||||
:root {
|
||||
--blue1: rgb(153, 193, 241);
|
||||
--blue2: rgb(98, 160, 234);
|
||||
--blue3: rgb(53, 132, 228);
|
||||
--blue4: rgb(28, 113, 216);
|
||||
--blue5: rgb(26, 95, 180);
|
||||
--green1: rgb(143, 240, 164);
|
||||
--green2: rgb(87, 227, 137);
|
||||
--green3: rgb(51, 209, 122);
|
||||
--green4: rgb(46, 194, 126);
|
||||
--green5: rgb(38, 162, 105);
|
||||
--yellow1: rgb(249, 240, 107);
|
||||
--yellow2: rgb(248, 228, 92);
|
||||
--yellow3: rgb(246, 211, 45);
|
||||
--yellow4: rgb(245, 194, 17);
|
||||
--yellow5: rgb(229, 165, 10);
|
||||
--orange1: rgb(255, 190, 111);
|
||||
--orange2: rgb(255, 163, 72);
|
||||
--orange3: rgb(255, 120, 0);
|
||||
--orange4: rgb(230, 97, 0);
|
||||
--orange5: rgb(198, 70, 0);
|
||||
--red1: rgb(246, 97, 81);
|
||||
--red2: rgb(237, 51, 59);
|
||||
--red3: rgb(224, 27, 36);
|
||||
--red4: rgb(192, 28, 40);
|
||||
--red5: rgb(165, 29, 45);
|
||||
--purple1: rgb(220, 138, 221);
|
||||
--purple2: rgb(192, 97, 203);
|
||||
--purple3: rgb(145, 65, 172);
|
||||
--purple4: rgb(129, 61, 156);
|
||||
--purple5: rgb(97, 53, 131);
|
||||
--brown1: rgb(205, 171, 143);
|
||||
--brown2: rgb(181, 131, 90);
|
||||
--brown3: rgb(152, 106, 68);
|
||||
--brown4: rgb(134, 94, 60);
|
||||
--brown5: rgb(99, 69, 44);
|
||||
--light1: rgb(255, 255, 255);
|
||||
--light2: rgb(246, 245, 244);
|
||||
--light3: rgb(222, 221, 218);
|
||||
--light4: rgb(192, 191, 188);
|
||||
--light5: rgb(154, 153, 150);
|
||||
--dark1: rgb(119, 118, 123);
|
||||
--dark2: rgb(94, 92, 100);
|
||||
--dark3: rgb(61, 56, 70);
|
||||
--dark4: rgb(36, 31, 49);
|
||||
--dark5: rgb(0, 0, 0);
|
||||
}
|
@ -26,7 +26,7 @@ body {
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: InterVariable, sans-serif;
|
||||
font-family: system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
||||
line-height: 1.6;
|
||||
color: var(--fg-color);
|
||||
background: var(--bg-color);
|
||||
@ -70,9 +70,7 @@ h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: JetBrainsMono, monospace;
|
||||
font-feature-settings: "ss02";
|
||||
font-style: italic;
|
||||
font-family: Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
||||
font-weight: 200;
|
||||
line-height: 1.25;
|
||||
margin: 3rem 0 1rem;
|
||||
@ -92,27 +90,27 @@ h6 {
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.14rem;
|
||||
letter-spacing: -0.15rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.4rem;
|
||||
letter-spacing: -0.14rem;
|
||||
letter-spacing: -0.15rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
letter-spacing: -0.08rem;
|
||||
letter-spacing: -0.1rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.25rem;
|
||||
letter-spacing: -0.06rem;
|
||||
letter-spacing: -0.05rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1rem;
|
||||
letter-spacing: -0.04rem;
|
||||
letter-spacing: -0.05rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
@ -179,7 +177,7 @@ abbr {
|
||||
pre,
|
||||
code,
|
||||
kbd {
|
||||
font-family: JetBrainsMono, monospace;
|
||||
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
|
||||
}
|
||||
|
||||
code:not(pre code) {
|
||||
|
@ -8,29 +8,16 @@
|
||||
margin: 1rem auto;
|
||||
position: sticky;
|
||||
top: 1rem;
|
||||
width: min(calc(var(--content-width) + 10rem), 90%);
|
||||
max-width: min(calc(var(--content-width) + 10rem), 90%);
|
||||
z-index: 1;
|
||||
|
||||
@media screen and (max-width: 720px) {
|
||||
& {
|
||||
width: auto;
|
||||
max-width: min(calc(var(--content-width) + 10rem), 90%);
|
||||
}
|
||||
}
|
||||
|
||||
nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0.5rem;
|
||||
|
||||
@media screen and (max-width: 720px) {
|
||||
& {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@ -48,7 +35,6 @@
|
||||
a {
|
||||
border-radius: 999px;
|
||||
color: var(--fg-muted-4);
|
||||
font-weight: 400;
|
||||
padding: 0.325rem 0.75rem;
|
||||
text-decoration: none;
|
||||
transition: var(--transition);
|
||||
@ -62,24 +48,34 @@
|
||||
&:active {
|
||||
transform: scale(var(--active));
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
&:has(span) {
|
||||
padding: 0.325rem 0.625rem;
|
||||
|
||||
span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#home {
|
||||
margin-right: 0.25rem;
|
||||
position: relative;
|
||||
font-weight: 800;
|
||||
color: var(--fg-muted-5);
|
||||
|
||||
&:hover {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: 110%;
|
||||
width: 1px;
|
||||
background-color: var(--fg-muted-2);
|
||||
top: 0;
|
||||
right: -0.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
#feed {
|
||||
margin-left: 0.25rem;
|
||||
padding: 0.325rem 0.625rem;
|
||||
|
||||
svg {
|
||||
vertical-align: -.125em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2091
sass/bootstrap-icons.scss
vendored
2091
sass/bootstrap-icons.scss
vendored
File diff suppressed because it is too large
Load Diff
@ -8,9 +8,8 @@
|
||||
* https://github.com/systemd/systemd/tree/main/docs
|
||||
*/
|
||||
|
||||
@use "normalize";
|
||||
@use "variables";
|
||||
@use "gnome-hig";
|
||||
@use "fonts";
|
||||
@use "main";
|
||||
|
||||
@use "buttons";
|
||||
@ -27,7 +26,5 @@
|
||||
@use "statements";
|
||||
@use "tags";
|
||||
|
||||
@import url("normalize.css");
|
||||
@import url("bootstrap-icons.css");
|
||||
@import url("syntax-theme-dark.css") (prefers-color-scheme: dark);
|
||||
@import url("syntax-theme-light.css") (prefers-color-scheme: light);
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3,7 +3,7 @@
|
||||
{% block content %}
|
||||
<h1>{{ section.title }}</h1>
|
||||
|
||||
<p>{{ section.description | markdown | safe }}</p>
|
||||
<p>{{ section.description }}</p>
|
||||
|
||||
<small>
|
||||
<a class="link-page" href="{{ get_url(path='tags') }}">Filter by tag</a>
|
||||
|
@ -24,9 +24,8 @@
|
||||
</p>
|
||||
<p>
|
||||
<small>
|
||||
Since Fediverse is decentralized, you can use your existing account hosted by a Mastodon or a compatible server if
|
||||
you
|
||||
don't have an account on this one. Known non-private replies are displayed below.
|
||||
Since Fediverse is decentralized, you can use your existing Mastodon or a compatible account if you don't have an
|
||||
account on this one. Known non-private replies are displayed below.
|
||||
</small>
|
||||
</p>
|
||||
|
||||
|
@ -1,40 +1,19 @@
|
||||
<header id="site-nav">
|
||||
<nav>
|
||||
<a id="home" href="{{ get_url(path='') }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
<i class="bi bi-house"></i>
|
||||
<span>{{ config.title }}</span>
|
||||
{% else %}
|
||||
{{ config.title }}
|
||||
{% endif %}
|
||||
</a>
|
||||
<ul>
|
||||
<li>
|
||||
<a id="home" href="{{ get_url(path='') }}">{{ config.title }}</a>
|
||||
</li>
|
||||
{% for link in config.extra.nav.links %}
|
||||
<li>
|
||||
<a href="{{ link.url | safe | replace(from='$BASE_URL', to=get_url(path='')) | safe }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
{% if link.icon %}
|
||||
<i class="bi bi-{{ link.icon }}"></i>
|
||||
<span>{{ link.name }}</span>
|
||||
{% else %}
|
||||
{{ link.name }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ link.name }}
|
||||
{% endif %}
|
||||
</a>
|
||||
<a href="{{ link.url | safe | replace(from='$BASE_URL', to=get_url(path='')) | safe }}">{{ link.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if config.extra.nav.show_feed %}
|
||||
<a id="feed" href="{{ get_url(path='') }}/{{ config.feed_filename }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
<i class="bi bi-rss"></i>
|
||||
<span class="link-name">Feed</span>
|
||||
{% else %}
|
||||
Feed
|
||||
{% if config.extra.nav.show_feed %}
|
||||
<li>
|
||||
<a id="feed" href="{{ get_url(path='') }}/{{ config.feed_filename }}"><svg width="1rem" height="1rem"><path fill="currentColor" d="M1.988 1.988V3c.008.547.453.984 1 .988.004-.004.008-.004.012-.004v.028A8.977 8.977 0 0 1 11.988 13a.991.991 0 0 0 1 .984h1V13h-.004c0-.004 0-.004.004-.008C13.984 7.02 9.184 2.148 3.242 2.02A1.004 1.004 0 0 0 3 1.988v-.004zm0 4V7c.008.547.453.984 1 .988.004-.004.008-.004.012-.004V8a4.985 4.985 0 0 1 4.996 4.844 1.002 1.002 0 0 0 .988 1.145c.008-.005.012-.005.016-.005v.004h.984V13H10c0-3.793-3.047-6.898-6.82-6.992 0-.004-.004-.004-.004-.004A.892.892 0 0 0 3 5.988v-.004zm2 4a1.999 1.999 0 1 0-.002 3.998 1.999 1.999 0 0 0 .002-3.998m0 0"/></svg></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user