/* 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, light theme originally built for Taubaneforeningen.no. Includes light styling for bbPress and the Super Simple Slideshow / Super Simple RSS Reader plugins. Version: 3.1.1 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 and forms 9. Footer 10. Super Simple Slideshow 11. Super Simple RSS Reader 12. bbPress 13. Responsive (mobile) ========================================================================== */ /* 1. Colours and typography ================================================ */ :root { /* Light background with soft blue tones and dark text for easy reading. */ --bg-color: #edf3f9; /* page background */ --surface-color: #dbe7f3; /* header and footer */ --field-bg: #ffffff; /* input fields */ --text-color: #1f2933; /* body text */ --muted-color: #4e5d6c; /* secondary text: dates, meta, captions */ --link-color: #0b5fa5; /* links */ --link-hover: #063e6e; /* links on hover */ --border-color: #b9c9d9; /* borders and dividers */ --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; } /* 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(--link-color); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: break-word; word-wrap: break-word; } a:hover { color: var(--link-hover); } /* 4. Header and navigation ================================================= */ header { background-color: var(--surface-color); border-bottom: 1px solid var(--border-color); } /* Shared page container width. */ 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; } .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; } /* Menu */ .header-menu-class { overflow: hidden; margin: auto; } .header-menu-class 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 { text-decoration: none; } .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 =============================================================== */ .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(--text-color); } .entry-title a { text-decoration: none; } .entry-title a:hover, .author a:hover { color: var(--link-hover); } .entry-title a:hover { text-decoration: underline; } .entry-meta p { font-size: 1.2rem; margin: 0; padding: .5rem 0; } .date, .categories { color: var(--muted-color); } .entry-content { max-width: 640px; border-bottom: 1px solid var(--border-color); margin: auto; padding: 0 1rem; } /* 6. Content blocks ======================================================== */ .entry-content p, .wp-block-image, .wp-block-file, .bbp-breadcrumb p { margin: 1rem 0; } /* 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; 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); } /* 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; } /* 7. 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(--link-color); } .pagination .next { order: 3; min-width: 3rem; } /* 8. Search and forms ====================================================== */ /* Form fields are white so they stand out from the tinted page background. */ input[type=text], input[type=search], input[type=password], input[type=email], input[type=url], select, textarea { background-color: var(--field-bg); color: var(--text-color); } .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: 1px solid var(--border-color); font-size: 1rem; } .entry-content input[type=password] { float: unset; width: auto; margin: 0; } /* Buttons */ .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(--button-bg); color: var(--button-text); font-size: 1rem; cursor: pointer; } /* 9. Footer ================================================================ */ footer { background-color: var(--surface-color); border-top: 1px solid var(--border-color); /* Bottom padding keeps the last child's margin inside the footer, so the footer colour reaches the very bottom of the page. */ padding-bottom: 1rem; } .footer-logo { margin: auto; padding: 1rem 0 .5rem 0; } #logout, #org-nr { margin: auto; width: fit-content; } #org-nr p { margin: .5rem 0 0 0; } /* 10. 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; } /* 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, .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; } /* 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; } #bbp_search_submit { margin: 0; } /* Forum and topic 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: .9rem; margin: 0; } .bbp-forum-freshness a, .bbp-forum-freshness a:hover, .bbp-topic-freshness a, .bbp-topic-freshness a:hover { color: var(--text-color); text-decoration: none; cursor: default; } /* Topic page */ #subscription-toggle { display: inline-block; margin: 0; padding: 0 .5rem 0 0; } .forums.bbp-replies { margin: 1rem 0 0 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-admin-links a { padding: 0 .25rem; } .bbp-reply-author { margin: 1rem 0; font-size: 1.4rem; } .bbp-body .bbp-reply-header { padding-top: 2rem; } .bbp-body .bbp-reply-content { border-bottom: 1px solid var(--border-color); } /* 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; } /* 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(--link-color); 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(--text-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; } /* New post / reply */ #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; } /* 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; } /* 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(--text-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(--link-color); 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 */ .search-container input[type=search] { width: calc(100vw - 8rem); } /* bbPress */ li.bbp-forum-reply-count, li.bbp-topic-reply-count { display: none !important; } }