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