Margins bad

This commit is contained in:
Christian Galo 2025-03-20 00:56:12 -05:00
parent 815be44bdf
commit 9ccb9e8c99
4 changed files with 37 additions and 37 deletions

View File

@ -7,4 +7,3 @@ draft: false
**Wiki Cafe** is a [**co-op**](pages/co-op) \ **Wiki Cafe** is a [**co-op**](pages/co-op) \
that provides [**fedwiki hosting**](pages/fedwiki_service) \ that provides [**fedwiki hosting**](pages/fedwiki_service) \
and [**wiki education**](pages/wiki_education) services. and [**wiki education**](pages/wiki_education) services.

View File

@ -1,5 +1,5 @@
--- ---
title: 'Federated_wiki' title: 'Federated Wiki'
date: '2025-03-20T05:19:15Z' date: '2025-03-20T05:19:15Z'
draft: true draft: true
--- ---

View File

@ -1,60 +1,64 @@
/* TODO: Implement a dark mode */ :root {
/* :root { /* Consider dark mode implementation later */
color-scheme: light dark; color-scheme: light;
}
} */
body { body {
color: oklch(0.145 0 0); color: oklch(0.145 0 0);
line-height: 1.5; line-height: 1.5;
font-family: "RecVar", Helvetica, Arial, sans-serif; font-family: "RecVar", Helvetica, Arial, sans-serif;
max-width: 64rem; max-width: 64rem;
margin: 0 auto;
padding: 2rem; padding: 2rem;
background-color: oklch(0.97 0 0); background-color: oklch(0.97 0 0);
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
display: flex;
flex-direction: column;
gap: 2rem; /* gap replaces margin between sections */
}
h1, h2, h3, h4, h5, h6 {
padding-bottom: 0.5rem; /* padding replaces margin-bottom */
} }
h1 { h1 {
font-size: 3rem; font-size: 3rem;
line-height: 1.2rem; line-height: 1.2;
margin-bottom: 0.5rem;
} }
h2 { h2 {
font-size: 2.5rem; font-size: 2.5rem;
line-height: 1.3rem; line-height: 1.3;
margin-bottom: 0.5rem;
} }
h3 { h3 {
font-size: 2rem; font-size: 2rem;
line-height: 1.4rem; line-height: 1.4;
margin-bottom: 0.5rem;
} }
h4 { h4 {
font-size: 1.5rem; font-size: 1.5rem;
line-height: 1.5rem; line-height: 1.5;
margin-bottom: 0.5rem;
} }
h5 { h5 {
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1.6rem; line-height: 1.6;
margin-bottom: 0.5rem;
} }
h6 { h6 {
font-size: 1rem; font-size: 1rem;
line-height: 1.7rem; line-height: 1.7;
margin-bottom: 0.5rem;
} }
p { p {
font-size: 1rem; font-size: 1rem;
line-height: 2; line-height: 2;
padding-block: 0.5rem;
} }
a { a {
color: #00e; color: #00e;
text-decoration: underline transparent; text-decoration: underline transparent;
/* transition: text-decoration-color 0.2s ease; */
} }
a:hover { a:hover {
text-decoration-color: #00e; text-decoration-color: #00e;
@ -80,19 +84,17 @@ a:visited:focus-visible {
outline: 2px solid #551a8b; outline: 2px solid #551a8b;
outline-offset: 2px; outline-offset: 2px;
} }
/* TODO: Read this: https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible*/
blockquote { blockquote {
border-left: 2px oklch(0.145 0 0) solid; border-left: 2px solid oklch(0.145 0 0);
margin: 0; padding: 0.5rem 1rem;
padding: 0.5rem 0 0.5rem 1rem; background-color: oklch(0.9 0 0);
background-color: oklch(0.145 0 0);
border-radius: 3px; border-radius: 3px;
} }
code { code {
font-variation-settings: "MONO" 1; font-variation-settings: "MONO" 1;
background-color: #f3f3f3; background-color: oklch(0.922 0 0);
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
border-radius: 3px; border-radius: 3px;
box-shadow: 0 1px 2px oklch(0.145 0 0); box-shadow: 0 1px 2px oklch(0.145 0 0);
@ -100,30 +102,29 @@ code {
header { header {
border-bottom: 1px solid oklch(0.145 0 0); border-bottom: 1px solid oklch(0.145 0 0);
margin-bottom: 2rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: end; align-items: flex-end;
} }
.header-left { .header-left {
justify-content: start; justify-content: flex-start;
} }
.header-right { .header-right {
justify-content: end; justify-content: flex-end;
} }
footer { footer {
border-top: 1px solid oklch(0.145 0 0); border-top: 1px solid oklch(0.145 0 0);
margin-top: 2rem;
padding-top: 1rem; padding-top: 1rem;
} }
/* Media queries for responsiveness */ /* Responsive adjustments using padding */
@media (max-width: 768px) { @media (max-width: 768px) {
body { body {
padding: 1rem; padding: 1rem;
gap: 1rem; /* Adjust gap accordingly */
} }
} }

View File

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
{{ .Content }} {{ .Content }}
{{ range site.RegularPages }} <!-- {{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }} {{ .Summary }}
{{ end }} {{ end }} -->
{{ end }} {{ end }}