forked from NB-Public/jkb-childtheme
Backup current active code
This commit is contained in:
parent
50dc2612a8
commit
78424e050a
3 changed files with 6 additions and 221 deletions
|
@ -1,57 +1,7 @@
|
|||
<?php
|
||||
|
||||
// register and enqueue the stylesheet.
|
||||
function jkb_register_child_theme_styles() {
|
||||
function 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' );
|
||||
add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
|
||||
|
|
|
@ -15,14 +15,5 @@ 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;
|
||||
}
|
||||
|
||||
|
|
164
style.css
164
style.css
|
@ -4,7 +4,7 @@ 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
|
||||
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
|
||||
|
@ -13,174 +13,18 @@ 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;
|
||||
.p-8 {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
@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;
|
||||
content: none;
|
||||
}
|
||||
.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; }
|
||||
|
|
Loading…
Reference in a new issue