typo style fixes, added language selection

This commit is contained in:
Jonas Heinrich 2020-04-17 17:52:34 +02:00
parent e34d02a42e
commit 35b5df405b
7 changed files with 58 additions and 14 deletions

View file

@ -14,7 +14,6 @@ Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres.
## Installation ## Installation
* Titel: "saai | Archiv für Architektur und Ingenieurbau" * Titel: "saai | Archiv für Architektur und Ingenieurbau"
* Development ressource: https://github.com/Automattic/_s
* Einrichtung Wordpress * Einrichtung Wordpress
* URL-Format: Einstellungen -> Permalinks -> Einstellen auf "Beitragsname" -> Übernehmen * URL-Format: Einstellungen -> Permalinks -> Einstellen auf "Beitragsname" -> Übernehmen
* Footer Menü * Footer Menü
@ -25,6 +24,7 @@ Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres.
* Position im Theme: Footer Menü * Position im Theme: Footer Menü
* Suchseite anlegen https://codex.wordpress.org/Creating_a_Search_Page#Using_the_page.php * Suchseite anlegen https://codex.wordpress.org/Creating_a_Search_Page#Using_the_page.php
* Custom logo, custom theme color * 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). * **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 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. * **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.

View file

@ -135,33 +135,31 @@ header:not(.sticky-header) .header-button-container {
.header-lang { .header-lang {
position: absolute; position: absolute;
top: 10px; top: 5px;
right: calc((100% - 1170px) / 2); right: calc((100% - 1170px) / 2);
display: flex; display: flex;
padding: 0.61111rem 0; padding: 0.61111rem 0;
font-size: 14px;
} }
.header-lang li { .header-lang li {
border-left: 1px solid #333333; border-left: 1px solid #333333;
line-height: 1; line-height: 1;
display: inline;
padding: 0 8px;
} }
.header-lang li:first-child { .header-lang li:first-child {
border-left: none; border-left: none;
} }
.header-lang li a { .header-lang li span {
padding: 0 8px;
line-height: 1rem; line-height: 1rem;
transition: color .3s; transition: color .3s;
} }
.header-lang li a:hover { .header-lang li.active span {
color: #009982;
}
.header-lang li.active a {
color: #009982;
font-weight: 700; font-weight: 700;
} }

View file

@ -231,6 +231,7 @@ nav > ul > li .nav-first-level-opener::after {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: left center; background-position: left center;
background-size: contain; background-size: contain;
mask: url('../img/nav-second-level-star-primary.svg') no-repeat center / contain;
} }
.nav-second-level-group-headline span { .nav-second-level-group-headline span {

View file

@ -77,7 +77,7 @@ class kit_custom_main_menu extends Walker_Nav_Menu {
if ($depth == 1) { if ($depth == 1) {
$output .= ' $output .= '
<a class="nav-second-level-group-headline" href="' . $permalink . '"> <a class="nav-second-level-group-headline" href="' . $permalink . '">
<img class="icon" src="' . $theme_template_path .'/img/nav-second-level-star-primary.svg" alt="" width="24" height="24"> <div class="icon"></div>
<span> <span>
'; ';
$output .= $title; $output .= $title;
@ -201,6 +201,22 @@ function kit_customize_css()
color: <?php echo get_theme_mod('theme_color', '#009982'); ?>; color: <?php echo get_theme_mod('theme_color', '#009982'); ?>;
} }
.nav-second-level-group-headline .icon {
background-color: <?php echo get_theme_mod('theme_color', '#009982'); ?>;
}
.header-lang li a:hover {
color: <?php echo get_theme_mod('theme_color', '#009982'); ?>;
}
.header-lang li.active span {
color: <?php echo get_theme_mod('theme_color', '#009982'); ?>;
}
h2::after {
background-color: <?php echo get_theme_mod('theme_color', '#009982'); ?>;
}
</style> </style>
<?php <?php
} }

View file

@ -92,6 +92,14 @@
<div class="content-wrap"> <div class="content-wrap">
<div class="header-lang">
<?php
if ( function_exists ( 'wpm_language_switcher' ) ) {
wpm_language_switcher ('list','name');
};
?>
</div>
<h1 class="header-logo-container"> <h1 class="header-logo-container">
<a href="<?php echo home_url(); ?>"> <a href="<?php echo home_url(); ?>">
<span class="header-logo-text">KIT - Karlsruher Institut für Technologie</span> <span class="header-logo-text">KIT - Karlsruher Institut für Technologie</span>

View file

@ -1063,6 +1063,24 @@ ul {
list-style: none; 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-page-theme,
.background-color-brand-primary, .background-color-brand-primary,
.background-color-brand-secondary, .background-color-brand-secondary,
@ -4700,6 +4718,12 @@ article > p:first-child {
line-height: 1.94444rem; line-height: 1.94444rem;
} }
article > p:last-child {
margin-bottom: inherit;
font-size: inherit;
line-height: inherit;
}
@media (max-width: 1280px) { @media (max-width: 1280px) {
article > p:first-child { article > p:first-child {
margin-bottom: 3.33333rem; margin-bottom: 3.33333rem;

View file

@ -7,7 +7,4 @@
) ); ) );
?> ?>
</div> </div>
<div class="lang-select">
</div>
</section> </section>