Adjust default color scheme
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
/* Messages */
|
/* Messages */
|
||||||
.sportspress-message {
|
.sportspress-message {
|
||||||
border-left-color: #00a69c !important;
|
border-left-color: #364c74 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sportspress-message a.button-primary,
|
.sportspress-message a.button-primary,
|
||||||
.sportspress-message a.button-secondary,
|
.sportspress-message a.button-secondary,
|
||||||
p.sportspress-actions input.button-primary,
|
p.sportspress-actions input.button-primary,
|
||||||
p.sportspress-actions input.button-primary:active {
|
p.sportspress-actions input.button-primary:active {
|
||||||
background: #3bbab3;
|
background: #39507b;
|
||||||
border-color: #15a29a;
|
border-color: #2c3e5f;
|
||||||
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
|
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.1);
|
||||||
box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
|
box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.1);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@@ -19,10 +19,10 @@ p.sportspress-actions input.button-primary:active {
|
|||||||
.sportspress-message a.button-secondary:hover,
|
.sportspress-message a.button-secondary:hover,
|
||||||
p.sportspress-actions input.button-primary:hover,
|
p.sportspress-actions input.button-primary:hover,
|
||||||
p.sportspress-actions input.button-primary:focus {
|
p.sportspress-actions input.button-primary:focus {
|
||||||
background: #00a69c;
|
background: #2f4265;
|
||||||
border-color: #009187;
|
border-color: #263551;
|
||||||
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
|
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.1);
|
||||||
box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
|
box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.1);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,11 +206,11 @@ class SP_Settings_General extends SP_Settings_Page {
|
|||||||
$colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors' ) );
|
$colors = array_map( 'esc_attr', (array) get_option( 'sportspress_frontend_css_colors' ) );
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#00a69c';
|
if ( empty( $colors['primary'] ) ) $colors['primary'] = '#364c74';
|
||||||
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
|
if ( empty( $colors['background'] ) ) $colors['background'] = '#f4f4f4';
|
||||||
if ( empty( $colors['text'] ) ) $colors['text'] = '#363f48';
|
if ( empty( $colors['text'] ) ) $colors['text'] = '#363f48';
|
||||||
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
|
if ( empty( $colors['heading'] ) ) $colors['heading'] = '#ffffff';
|
||||||
if ( empty( $colors['link'] ) ) $colors['link'] = '#ef6848';
|
if ( empty( $colors['link'] ) ) $colors['link'] = '#00a69c';
|
||||||
|
|
||||||
// Show inputs
|
// Show inputs
|
||||||
$this->color_picker( __( 'Primary', 'sportspress' ), 'sportspress_frontend_css_primary', $colors['primary'] );
|
$this->color_picker( __( 'Primary', 'sportspress' ), 'sportspress_frontend_css_primary', $colors['primary'] );
|
||||||
|
|||||||
@@ -126,11 +126,11 @@ class SP_Install {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Default color scheme
|
// Default color scheme
|
||||||
add_option( 'sportspress_frontend_css_primary', '#00a69c' );
|
add_option( 'sportspress_frontend_css_primary', '#364c74' );
|
||||||
add_option( 'sportspress_frontend_css_background', '#f4f4f4' );
|
add_option( 'sportspress_frontend_css_background', '#f4f4f4' );
|
||||||
add_option( 'sportspress_frontend_css_text', '#363f48' );
|
add_option( 'sportspress_frontend_css_text', '#363f48' );
|
||||||
add_option( 'sportspress_frontend_css_heading', '#ffffff' );
|
add_option( 'sportspress_frontend_css_heading', '#ffffff' );
|
||||||
add_option( 'sportspress_frontend_css_link', '#ef6848' );
|
add_option( 'sportspress_frontend_css_link', '#00a69c' );
|
||||||
|
|
||||||
if ( ! get_option( 'sportspress_installed' ) ) {
|
if ( ! get_option( 'sportspress_installed' ) ) {
|
||||||
// Configure default sport
|
// Configure default sport
|
||||||
|
|||||||
Reference in New Issue
Block a user