Compare commits

...

3 Commits
main ... main

Author SHA1 Message Date
Dirk Rüdiger 50dc2612a8 Initial styling in BTW21 design 2022-04-26 09:50:15 +02:00
Dirk Rüdiger 02b5baa775 Added screenshot 2021-08-19 08:27:57 +02:00
Dirk Rüdiger 9e1b764e6a Started modifications for gruene-rostock.de 2021-07-05 08:08:50 +02:00
9 changed files with 271 additions and 11 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,57 @@
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
function enqueue_parent_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}
?>
// register and enqueue the stylesheet.
function jkb_register_child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));
}
add_action('wp_enqueue_scripts', 'register_child_theme_styles');
function register_child_theme_styles() {
wp_register_style('style', get_stylesheet_uri());
wp_enqueue_style('style');
}
add_action('login_enqueue_scripts', 'jkb_register_login_stylesheet');
function jkb_register_login_stylesheet() {
wp_enqueue_style('custom-login', get_stylesheet_directory_uri() . '/login.css' );
//wp_enqueue_script('custom-login', get_stylesheet_directory_uri() . '/login.js' );
}
function jkb_add_custom_gutenberg_color_palette() {
add_theme_support(
'editor-color-palette',
[
[
'name' => esc_html__( 'Schwarz', 'jkb' ),
'slug' => 'black',
'color' => '#000000',
],
[
'name' => esc_html__( 'Weiß', 'jkb' ),
'slug' => 'white',
'color' => '#ffffff',
],
[
'name' => esc_html__( 'Pistazie', 'jkb' ),
'slug' => 'pistachio',
'color' => '#a0c864',
],
[
'name' => esc_html__( 'Sonneblume', 'jkb' ),
'slug' => 'sunflower',
'color' => '#ffe100',
],
[
'name' => esc_html__( 'Moos', 'jkb' ),
'slug' => 'moss',
'color' => '#145f32',
],
[
'name' => esc_html__( 'Lachs', 'jkb' ),
'slug' => 'salmon',
'color' => '#f06464',
],
]
);
}
add_action( 'after_setup_theme', 'jkb_add_custom_gutenberg_color_palette' );

BIN
images/body_bg-pistazie.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

28
login.css Normal file
View File

