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 */
:root {
--bg-color: #101010;
--text-color: #8f8f8f;
--header-color: #dedede;
}
body {
background-color: #101010;
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 {
background-color: #232323;
color: #dedede;
}
.header-top a { color: #dedede !important;}
#searchBox #searchBoxInput {
color: #8f8f8f;
background-color:#363636;

View file

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

View file

@ -9,7 +9,7 @@
{{ $postCount := len $posts }}
{{ range last 1 $posts }}
{{ $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>
written in the past <strong>{{ div (sub now.Unix .Date.Unix) 31536000 }} years</strong>
spanning

View file

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

View file

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

View file

@ -4,7 +4,7 @@
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.
</p>
<div class="footer-navs">
<div class="footer-navs block-center">
<nav>
<p>Content Pages</p>
<ul id="footer-nav-sections">

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
{{ define "main"}}
{{ partial "header.html" . }}
<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>
about <u>{{ .Title }}</u> </strong>.
</div>

View file

@ -5,7 +5,7 @@
{{ $postCount := len $posts }}
{{ range last 1 $posts }}
{{ $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>
written spanning <strong>{{ len $tags }} topics</strong>.
</div>

View file

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