Styling tweaks

This commit is contained in:
N-Upchurch 2023-08-21 19:22:39 -05:00
parent 790d9fcbba
commit be4cbac363

View File

@ -18,11 +18,12 @@
--text-color-link: var(--text-color); --text-color-link: var(--text-color);
--text-color-tag: var(--contrast-color); --text-color-tag: var(--contrast-color);
/* Space & Size */ /* Corners */
--syntax-tab-size: 2;
--corner-radius: .3rem; --corner-radius: .3rem;
/* Spacing */ /* Space & Size */
--syntax-tab-size: 2;
--half-gap: .5rem;
--single-gap: 1rem; --single-gap: 1rem;
--double-gap: 2rem; --double-gap: 2rem;
--triple-gap: 3rem; --triple-gap: 3rem;
@ -35,7 +36,7 @@
--font-xl: 2rem; --font-xl: 2rem;
--font-l: 1.5rem; --font-l: 1.5rem;
--font-n: 1rem; --font-n: 1rem;
--font-s: .75rem; --font-s: .85rem;
--font-xs: .65rem; --font-xs: .65rem;
/* Font Weights */ /* Font Weights */
@ -66,6 +67,9 @@
@media(max-width: 556px) { @media(max-width: 556px) {
:root { :root {
/* Borders */
--border-nav-currentpage: 15px solid var(--contrast-color);
/* Font Sizes */ /* Font Sizes */
--font-xxl: 2.25rem; --font-xxl: 2.25rem;
--font-xl: 1.5rem; --font-xl: 1.5rem;
@ -134,7 +138,8 @@ h3 {
hr { hr {
border-top: var(--border-thin); border-top: var(--border-thin);
} }
main { main { --border-nav-currentpage: 15px solid var(--contrast-color);
padding: var(--single-gap); padding: var(--single-gap);
} }
main > p > img, main > p > a > img { main > p > img, main > p > a > img {
@ -360,14 +365,10 @@ nav ul {
} }
/* Tags */ /* Tags */
.post-tag, a.post-tag, .taglist li a { a.post-tag {
align-items: center;
color: var(--text-color-tag); color: var(--text-color-tag);
display: inline-flex; padding-right: var(--half-gap);
justify-content: center;
padding: .2rem .4rem .2rem .4rem;
text-decoration: none; text-decoration: none;
text-transform: capitalize;
} }
a.post-tag:before { a.post-tag:before {
content: "#"; content: "#";
@ -394,20 +395,20 @@ a.post-tag:hover {
align-self: center; align-self: center;
} }
/* Tags list */ /* Post Metadata */
.post-metadata { .post-metadata {
align-items: center;
display: inline-flex;
flex-wrap: wrap;
font-size: var(--font-n);
gap: .5em;
list-style: none;
margin-bottom: var(--triple-gap); margin-bottom: var(--triple-gap);
padding: 0 0 0 .4em; margin-top: var(--single-gap);
padding: 0 0 0 .4rem;
} }
.post-metadata time { .post-metadata p, .post-metadata ul, .post-metadata ul li, .post-metadata time {
margin-right: .5em; display: flex;
font-size: var(--font-n); flex-flow: row wrap;
font-size: var(--font-s);
font-weight: var(--weight-heavy);
list-style: none;
margin: 0;
padding-left: 0em;
} }
/* Direct Links / Markdown Headers */ /* Direct Links / Markdown Headers */
@ -442,8 +443,9 @@ h2 + .header-anchor {
} }
h1 { h1 {
font-size: var(--font-xxl); font-size: var(--font-xxl);
padding-top: 0;
line-height: 2.75rem; line-height: 2.75rem;
margin-top: var(--single-gap);
padding-top: 0;
} }
h2, .postlist h2, main h2 { h2, .postlist h2, main h2 {
font-size: var(--font-xl); font-size: var(--font-xl);
@ -455,8 +457,8 @@ h2 + .header-anchor {
/* Header */ /* Header */
header { header {
padding: 0rem .5rem var(--single-gap) .5rem; padding: 0rem var(--half-gap) var(--single-gap) var(--half-gap);
margin-bottom: var(--single-gap); margin-bottom: 0;
} }
.home-link { .home-link {
max-width: 1rem; max-width: 1rem;
@ -468,7 +470,7 @@ h2 + .header-anchor {
flex-flow: row wrap; flex-flow: row wrap;
} }
.nav-item { .nav-item {
margin-right: .5rem; margin-right: var(--half-gap);
} }
.nav-item li { .nav-item li {
height: 2rem; height: 2rem;
@ -477,15 +479,16 @@ h2 + .header-anchor {
border-top: 2px solid var(--contrast-color); border-top: 2px solid var(--contrast-color);
} }
nav ul { nav ul {
display: flex;
align-items: end; align-items: end;
display: flex;
flex-flow: row nowrap;
justify-content: auto; justify-content: auto;
width: auto; width: auto;
} }
/* Posts List */ /* Posts List */
.post-copy a h3 { .post-copy a h3 {
margin-top: .5em; margin-top: var(--half-gap);
} }
.postlist { .postlist {
padding-top: 0; padding-top: 0;