Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
fahimezarghani committed Apr 18, 2017
1 parent 0de751f commit 556e0c6
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@
.widget ul li a,
.site-footer .widget-area ul li a,
.site-footer .widget-area ul li a {
-webkit-box-shadow: inset 0 -1px 0 {$page_background_color};
box-shadow: inset 0 -1px 0 {$page_background_color};
-webkit-box-shadow: inset 0 -1px 0 {$background_color};
box-shadow: inset 0 -1px 0 {$background_color};
}
.entry-content a:focus,
Expand Down Expand Up @@ -581,8 +581,8 @@
/* Fixes linked images */
.entry-content a img,
.widget a img {
-webkit-box-shadow: 0 0 0 8px {$page_background_color};
box-shadow: 0 0 0 8px {$page_background_color};
-webkit-box-shadow: 0 0 0 8px {$background_color};
box-shadow: 0 0 0 8px {$background_color};
}
.post-navigation a:focus .icon,
Expand Down Expand Up @@ -835,7 +835,7 @@
--------------------------------------------------------------*/
.site-content-contain {
background-color: {$page_background_color};
background-color: {$background_color};
}
/*--------------------------------------------------------------
Expand Down Expand Up @@ -1237,44 +1237,64 @@
}
/* Layout */
.sed-row-boxed ,
.navigation-top .wrap,
@media screen and (min-width: 0) and (min-width: 30em) and (min-width: 48em) {
.wrap,
.sed-row-boxed ,
.navigation-top .wrap ,
.page-one-column .panel-content .wrap ,
.single-post:not(.has-sidebar) #primary,
.page.page-one-column:not(.twentyseventeen-front-page) #primary,
.archive.page-one-column:not(.has-sidebar) .page-header,
.archive.page-one-column:not(.has-sidebar) #primary {
max-width: {$sheet_width};
}
}
@media screen and (min-width: 0) and (min-width: 30em) and (min-width: 48em) {
.sed-row-boxed .sed-row-boxed,
.wrap-layout-fixed-width .wrap .sed-row-boxed ,
.sed-main-content-layout-module .wrap-layout-full-width .wrap,
.page-one-column .sed-main-content-layout-module .wrap-layout-full-width .panel-content .wrap ,
.single-post:not(.has-sidebar) .sed-main-content-layout-module .wrap-layout-full-width #primary,
.page.page-one-column:not(.twentyseventeen-front-page) .sed-main-content-layout-module .wrap-layout-full-width #primary,
.archive.page-one-column:not(.has-sidebar) .sed-main-content-layout-module .wrap-layout-full-width .page-header,
.archive.page-one-column:not(.has-sidebar) .sed-main-content-layout-module .wrap-layout-full-width #primary,
.sed-row-boxed .wrap,
.sed-row-boxed .navigation-top .wrap ,
.page-one-column .sed-row-boxed .panel-content .wrap ,
.single-post:not(.has-sidebar) .sed-row-boxed #primary,
.page.page-one-column:not(.twentyseventeen-front-page) .sed-row-boxed #primary,
.archive.page-one-column:not(.has-sidebar) .sed-row-boxed .page-header,
.archive.page-one-column:not(.has-sidebar) .sed-row-boxed #primary {
max-width: none !important;
}
}
.sed-row-boxed ,
.wrap {
max-width: {$sheet_width};
padding-left: {$rps_wrap_padding_left};
padding-right: {$rps_wrap_padding_right};
}
.sed-main-content-layout-module .wrap-layout-full-width .wrap ,
.wrap-layout-fixed-width .wrap .sed-row-boxed ,
.sed-row-boxed .wrap ,
.sed-row-boxed .sed-row-boxed {
max-width: none !important;
.sed-row-boxed .sed-row-boxed ,
.wrap-layout-fixed-width .wrap .sed-row-boxed ,
.sed-main-content-layout-module .wrap-layout-full-width .wrap {
padding-right: 0px;
padding-left: 0px;
}
.wrap-layout-full-width .navigation-top .wrap,
.wrap-layout-full-width .wrap {
max-width: none !important;
}
/*.single-post:not(.has-sidebar) .wrap-layout-fixed-width .wrap #primary,
.page.page-one-column:not(.twentyseventeen-front-page) .wrap-layout-fixed-width .wrap #primary,
.archive.page-one-column:not(.has-sidebar) .wrap-layout-fixed-width .wrap #primary,*/
.single-post:not(.has-sidebar) .wrap-layout-full-width .wrap #primary,
.page.page-one-column:not(.twentyseventeen-front-page) .wrap-layout-full-width .wrap #primary,
.archive.page-one-column:not(.has-sidebar) .wrap-layout-full-width .wrap #primary {
max-width: none !important;
}
@media screen and (min-width: 48em) {
.sed-row-boxed ,
.navigation-top .wrap,
.wrap {
padding-left: {$wrap_padding_left};
padding-right: {$wrap_padding_right};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function color_settings( $settings ){

$settings['secondary_background_color']['default'] = "#eeeeee";

$settings['page_background_color']['default'] = "#ffffff"; /* ...!!!!!!... */
/*$settings['page_background_color']['default'] = "#ffffff"; ...!!!!!!... */

$settings['main_text_color']['default'] = "#333333";

Expand Down Expand Up @@ -179,7 +179,7 @@ public function dynamic_vars_reference(){
6.0 Forms
--------------------------------------------------------------*/

'form_control_bg' => 'page_background_color',
'form_control_bg' => 'background_color',
'form_control_border' => 'border_color',
'form_control_color' => 'secondary_text_color',
'form_control_border_radius' => 'border_radius',
Expand All @@ -203,11 +203,11 @@ public function dynamic_vars_reference(){
--------------------------------------------------------------*/


'navigation_bar_bg' => 'page_background_color',
'navigation_bar_bg' => 'background_color',
'navigation_bar_border' => 'border_color',
'navigation_bar_color' => 'main_text_color',

'navigation_submenu_bg' => 'page_background_color',
'navigation_submenu_bg' => 'background_color',
'navigation_submenu_border' => 'border_color',
'navigation_submenu_color' => 'main_text_color',
'navigation_submenu_item_bg' => 'first_main_active_color',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct( $theme_support ) {

add_action( "sed_static_module_register" , array( $this , 'register_static_modules' ) , 10 , 1 );

add_filter( "sed_theme_options_panels_filter" , array( $this , 'register_theme_panels' ) );
add_filter( "sed_theme_options_panels_filter" , array( $this , 'register_theme_panels' ) , 100 );

add_filter( "sed_theme_options_fields_filter" , array( $this , 'register_theme_fields' ) );

Expand All @@ -87,6 +87,8 @@ public function __construct( $theme_support ) {

//add_filter( 'sed_color_schemes' , array( $this , 'color_schemes' ) );

add_action( 'wp' , array( $this, 'remove_page_builder_settings' ) );

}

public function add_components(){
Expand Down Expand Up @@ -228,6 +230,13 @@ public function register_theme_panels( $panels )
'priority' => 20 ,
);

/**
* Remove Page Builder Settings Panel From Twentyseventeen Theme
*
*/

unset($panels['page_builder_settings']);

return $panels;
}

Expand Down Expand Up @@ -323,6 +332,14 @@ public function register_theme_fields( $fields )
'field_spacing' => 'sm'
);

/**
* Remove Page Builder Settings Fields From Twentyseventeen Theme
*
*/

unset($fields['pb_rows_width']);
unset($fields['pb_rows_padding']);

$fields = array_merge( $fields , $this->dynamic_css_options );

return $fields;
Expand Down Expand Up @@ -808,6 +825,16 @@ public function register_dynamic_css_options( ){

}

/**
* Remove Page Builder Settings Dynamic Css From Twentyseventeen Theme
*
*/
public function remove_page_builder_settings(){

remove_action( "sed_before_dynamic_css_output" , array( SED()->framework , 'pb_css_output' ) );

}

}


Expand Down

0 comments on commit 556e0c6

Please sign in to comment.