diff --git a/README.md b/README.md index 820585d..23c20f3 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres. * Klicken auf MenĂ¼ erstellen * Position im Theme: Footer MenĂ¼ * Suchseite anlegen https://codex.wordpress.org/Creating_a_Search_Page#Using_the_page.php + * Custom logo, custom theme color * **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 a628872..063587b 100644 --- a/kit/css/header.css +++ b/kit/css/header.css @@ -105,7 +105,6 @@ header:not(.sticky-header) .header-button-container { color: #ffffff; font-weight: 500; white-space: nowrap; - background-image: linear-gradient(0deg, #009982, #00c8ad); border-radius: 3px; } diff --git a/kit/css/menu.css b/kit/css/menu.css index f7b2bbd..bfa8a23 100644 --- a/kit/css/menu.css +++ b/kit/css/menu.css @@ -33,11 +33,6 @@ nav > ul > li > a { line-height: 1; } -nav > ul > li:hover > a, -nav > ul > li:active > a { - color: #009982; -} - nav > ul > li:hover > a::after, nav > ul > li:active > a::after { content: ''; @@ -46,7 +41,6 @@ nav > ul > li:active > a::after { left: 0; width: 100%; height: 1.55556rem; - border-bottom: 4px solid #009982; } nav > ul > li.opened .nav-first-level-opener::after { @@ -71,7 +65,6 @@ nav > ul > li .nav-first-level-opener span { nav > ul > li .nav-first-level-opener::before, nav > ul > li .nav-first-level-opener::after { content: ''; position: absolute; - background-color: #009982; transition: transform .3s; } @@ -226,7 +219,6 @@ nav > ul > li .nav-first-level-opener::after { display: inline-block; margin-bottom: 1rem; margin-left: 2rem; - color: #009982; font-weight: 700; } @@ -301,7 +293,6 @@ nav > ul > li .nav-first-level-opener::after { .nav-second-level .nav-second-level-opener::before, .nav-second-level .nav-second-level-opener::after { content: ''; position: absolute; - background-color: #009982; transition: transform .3s; } @@ -399,7 +390,4 @@ nav ul li:hover .nav-second-level { margin-top: 0; overflow: hidden; } - .opened > a { - color: #009982; - } } diff --git a/kit/functions.php b/kit/functions.php index f3edce4..0f2ebda 100644 --- a/kit/functions.php +++ b/kit/functions.php @@ -112,3 +112,64 @@ class kit_custom_main_menu extends Walker_Nav_Menu { } } + +function theme_customize_register( $wp_customize ) { + + $wp_customize->add_setting( 'theme_color', array( + 'default' => '#009982', + 'transport' => 'refresh', + ) ); + + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_color', array( + 'section' => 'colors', + 'label' => esc_html__( 'Theme color', 'theme' ), + ) ) ); + +} + +add_action( 'customize_register', 'theme_customize_register' ); + +function kit_customize_css() +{ + ?> + + .powermail_field { line-height: 35px; } -form ::-webkit-input-placeholder { - color: #404040; - font-weight: 300; - opacity: 1; -} - -form :-ms-input-placeholder { - color: #404040; - font-weight: 300; - opacity: 1; -} - -form ::-ms-input-placeholder { - color: #404040; - font-weight: 300; - opacity: 1; -} - form ::placeholder { color: #404040; font-weight: 300; @@ -2751,8 +2599,6 @@ form ::placeholder { } .container-eq-height form .powermail_fieldwrap.powermail_fieldwrap_type_textarea { - -webkit-box-flex: 1; - -ms-flex-positive: 1; flex-grow: 1; } @@ -2829,22 +2675,13 @@ body.page-theme-color-quaternary form input[type='submit'] { width: 100%; max-width: none; height: 100%; - -o-object-fit: cover; object-fit: cover; - -o-object-position: center center; object-position: center center; - -webkit-backface-visibility: hidden; backface-visibility: hidden; - -webkit-transition: -webkit-transform .7s; - transition: -webkit-transform .7s; - -o-transition: transform .7s; transition: transform .7s; - transition: transform .7s, -webkit-transform .7s; } .teaser-box-image:hover img { - -webkit-transform: scale(1.1); - -ms-transform: scale(1.1); transform: scale(1.1); }