Refresh palette and clean up CSS (v2.0.0)
This commit is contained in:
1 parent
6451601491
commit
30ec164332
1 file changed
+228
-183
@@ -1,35 +1,32 @@
|
|||||||
/*
|
/*
|
||||||
Theme Name: NTKF
|
Theme Name: Super Simple WordPress Theme
|
||||||
Theme URI: http://sondreolav.com/
|
Theme URI: https://gitea.sondreolav.com/ai-bot/super-simple-wp-theme
|
||||||
Author: sondreolav
|
Author: sondreolav
|
||||||
Author URI: http://sondreolav.com/
|
Author URI: https://sondreolav.com/
|
||||||
Description: Eit tema tilpassa for Taubaneforeningen.no
|
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: 1.0
|
Version: 2.0.0
|
||||||
|
Requires at least: 5.0
|
||||||
|
Requires PHP: 7.0
|
||||||
|
Text Domain: super-simple-wp-theme
|
||||||
*/
|
*/
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/*--bg-color: #131313;
|
--bg-color: #1f3b5c; /* deep steel blue */
|
||||||
--txt-color: #FFF;
|
--txt-color: #eef2f7; /* soft white */
|
||||||
--a: #D2C291;
|
--a: #7fb3e8; /* link / accent blue */
|
||||||
--a-hover: #AAA;
|
--a-hover: #b9d2ec; /* muted light blue (hover text and meta text) */
|
||||||
--border-color: #444;
|
--border-color: #3a587d; /* subtle border / panel */
|
||||||
--font: Manrope, sans-serif;*/
|
|
||||||
--bg-color: #38629F;
|
|
||||||
--txt-color: #FFF;
|
|
||||||
--a: #DDD;
|
|
||||||
--a-hover: #AAA;
|
|
||||||
--border-color: #FFF;
|
|
||||||
--font: Manrope, sans-serif;
|
--font: Manrope, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
margin: 0;
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
font-family: var(--font);
|
|
||||||
color: var(--txt-color);
|
color: var(--txt-color);
|
||||||
|
font-family: var(--font);
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
letter-spacing: .08rem;
|
letter-spacing: .08rem;
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -45,35 +42,39 @@ a {
|
|||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: var(--a-hover);
|
color: var(--a-hover);
|
||||||
/*text-decoration: underline dotted .1rem;*/
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-class a, .entry-title a { text-decoration: none; }
|
/* Header */
|
||||||
|
|
||||||
.header-menu-class a:hover, .entry-title a:hover { text-decoration: underline solid .05rem; }
|
|
||||||
|
|
||||||
header {
|
header {
|
||||||
border-color: var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
border-style: solid;
|
|
||||||
border-width: 0 0 1px 0;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
header nav, .entry-title, .entry-meta, div.pagination {
|
header nav,
|
||||||
|
.entry-title,
|
||||||
|
.entry-meta,
|
||||||
|
div.pagination {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 1024px;
|
max-width: 1024px;
|
||||||
/*position: relative;*/
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nav-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
column-gap: 1rem;
|
||||||
|
align-items: center;
|
||||||
|
padding: 1.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
font-size: 1.2rem;
|
|
||||||
width: 20rem;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto auto;
|
grid-template-columns: auto auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
width: 20rem;
|
||||||
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo a {
|
.logo a {
|
||||||
@@ -86,24 +87,18 @@ header nav, .entry-title, .entry-meta, div.pagination {
|
|||||||
height: 4rem;
|
height: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo span { padding: 0 0 0 1rem; }
|
.logo span {
|
||||||
|
padding: 0 0 0 1rem;
|
||||||
#nav-grid {
|
|
||||||
grid-template-columns: auto 1fr;
|
|
||||||
column-gap: 1rem;
|
|
||||||
align-items: center;
|
|
||||||
display: grid;
|
|
||||||
padding: 1.5rem 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-class, .rss-feed {
|
.header-menu-class,
|
||||||
|
.rss-feed {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
/*position: absolute;
|
|
||||||
right: 1rem;*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-class ul, .rss-feed ul {
|
.header-menu-class ul,
|
||||||
|
.rss-feed ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -111,19 +106,20 @@ header nav, .entry-title, .entry-meta, div.pagination {
|
|||||||
|
|
||||||
.header-menu-class li { float: left; }
|
.header-menu-class li { float: left; }
|
||||||
|
|
||||||
.rss-feed li {
|
|
||||||
padding: 1rem 0 0 0;
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-menu-class li a {
|
.header-menu-class li a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rss-feed span { color: var(--a-hover); }
|
.header-menu-class a,
|
||||||
|
.entry-title a { text-decoration: none; }
|
||||||
|
|
||||||
.entry-title, .entry-meta/*, .rss-title*/ { text-align: center; }
|
.header-menu-class a:hover,
|
||||||
|
.entry-title a:hover { text-decoration: underline solid .05rem; }
|
||||||
|
|
||||||
|
/* Entries */
|
||||||
|
.entry-title,
|
||||||
|
.entry-meta { text-align: center; }
|
||||||
|
|
||||||
.entry-title {
|
.entry-title {
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
@@ -133,18 +129,13 @@ header nav, .entry-title, .entry-meta, div.pagination {
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rss-title {
|
.entry-title.search { padding: 2rem 1rem 0 1rem; }
|
||||||
font-size: 2rem;
|
|
||||||
font-weight: normal;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.entry-title a, .author a { color: var(--txt-color); }
|
.entry-title a,
|
||||||
.entry-title a:hover, .author a:hover { color: var(--a-hover) !important; }
|
.author a { color: var(--txt-color); }
|
||||||
|
|
||||||
.entry-title.search {
|
.entry-title a:hover,
|
||||||
padding: 2rem 1rem 0 1rem;
|
.author a:hover { color: var(--a-hover) !important; }
|
||||||
}
|
|
||||||
|
|
||||||
.entry-meta p {
|
.entry-meta p {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
@@ -152,9 +143,11 @@ header nav, .entry-title, .entry-meta, div.pagination {
|
|||||||
padding: .5rem 0;
|
padding: .5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date, .categories { color: var(--a-hover) }
|
.date,
|
||||||
|
.categories { color: var(--a-hover); }
|
||||||
|
|
||||||
.entry-content, .rss-feed {
|
.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;
|
||||||
@@ -163,12 +156,32 @@ header nav, .entry-title, .entry-meta, div.pagination {
|
|||||||
|
|
||||||
.rss-feed { padding: 1rem; }
|
.rss-feed { padding: 1rem; }
|
||||||
|
|
||||||
.entry-content p, .wp-block-image, .wp-block-file, .bbp-breadcrumb p { margin: 1rem 0; }
|
.rss-title {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-file a, .entry-content a { text-decoration: underline solid .05rem; }
|
.rss-feed li {
|
||||||
.wp-block-file a:hover, .entry-content a:hover { text-decoration: none; }
|
padding: 1rem 0 0 0;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
.wp-block-image img, .alignnone {
|
.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%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
@@ -180,30 +193,44 @@ blockquote {
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2026-03-05 */
|
/* File block */
|
||||||
a.wp-block-file__button { display: none; }
|
a.wp-block-file__button { display: none; }
|
||||||
|
|
||||||
/* table */
|
.is-vertical .wp-block-file { margin: -.2rem 0 0 1.2rem; }
|
||||||
|
|
||||||
|
/* Table block */
|
||||||
.wp-block-table { margin: 1rem 0; }
|
.wp-block-table { margin: 1rem 0; }
|
||||||
.has-fixed-layout { border-collapse: collapse; border-spacing: 0; width: 100%; display: table; }
|
|
||||||
.has-fixed-layout td, .has-fixed-layout th { padding: .5rem; display: table-cell; text-align: left; vertical-align: top; }
|
.has-fixed-layout {
|
||||||
.has-fixed-layout th:first-child, .has-fixed-layout td:first-child { /*padding-left:16px;*/ }
|
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); }
|
.has-fixed-layout tr { border-bottom: 1px solid var(--border-color); }
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
padding: .5rem 0;
|
padding: .5rem 0;
|
||||||
}
|
}
|
||||||
/* end: table */
|
|
||||||
|
|
||||||
/* youtube */
|
/* Embed block (16:9 responsive wrapper) */
|
||||||
.wp-block-embed { margin: 1rem 0; }
|
.wp-block-embed { margin: 1rem 0; }
|
||||||
|
|
||||||
.wp-block-embed__wrapper {
|
.wp-block-embed__wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 56.25%; /* 16:9 aspect ratio */
|
|
||||||
height: 0;
|
height: 0;
|
||||||
|
padding-bottom: 56.25%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,49 +242,39 @@ figcaption {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
/* end: youtube */
|
|
||||||
|
|
||||||
/* heding */
|
/* Heading block */
|
||||||
.wp-block-heading {
|
.wp-block-heading {
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
font-weight: normal !important;
|
font-weight: normal !important;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2026-03-05 */
|
|
||||||
h3.wp-block-heading { font-size: inherit; }
|
h3.wp-block-heading { font-size: inherit; }
|
||||||
/* end: heading */
|
|
||||||
|
|
||||||
/* list */
|
/* List block */
|
||||||
.wp-block-list {
|
.wp-block-list {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
padding: 0 0 0 1.5rem;
|
padding: 0 0 0 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2026-03-05 */
|
.entry-content ol.wp-block-list li,
|
||||||
.entry-content ol.wp-block-list li, .entry-content ul.wp-block-list li { margin: 0 0 .4rem 0; }
|
.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; }
|
.entry-content ol.wp-block-list li ul.wp-block-list,
|
||||||
/* end: list */
|
.entry-content ul.wp-block-list li ul.wp-block-list { margin: -.4rem 0 .4rem 0; }
|
||||||
|
|
||||||
/* 2026-03-05 fikse liste med filer */
|
/* Details block */
|
||||||
.is-vertical .wp-block-file { margin: -.2rem 0 0 1.2rem; }
|
|
||||||
|
|
||||||
/* details */
|
|
||||||
.wp-block-details { margin: 1rem 0; }
|
.wp-block-details { margin: 1rem 0; }
|
||||||
|
|
||||||
.wp-block-details p { margin: .5rem 0 1rem 0; }
|
.wp-block-details p { margin: .5rem 0 1rem 0; }
|
||||||
/* end: details */
|
|
||||||
|
|
||||||
h2.screen-reader-text { display: none; }
|
|
||||||
|
|
||||||
|
/* Pagination */
|
||||||
div.pagination {
|
div.pagination {
|
||||||
max-width: 640px;
|
max-width: 640px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
/*padding: 1rem !important;*/
|
|
||||||
/*padding: 1rem 1rem .5rem 1rem !important;*/
|
|
||||||
margin: .5rem auto 0 auto;
|
margin: .5rem auto 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -272,44 +289,52 @@ div.pagination {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-numbers.current { color: var(--a) }
|
.page-numbers.current { color: var(--a); }
|
||||||
|
|
||||||
.pagination .next {
|
.pagination .next {
|
||||||
order: 3;
|
order: 3;
|
||||||
min-width: 3rem;
|
min-width: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Search */
|
||||||
.search-container {
|
.search-container {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
margin: .5rem auto 1rem auto;
|
margin: .5rem auto 1rem auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-container input[type=search], .entry-content input[type=password], .bbp-search-form input[type=text] {
|
.search-container input[type=search],
|
||||||
font-size: 1rem;
|
.entry-content input[type=password],
|
||||||
border: none;
|
.bbp-search-form input[type=text] {
|
||||||
|
float: inline-start;
|
||||||
width: calc(640px - 8rem);
|
width: calc(640px - 8rem);
|
||||||
margin: 0 0 0 1rem;
|
margin: 0 0 0 1rem;
|
||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
float: inline-start;
|
border: none;
|
||||||
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-content input[type=password] {
|
.entry-content input[type=password] {
|
||||||
float: unset;
|
float: unset;
|
||||||
margin: 0;
|
|
||||||
width: auto;
|
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] {
|
.search-container button,
|
||||||
background: var(--a-hover);
|
.entry-content input[type=submit],
|
||||||
font-size: 1rem;
|
.submit button#bbp_user_edit_submit[type=submit],
|
||||||
border: none;
|
.bbp-submit-wrapper button#bbp_reply_submit[type=submit],
|
||||||
cursor: pointer;
|
.bbp-submit-wrapper button#bbp_topic_submit[type=submit] {
|
||||||
width: 6rem;
|
width: 6rem;
|
||||||
margin: 0 1rem 0 0;
|
margin: 0 1rem 0 0;
|
||||||
padding: .5rem 1rem;
|
padding: .5rem 1rem;
|
||||||
|
border: none;
|
||||||
|
background: var(--a);
|
||||||
|
color: var(--bg-color);
|
||||||
|
font-size: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* footer */
|
/* Footer */
|
||||||
footer { border-top: 1px solid var(--border-color); }
|
footer { border-top: 1px solid var(--border-color); }
|
||||||
|
|
||||||
.footer-logo {
|
.footer-logo {
|
||||||
@@ -317,20 +342,15 @@ footer { border-top: 1px solid var(--border-color); }
|
|||||||
padding: 1rem 0 .5rem 0;
|
padding: 1rem 0 .5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#logout {
|
#logout,
|
||||||
margin: auto;
|
|
||||||
width: fit-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
#org-nr {
|
#org-nr {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
#org-nr p { margin: .5rem 0 1rem 0; }
|
#org-nr p { margin: .5rem 0 1rem 0; }
|
||||||
/* end: footer */
|
|
||||||
|
|
||||||
/* Slideshow */
|
/* Super Simple Slideshow */
|
||||||
.super-simple-slideshow {
|
.super-simple-slideshow {
|
||||||
max-width: 640px;
|
max-width: 640px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@@ -348,29 +368,27 @@ 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; }
|
||||||
/* end: slideshow */
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
#nav-grid { grid-template-columns: 1fr; }
|
|
||||||
.header-menu-class {
|
|
||||||
margin: 0;
|
|
||||||
padding: 1.5rem 0 0 0;
|
|
||||||
position: unset;
|
|
||||||
}
|
|
||||||
.header-menu-class li {
|
|
||||||
float: unset;
|
|
||||||
}
|
|
||||||
.header-menu-class a {
|
|
||||||
padding: .5rem 0 !important;
|
|
||||||
}
|
|
||||||
.search-container input[type=search] {
|
|
||||||
width: calc(100vw - 8rem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* bbPress */
|
/* 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; }
|
.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] {
|
.bbp-search-form input[type=text] {
|
||||||
width: calc(100% - 6rem);
|
width: calc(100% - 6rem);
|
||||||
@@ -379,68 +397,80 @@ footer { border-top: 1px solid var(--border-color); }
|
|||||||
|
|
||||||
#bbp_search_submit { margin: 0; }
|
#bbp_search_submit { margin: 0; }
|
||||||
|
|
||||||
.bbp-breadcrumb a, span.bbp-breadcrumb-current { padding: .5rem .25rem; }
|
.bbp-breadcrumb a,
|
||||||
|
span.bbp-breadcrumb-current { padding: .5rem .25rem; }
|
||||||
|
|
||||||
.bbp-breadcrumb a.bbp-breadcrumb-root { padding: .5rem .25rem .5rem 0; }
|
.bbp-breadcrumb a.bbp-breadcrumb-root { padding: .5rem .25rem .5rem 0; }
|
||||||
|
|
||||||
/* bbPress-table */
|
/* bbPress tables */
|
||||||
.bbp-forums, .bbp-topics {
|
.bbp-forums,
|
||||||
|
.bbp-topics {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
|
padding: 0;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-header, .bbp-body, .bbp-footer { display: table-row-group; }
|
.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,
|
||||||
|
.bbp-body .forum,
|
||||||
|
.bbp-body .topic { display: table-row; }
|
||||||
|
|
||||||
.bbp-header .forum-titles li, .bbp-body .forum li, .bbp-body .topic li {
|
.bbp-header .forum-titles li,
|
||||||
|
.bbp-body .forum li,
|
||||||
|
.bbp-body .topic li {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-header .forum-titles li {
|
.bbp-header .forum-titles li {
|
||||||
/*font-weight: bold;*/
|
padding: 0 .5rem .5rem .5rem;
|
||||||
font-size: 1rem !important;
|
font-size: 1rem !important;
|
||||||
padding: .0 .5rem .5rem .5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-forum-permalink, .bbp-topic-permalink { font-size: 1rem; }
|
.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 {
|
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;
|
font-size: .8rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-forum-freshness a, .bbp-forum-freshness a:hover, .bbp-topic-freshness a, .bbp-topic-freshness a:hover {
|
.bbp-forum-freshness a,
|
||||||
|
.bbp-forum-freshness a:hover,
|
||||||
|
.bbp-topic-freshness a,
|
||||||
|
.bbp-topic-freshness a:hover {
|
||||||
color: var(--txt-color);
|
color: var(--txt-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
@media (max-width: 768px) { li.bbp-forum-reply-count, li.bbp-topic-reply-count { display: none !important; }}
|
|
||||||
/* end: bbPress-table */
|
|
||||||
|
|
||||||
/* Innleggside*/
|
@media (max-width: 768px) {
|
||||||
#subscription-toggle {
|
li.bbp-forum-reply-count,
|
||||||
/*padding: .5rem .5rem .5rem 0;*/
|
li.bbp-topic-reply-count { display: none !important; }
|
||||||
padding: 0 .5rem 0 0;
|
|
||||||
margin: 0;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.favorite-toggle {
|
/* bbPress topic page */
|
||||||
/* Sjult */
|
#subscription-toggle {
|
||||||
/*padding: 0 .5rem;
|
display: inline-block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: inline-block;*/
|
padding: 0 .5rem 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.forums.bbp-replies {
|
.forums.bbp-replies {
|
||||||
|
margin: 1rem 0 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 1rem 0 0 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-reply-post-date { padding: 0 .5rem 0 0; }
|
.bbp-reply-post-date { padding: 0 .5rem 0 0; }
|
||||||
@@ -454,19 +484,11 @@ p.bbp-forum-meta, .bbp-forum-reply-count, .bbp-forum-freshness, .bbp-forum-conte
|
|||||||
|
|
||||||
.entry-content .forums.bbp-replies { border-top: 1px solid var(--border-color); }
|
.entry-content .forums.bbp-replies { border-top: 1px solid var(--border-color); }
|
||||||
|
|
||||||
.bbp-body .bbp-reply-header {
|
.bbp-body .bbp-reply-header { padding-top: 2rem; }
|
||||||
/*border-top: 1px solid var(--border-color);*/
|
|
||||||
padding-top: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*.bbp-reply-content p {*/
|
.bbp-body .bbp-reply-content { border-bottom: 1px solid var(--border-color); }
|
||||||
.bbp-body .bbp-reply-content {
|
|
||||||
border-bottom: 1px solid var(--border-color);
|
|
||||||
/*padding-bottom: .5rem;*/
|
|
||||||
}
|
|
||||||
/* end: innleggside */
|
|
||||||
|
|
||||||
/* Forumbrukar */
|
/* bbPress user profile */
|
||||||
div#bbp-user-avatar { display: none; }
|
div#bbp-user-avatar { display: none; }
|
||||||
|
|
||||||
.bbp-template-notice {
|
.bbp-template-notice {
|
||||||
@@ -503,8 +525,9 @@ div#bbp-user-avatar { display: none; }
|
|||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Rediger brukar*/
|
/* bbPress forms */
|
||||||
.bbp-form, #bbp-your-profile fieldset.submit {
|
.bbp-form,
|
||||||
|
#bbp-your-profile fieldset.submit {
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
@@ -519,7 +542,10 @@ div#bbp-user-avatar { display: none; }
|
|||||||
margin: .5rem 0;
|
margin: .5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-form input[type="text"], .bbp-form select, .bbp-form input#pass1, .bbp-form input#pass2 {
|
.bbp-form input[type="text"],
|
||||||
|
.bbp-form select,
|
||||||
|
.bbp-form input#pass1,
|
||||||
|
.bbp-form input#pass2 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
@@ -527,14 +553,17 @@ div#bbp-user-avatar { display: none; }
|
|||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-form input[type="text"]:focus, .bbp-form select:focus, .bbp-form input#pass1:focus, .bbp-form input#pass2:focus {
|
.bbp-form input[type="text"]:focus,
|
||||||
border-color: var(--border-color);
|
.bbp-form select:focus,
|
||||||
|
.bbp-form input#pass1:focus,
|
||||||
|
.bbp-form input#pass2:focus {
|
||||||
|
border-color: var(--a);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbp-form select#display_name { /*appearance: none;*/ }
|
.bbp-form textarea#description,
|
||||||
|
.bbp-form textarea#bbp_topic_content,
|
||||||
.bbp-form textarea#description, .bbp-form textarea#bbp_topic_content, .bbp-form textarea#bbp_reply_content {
|
.bbp-form textarea#bbp_reply_content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 8rem;
|
height: 8rem;
|
||||||
}
|
}
|
||||||
@@ -573,16 +602,15 @@ div#bbp-user-avatar { display: none; }
|
|||||||
|
|
||||||
.pw-weak .description { order: 3; }
|
.pw-weak .description { order: 3; }
|
||||||
|
|
||||||
.submit button#bbp_user_edit_submit[type=submit], .bbp-submit-wrapper button#bbp_reply_submit[type=submit] {
|
.submit button#bbp_user_edit_submit[type=submit],
|
||||||
|
.bbp-submit-wrapper button#bbp_reply_submit[type=submit] {
|
||||||
width: auto;
|
width: auto;
|
||||||
margin: .5rem 0 1rem 0;
|
margin: .5rem 0 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bbp-your-profile fieldset.submit { margin: 1rem 0; }
|
#bbp-your-profile fieldset.submit { margin: 1rem 0; }
|
||||||
/* end: rediger brukar */
|
|
||||||
/* end: forum-brukar */
|
|
||||||
|
|
||||||
/* Nytt innlegg */
|
/* bbPress new post */
|
||||||
#new-post .bbp-form { margin: 2rem 0 1rem 0; }
|
#new-post .bbp-form { margin: 2rem 0 1rem 0; }
|
||||||
|
|
||||||
#new-post legend {
|
#new-post legend {
|
||||||
@@ -590,10 +618,27 @@ div#bbp-user-avatar { display: none; }
|
|||||||
font-size: 1.4rem;
|
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; }
|
#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-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; }
|
.bbp-form br { display: none; }
|
||||||
/* end: nytt innlegg */
|
|
||||||
/* end: bbPress */
|
/* Responsive */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#nav-grid { grid-template-columns: 1fr; }
|
||||||
|
|
||||||
|
.header-menu-class {
|
||||||
|
margin: 0;
|
||||||
|
padding: 1.5rem 0 0 0;
|
||||||
|
position: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-menu-class li { float: unset; }
|
||||||
|
|
||||||
|
.header-menu-class a { padding: .5rem 0 !important; }
|
||||||
|
|
||||||
|
.search-container input[type=search] { width: calc(100vw - 8rem); }
|
||||||
|
}
|
||||||
Reference in new issue
Block a user