update theme

This commit is contained in:
Gabriel 2023-11-25 17:16:22 -05:00
parent 546ffecaf1
commit 59ce56460c
2 changed files with 95 additions and 78 deletions

View file

@ -1,20 +1,15 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
{{partial "head" .}} {{partial "head" .}}
<body> <body>
{{partial "spritesheet" .}} {{partial "spritesheet" .}} {{partial "header" .}}
{{partial "header" .}}
<main> <main>
{{ if .Content}} {{ if .Content}}
<article>{{.Content}}</article> <article>{{.Content}}</article>
{{end}} {{end}}
<div class="posts">
{{range .Site.RegularPages | first 3}}
{{partial "post" .}}
{{end}}
</div>
</main> </main>
{{partial "footer" .}} {{partial "footer" .}}
</body> </body>
</html> </html>

View file

@ -18,7 +18,6 @@ body {
--theme-color-primary: rgb(0, 0, 0); --theme-color-primary: rgb(0, 0, 0);
--theme-color-secondary: white; --theme-color-secondary: white;
--theme-accent: #1291e5; --theme-accent: #1291e5;
} }
} }
@ -58,19 +57,17 @@ nav {
nav>* { nav>* {
margin: 1rem; margin: 1rem;
text-align: center; text-align: center;
} }
nav a { nav a {
text-decoration: none; text-decoration: none;
} }
@media screen and (orientation:portrait) { @media screen and (orientation:portrait) {
body { body {
font-size: 20px; font-size: 20px;
flex-direction: column; flex-direction: column;
} }
header, header,
footer { footer {
width: 100vw; width: 100vw;
@ -84,7 +81,6 @@ nav a {
justify-content: space-around; justify-content: space-around;
padding: 5px; padding: 5px;
} }
nav { nav {
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
@ -93,11 +89,11 @@ nav a {
} }
main { main {
max-width: unset; max-width: unset;
width:95vw; width: 100vw;
align-items: center; align-items: center;
margin:5px; margin: 0px;
padding: 0;
} }
} }
svg { svg {
@ -120,6 +116,7 @@ audio {
max-width: 90%; max-width: 90%;
max-height: 100%; max-height: 100%;
} }
article img, article img,
article video, article video,
article iframe, article iframe,
@ -127,13 +124,11 @@ article audio{
margin: 15px; margin: 15px;
} }
iframe { iframe {
width: 100%; width: 100%;
height: 60vh; height: 60vh;
} }
.gallery img { .gallery img {
margin: 1px; margin: 1px;
} }
@ -157,9 +152,11 @@ iframe {
max-width: 25vw; max-width: 25vw;
max-height: 20vw; max-height: 20vw;
} }
.image-container { .image-container {
overflow: hidden; overflow: hidden;
} }
.image-container a { .image-container a {
height: 100%; height: 100%;
} }
@ -168,13 +165,15 @@ iframe {
max-height: 100%; max-height: 100%;
} }
.image-container .caption {
width: fit-content;
}
.gallery>img { .gallery>img {
max-width: 600px; max-width: 600px;
max-height: 400px; max-height: 400px;
} }
.tag-list { .tag-list {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -182,9 +181,11 @@ iframe {
align-items: center; align-items: center;
justify-content: space-evenly; justify-content: space-evenly;
} }
.tag-link { .tag-link {
margin: 3px; margin: 3px;
} }
.tag-link:hover { .tag-link:hover {
color: var(--theme-color-secondary) color: var(--theme-color-secondary)
} }
@ -227,6 +228,10 @@ article h2 {
text-align: left; text-align: left;
} }
article ul {
margin: 0;
}
article .highlight { article .highlight {
width: 100%; width: 100%;
align-items: flex-start; align-items: flex-start;
@ -237,7 +242,11 @@ article .highlight pre {
text-align: left; text-align: left;
} }
article h1 {} @media screen and (orientation:portrait) {
article {
max-width: 90vw;
}
}
.posts { .posts {
display: flex; display: flex;
@ -259,8 +268,7 @@ article h1 {}
width: 360px; width: 360px;
} }
.post>* { .post>* {}
}
.post h2 { .post h2 {
text-align: center; text-align: center;
@ -272,6 +280,7 @@ article h1 {}
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.post-tags { .post-tags {
max-width: 80%; max-width: 80%;
display: flex; display: flex;
@ -279,6 +288,7 @@ article h1 {}
flex-wrap: wrap; flex-wrap: wrap;
font-size: 12px; font-size: 12px;
} }
.post-tags a { .post-tags a {
margin: 2px; margin: 2px;
} }
@ -293,7 +303,6 @@ article h1 {}
background-color: transparent !important; background-color: transparent !important;
} }
h3 { h3 {
margin: 0; margin: 0;
} }
@ -304,7 +313,7 @@ hr{
margin: 0; margin: 0;
margin-top: 1rem; margin-top: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
max-width:95vw; max-width: 80vw;
} }
blockquote { blockquote {
@ -312,15 +321,28 @@ blockquote {
padding-left: 15px; padding-left: 15px;
width: 80%; width: 80%;
} }
code { code {
font-family: monospace; font-family: monospace;
color: var(--theme-accent); color: var(--theme-accent);
white-space: break-spaces; white-space: break-spaces;
word-wrap: normal; word-wrap: normal;
} }
article pre { article pre {
width: 100%; width: 100%;
} }
.footnotes { .footnotes {
flex-direction: column; flex-direction: column;
} }
button {
padding: 10px;
border-radius: 10px;
font-weight: bolder;
font-size: unset;
background-color: var(--theme-accent);
color: var(--theme-color-secondary);
border-color: var(--theme-accent);
}