update main template and add nav menu
All checks were successful
/ weblog.lol (push) Successful in 14s

This commit is contained in:
Gordon Pedersen 2024-05-10 14:29:07 +10:00
parent 6ca3a14dc4
commit fde20c3580
3 changed files with 189 additions and 145 deletions

View file

@ -16,6 +16,7 @@ Landing page template: Landing Page Template
Separator: · Separator: ·
// Navigation: about, another-page, <a href="https://example.com">Example</a>, [Example](https://example.com) // Navigation: about, another-page, <a href="https://example.com">Example</a>, [Example](https://example.com)
Navigation: <a href="https://death.id.au/>Home</a>, <a href="https://death.id.au/now>Now</a>, <a href="https://deathau.weblog.lol>Blog</a>, <a href="https://death.id.au/CV>CV</a>
Files path: /files/ Files path: /files/
Landing page post count: 8 Landing page post count: 8
Landing page post length: 100 words Landing page post length: 100 words

View file

@ -18,9 +18,11 @@
<article> <article>
<aside class="post-info"> <aside class="post-info">
<a href="{location}"><i class="fa-solid fa-clock"></i> <time class="dt-published" datetime="{date}">{date}</time></a> <a href="{location}"><i class="fa-solid fa-clock"></i> <time class="dt-published" datetime="{date}">{date}</time></a>
</aside> </aside>
<i data-emoji="{emoji}"></i>
{body} {body}
<aside class="post-info"><a href="{status_url}"><i class="omg-icon omg-prami"></i> via status.lol</a><a href="{external_url}"><i class="omg-icon omg-fediverse"></i> Reply on the Fediverse</a></aside>
<aside class="post-tags"> <aside class="post-tags">
{tags} {tags}
</aside> </aside>

View file

