wp-v5-greater.php
86 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! is_rtl() ) { |
| 4 | $margin_property = 'margin-left'; |
| 5 | $position = 'left'; |
| 6 | } else { |
| 7 | $margin_property = 'margin-right'; |
| 8 | $position = 'right'; |
| 9 | } |
| 10 | |
| 11 | /* Gravity Form - Form Editor */ |
| 12 | $custom_width_no_px = intval( str_replace( 'px', '', $custom_width ) ); |
| 13 | $gf_editor_width = 594 - 160 + $custom_width_no_px; |
| 14 | $gf_editor_width = (string) $gf_editor_width . 'px'; |
| 15 | $fluent_cart_inner_wrapper = $custom_width_no_px - 30; |
| 16 | $fluent_cart_inner_wrapper = (string) $fluent_cart_inner_wrapper . 'px'; |
| 17 | |
| 18 | ?> |
| 19 | <style> |
| 20 | |
| 21 | #wpcontent, #wpfooter { |
| 22 | <?php echo esc_html( esc_html( $margin_property ) ); ?>: <?php echo esc_html( esc_html( $custom_width ) ); ?>; |
| 23 | } |
| 24 | |
| 25 | #adminmenuback, #adminmenuwrap, #adminmenu, #adminmenu .wp-submenu { |
| 26 | width: <?php echo esc_html( $custom_width ); ?>; |
| 27 | } |
| 28 | |
| 29 | #adminmenu .wp-submenu { |
| 30 | <?php echo esc_html( $position ); ?>: <?php echo esc_html( $custom_width ); ?>; |
| 31 | } |
| 32 | |
| 33 | #adminmenu .wp-not-current-submenu .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu { |
| 34 | min-width: <?php echo esc_html( $custom_width ); ?>; |
| 35 | } |
| 36 | |
| 37 | @media (min-width:960px) { |
| 38 | /* WooCommerce header fix */ |
| 39 | .woocommerce-layout__header, |
| 40 | /* Elementor Settings */ |
| 41 | #e-admin-top-bar-root { |
| 42 | width: calc(100% - <?php echo esc_html( $custom_width ); ?>); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | /* Gutenberg / Block Editor fix */ |
| 47 | .auto-fold .interface-interface-skeleton { |
| 48 | <?php echo esc_html( $position ); ?>: <?php echo esc_html( $custom_width ); ?>; |
| 49 | } |
| 50 | |
| 51 | /* ASE Form Builder */ |
| 52 | .fb-header-nav { |
| 53 | width: calc(100% - <?php echo esc_html( esc_html( $custom_width ) ); ?>) !important; |
| 54 | } |
| 55 | |
| 56 | /* Gravity Form - Form Editor */ |
| 57 | body.toplevel_page_gf_edit_forms .gform-form-toolbar { |
| 58 | width: calc(100% - <?php echo esc_html( esc_html( $custom_width ) ); ?>) !important; |
| 59 | } |
| 60 | |
| 61 | .form_editor_fields_container { |
| 62 | max-width: calc(100% - <?php echo esc_html( esc_html( $gf_editor_width ) ); ?>) !important; |
| 63 | } |
| 64 | |
| 65 | /* Formidable Forms */ |
| 66 | .auto-fold.frm-admin-page-styles:not(.frm-full-screen) .frm_page_container, |
| 67 | .auto-fold:not(.frm-full-screen) .frm_wrap .frm_page_container, |
| 68 | .frm-unfold.frm-admin-page-styles:not(.frm-full-screen) .frm_page_container, |
| 69 | .frm-unfold:not(.frm-full-screen) .frm_wrap .frm_page_container { |
| 70 | left: <?php echo esc_html( $custom_width ); ?> !important; |
| 71 | } |
| 72 | |
| 73 | /* FluentCart */ |
| 74 | #wpbody-content #fct_admin_menu_holder .fct_admin_menu_wrap{ |
| 75 | width: calc(100% - <?php echo esc_html( esc_html( $custom_width ) ); ?>) !important;; |
| 76 | } |
| 77 | |
| 78 | .fct-reports-view-inner { |
| 79 | padding-left: <?php echo esc_html( esc_html( $fluent_cart_inner_wrapper ) ); ?> !important; |
| 80 | } |
| 81 | |
| 82 | .fct-setting-container .fct-tab-wrapper { |
| 83 | padding-left: <?php echo esc_html( $custom_width ); ?> !important; |
| 84 | } |
| 85 | |
| 86 | </style> |