Light, readable palette and reorganised CSS (v3.0.0)

This commit is contained in:
ai-bot committed 2026-10-14 09:33:12 +00:00
1 parent d51cfaa06d
commit b2a187104c
1 file changed
+171 -102
+171 -102
View File
@@ -3,54 +3,90 @@ Theme Name: Super Simple WordPress Theme
Theme URI: https://gitea.sondreolav.com/ai-bot/super-simple-wp-theme
Author: sondreolav
Author URI: https://sondreolav.com/
Description: A minimal theme originally built for Taubaneforeningen.no. Includes light styling for bbPress and the Super Simple Slideshow / Super Simple RSS Reader plugins.
Version: 2.1.0
Description: A minimal, light theme originally built for Taubaneforeningen.no. Includes light styling for bbPress and the Super Simple Slideshow / Super Simple RSS Reader plugins.
Version: 3.0.0
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: super-simple-wp-theme
*/
/* ==========================================================================
Contents
1. Colours and typography <- edit the palette here
2. Base
3. Links
4. Header and navigation
5. Entries
6. Content blocks
7. Pagination
8. Search
9. Footer
10. Super Simple Slideshow
11. Super Simple RSS Reader
12. bbPress
13. Responsive (mobile)
========================================================================== */
/* 1. Colours and typography ================================================ */
:root {
--bg-color: #1f3b5c; /* deep steel blue */
--txt-color: #eef2f7; /* soft white */
--a: #7fb3e8; /* link / accent blue */
--a-hover: #b9d2ec; /* muted light blue (hover text and meta text) */
--border-color: #3a587d; /* subtle border / panel */
--font: Manrope, sans-serif;
/* Light background with dark text for maximum readability. */
--bg-color: #ffffff; /* page background */
--text-color: #1f2933; /* body text */
--muted-color: #52606d; /* secondary text: dates, meta, captions */
--link-color: #0b5fa5; /* links */
--link-hover: #063e6e; /* links on hover */
--border-color: #cbd2d9; /* borders, dividers, input outlines */
--button-bg: #0b5fa5; /* button background */
--button-text: #ffffff; /* button text */
/* Large text and generous line height make the page easier to read. */
--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-size: 1.15rem;
--line-height: 1.7;
}
body {
margin: 0;
background-color: var(--bg-color);
color: var(--txt-color);
font-family: var(--font);
font-size: 1.1rem;
line-height: 1.5;
letter-spacing: .08rem;
}
/* 2. Base ================================================================== */
* {
box-sizing: border-box;
}
body {
margin: 0;
background-color: var(--bg-color);
color: var(--text-color);
font-family: var(--font);
font-size: var(--font-size);
line-height: var(--line-height);
letter-spacing: .02rem;
}
/* 3. Links ================================================================= */
a {
color: var(--a);
text-decoration: underline solid .05rem;
color: var(--link-color);
text-decoration: underline;
text-underline-offset: .15em;
overflow-wrap: break-word;
word-wrap: break-word;
}
a:hover {
color: var(--a-hover);
text-decoration: none;
color: var(--link-hover);
}
/* Header */
/* 4. Header and navigation ================================================= */
header {
border-bottom: 1px solid var(--border-color);
align-items: center;
}
/* Shared page container width. */
header nav,
.entry-title,
.entry-meta,
@@ -70,10 +106,6 @@ div.pagination {
padding: 1.5rem 0;
}
/* Mobile hamburger toggle (hidden on larger screens) */
.nav-toggle,
.nav-toggle-label { display: none; }
.logo {
display: grid;
grid-template-columns: auto auto;
@@ -92,18 +124,15 @@ div.pagination {
height: 4rem;
}
.logo span {
padding: 0 0 0 1rem;
}
.logo span { padding: 0 0 0 1rem; }
.header-menu-class,
.rss-feed {
/* Menu */
.header-menu-class {
overflow: hidden;
margin: auto;
}
.header-menu-class ul,
.rss-feed ul {
.header-menu-class ul {
list-style-type: none;
margin: 0;
padding: 0;
@@ -116,13 +145,17 @@ div.pagination {
padding: .5rem;
}
.header-menu-class a,
.entry-title a { text-decoration: none; }
.header-menu-class a { text-decoration: none; }
.header-menu-class a:hover,
.entry-title a:hover { text-decoration: underline solid .05rem; }
.header-menu-class a:hover { text-decoration: underline; }
/* Hamburger toggle: hidden here, shown on small screens (section 13). */
.nav-toggle,
.nav-toggle-label { display: none; }
/* 5. Entries =============================================================== */
/* Entries */
.entry-title,
.entry-meta { text-align: center; }
@@ -137,10 +170,14 @@ div.pagination {
.entry-title.search { padding: 2rem 1rem 0 1rem; }
.entry-title a,
.author a { color: var(--txt-color); }
.author a { color: var(--text-color); }
.entry-title a { text-decoration: none; }
.entry-title a:hover,
.author a:hover { color: var(--a-hover) !important; }
.author a:hover { color: var(--link-hover); }
.entry-title a:hover { text-decoration: underline; }
.entry-meta p {
font-size: 1.2rem;
@@ -149,48 +186,36 @@ div.pagination {
}
.date,
.categories { color: var(--a-hover); }
.categories { color: var(--muted-color); }
.entry-content,
.rss-feed {
.entry-content {
max-width: 640px;
border-bottom: 1px solid var(--border-color);
margin: auto;
padding: 0 1rem;
}
.rss-feed { padding: 1rem; }
.rss-title {
font-size: 2rem;
font-weight: normal;
margin: 0;
}
.rss-feed li {
padding: 1rem 0 0 0;
line-height: 1.2;
}
.rss-feed span { color: var(--a-hover); }
/* 6. Content blocks ======================================================== */
.entry-content p,
.wp-block-image,
.wp-block-file,
.bbp-breadcrumb p { margin: 1rem 0; }
.wp-block-file a,
.entry-content a { text-decoration: underline solid .05rem; }
.wp-block-file a:hover,
.entry-content a:hover { text-decoration: none; }
/* Image block */
.wp-block-image img,
.alignnone {
width: 100%;
height: auto;
}
figcaption {
font-style: italic;
padding: .5rem 0;
}
/* Quote block */
blockquote {
margin: 1rem;
padding: 0 0 0 1rem;
@@ -223,11 +248,6 @@ a.wp-block-file__button { display: none; }
.has-fixed-layout tr { border-bottom: 1px solid var(--border-color); }
figcaption {
font-style: italic;
padding: .5rem 0;
}
/* Embed block (16:9 responsive wrapper) */
.wp-block-embed { margin: 1rem 0; }
@@ -274,7 +294,9 @@ h3.wp-block-heading { font-size: inherit; }
.wp-block-details p { margin: .5rem 0 1rem 0; }
/* Pagination */
/* 7. Pagination ============================================================ */
div.pagination {
max-width: 640px;
display: flex;
@@ -294,14 +316,16 @@ div.pagination {
text-align: center;
}
.page-numbers.current { color: var(--a); }
.page-numbers.current { color: var(--link-color); }
.pagination .next {
order: 3;
min-width: 3rem;
}
/* Search */
/* 8. Search ================================================================ */
.search-container {
width: fit-content;
margin: .5rem auto 1rem auto;
@@ -314,7 +338,9 @@ div.pagination {
width: calc(640px - 8rem);
margin: 0 0 0 1rem;
padding: .5rem;
border: none;
border: 1px solid var(--border-color);
background-color: var(--bg-color);
color: var(--text-color);
font-size: 1rem;
}
@@ -324,6 +350,7 @@ div.pagination {
margin: 0;
}
/* Buttons */
.search-container button,
.entry-content input[type=submit],
.submit button#bbp_user_edit_submit[type=submit],
@@ -333,13 +360,15 @@ div.pagination {
margin: 0 1rem 0 0;
padding: .5rem 1rem;
border: none;
background: var(--a);
color: var(--bg-color);
background: var(--button-bg);
color: var(--button-text);
font-size: 1rem;
cursor: pointer;
}
/* Footer */
/* 9. Footer ================================================================ */
footer { border-top: 1px solid var(--border-color); }
.footer-logo {
@@ -355,7 +384,9 @@ footer { border-top: 1px solid var(--border-color); }
#org-nr p { margin: .5rem 0 1rem 0; }
/* Super Simple Slideshow */
/* 10. Super Simple Slideshow =============================================== */
.super-simple-slideshow {
max-width: 640px;
margin: auto;
@@ -374,8 +405,40 @@ footer { border-top: 1px solid var(--border-color); }
.super-simple-slideshow img.super-simple-slide.active { display: block; }
/* bbPress */
/* Elements intentionally hidden from the forum markup. */
/* 11. Super Simple RSS Reader ============================================== */
.rss-feed {
overflow: hidden;
max-width: 640px;
margin: auto;
padding: 1rem;
border-bottom: 1px solid var(--border-color);
}
.rss-title {
font-size: 2rem;
font-weight: normal;
margin: 0;
}
.rss-feed ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.rss-feed li {
padding: 1rem 0 0 0;
line-height: 1.2;
}
.rss-feed span { color: var(--muted-color); }
/* 12. bbPress ============================================================== */
/* Elements hidden from the forum markup by design. */
.screen-reader-text,
.bbp-breadcrumb-home,
.bbp-breadcrumb-sep:first-of-type,
@@ -395,6 +458,13 @@ li.bbp-forum-topic-count,
.bbp-reply-author div.bbp-reply-ip,
#bbp-user-profile h2.entry-title { display: none !important; }
/* Breadcrumb */
.bbp-breadcrumb a,
span.bbp-breadcrumb-current { padding: .5rem .25rem; }
.bbp-breadcrumb a.bbp-breadcrumb-root { padding: .5rem .25rem .5rem 0; }
/* Search form */
.bbp-search-form input[type=text] {
width: calc(100% - 6rem);
margin: 0;
@@ -402,12 +472,7 @@ li.bbp-forum-topic-count,
#bbp_search_submit { margin: 0; }
.bbp-breadcrumb a,
span.bbp-breadcrumb-current { padding: .5rem .25rem; }
.bbp-breadcrumb a.bbp-breadcrumb-root { padding: .5rem .25rem .5rem 0; }
/* bbPress tables */
/* Forum and topic tables */
.bbp-forums,
.bbp-topics {
display: table;
@@ -448,7 +513,7 @@ p.bbp-forum-meta,
p.bbp-topic-meta,
.bbp-topic-reply-count,
.bbp-topic-freshness {
font-size: .8rem;
font-size: .9rem;
margin: 0;
}
@@ -456,17 +521,12 @@ p.bbp-topic-meta,
.bbp-forum-freshness a:hover,
.bbp-topic-freshness a,
.bbp-topic-freshness a:hover {
color: var(--txt-color);
color: var(--text-color);
text-decoration: none;
cursor: default;
}
@media (max-width: 768px) {
li.bbp-forum-reply-count,
li.bbp-topic-reply-count { display: none !important; }
}
/* bbPress topic page */
/* Topic page */
#subscription-toggle {
display: inline-block;
margin: 0;
@@ -478,6 +538,8 @@ p.bbp-topic-meta,
padding: 0;
}
.entry-content .forums.bbp-replies { border-top: 1px solid var(--border-color); }
.bbp-reply-post-date { padding: 0 .5rem 0 0; }
.bbp-admin-links a { padding: 0 .25rem; }
@@ -487,13 +549,11 @@ p.bbp-topic-meta,
font-size: 1.4rem;
}
.entry-content .forums.bbp-replies { border-top: 1px solid var(--border-color); }
.bbp-body .bbp-reply-header { padding-top: 2rem; }
.bbp-body .bbp-reply-content { border-bottom: 1px solid var(--border-color); }
/* bbPress user profile */
/* User profile */
div#bbp-user-avatar { display: none; }
.bbp-template-notice {
@@ -530,7 +590,7 @@ div#bbp-user-avatar { display: none; }
margin: 1rem 0;
}
/* bbPress forms */
/* Forms */
.bbp-form,
#bbp-your-profile fieldset.submit {
border: 1px solid var(--border-color);
@@ -562,7 +622,7 @@ div#bbp-user-avatar { display: none; }
.bbp-form select:focus,
.bbp-form input#pass1:focus,
.bbp-form input#pass2:focus {
border-color: var(--a);
border-color: var(--link-color);
outline: none;
}
@@ -574,7 +634,7 @@ div#bbp-user-avatar { display: none; }
}
.bbp-form input#user_login {
color: var(--txt-color);
color: var(--text-color);
background-color: var(--border-color);
}
@@ -615,7 +675,7 @@ div#bbp-user-avatar { display: none; }
#bbp-your-profile fieldset.submit { margin: 1rem 0; }
/* bbPress new post */
/* New post / reply */
#new-post .bbp-form { margin: 2rem 0 1rem 0; }
#new-post legend {
@@ -631,8 +691,12 @@ div#bbp-user-avatar { display: none; }
.bbp-form br { display: none; }
/* Responsive / mobile */
/* 13. Responsive (mobile) ================================================== */
@media (max-width: 768px) {
/* Header: logo on the left, hamburger on the right, menu collapses. */
#nav-grid { grid-template-columns: 1fr auto; }
.logo { width: auto; }
@@ -661,7 +725,7 @@ div#bbp-user-avatar { display: none; }
display: block;
width: 1.5rem;
height: 2px;
background-color: var(--txt-color);
background-color: var(--text-color);
}
.nav-toggle-label span { position: relative; }
@@ -677,7 +741,7 @@ div#bbp-user-avatar { display: none; }
.nav-toggle-label span::after { bottom: -.5rem; }
#nav-toggle:focus ~ .nav-toggle-label {
outline: 2px solid var(--a);
outline: 2px solid var(--link-color);
outline-offset: 2px;
}
@@ -694,5 +758,10 @@ div#bbp-user-avatar { display: none; }
.header-menu-class a { padding: .5rem 0 !important; }
/* Search */
.search-container input[type=search] { width: calc(100vw - 8rem); }
/* bbPress */
li.bbp-forum-reply-count,
li.bbp-topic-reply-count { display: none !important; }
}