Files
super-simple-wp-theme/style.css
T

699 lines
13 KiB
CSS

/*
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
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: super-simple-wp-theme
*/
: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;
}
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;
}
* {
box-sizing: border-box;
}
a {
color: var(--a);
text-decoration: underline solid .05rem;
overflow-wrap: break-word;
word-wrap: break-word;
}
a:hover {
color: var(--a-hover);
text-decoration: none;
}
/* Header */
header {
border-bottom: 1px solid var(--border-color);
align-items: center;
}
header nav,
.entry-title,
.entry-meta,
div.pagination {
width: 100%;
max-width: 1024px;
margin: auto;
padding: 0 1rem;
}
#nav-grid {
position: relative;
display: grid;
grid-template-columns: auto 1fr;
column-gap: 1rem;
align-items: center;
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;
align-items: center;
width: 20rem;
font-size: 1.2rem;
}
.logo a {
display: contents;
color: inherit;
}
.logo img {
width: 4rem;
height: 4rem;
}
.logo span {
padding: 0 0 0 1rem;
}
.header-menu-class,
.rss-feed {
overflow: hidden;
margin: auto;
}
.header-menu-class ul,
.rss-feed ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.header-menu-class li { float: left; }
.header-menu-class li a {
display: block;
padding: .5rem;
}
.header-menu-class a,
.entry-title a { text-decoration: none; }
.header-menu-class a:hover,
.entry-title a:hover { text-decoration: underline solid .05rem; }
/* Entries */
.entry-title,
.entry-meta { text-align: center; }
.entry-title {
font-size: 3rem;
font-weight: normal;
padding: 2rem 1rem .5rem 1rem;
overflow-wrap: break-word;
word-wrap: break-word;
}
.entry-title.search { padding: 2rem 1rem 0 1rem; }
.entry-title a,
.author a { color: var(--txt-color); }
.entry-title a:hover,
.author a:hover { color: var(--a-hover) !important; }
.entry-meta p {
font-size: 1.2rem;
margin: 0;
padding: .5rem 0;
}
.date,
.categories { color: var(--a-hover); }
.entry-content,
.rss-feed {
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); }
.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; }
.wp-block-image img,
.alignnone {
width: 100%;
height: auto;
}
blockquote {
margin: 1rem;
padding: 0 0 0 1rem;
border-left: 1px solid var(--border-color);
font-style: italic;
}
/* File block */
a.wp-block-file__button { display: none; }
.is-vertical .wp-block-file { margin: -.2rem 0 0 1.2rem; }
/* Table block */
.wp-block-table { margin: 1rem 0; }
.has-fixed-layout {
display: table;
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
.has-fixed-layout td,
.has-fixed-layout th {
display: table-cell;
padding: .5rem;
text-align: left;
vertical-align: top;
}
.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; }
.wp-block-embed__wrapper {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
overflow: hidden;
}
.wp-block-embed__wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
/* Heading block */
.wp-block-heading {
font-size: 2.5rem;
font-weight: normal !important;
margin: 1rem 0;
}
h3.wp-block-heading { font-size: inherit; }
/* List block */
.wp-block-list {
margin: 1rem 0;
padding: 0 0 0 1.5rem;
}
.entry-content ol.wp-block-list li,
.entry-content ul.wp-block-list li { margin: 0 0 .4rem 0; }
.entry-content ol.wp-block-list li ul.wp-block-list,
.entry-content ul.wp-block-list li ul.wp-block-list { margin: -.4rem 0 .4rem 0; }
/* Details block */
.wp-block-details { margin: 1rem 0; }
.wp-block-details p { margin: .5rem 0 1rem 0; }
/* Pagination */
div.pagination {
max-width: 640px;
display: flex;
justify-content: center;
align-items: center;
margin: .5rem auto 0 auto;
}
.pagination .prev {
order: 1;
min-width: 3rem;
}
.pagination .page-numbers {
order: 2;
flex-grow: 1;
text-align: center;
}
.page-numbers.current { color: var(--a); }
.pagination .next {
order: 3;
min-width: 3rem;
}
/* Search */
.search-container {
width: fit-content;
margin: .5rem auto 1rem auto;
}
.search-container input[type=search],
.entry-content input[type=password],
.bbp-search-form input[type=text] {
float: inline-start;
width: calc(640px - 8rem);
margin: 0 0 0 1rem;
padding: .5rem;
border: none;
font-size: 1rem;
}
.entry-content input[type=password] {
float: unset;
width: auto;
margin: 0;
}
.search-container button,
.entry-content input[type=submit],
.submit button#bbp_user_edit_submit[type=submit],
.bbp-submit-wrapper button#bbp_reply_submit[type=submit],
.bbp-submit-wrapper button#bbp_topic_submit[type=submit] {
width: 6rem;
margin: 0 1rem 0 0;
padding: .5rem 1rem;
border: none;
background: var(--a);
color: var(--bg-color);
font-size: 1rem;
cursor: pointer;
}
/* Footer */
footer { border-top: 1px solid var(--border-color); }
.footer-logo {
margin: auto;
padding: 1rem 0 .5rem 0;
}
#logout,
#org-nr {
margin: auto;
width: fit-content;
}
#org-nr p { margin: .5rem 0 1rem 0; }
/* Super Simple Slideshow */
.super-simple-slideshow {
max-width: 640px;
margin: auto;
padding: 1rem;
border-bottom: 1px solid var(--border-color);
}
.super-simple-slideshow img.super-simple-slide {
display: none;
width: 100% !important;
height: auto !important;
aspect-ratio: 16 / 9;
object-fit: cover;
object-position: center;
}
.super-simple-slideshow img.super-simple-slide.active { display: block; }
/* bbPress */
/* Elements intentionally hidden from the forum markup. */
.screen-reader-text,
.bbp-breadcrumb-home,
.bbp-breadcrumb-sep:first-of-type,
.bbp-template-notice.info,
.bbp-pagination,
.bbp-topic-voice-count,
.bbp-author-avatar,
.bbp-forum-info .bbp-forums-list,
.bbp-footer,
.bbp-forum-freshness p.bbp-topic-meta,
.bbp-topic-freshness p.bbp-topic-meta,
.forums.bbp-replies li.bbp-header,
li.bbp-forum-topic-count,
.favorite-toggle,
.bbp-reply-permalink,
.bbp-reply-author div.bbp-author-role,
.bbp-reply-author div.bbp-reply-ip,
#bbp-user-profile h2.entry-title { display: none !important; }
.bbp-search-form input[type=text] {
width: calc(100% - 6rem);
margin: 0;
}
#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 */
.bbp-forums,
.bbp-topics {
display: table;
width: 100%;
margin: 1rem 0;
padding: 0;
border-collapse: collapse;
}
.bbp-header,
.bbp-body,
.bbp-footer { display: table-row-group; }
.bbp-header .forum-titles,
.bbp-body .forum,
.bbp-body .topic { display: table-row; }
.bbp-header .forum-titles li,
.bbp-body .forum li,
.bbp-body .topic li {
display: table-cell;
padding: .5rem;
border-bottom: 1px solid var(--border-color);
}
.bbp-header .forum-titles li {
padding: 0 .5rem .5rem .5rem;
font-size: 1rem !important;
}
.bbp-forum-permalink,
.bbp-topic-permalink { font-size: 1rem; }
p.bbp-forum-meta,
.bbp-forum-reply-count,
.bbp-forum-freshness,
.bbp-forum-content,
p.bbp-topic-meta,
.bbp-topic-reply-count,
.bbp-topic-freshness {
font-size: .8rem;
margin: 0;
}
.bbp-forum-freshness a,
.bbp-forum-freshness a:hover,
.bbp-topic-freshness a,
.bbp-topic-freshness a:hover {
color: var(--txt-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 */
#subscription-toggle {
display: inline-block;
margin: 0;
padding: 0 .5rem 0 0;
}
.forums.bbp-replies {
margin: 1rem 0 0 0;
padding: 0;
}
.bbp-reply-post-date { padding: 0 .5rem 0 0; }
.bbp-admin-links a { padding: 0 .25rem; }
.bbp-reply-author {
margin: 1rem 0;
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 */
div#bbp-user-avatar { display: none; }
.bbp-template-notice {
border: 1px solid var(--border-color);
padding: 1rem;
margin: 1rem 0;
}
.bbp-template-notice ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.bbp-template-notice li { margin: 0; }
#bbp-single-user-details {
display: flex;
flex-direction: column;
margin: .5rem 0;
}
#bbp-user-navigation ul {
list-style-type: none;
padding: 0;
margin: 0;
}
#bbp-user-navigation li { padding: .5rem 0; }
.bbp-user-section h3 {
font-size: 1.8rem;
font-weight: normal !important;
margin: 1rem 0;
}
/* bbPress forms */
.bbp-form,
#bbp-your-profile fieldset.submit {
border: 1px solid var(--border-color);
padding: 0 1rem;
margin: 1rem 0;
}
.bbp-form legend { display: none; }
.bbp-form div { margin-bottom: 15px; }
.bbp-form label {
display: block;
margin: .5rem 0;
}
.bbp-form input[type="text"],
.bbp-form select,
.bbp-form input#pass1,
.bbp-form input#pass2 {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
box-sizing: border-box;
font-size: 1em;
}
.bbp-form input[type="text"]:focus,
.bbp-form select:focus,
.bbp-form input#pass1:focus,
.bbp-form input#pass2:focus {
border-color: var(--a);
outline: none;
}
.bbp-form textarea#description,
.bbp-form textarea#bbp_topic_content,
.bbp-form textarea#bbp_reply_content {
width: 100%;
height: 8rem;
}
.bbp-form input#user_login {
color: var(--txt-color);
background-color: var(--border-color);
}
.bbp-form button.hide-if-no-js { display: none; }
.bbp-form fieldset.hide-if-js {
border: none;
padding: 0;
margin: 0;
}
.user-pass2-wrap p.description { display: none; }
.pw-weak {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.pw-weak label {
order: 2;
margin: 0 1rem 0 0;
}
.pw-weak input[type="checkbox"] {
order: 1;
margin: 0 1rem 0 0;
}
.pw-weak .description { order: 3; }
.submit button#bbp_user_edit_submit[type=submit],
.bbp-submit-wrapper button#bbp_reply_submit[type=submit] {
width: auto;
margin: .5rem 0 1rem 0;
}
#bbp-your-profile fieldset.submit { margin: 1rem 0; }
/* bbPress new post */
#new-post .bbp-form { margin: 2rem 0 1rem 0; }
#new-post legend {
display: unset;
font-size: 1.4rem;
}
#wp-bbp_reply_content-editor-container .hide-if-no-js,
#wp-bbp_topic_content-editor-container .hide-if-no-js { display: none; }
.bbp-submit-wrapper button#bbp_reply_submit[type=submit],
.bbp-submit-wrapper button#bbp_topic_submit[type=submit] { margin: .5rem 0; }
.bbp-form br { display: none; }
/* Responsive / mobile */
@media (max-width: 768px) {
#nav-grid { grid-template-columns: 1fr auto; }
.logo { width: auto; }
/* Visually hidden checkbox that drives the menu, kept focusable for keyboards. */
.nav-toggle {
display: block;
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.nav-toggle-label {
display: flex;
align-items: center;
justify-content: center;
padding: .5rem;
cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
display: block;
width: 1.5rem;
height: 2px;
background-color: var(--txt-color);
}
.nav-toggle-label span { position: relative; }
.nav-toggle-label span::before,
.nav-toggle-label span::after {
content: "";
position: absolute;
left: 0;
}
.nav-toggle-label span::before { top: -.5rem; }
.nav-toggle-label span::after { bottom: -.5rem; }
#nav-toggle:focus ~ .nav-toggle-label {
outline: 2px solid var(--a);
outline-offset: 2px;
}
.header-menu-class {
grid-column: 1 / -1;
display: none;
margin: 0;
padding: 1rem 0 0 0;
}
#nav-toggle:checked ~ .header-menu-class { display: block; }
.header-menu-class li { float: none; }
.header-menu-class a { padding: .5rem 0 !important; }
.search-container input[type=search] { width: calc(100vw - 8rem); }
}