From 276a1fd2c94ca7bef3ebf5658914a57785e6e14e Mon Sep 17 00:00:00 2001 From: Vrifox Date: Wed, 30 Dec 2020 20:43:11 +0100 Subject: [PATCH] modifications for wordpress' 2021 theme; moved 2020 modifications to legacy --- _legacy/wordpress 2020/blog.natenom.com.scss | 18 + _legacy/wordpress 2020/import/blog-meta.scss | 22 + _legacy/wordpress 2020/import/blog.scss | 512 ++++++++++++++++++ scss/import/blog-meta.scss | 29 +- scss/import/blog.scss | 542 +++---------------- scss/import/nom_globaltopbar.scss | 16 +- 6 files changed, 641 insertions(+), 498 deletions(-) create mode 100644 _legacy/wordpress 2020/blog.natenom.com.scss create mode 100644 _legacy/wordpress 2020/import/blog-meta.scss create mode 100644 _legacy/wordpress 2020/import/blog.scss diff --git a/_legacy/wordpress 2020/blog.natenom.com.scss b/_legacy/wordpress 2020/blog.natenom.com.scss new file mode 100644 index 0000000..442d50a --- /dev/null +++ b/_legacy/wordpress 2020/blog.natenom.com.scss @@ -0,0 +1,18 @@ + +// +// settings +// + +$type: blog; + +// +// import +// + +@import 'import/colors.scss'; + +@import 'import/blog-meta.scss'; +@import 'import/edit-warning.scss'; +@import 'import/blog.scss'; + +@import 'import/nom_globaltopbar.scss'; // @natenom: remove this to disable globaltopbar diff --git a/_legacy/wordpress 2020/import/blog-meta.scss b/_legacy/wordpress 2020/import/blog-meta.scss new file mode 100644 index 0000000..b9f3330 --- /dev/null +++ b/_legacy/wordpress 2020/import/blog-meta.scss @@ -0,0 +1,22 @@ +/* +Theme Name: Twenty Twenty Child +Text Domain: twentytwenty-child +Template: twentytwenty +Version: 1.0 +Requires at least: 4.7 +Requires PHP: 5.2.4 +Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors. +Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready +Author: the WordPress team +Author URI: https://wordpress.org/ +Theme URI: https://wordpress.org/themes/twentytwenty/ +License: GNU General Public License v2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +All files, unless otherwise stated, are released under the GNU General Public +License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) + +This theme, like WordPress, is licensed under the GPL. +Use it to make something cool, have fun, and share what you've learned +with others. +*/ diff --git a/_legacy/wordpress 2020/import/blog.scss b/_legacy/wordpress 2020/import/blog.scss new file mode 100644 index 0000000..e852961 --- /dev/null +++ b/_legacy/wordpress 2020/import/blog.scss @@ -0,0 +1,512 @@ + +// +// main +// + +body { + position: relative; + h1, + h2 { + font-size: 3rem !important; // smaller + } + h3 { + font-size: 2.5rem !important; // smaller + } + h4 { + font-size: 2rem !important; // smaller + } + h5 { + font-size: 1.5rem !important; // smaller + } + header { + .header-inner { + .header-navigation-wrapper { + nav.primary-menu-wrapper { + ul.primary-menu { + li.menu-item { + a { + color: $nom-blue-light !important; + } + } + } + } + } + } + } + .menu-modal { + .menu-modal-inner { + .menu-wrapper { + .menu-top, + .menu-bottom { + nav.expanded-menu, + nav.mobile-menu { + ul.modal-menu { + li.menu-item { + .ancestor-wrapper { + a { + color: $nom-blue-light !important; + } + } + } + } + } + } + } + } + } + main { + article { + header.entry-header { + padding-bottom: 40px; // Abstand zw. Artikelbildern und Überschrit verkleinern + .entry-header-inner { + .entry-categories { + .entry-categories-inner { + a { + color: $nom-blue-light; + } + } + } + .post-meta-wrapper { + ul.post-meta { + li.post-author { + display: none; // Autor im Beitragsheader ausblenden + } + } + } + } + } + .featured-media { + margin-top: 0; + .featured-media-inner { + .wp-caption-text { + display: none; // Bildbeschreibungen nur unter Artikelbildern werden ausgeblendet + } + } + } + .post-inner { + padding-top: 40px; // Abstand zw. Artikelbildern und Inhalt verkleinern + .entry-content { + a { + color: $nom-blue-light !important; + } + .wp-block-quote { + border-color: $nom-blue-light; + } + .wp-block-image { + margin: 40px auto; + } + .read-more-button-wrap { + a.more-link { + .faux-button { // Button: "Weiterlesen" + background: $nom-blue; + color: rgb(245, 245, 255); + font-weight: initial; + padding: 10px 40px; // Groesse aendern + text-transform: none; // nicht unterstrichen + transition: background .2s; + &:hover { + text-decoration: none; + background: $nom-blue-dark; + } + } + } + } + } + } + } + .pagination-wrapper { + nav.pagination { + .nav-links { + a { + color: $nom-blue-light; + } + } + } + } + } + .footer-nav-widgets-wrapper { + .footer-inner { + .footer-menu-wrapper { + .footer-menu { + .menu-item { + a { + color: $nom-blue-light !important; + } + } + } + } + .footer-widgets-outer-wrapper { + .footer-widgets-wrapper { + .footer-widgets { + .widget.widget_tag_cloud { + .widget-content { + .tagcloud { + a.tag-cloud-link { + color: $grey !important; + } + } + } + } + .widget_nav_menu { + .widget-content { + .menu-datenschutz-impressum-faq-container { + .menu { + .menu-item { + a { + color: $nom-blue-light !important; + } + } + } + } + } + } + .widget_archive { + .widget-content { + select { + background: rgb(58, 66, 89); + border: 0; + color: rgb(245, 245, 255); + padding: 5px 10px; + } + } + } + } + } + } + } + } +} + +// +// article / post +// + +body.post-template, +body.post-template-default { + main { + article.post { + .post-inner { + .entry-content { + .yarpp-related { + margin: 3em auto 0 auto !important; + ol { + color: rgb(155, 155, 170); + list-style: none; + margin: 0; + li { + border-bottom: 1px solid rgb(53, 59, 68); + margin: 15px 0; + a { + font-weight: normal !important; + } + } + } + } + } + .post-meta-wrapper { + .post-meta { + .post-tags { + .meta-text { + color: $grey !important; + } + } + } + } + } + .pagination-single { + .pagination-single-inner { + .previous-post, + .next-post { + color: $nom-blue-light !important; + } + } + } + .comments-wrapper { + .comments { + .comments-inner { + article.comment-body { + footer.comment-footer-meta { + .comment-reply { + a.comment-reply-link { // Button: "Kommentieren" + background: $nom-blue ; + color: rgb(245, 245, 255); + font-weight: initial; + text-transform: none; + transition: background .2s; + &:hover { + background: $nom-blue-dark; + text-decoration: none; + } + } + } + } + } + } + } + .comment-respond { + .section-inner { + .comment-form-comment { + textarea#comment { + background: rgb(37, 45, 57); + border: 0; + color: rgb(255, 255, 255); + } + } + .comment-form-author, + .comment-form-email, + .comment-form-url { + input { + &#author, + &#email, + &#url { + background: rgb(37, 45, 57); + border: 0; + color: rgb(255, 255, 255); + } + } + } + .form-submit { + .submit { // Button "Kommentar abschicken" + background: $nom-blue; + color: rgb(245, 245, 255); + font-weight: initial; + padding: 10px 40px; // Groesse aendern + text-transform: none; // nicht unterstrichen + transition: background .2s; + &:hover { + background: $nom-blue-dark; + text-decoration: none; + } + } + } + } + } + } + } + } +} + +// +// article / post: cover template +// + +body.post-template.template-cover { + header { + .header-inner { + .header-navigation-wrapper { + nav.primary-menu-wrapper { + ul.primary-menu { + li.menu-item { + a { + color: rgb(255, 255, 255) !important; + } + } + } + } + } + } + } + main { + article.post { + .cover-header { + background-position: center -182.5px; + .cover-header-inner-wrapper { + min-height: 60vh; // Cover Hoehe bei Cover Template nur noch 6/10 statt 10/10 + .cover-header-inner { + .cover-color-overlay { + color: rgb(37, 45, 57); // Cover-Farbe (falls kein Hex-Code angegeben werden kann) + } + header.entry-header { + .entry-header-inner { + .entry-categories { + .entry-categories-inner { + a { + color: rgb(255, 255, 255); + } + } + } + } + } + } + } + } + .post-inner { + padding-top: 40px; + } + } + } +} + +// +// page (e.g. https://blog.natenom.com/natenom/) +// + +body.page-template { + +} + +// +// category (e.g. https://blog.natenom.com/category/allgemein/) +// + +body.category { + +} + +// +// tag (e.g. https://blog.natenom.com/tag/fahrrad/) +// + +body.tag { + +} + +// +// archive (e.g. https://blog.natenom.com/2020/08/) +// + +body.archive { + main { + header.archive-header { + .archive-header-inner { + h1.archive-title { + .color-accent { + color: rgb(255, 255, 255); + } + } + } + } + } +} + +// +// error pages (e.g. https://blog.natenom.com/errorpages/errorpages) +// + +body.error404 { + main { + .error404-content { + form.search-form { + label { + input.search-field { + background: rgb(37, 45, 57); + border: 0; + color: rgb(255, 255, 255); + } + } + input.search-submit { + background: $nom-blue; + color: rgb(245, 245, 255); + font-weight: initial; + margin-left: 0; + text-transform: none; + transition: background .2s; + &:hover { + background: $nom-blue-dark; + text-decoration: none; + } + } + } + } + } +} + +// +// search results (e.g. https://blog.natenom.com/?s=search) +// + +body.search-results { + main { + header.archive-header { + .archive-header-inner { + h1.archive-title { + .color-accent { + color: rgb(255, 255, 255); + } + } + } + } + } +} + +// +// search no-results (e.g. https://blog.natenom.com/?s=searchdddddd) +// + +body.search-no-results { + main { + header.archive-header { + .archive-header-inner { + h1.archive-title { + .color-accent { + color: rgb(255, 255, 255); + } + } + } + } + .no-search-results-form { + form.search-form { + label { + input.search-field { + background: rgb(37, 45, 57); + border: 0; + color: rgb(255, 255, 255); + } + } + input.search-submit { + background: $nom-blue; + color: rgb(245, 245, 255); + font-weight: initial; + margin-left: 0; + text-transform: none; + transition: background .2s; + &:hover { + background: $nom-blue-dark; + text-decoration: none; + } + } + } + } + } +} + +// +// lightbox plugin +// + +#slb_viewer_wrap { + #slb_viewer_slb_default { + .slb_viewer_layout { + .slb_container { + padding: 0 !important; // kein Rand + box-shadow: none !important; // kein »glow« bzw. Schatten + .slb_details { + .inner { + .slb_data { + .slb_data_content { + .slb_data_title { + font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif; + font-size: 16px; + font-weight: 500; + letter-spacing: 0; + margin: 10px 10px 0px 10px; // gleichmaessiger Rand + } + } + } + } + } + } + } + } +} + + +// +// wp-admin +// + +body { + #wpadminbar { + position: sticky; + } +} diff --git a/scss/import/blog-meta.scss b/scss/import/blog-meta.scss index b9f3330..309f8ae 100644 --- a/scss/import/blog-meta.scss +++ b/scss/import/blog-meta.scss @@ -1,22 +1,19 @@ /* -Theme Name: Twenty Twenty Child -Text Domain: twentytwenty-child -Template: twentytwenty -Version: 1.0 -Requires at least: 4.7 -Requires PHP: 5.2.4 -Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors. -Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready -Author: the WordPress team +Theme Name: Twenty Twenty-One +Theme URI: https://wordpress.org/themes/twentytwentyone/ +Author: Natenom Author URI: https://wordpress.org/ -Theme URI: https://wordpress.org/themes/twentytwenty/ +Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog. +Template: twentytwentyone +Requires at least: 5.3 +Tested up to: 5.6 +Requires PHP: 5.6 +Version: 1.1 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html +Text Domain: twentytwentyone_child +Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready -All files, unless otherwise stated, are released under the GNU General Public -License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) - -This theme, like WordPress, is licensed under the GPL. -Use it to make something cool, have fun, and share what you've learned -with others. +Twenty Twenty-One WordPress Theme, (C) 2020 WordPress.org +Twenty Twenty-One is distributed under the terms of the GNU GPL. */ diff --git a/scss/import/blog.scss b/scss/import/blog.scss index e852961..737e603 100644 --- a/scss/import/blog.scss +++ b/scss/import/blog.scss @@ -1,172 +1,23 @@ -// -// main -// +// :root + +:root { + --global--color-dark-gray: #{$blog_body-bg} !important; +} + +// general body { - position: relative; - h1, - h2 { - font-size: 3rem !important; // smaller - } - h3 { - font-size: 2.5rem !important; // smaller - } - h4 { - font-size: 2rem !important; // smaller - } - h5 { - font-size: 1.5rem !important; // smaller - } - header { - .header-inner { - .header-navigation-wrapper { - nav.primary-menu-wrapper { - ul.primary-menu { - li.menu-item { + #page { + header#masthead { + nav#site-navigation { + .primary-menu-container { + ul#primary-menu-list { + .menu-item { a { - color: $nom-blue-light !important; - } - } - } - } - } - } - } - .menu-modal { - .menu-modal-inner { - .menu-wrapper { - .menu-top, - .menu-bottom { - nav.expanded-menu, - nav.mobile-menu { - ul.modal-menu { - li.menu-item { - .ancestor-wrapper { - a { - color: $nom-blue-light !important; - } - } - } - } - } - } - } - } - } - main { - article { - header.entry-header { - padding-bottom: 40px; // Abstand zw. Artikelbildern und Überschrit verkleinern - .entry-header-inner { - .entry-categories { - .entry-categories-inner { - a { - color: $nom-blue-light; - } - } - } - .post-meta-wrapper { - ul.post-meta { - li.post-author { - display: none; // Autor im Beitragsheader ausblenden - } - } - } - } - } - .featured-media { - margin-top: 0; - .featured-media-inner { - .wp-caption-text { - display: none; // Bildbeschreibungen nur unter Artikelbildern werden ausgeblendet - } - } - } - .post-inner { - padding-top: 40px; // Abstand zw. Artikelbildern und Inhalt verkleinern - .entry-content { - a { - color: $nom-blue-light !important; - } - .wp-block-quote { - border-color: $nom-blue-light; - } - .wp-block-image { - margin: 40px auto; - } - .read-more-button-wrap { - a.more-link { - .faux-button { // Button: "Weiterlesen" - background: $nom-blue; - color: rgb(245, 245, 255); - font-weight: initial; - padding: 10px 40px; // Groesse aendern - text-transform: none; // nicht unterstrichen - transition: background .2s; - &:hover { - text-decoration: none; - background: $nom-blue-dark; - } - } - } - } - } - } - } - .pagination-wrapper { - nav.pagination { - .nav-links { - a { - color: $nom-blue-light; - } - } - } - } - } - .footer-nav-widgets-wrapper { - .footer-inner { - .footer-menu-wrapper { - .footer-menu { - .menu-item { - a { - color: $nom-blue-light !important; - } - } - } - } - .footer-widgets-outer-wrapper { - .footer-widgets-wrapper { - .footer-widgets { - .widget.widget_tag_cloud { - .widget-content { - .tagcloud { - a.tag-cloud-link { - color: $grey !important; - } - } - } - } - .widget_nav_menu { - .widget-content { - .menu-datenschutz-impressum-faq-container { - .menu { - .menu-item { - a { - color: $nom-blue-light !important; - } - } - } - } - } - } - .widget_archive { - .widget-content { - select { - background: rgb(58, 66, 89); - border: 0; - color: rgb(245, 245, 255); - padding: 5px 10px; + text-decoration-style: solid; + p.menu-item-description { + display: none; } } } @@ -177,152 +28,42 @@ body { } } -// -// article / post -// +// home -body.post-template, -body.post-template-default { - main { - article.post { - .post-inner { - .entry-content { - .yarpp-related { - margin: 3em auto 0 auto !important; - ol { - color: rgb(155, 155, 170); - list-style: none; - margin: 0; - li { - border-bottom: 1px solid rgb(53, 59, 68); - margin: 15px 0; - a { - font-weight: normal !important; - } - } - } - } - } - .post-meta-wrapper { - .post-meta { - .post-tags { - .meta-text { - color: $grey !important; - } - } - } - } - } - .pagination-single { - .pagination-single-inner { - .previous-post, - .next-post { - color: $nom-blue-light !important; - } - } - } - .comments-wrapper { - .comments { - .comments-inner { - article.comment-body { - footer.comment-footer-meta { - .comment-reply { - a.comment-reply-link { // Button: "Kommentieren" - background: $nom-blue ; - color: rgb(245, 245, 255); - font-weight: initial; - text-transform: none; - transition: background .2s; - &:hover { - background: $nom-blue-dark; - text-decoration: none; - } - } - } - } - } - } - } - .comment-respond { - .section-inner { - .comment-form-comment { - textarea#comment { - background: rgb(37, 45, 57); - border: 0; - color: rgb(255, 255, 255); - } - } - .comment-form-author, - .comment-form-email, - .comment-form-url { - input { - &#author, - &#email, - &#url { - background: rgb(37, 45, 57); - border: 0; - color: rgb(255, 255, 255); - } - } - } - .form-submit { - .submit { // Button "Kommentar abschicken" - background: $nom-blue; - color: rgb(245, 245, 255); - font-weight: initial; - padding: 10px 40px; // Groesse aendern - text-transform: none; // nicht unterstrichen - transition: background .2s; - &:hover { - background: $nom-blue-dark; - text-decoration: none; - } - } - } - } - } - } - } - } -} - -// -// article / post: cover template -// - -body.post-template.template-cover { - header { - .header-inner { - .header-navigation-wrapper { - nav.primary-menu-wrapper { - ul.primary-menu { - li.menu-item { - a { - color: rgb(255, 255, 255) !important; - } - } - } - } - } - } - } - main { - article.post { - .cover-header { - background-position: center -182.5px; - .cover-header-inner-wrapper { - min-height: 60vh; // Cover Hoehe bei Cover Template nur noch 6/10 statt 10/10 - .cover-header-inner { - .cover-color-overlay { - color: rgb(37, 45, 57); // Cover-Farbe (falls kein Hex-Code angegeben werden kann) - } +body.home { + #page { + #content { + #primary { + #main { + article.post { header.entry-header { - .entry-header-inner { - .entry-categories { - .entry-categories-inner { - a { - color: rgb(255, 255, 255); - } + h2.entry-title { + line-height: 42px; + margin-bottom: -20px; + max-width: var(--responsive--alignfull-width); + text-align: center; + width: var(--responsive--alignwide-width); + a { + font-size: 39px; + text-decoration: none; + } + } + } + .entry-content { + h2 { + font-size: 30px; + line-height: 35px; + } + .more-link-container { + a.more-link { + background: transparent; + border: 1px solid $white; + padding: 10px 40px; + text-decoration: none; + transition: background .2s, border .2s !important; + &:hover { + background: $nom-blue; + border-color: $nom-blue; } } } @@ -330,167 +71,27 @@ body.post-template.template-cover { } } } - .post-inner { - padding-top: 40px; - } } } } -// -// page (e.g. https://blog.natenom.com/natenom/) -// +// post -body.page-template { - -} - -// -// category (e.g. https://blog.natenom.com/category/allgemein/) -// - -body.category { - -} - -// -// tag (e.g. https://blog.natenom.com/tag/fahrrad/) -// - -body.tag { - -} - -// -// archive (e.g. https://blog.natenom.com/2020/08/) -// - -body.archive { - main { - header.archive-header { - .archive-header-inner { - h1.archive-title { - .color-accent { - color: rgb(255, 255, 255); - } - } - } - } - } -} - -// -// error pages (e.g. https://blog.natenom.com/errorpages/errorpages) -// - -body.error404 { - main { - .error404-content { - form.search-form { - label { - input.search-field { - background: rgb(37, 45, 57); - border: 0; - color: rgb(255, 255, 255); - } - } - input.search-submit { - background: $nom-blue; - color: rgb(245, 245, 255); - font-weight: initial; - margin-left: 0; - text-transform: none; - transition: background .2s; - &:hover { - background: $nom-blue-dark; - text-decoration: none; - } - } - } - } - } -} - -// -// search results (e.g. https://blog.natenom.com/?s=search) -// - -body.search-results { - main { - header.archive-header { - .archive-header-inner { - h1.archive-title { - .color-accent { - color: rgb(255, 255, 255); - } - } - } - } - } -} - -// -// search no-results (e.g. https://blog.natenom.com/?s=searchdddddd) -// - -body.search-no-results { - main { - header.archive-header { - .archive-header-inner { - h1.archive-title { - .color-accent { - color: rgb(255, 255, 255); - } - } - } - } - .no-search-results-form { - form.search-form { - label { - input.search-field { - background: rgb(37, 45, 57); - border: 0; - color: rgb(255, 255, 255); - } - } - input.search-submit { - background: $nom-blue; - color: rgb(245, 245, 255); - font-weight: initial; - margin-left: 0; - text-transform: none; - transition: background .2s; - &:hover { - background: $nom-blue-dark; - text-decoration: none; - } - } - } - } - } -} - -// -// lightbox plugin -// - -#slb_viewer_wrap { - #slb_viewer_slb_default { - .slb_viewer_layout { - .slb_container { - padding: 0 !important; // kein Rand - box-shadow: none !important; // kein »glow« bzw. Schatten - .slb_details { - .inner { - .slb_data { - .slb_data_content { - .slb_data_title { - font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif; - font-size: 16px; - font-weight: 500; - letter-spacing: 0; - margin: 10px 10px 0px 10px; // gleichmaessiger Rand - } +body.post-template-cover, +body.single-post { + #page { + #content { + #primary { + #main { + article.post { + header.entry-header { + h1.entry-title { + font-size: 39px; + font-weight: 400; + line-height: 42px; + margin-bottom: -20px; + text-align: center; + text-decoration: none; } } } @@ -499,14 +100,3 @@ body.search-no-results { } } } - - -// -// wp-admin -// - -body { - #wpadminbar { - position: sticky; - } -} diff --git a/scss/import/nom_globaltopbar.scss b/scss/import/nom_globaltopbar.scss index 4272f0d..ff897af 100644 --- a/scss/import/nom_globaltopbar.scss +++ b/scss/import/nom_globaltopbar.scss @@ -30,10 +30,7 @@ $ngtb_height: 32px; // ngtb == nom_globaltopbar white-space: nowrap; width: 100%; z-index: 9999; - @if $type == blog { - position: absolute; - top: -$ngtb_height; - } @else if $type == wiki { + @if $type == wiki { position: absolute; top: 0; } @else { @@ -45,6 +42,9 @@ $ngtb_height: 32px; // ngtb == nom_globaltopbar flex: 1; margin: 0; padding: 0; + @if $type == blog { + font-family: inherit; + } li { display: flex; margin: 0; @@ -58,8 +58,12 @@ $ngtb_height: 32px; // ngtb == nom_globaltopbar &:hover, &:active, &:focus { - background: $nom-blue; - color: rgb(255, 255, 255); + @if $type == blog { + background: $nom-blue !important; + } @else { + background: $nom-blue; + } + color: $white; text-decoration: none; } }