Cleaning up some styles

This commit is contained in:
Brandon Rozek 2023-01-03 21:00:27 -05:00
parent cd5ccf78dc
commit aa68e11c56
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
12 changed files with 74 additions and 102 deletions

View file

@ -1,37 +1,17 @@
/* General */ /* General */
:root {
--bg-color: #101010;
--text-color: #8f8f8f;
--header-color: #dedede;
}
body { body {
background-color: #101010;
background-image: url(/img/winter-dark.png); background-image: url(/img/winter-dark.png);
color: #8f8f8f;
}
a:link {
color: #8f8f8f;
}
a:visited {
color: #8f8f8f;
}
a:hover {
color: #8f8f8f;
}
a:active {
color: #8f8f8f;
}
mark {
color: #8f8f8f;
} }
.header-top { .header-top {
background-color: #232323; background-color: #232323;
color: #dedede;
} }
.header-top a { color: #dedede !important;}
#searchBox #searchBoxInput { #searchBox #searchBoxInput {
color: #8f8f8f; color: #8f8f8f;
background-color:#363636; background-color:#363636;

View file

@ -1,55 +1,68 @@
/* /*
** General ** General
*/ */
body { :root {
--bg-color: #efefef;
--acent-color: #5c3c2e;
--text-color: #313131;
--text-font: 'IBM Plex Mono', sans-serif;
--header-font: 'IBM Plex Mono', monospace;
--header-color: black;
}
html, body {
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
min-height: 100vh; min-height: 100vh;
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
background-color: #EFEFEF; background-color: var(--bg-color);
/* background-image: url(/img/winter.png); */ /* background-image: url(/img/winter.png); */
background-color: #fafafa; background-color: #fafafa;
color: #313131; color: var(--text-color);
text-align: center; text-align: center;
font-family: 'IBM Plex Mono', sans-serif; font-family: var(--text-font);
font-weight: 300; font-weight: 300;
line-height: 1.5; line-height: 1.5;
font-size: 1rem; font-size: 16px;
word-wrap: break-word; word-wrap: break-word;
} }
a .fa, a .fas, a .fab { a .fa, a .fas, a .fab {
color: #5c3c2e; color: var(--acent-color);
} }
a:link { a:link, a:visited, a:hover, a:active {
color: #575757; color: var(--text-color);
} }
a:visited { mark {
color: #575757; color: var(--text-color);
font-weight: bold;
} }
a:hover {
color: #575757;
}
a:active {
color: #575757;
}
strong { strong {
font-weight: 700; font-weight: 700;
} }
.title { h1, h2, h3, h4, h5, h6 {
font-family: 'IBM Plex Mono', monospace; font-family: var(--header-font);
font-weight: 600; font-weight: 600;
} }
.block-center {
margin-left: auto;
margin-right: auto;
}
.space-evenly {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
/* /*
** HEADER ** HEADER
*/ */
@ -61,39 +74,37 @@ strong {
/* Topbar Header */ /* Topbar Header */
.header-top { .header-top {
font-size: 0.9em;
padding: 0.25rem; padding: 0.25rem;
color: black;
background-color: #fafafa;
border-bottom: 1px dashed #5c3c2e;;
padding-left: 3rem; padding-left: 3rem;
border-bottom: 1px dashed var(--acent-color);
background-color: #fafafa;
font-size: 0.9rem;
color: var(--header-color);
} }
.header-top a { color: black !important;} .header-top a { color: var(--header-color); }
.header-flex { .header-flex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
margin-left: auto; max-width: 62.5rem;
margin-right: auto;
max-width: 1000px;
} }
.header-top .title { margin-right: 1rem; max-width: 400px; } .header-top .title { margin-right: 1rem; max-width: 25rem; }
.header-top .h-card { .header-top .h-card {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap-reverse; flex-wrap: wrap-reverse;
width: 350px; width: 21.875rem;
} }
@media (max-width: 550px) { @media (max-width: 550px) {
.header-top { .header-top {
padding-left: 20px; padding-left: 1.25rem;
} }
.header-top .title { margin-right: 0; } .header-top .title { margin-right: 0; }
.header-flex { flex-direction: column; } .header-flex { flex-direction: column; }
@ -109,17 +120,14 @@ strong {
** NAVIGATION ** NAVIGATION
*/ */
.nav-home ul { .nav-home ul {
display: flex;
justify-content: space-evenly;
/* max-width: 300px; */ /* max-width: 300px; */
margin: 20px auto; margin: 1.25rem auto;
padding: 0; padding: 0;
list-style: none; list-style: none;
flex-wrap: wrap;
} }
.nav-home li { .nav-home li {
margin: 0 10px; margin: 0 0.625rem;
} }
/* END NAVIGATION */ /* END NAVIGATION */
@ -127,10 +135,6 @@ strong {
/* /*
** SEARCH ** SEARCH
*/ */
mark {
color: #707070;
font-weight: bold;
}
#searchBox { #searchBox {
position: relative; position: relative;
@ -246,17 +250,14 @@ mark {
.bloglist-teaser { .bloglist-teaser {
font-size: 1.75rem; font-size: 1.75rem;
margin-left: auto; max-width: 40.625rem;
margin-right: auto;
max-width: 650px;
text-align: left; text-align: left;
} }
.bloglist-date { .bloglist-date {
font-size: 1.75rem; font-size: 1.75rem;
font-weight: 600; font-weight: 600;
font-family: monospace; color: var(--acent-color);
color: #5c3c2e;
} }
.bloglist { .bloglist {
@ -304,8 +305,6 @@ mark {
#feedList { #feedList {
text-align: left; text-align: left;
max-width: 1000px; max-width: 1000px;
margin-left: auto;
margin-right: auto;
} }
#feedList h2 { #feedList h2 {
@ -340,16 +339,15 @@ main .e-content {
} }
.e-content a:hover { .e-content a:hover {
box-shadow: inset 1000px 0 0 0 #5c3c2e; box-shadow: inset 1000px 0 0 0 var(--acent-color);
color: white; color: white;
} }
main .e-content h2 { main .e-content h2 {
padding-bottom: .3em; padding-bottom: .3em;
/* font-size: 1.5em; */ /* font-size: 1.5em; */
border-bottom: 1px solid #c9c9c9; border-bottom: 1px solid var(--acent-color);
border-bottom: 1px solid #5c3c2e;; color: var(--acent-color);
color: #5c3c2e;
} }
/* /*
@ -403,14 +401,12 @@ footer a:link {
} }
.footer-navs { .footer-navs {
max-width: 1000px;
margin-left: auto;
margin-right: auto;
display: flex; display: flex;
justify-content: space-between;
text-align: left;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between;
max-width: 62.5rem;
padding: 1rem; padding: 1rem;
text-align: left;
} }
/* END FOOTER */ /* END FOOTER */
@ -420,7 +416,7 @@ footer a:link {
*/ */
.toot { .toot {
margin-bottom: 2rem; margin-bottom: 2rem;
padding: 15px; padding: 1rem;
border: 1px solid #656565; border: 1px solid #656565;
border-radius: 10px; border-radius: 10px;
} }
@ -434,14 +430,10 @@ footer a:link {
.toot .date { .toot .date {
display: inline-block; display: inline-block;
} }
.toot-photos {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
main .e-content .toot-photos img { main .e-content .toot-photos img {
width: 100%; width: 100%;
max-width: 300px; max-width: 18.75rem;
} }
.toot-social { margin-top: 1rem; } .toot-social { margin-top: 1rem; }
@ -450,7 +442,7 @@ main .e-content .toot-photos img {
/* /*
** EXTRA ** EXTRA
*/ */
#webmentions img { max-height: 1.2em; margin-right: -1ex; } #webmentions img { max-height: 1.2rem; margin-right: -1ex; }
.date-updated { margin-top: -18px; } .date-updated { margin-top: -18px; }

View file

@ -9,7 +9,7 @@
{{ $postCount := len $posts }} {{ $postCount := len $posts }}
{{ range last 1 $posts }} {{ range last 1 $posts }}
{{ $tags := .Site.Taxonomies.tags }} {{ $tags := .Site.Taxonomies.tags }}
<div class='bloglist-teaser'> <div class='bloglist-teaser block-center'>
Hello! This page contains <strong>{{ $postCount | lang.NumFmt 0 }} posts</strong> Hello! This page contains <strong>{{ $postCount | lang.NumFmt 0 }} posts</strong>
written in the past <strong>{{ div (sub now.Unix .Date.Unix) 31536000 }} years</strong> written in the past <strong>{{ div (sub now.Unix .Date.Unix) 31536000 }} years</strong>
spanning spanning

View file

@ -3,7 +3,7 @@
<main> <main>
{{ partial "search.html" . }} {{ partial "search.html" . }}
<!-- contents --> <!-- contents -->
<div id="feedList"> <div id="feedList" class="block-center">
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}} {{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }} {{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
{{ range .Pages }} {{ range .Pages }}

View file

@ -21,7 +21,7 @@
</p> </p>
<!-- Site Navigation --> <!-- Site Navigation -->
<nav class="nav-home"> <nav class="nav-home">
<ul> <ul class="space-evenly">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li><a href="{{ .URL }}" aria-label="{{ .Identifier }}">{{ .Pre }}<br>{{ .Name }}</a></li> <li><a href="{{ .URL }}" aria-label="{{ .Identifier }}">{{ .Pre }}<br>{{ .Name }}</a></li>
{{ end }} {{ end }}
@ -30,7 +30,7 @@
<!-- Social Navigation --> <!-- Social Navigation -->
<p>You can also find me on:</p> <p>You can also find me on:</p>
<nav class="nav-home"> <nav class="nav-home">
<ul> <ul class="space-evenly">
{{ range .Site.Menus.profile }} {{ range .Site.Menus.profile }}
<li><a href="{{ .URL }}" rel="me" aria-label="{{ .Identifier }}">{{ .Pre }}<br>{{ .Name }}</a></li> <li><a href="{{ .URL }}" rel="me" aria-label="{{ .Identifier }}">{{ .Pre }}<br>{{ .Name }}</a></li>
{{ end }} {{ end }}

View file

@ -4,7 +4,7 @@
Powered by <a href="https://gohugo.io/">Hugo</a> Powered by <a href="https://gohugo.io/">Hugo</a>
using a modified version of the <a href="https://github.com/koirand/pulp/">pulp</a> theme. using a modified version of the <a href="https://github.com/koirand/pulp/">pulp</a> theme.
</p> </p>
<div class="footer-navs"> <div class="footer-navs block-center">
<nav> <nav>
<p>Content Pages</p> <p>Content Pages</p>
<ul id="footer-nav-sections"> <ul id="footer-nav-sections">

View file

@ -1,5 +1,5 @@
<header class="header-top"> <header class="header-top">
<div class="header-flex"> <div class="header-flex block-center">
{{ $headerTitle := .Scratch.Get "customTitleHeader" }} {{ $headerTitle := .Scratch.Get "customTitleHeader" }}
{{ $headerLink := .Scratch.Get "customTitleHeaderLink" }} {{ $headerLink := .Scratch.Get "customTitleHeaderLink" }}

View file

@ -26,7 +26,7 @@
{{ if gt (len .photos) 0 }} {{ if gt (len .photos) 0 }}
<div class="toot-photos"> <div class="toot-photos space-evenly">
{{ range .photos}} {{ range .photos}}
{{ $small_url := replace .url "square" "small"}} {{ $small_url := replace .url "square" "small"}}
{{ $original_url := replace .url "square" "original"}} {{ $original_url := replace .url "square" "original"}}

View file

@ -11,7 +11,7 @@
<div class="e-content p-name"> <div class="e-content p-name">
{{ .content | safeHTML }} {{ .content | safeHTML }}
{{ if gt (len .media_attachments) 0 }} {{ if gt (len .media_attachments) 0 }}
<div class="toot-photos"> <div class="toot-photos space-evenly">
{{ range .media_attachments}} {{ range .media_attachments}}
{{ if eq .type "image" }} {{ if eq .type "image" }}
<img src="{{ .preview_url }}" alt="{{ .description }}"/> <img src="{{ .preview_url }}" alt="{{ .description }}"/>

View file

@ -1,7 +1,7 @@
{{ define "main"}} {{ define "main"}}
{{ partial "header.html" . }} {{ partial "header.html" . }}
<main> <main>
<div class='bloglist-teaser' style="margin-top: 2rem;"> <div class='bloglist-teaser block-center' style="margin-top: 2rem;">
Here you'll find <strong>{{ len .Pages | lang.NumFmt 0 }} posts</strong> Here you'll find <strong>{{ len .Pages | lang.NumFmt 0 }} posts</strong>
about <u>{{ .Title }}</u> </strong>. about <u>{{ .Title }}</u> </strong>.
</div> </div>

View file

@ -5,7 +5,7 @@
{{ $postCount := len $posts }} {{ $postCount := len $posts }}
{{ range last 1 $posts }} {{ range last 1 $posts }}
{{ $tags := .Site.Taxonomies.tags }} {{ $tags := .Site.Taxonomies.tags }}
<div class='bloglist-teaser'> <div class='bloglist-teaser block-center'>
Here you'll find <strong>{{ $postCount | lang.NumFmt 0 }} posts</strong> Here you'll find <strong>{{ $postCount | lang.NumFmt 0 }} posts</strong>
written spanning <strong>{{ len $tags }} topics</strong>. written spanning <strong>{{ len $tags }} topics</strong>.
</div> </div>

View file

@ -3,7 +3,7 @@
<main> <main>
{{ partial "search.html" . }} {{ partial "search.html" . }}
<!-- contents --> <!-- contents -->
<div id="feedList"> <div id="feedList" class="block-center">
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}} {{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }} {{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
{{ range .Pages }} {{ range .Pages }}