@ -0,0 +1,28 @@
/*
Theme Name: KV Rostock
Theme URI: https://git.verdigado.com/dirk.ruediger/jkb-kv-hro
Description: Child Theme fuer KV Rostock, based on "Joseph knows Best"
Author: Dirk Ruediger, Henning Wuestemann
Author URI: https://verdigado.com
Template: Joseph-knows-best
Version: 0.0.1
Text Domain: jkb-kv-hro
Tags: child, childtheme, child-theme, two-columns, green, right-sidebar, fluid-layout, custom-background, custom-header, custom-menu, custom-menu, theme-options, featured-images, storytelling
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
body.login {
background: #559448 url(images/body_bg-pistazie.png) top center repeat fixed !important;
font-family: "BereitBold-Oblique", Trebuchet, "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif !important;
}
body.login form label,
body.login #login a,
body.login #login p#nav a,
body.login #login p#backtoblog a{
color: #145f32 !important;
text-shadow: 0 0 0;
}

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 KiB

9
sidebar.php Executable file
View File

@ -0,0 +1,9 @@
<div id="sidebar1" class="sidebar threecol last clearfix" role="complementary">
<?php if ( is_active_sidebar('infospalte') ) : ?>
<ul>
<?php dynamic_sidebar('infospalte'); ?>
</ul>
<?php endif; ?>
</div>

184
style.css
View File

@ -1,14 +1,186 @@
/*
Theme Name: Joseph knows best Child
Theme URI: https://git.verdigado.com/NB-Public/jkb-childtheme
Description: Child Theme fuer Aufwändiges Wordpress-Theme für den EInsatz von größeren Websites, z.B: bei Landesverbänden.
Author: Willi Junga
Theme Name: KV Rostock
Theme URI: https://git.verdigado.com/dirk.ruediger/jkb-kv-hro
Description: Child Theme fuer KV Rostock, based on "Joseph knows Best"
Author: Dirk Ruediger, Henning Wuestemann
Author URI: https://verdigado.com
Template: Joseph-knows-best-master
Template: Joseph-knows-best
Version: 0.0.1
Text Domain: jkb-child
Text Domain: jkb-kv-hro
Tags: child, childtheme, child-theme, two-columns, green, right-sidebar, fluid-layout, custom-background, custom-header, custom-menu, custom-menu, theme-options, featured-images, storytelling
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
@font-face {
font-family:"BereitBold-Oblique";
src: url("fonts/bereitbold-oblique.woff") format('woff'),
url("fonts/bereitbold-oblique.woff2") format('woff2');
font-weight: normal;
font-style: normal;
}
body {
background: #559448 url(images/body_bg-pistazie.png) top center repeat fixed !important;
}
body.home article {
background: transparent !important;
box-shadow: none !important;
}
body.home header h1.landing-title {
display: none;
}
@media screen {
h1, h2, h3, h4, h5, h6,
.nav-main {
font-family: "BereitBold-Oblique", Trebuchet, "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif !important;
}
.nav-main li a {
font-family: "BereitBold-Oblique", Trebuchet, "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif !important;
font-size:34px;
text-transform:uppercase;
text-decoration:none;
line-height:1em
}
.nav-main li.home a {
color: #ffe100;
}
.nav-main ul ul li a {
font-size: 20px;
letter-spacing: 1px;
}
/*
.nav-main > ul > li.menu-item-has-children > a::after {
content: ' ^ ';
transform: rotate(180deg);
}
*/
#footer {
background-color: #1e193b !important;
background-image: none !important;
padding: 70px 0;
}
#footer * {
color: white;
}
#footer a, #footer a:hover, #footer a:visited, #footer a:active {
color: #ffe100 !important;
}
}
#tribe-events-content .tribe-block__event-website a {
background-color: var(--e-global-color-accent);
color: #FFFFFF;
}
.wp-block-latest-posts li::before,
.tribe-events .hentry ul li::before {
content: none !important;
}
.wp-block-latest-posts li img.size-large,
.wp-block-latest-posts li img.size-full {
width: 100% !important;
}
.has-black-color {
color: #000000 !important;;
}
.has-white-color {
color: #ffffff !important;;
}
.has-pistachio-color {
color: #a0c864 !important;;
}
.has-sunflower-color {
color: #ffe100 !important;;
}
.has-moss-color {
color: #145f32 !important;;
}
.has-salmon-color {
color: #f06464 !important;;
}
.has-black-background-color {
background-color: #000000 !important;;
}
.has-white-background-color {
background-color: #ffffff !important;;
}
.has-pistachio-background-color {
background-color: #a0c864 !important;;
}
.has-sunflower-background-color {
background-color: #ffe100 !important;;
}
.has-moss-background-color {
background-color: #145f32 !important;;
}
.has-salmon-background-color {
background-color: #f06464 !important;;
}
.m-1 {
margin: .25rem;
}
.m-2 {
margin: .5rem;
}
.m-4 {
margin: 1rem;
}
.m-8 {
margin: 2rem;
}
.mt-0 {
margin-top: 0;
}
.mt-1 {
margin-top: .25rem;
}
.mt-2 {
margin-top: .5rem;
}
.mt-4 {
margin-top: 1rem;
}
.mt-8 {
margin-top: 2rem;
}
.mb-0 {
margin-bottom: 0;
}
.mb-1 {
margin-bottom: .25rem;
}
.mb-2 {
margin-bottom: .5rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.mb-8 {
margin-bottom: 2rem;
}
.p-1 {
padding: .25rem;
}
.p-2 {
padding: .5rem;
}
.p-4 {
padding: 1rem;
}
.p-8 {
padding: 2rem;
}
.text-right { text-align: right;}
.float-left { float: left; }
.float-right { float: right; }
.float-none { float: none; }