diff --git a/style.css b/style.css index 9fd13f0..2616759 100644 --- a/style.css +++ b/style.css @@ -1,35 +1,32 @@ /* -Theme Name: NTKF -Theme URI: http://sondreolav.com/ +Theme Name: Super Simple WordPress Theme +Theme URI: https://gitea.sondreolav.com/ai-bot/super-simple-wp-theme Author: sondreolav -Author URI: http://sondreolav.com/ -Description: Eit tema tilpassa for Taubaneforeningen.no -Version: 1.0 +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.0.0 +Requires at least: 5.0 +Requires PHP: 7.0 +Text Domain: super-simple-wp-theme */ :root { - /*--bg-color: #131313; - --txt-color: #FFF; - --a: #D2C291; - --a-hover: #AAA; - --border-color: #444; - --font: Manrope, sans-serif;*/ - --bg-color: #38629F; - --txt-color: #FFF; - --a: #DDD; - --a-hover: #AAA; - --border-color: #FFF; + --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); - font-family: var(--font); color: var(--txt-color); + font-family: var(--font); font-size: 1.1rem; line-height: 1.5; letter-spacing: .08rem; - margin: 0; } * { @@ -45,35 +42,39 @@ a { a:hover { color: var(--a-hover); - /*text-decoration: underline dotted .1rem;*/ text-decoration: none; } -.header-menu-class a, .entry-title a { text-decoration: none; } - -.header-menu-class a:hover, .entry-title a:hover { text-decoration: underline solid .05rem; } - +/* Header */ header { - border-color: var(--border-color); - border-style: solid; - border-width: 0 0 1px 0; + border-bottom: 1px solid var(--border-color); align-items: center; } -header nav, .entry-title, .entry-meta, div.pagination { +header nav, +.entry-title, +.entry-meta, +div.pagination { width: 100%; max-width: 1024px; - /*position: relative;*/ margin: auto; padding: 0 1rem; } +#nav-grid { + display: grid; + grid-template-columns: auto 1fr; + column-gap: 1rem; + align-items: center; + padding: 1.5rem 0; +} + .logo { - font-size: 1.2rem; - width: 20rem; display: grid; grid-template-columns: auto auto; align-items: center; + width: 20rem; + font-size: 1.2rem; } .logo a { @@ -86,24 +87,18 @@ header nav, .entry-title, .entry-meta, div.pagination { height: 4rem; } -.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; +.logo span { + padding: 0 0 0 1rem; } -.header-menu-class, .rss-feed { +.header-menu-class, +.rss-feed { overflow: hidden; margin: auto; - /*position: absolute; - right: 1rem;*/ } -.header-menu-class ul, .rss-feed ul { +.header-menu-class ul, +.rss-feed ul { list-style-type: none; margin: 0; padding: 0; @@ -111,19 +106,20 @@ header nav, .entry-title, .entry-meta, div.pagination { .header-menu-class li { float: left; } -.rss-feed li { - padding: 1rem 0 0 0; - line-height: 1.2; -} - .header-menu-class li a { display: block; 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 { font-size: 3rem; @@ -133,18 +129,13 @@ header nav, .entry-title, .entry-meta, div.pagination { word-wrap: break-word; } -.rss-title { - font-size: 2rem; - font-weight: normal; - margin: 0; -} +.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-title a, +.author a { color: var(--txt-color); } -.entry-title.search { - padding: 2rem 1rem 0 1rem; -} +.entry-title a:hover, +.author a:hover { color: var(--a-hover) !important; } .entry-meta p { font-size: 1.2rem; @@ -152,9 +143,11 @@ header nav, .entry-title, .entry-meta, div.pagination { 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; border-bottom: 1px solid var(--border-color); margin: auto; @@ -163,12 +156,32 @@ header nav, .entry-title, .entry-meta, div.pagination { .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; } -.wp-block-file a:hover, .entry-content a:hover { text-decoration: none; } +.rss-feed li { + 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%; height: auto; } @@ -180,30 +193,44 @@ blockquote { font-style: italic; } -/* 2026-03-05 */ +/* File block */ 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; } -.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 th:first-child, .has-fixed-layout td:first-child { /*padding-left:16px;*/ } + +.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; } -/* end: table */ -/* youtube */ +/* Embed block (16:9 responsive wrapper) */ .wp-block-embed { margin: 1rem 0; } .wp-block-embed__wrapper { position: relative; width: 100%; - padding-bottom: 56.25%; /* 16:9 aspect ratio */ height: 0; + padding-bottom: 56.25%; overflow: hidden; } @@ -215,49 +242,39 @@ figcaption { height: 100%; border: 0; } -/* end: youtube */ -/* heding */ +/* Heading block */ .wp-block-heading { font-size: 2.5rem; font-weight: normal !important; margin: 1rem 0; } -/* 2026-03-05 */ h3.wp-block-heading { font-size: inherit; } -/* end: heading */ -/* list */ +/* List block */ .wp-block-list { margin: 1rem 0; padding: 0 0 0 1.5rem; } -/* 2026-03-05 */ -.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, +.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; } -/* end: list */ +.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; } -/* 2026-03-05 fikse liste med filer */ -.is-vertical .wp-block-file { margin: -.2rem 0 0 1.2rem; } - -/* details */ +/* Details block */ .wp-block-details { margin: 1rem 0; } .wp-block-details p { margin: .5rem 0 1rem 0; } -/* end: details */ - -h2.screen-reader-text { display: none; } +/* Pagination */ div.pagination { max-width: 640px; display: flex; justify-content: center; align-items: center; - /*padding: 1rem !important;*/ - /*padding: 1rem 1rem .5rem 1rem !important;*/ margin: .5rem auto 0 auto; } @@ -272,44 +289,52 @@ div.pagination { text-align: center; } -.page-numbers.current { color: var(--a) } +.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] { - font-size: 1rem; - border: none; +.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; - float: inline-start; + border: none; + font-size: 1rem; } .entry-content input[type=password] { float: unset; - margin: 0; 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] { - background: var(--a-hover); - font-size: 1rem; - border: none; - cursor: pointer; +.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 */ footer { border-top: 1px solid var(--border-color); } .footer-logo { @@ -317,20 +342,15 @@ footer { border-top: 1px solid var(--border-color); } padding: 1rem 0 .5rem 0; } -#logout { - margin: auto; - width: fit-content; -} - +#logout, #org-nr { margin: auto; width: fit-content; } #org-nr p { margin: .5rem 0 1rem 0; } -/* end: footer */ -/* Slideshow */ +/* Super Simple Slideshow */ .super-simple-slideshow { max-width: 640px; margin: auto; @@ -348,29 +368,27 @@ footer { border-top: 1px solid var(--border-color); } } .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 */ - -.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; } +/* 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); @@ -379,68 +397,80 @@ footer { border-top: 1px solid var(--border-color); } #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; } -/* bbPress-table */ -.bbp-forums, .bbp-topics { - display: table; - width: 100%; - padding: 0; - margin: 1rem 0; - border-collapse: collapse; +/* 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, +.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 { - display: table-cell; - padding: .5rem; - border-bottom: 1px solid var(--border-color); +.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 { - /*font-weight: bold;*/ + padding: 0 .5rem .5rem .5rem; 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; 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); text-decoration: none; cursor: default; } -@media (max-width: 768px) { li.bbp-forum-reply-count, li.bbp-topic-reply-count { display: none !important; }} -/* end: bbPress-table */ -/* Innleggside*/ -#subscription-toggle { - /*padding: .5rem .5rem .5rem 0;*/ - padding: 0 .5rem 0 0; - margin: 0; - display: inline-block; +@media (max-width: 768px) { + li.bbp-forum-reply-count, + li.bbp-topic-reply-count { display: none !important; } } -.favorite-toggle { - /* Sjult */ - /*padding: 0 .5rem; +/* bbPress topic page */ +#subscription-toggle { + display: inline-block; margin: 0; - display: inline-block;*/ + padding: 0 .5rem 0 0; } .forums.bbp-replies { + margin: 1rem 0 0 0; padding: 0; - margin: 1rem 0 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); } -.bbp-body .bbp-reply-header { - /*border-top: 1px solid var(--border-color);*/ - padding-top: 2rem; -} +.bbp-body .bbp-reply-header { padding-top: 2rem; } -/*.bbp-reply-content p {*/ -.bbp-body .bbp-reply-content { - border-bottom: 1px solid var(--border-color); - /*padding-bottom: .5rem;*/ -} -/* end: innleggside */ +.bbp-body .bbp-reply-content { border-bottom: 1px solid var(--border-color); } -/* Forumbrukar */ +/* bbPress user profile */ div#bbp-user-avatar { display: none; } .bbp-template-notice { @@ -503,8 +525,9 @@ div#bbp-user-avatar { display: none; } margin: 1rem 0; } -/* Rediger brukar*/ -.bbp-form, #bbp-your-profile fieldset.submit { +/* bbPress forms */ +.bbp-form, +#bbp-your-profile fieldset.submit { border: 1px solid var(--border-color); padding: 0 1rem; margin: 1rem 0; @@ -519,7 +542,10 @@ div#bbp-user-avatar { display: none; } 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%; padding: 10px; border: 1px solid var(--border-color); @@ -527,14 +553,17 @@ div#bbp-user-avatar { display: none; } 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(--border-color); +.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 select#display_name { /*appearance: none;*/ } - -.bbp-form textarea#description, .bbp-form textarea#bbp_topic_content, .bbp-form textarea#bbp_reply_content { +.bbp-form textarea#description, +.bbp-form textarea#bbp_topic_content, +.bbp-form textarea#bbp_reply_content { width: 100%; height: 8rem; } @@ -573,27 +602,43 @@ div#bbp-user-avatar { display: none; } .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; margin: .5rem 0 1rem 0; } #bbp-your-profile fieldset.submit { margin: 1rem 0; } -/* end: rediger brukar */ -/* end: forum-brukar */ -/* Nytt innlegg */ -#new-post .bbp-form { margin: 2rem 0 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; } +#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; } -/* end: nytt innlegg */ -/* end: bbPress */ +.bbp-form br { display: none; } + +/* 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); } +}