@ -11,149 +11,174 @@ Location: /styles.css
@import url('https://static.omg.lol/profiles/icons/omg.lol-icons.css'); @import url('https://static.omg.lol/profiles/icons/omg.lol-icons.css');
:root { :root {
--foreground: #f9f8fa; --foreground: #f9f8fa;
--background: #242129; --background: #242129;
--card-bg: #242129; --card-bg: #242129;
--link: #aa55fe; --link: #aa55fe;
--accent: #845e9e; --accent: #845e9e;
--font-main: 'Rubik', sans-serif, 'Noto Color Emoji'; --font-main: 'Rubik', sans-serif, 'Noto Color Emoji';
--font-head: 'Grenze Gotisch', sans-serif, 'Noto Color Emoji'; --font-head: 'Grenze Gotisch', sans-serif, 'Noto Color Emoji';
--font-code: 'MD IO 0.4', monospace, 'Noto Color Emoji'; --font-code: 'MD IO 0.4', monospace, 'Noto Color Emoji';
--font-em: 'Courgette', cursive; --font-em: 'Courgette', cursive;
--font-main-weight: 400; --font-main-weight: 400;
--font-head-weight: 400; --font-head-weight: 400;
--font-code-weight: 400; --font-code-weight: 400;
--font-em-weight: 400; --font-em-weight: 400;
--paper-texture-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.4' numOctaves='3' stitchTiles='stitch' type='fractalNoise'/%3E%3CfeDropShadow dx='0' dy='0' flood-color='%23888' flood-opacity='.5' stdDeviation='1'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E"); --paper-texture-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.4' numOctaves='3' stitchTiles='stitch' type='fractalNoise'/%3E%3CfeDropShadow dx='0' dy='0' flood-color='%23888' flood-opacity='.5' stdDeviation='1'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
--shadow: 1px 2px 0.5em 1px rgba(17,17,17,0.2) --shadow: 1px 2px 0.5em 1px rgba(17, 17, 17, 0.2)
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
html { html {
filter: invert(1) hue-rotate(180deg); filter: invert(1) hue-rotate(180deg);
} }
img,svg,video {
filter: invert(1) hue-rotate(180deg); img,
} svg,
video {
filter: invert(1) hue-rotate(180deg);
}
} }
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
font-family: var(--font-main); font-family: var(--font-main);
font-weight: var(--font-main-weight); font-weight: var(--font-main-weight);
font-optical-sizing: auto; font-optical-sizing: auto;
font-size: 120%; font-size: 120%;
color: var(--foreground); color: var(--foreground);
background: var(--background); background: var(--background);
} }
article, main.page { article,
display: block; main.page {
max-width: 42em; display: block;
border-radius: 1em; max-width: 42em;
margin: 3em auto; border-radius: 1em;
padding: 2em; margin: 3em auto;
background-color: var(--card-bg); padding: 2em;
background-image: var(--paper-texture-svg); background-color: var(--card-bg);
background-repeat: repeat; background-image: var(--paper-texture-svg);
position: relative; background-repeat: repeat;
display: flex; position: relative;
flex-direction: column; display: flex;
flex-wrap: wrap; flex-direction: column;
align-items: start; flex-wrap: wrap;
box-shadow: var(--shadow); align-items: start;
box-shadow: var(--shadow);
} }
.post-info { .post-info {
margin-top: -1rem; margin-top: -1rem;
margin-right: -1rem; margin-right: -1rem;
width:100%; width: 100%;
} }
.post-info+h1 { .post-info,
/*max-width: calc(100% - 4rem - 2em);*/ .post-tags {
} font-size: 85%;
color: var(--accent);
.post-info, .post-tags { text-align: right;
font-size: 85%;
color: var(--accent);
text-align: right;
} }
.post-info i:nth-child(2) { .post-info i:nth-child(2) {
margin-left: .75em; margin-left: .75em;
} }
.post-info>a { .post-info>a {
margin-left: 1em; margin-left: 1em;
} }
article p { article p {
width: 100%; width: 100%;
} }
article p:has(img) { article p:has(img) {
text-align: center; text-align: center;
width: 100%; width: 100%;
} }
em { em {
font-family: var(--font-em); font-family: var(--font-em);
font-weight: var(--font-em-weight); font-weight: var(--font-em-weight);
font-style: normal; font-style: normal;
color: color-mix(in lch, var(--link), var(--foreground)); color: color-mix(in lch, var(--link), var(--foreground));
} }
iframe { iframe {
margin: 0 auto; margin: 0 auto;
} }
.caption { .caption {
text-align: center; text-align: center;
margin-block-start: 0.5em; margin-block-start: 0.5em;
font-size: smaller; font-size: smaller;
color: var(--accent); color: var(--accent);
font-family: var(--font-em); font-family: var(--font-em);
font-weight: var(--font-em-weight); font-weight: var(--font-em-weight);
} }
h1, h2, h3, h4, h5, h6 { h1,
font-family: var(--font-head); h2,
font-weight: var(--font-head-weight); h3,
margin: 1rem 0; h4,
h5,
h6 {
font-family: var(--font-head);
font-weight: var(--font-head-weight);
margin: 1rem 0;
} }
h1 { font-size: 3em; line-height: 1em; } h1 {
h2 { font-size: 2em; } font-size: 3em;
h3 { font-size: 1.5em; } line-height: 1em;
h4 { font-size: 1.17em; } }
h5 { font-size: 1em; }
h6 { font-size: .83em; } h2 {
font-size: 2em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.17em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: .83em;
}
iframe { iframe {
max-width: 100%; max-width: 100%;
} }
[data-emoji] { [data-emoji] {
display: inline-block; display: inline-block;
font-size: 2em; font-size: 2em;
min-width: 1em; min-width: 1em;
font-style: normal; font-style: normal;
} }
[data-emoji]::before { [data-emoji]::before {
content: attr(data-emoji); content: attr(data-emoji);
font-stye: normal;
} }
[data-emoji='{emoji}'], [href='{status_url}'], [href='{external_url}'] { [data-emoji='{emoji}'],
display:none; [href='{status_url}'],
[href='{external_url}'] {
display: none;
} }
@ -161,100 +186,116 @@ iframe {
header nav ul { header nav ul {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
header nav li { header nav li {
display: inline-block; display: inline-block;
} }
header nav li a { header nav li a {
display: block; display: block;
text-decoration: none; text-decoration: none;
margin-right: 1em; margin-right: 1em;
} }
p, li { p,
line-height: 160%; li {
line-height: 160%;
} }
header, main, footer { header,
max-width: 60em; main,
margin: 2em auto; footer {
padding: 0 1em; max-width: 60em;
margin: 2em auto;
padding: 0 1em;
} }
header { header {
margin-top: 4em; margin-top: 4em;
} }
footer p { footer p {
margin-top: 5em; margin-top: 5em;
font-size: 90%; font-size: 90%;
text-align: center; text-align: center;
} }
a:link { color: var(--link); } a:link {
a:visited { color: var(--link); } color: var(--link);
a:hover { color: var(--link); } }
a:active { color: var(--link); }
a:visited {
color: var(--link);
}
a:hover {
color: var(--link);
}
a:active {
color: var(--link);
}
.tag { .tag {
background: var(--accent); background: var(--accent);
color: var(--background) !important; color: var(--background) !important;
padding: .3em .4em; padding: .3em .4em;
margin: .8em 0 0 .4em; margin: .8em 0 0 .4em;
border-radius: .5em; border-radius: .5em;
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
} }
hr { hr {
border: 0; border: 0;
height: 1px; height: 1px;
background: #333; background: #333;
margin: 2em 0; margin: 2em 0;
} }
code { code {
padding: .2em .3em; padding: .2em .3em;
border: 1px solid var(--accent); border: 1px solid var(--accent);
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
} }
pre, code { pre,
font-family: var(--font-code); code {
font-weight: var(--font-code-weight); font-family: var(--font-code);
font-size: 90%; font-weight: var(--font-code-weight);
font-size: 90%;
} }
pre code { pre code {
background: #000; background: #000;
color: #eee; color: #eee;
display: inline-block; display: inline-block;
padding: 1em; padding: 1em;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
} }
img { img {
max-width: 100%; max-width: 100%;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
td, th { td,
padding: .75em; th {
text-align: left; padding: .75em;
border: 1px solid var(--accent); text-align: left;
border: 1px solid var(--accent);
} }
.weblog-title a { .weblog-title a {
text-decoration: none; text-decoration: none;
color: var(--foreground); color: var(--foreground);
} }