From 35b5df405be7cd6f50a4a7b9b16212787fc706c8 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Fri, 17 Apr 2020 17:52:34 +0200 Subject: [PATCH] typo style fixes, added language selection --- README.md | 2 +- kit/css/header.css | 16 +++++++--------- kit/css/menu.css | 1 + kit/functions.php | 18 +++++++++++++++++- kit/header.php | 8 ++++++++ kit/style.css | 24 ++++++++++++++++++++++++ kit/template-parts/footer-nav.php | 3 --- 7 files changed, 58 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 23c20f3..a62a0f7 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres. ## Installation * Titel: "saai | Archiv für Architektur und Ingenieurbau" - * Development ressource: https://github.com/Automattic/_s * Einrichtung Wordpress * URL-Format: Einstellungen -> Permalinks -> Einstellen auf "Beitragsname" -> Übernehmen * Footer Menü @@ -25,6 +24,7 @@ Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres. * Position im Theme: Footer Menü * Suchseite anlegen https://codex.wordpress.org/Creating_a_Search_Page#Using_the_page.php * Custom logo, custom theme color + * Plugins: WP-Multilang * **From the appstore:** The most recent and stable version of the app can be found in the [official appstore](https://apps.nextcloud.com/apps/radio). * **Using git:** In your `nextcloud/apps/` directory, run `git clone https://git.project-insanity.org/onny/nextcloud-app-radio.git radio`. Then go to the Apps manager tab in your Nextcloud web interface, and enable the Radio app. * **Using the zip archive:** Download the latest [tar.bz2 archive](https://git.project-insanity.org/onny/nextcloud-app-radio/repository/archive.tar.bz2?ref=master), extract the directory inside your `nextcloud/apps/` directory, and rename it to `radio`. For stable releases, you can also download one of the [releases](https://git.project-insanity.org/onny/nextcloud-app-radio/) tar.bz2 archives. Then go to the Apps manager tab in your Nextcloud web interface, and enable the Radio app. diff --git a/kit/css/header.css b/kit/css/header.css index 063587b..3628986 100644 --- a/kit/css/header.css +++ b/kit/css/header.css @@ -135,33 +135,31 @@ header:not(.sticky-header) .header-button-container { .header-lang { position: absolute; - top: 10px; + top: 5px; right: calc((100% - 1170px) / 2); display: flex; padding: 0.61111rem 0; + font-size: 14px; } .header-lang li { border-left: 1px solid #333333; line-height: 1; + display: inline; + padding: 0 8px; } .header-lang li:first-child { border-left: none; } -.header-lang li a { - padding: 0 8px; +.header-lang li span { + line-height: 1rem; transition: color .3s; } -.header-lang li a:hover { - color: #009982; -} - -.header-lang li.active a { - color: #009982; +.header-lang li.active span { font-weight: 700; } diff --git a/kit/css/menu.css b/kit/css/menu.css index bfa8a23..8481903 100644 --- a/kit/css/menu.css +++ b/kit/css/menu.css @@ -231,6 +231,7 @@ nav > ul > li .nav-first-level-opener::after { background-repeat: no-repeat; background-position: left center; background-size: contain; + mask: url('../img/nav-second-level-star-primary.svg') no-repeat center / contain; } .nav-second-level-group-headline span { diff --git a/kit/functions.php b/kit/functions.php index d6aa2db..aa60cd2 100644 --- a/kit/functions.php +++ b/kit/functions.php @@ -77,7 +77,7 @@ class kit_custom_main_menu extends Walker_Nav_Menu { if ($depth == 1) { $output .= ' - +
'; $output .= $title; @@ -201,6 +201,22 @@ function kit_customize_css() color: ; } + .nav-second-level-group-headline .icon { + background-color: ; + } + + .header-lang li a:hover { + color: ; + } + + .header-lang li.active span { + color: ; + } + + h2::after { + background-color: ; + } + +
+ +
+

KIT - Karlsruher Institut für Technologie diff --git a/kit/style.css b/kit/style.css index e2bb18e..40ccf52 100644 --- a/kit/style.css +++ b/kit/style.css @@ -1063,6 +1063,24 @@ ul { list-style: none; } +h2 { + font-size: 2.77778rem; + line-height: 3.33333rem; + margin: 2.5rem 0; +} + +h2::after { + content: ''; + position: absolute; + bottom: -1.11111rem; + left: 0; + width: 5.83333rem; + height: 0.44444rem; + background-color: #009982; + opacity: 1; + transition: left 1s, width .7s, opacity .5s; +} + .background-color-page-theme, .background-color-brand-primary, .background-color-brand-secondary, @@ -4700,6 +4718,12 @@ article > p:first-child { line-height: 1.94444rem; } +article > p:last-child { + margin-bottom: inherit; + font-size: inherit; + line-height: inherit; +} + @media (max-width: 1280px) { article > p:first-child { margin-bottom: 3.33333rem; diff --git a/kit/template-parts/footer-nav.php b/kit/template-parts/footer-nav.php index 7ea80d0..1d49e19 100644 --- a/kit/template-parts/footer-nav.php +++ b/kit/template-parts/footer-nav.php @@ -7,7 +7,4 @@ ) ); ?> -
- -