| @@ -25,31 +25,27 @@ | ||
| 25 | 25 | $css_generator->add_class_styles( |
| 26 | 26 | '{{WRAPPER}} .ablocks-toggle__topbar', |
| 27 | 27 | $this->get_toggle_bar_css( $attributes ), |
| 28 | 28 | $this->get_toggle_bar_css( $attributes, 'Tablet' ), |
| 29 | - $this->get_toggle_bar_css( $attributes, 'Mobile' ), | |
| 30 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_bar_css( $attributes, $device ); } ) | |
| 29 | + $this->get_toggle_bar_css( $attributes, 'Mobile' ) | |
| 31 | 30 | ); |
| 32 | 31 | $css_generator->add_class_styles( |
| 33 | 32 | '{{WRAPPER}} .ablocks-toggle__topbar:hover', |
| 34 | 33 | $this->get_toggle_bar_hover_css( $attributes ), |
| 35 | 34 | $this->get_toggle_bar_hover_css( $attributes, 'Tablet' ), |
| 36 | - $this->get_toggle_bar_hover_css( $attributes, 'Mobile' ), | |
| 37 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_bar_hover_css( $attributes, $device ); } ) | |
| 35 | + $this->get_toggle_bar_hover_css( $attributes, 'Mobile' ) | |
| 38 | 36 | ); |
| 39 | 37 | $css_generator->add_class_styles( |
| 40 | 38 | '{{WRAPPER}} .ablocks-toggle__topbar-wrapper', |
| 41 | 39 | $this->get_toggle_bar_wrapper_css( $attributes ), |
| 42 | 40 | $this->get_toggle_bar_wrapper_css( $attributes, 'Tablet' ), |
| 43 | - $this->get_toggle_bar_wrapper_css( $attributes, 'Mobile' ), | |
| 44 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_bar_wrapper_css( $attributes, $device ); } ) | |
| 41 | + $this->get_toggle_bar_wrapper_css( $attributes, 'Mobile' ) | |
| 45 | 42 | ); |
| 46 | 43 | $css_generator->add_class_styles( |
| 47 | 44 | '{{WRAPPER}} .ablocks-toggle__label', |
| 48 | 45 | $this->get_toggle_label_css( $attributes ), |
| 49 | 46 | $this->get_toggle_label_css( $attributes, 'Tablet' ), |
| 50 | - $this->get_toggle_label_css( $attributes, 'Mobile' ), | |
| 51 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_label_css( $attributes, $device ); } ) | |
| 47 | + $this->get_toggle_label_css( $attributes, 'Mobile' ) | |
| 52 | 48 | ); |
| 53 | 49 | $css_generator->add_class_styles( |
| 54 | 50 | '{{WRAPPER}} .ablocks-toggle__label--active', |
| 55 | 51 | $this->get_toggle_label_active_css( $attributes ) |
| @@ -91,31 +87,27 @@ | ||
| 91 | 87 | $css_generator->add_class_styles( |
| 92 | 88 | '{{WRAPPER}} .ablocks-toggle__topbar', |
| 93 | 89 | $this->get_toggle_bar_css( $attributes ), |
| 94 | 90 | $this->get_toggle_bar_css( $attributes, 'Tablet' ), |
| 95 | - $this->get_toggle_bar_css( $attributes, 'Mobile' ), | |
| 96 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_bar_css( $attributes, $device ); } ) | |
| 91 | + $this->get_toggle_bar_css( $attributes, 'Mobile' ) | |
| 97 | 92 | ); |
| 98 | 93 | $css_generator->add_class_styles( |
| 99 | 94 | '{{WRAPPER}} .ablocks-toggle__topbar:hover', |
| 100 | 95 | $this->get_toggle_bar_hover_css( $attributes ), |
| 101 | 96 | $this->get_toggle_bar_hover_css( $attributes, 'Tablet' ), |
| 102 | - $this->get_toggle_bar_hover_css( $attributes, 'Mobile' ), | |
| 103 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_bar_hover_css( $attributes, $device ); } ) | |
| 97 | + $this->get_toggle_bar_hover_css( $attributes, 'Mobile' ) | |
| 104 | 98 | ); |
| 105 | 99 | $css_generator->add_class_styles( |
| 106 | 100 | '{{WRAPPER}} .ablocks-toggle__topbar-wrapper', |
| 107 | 101 | $this->get_toggle_bar_wrapper_css( $attributes ), |
| 108 | 102 | $this->get_toggle_bar_wrapper_css( $attributes, 'Tablet' ), |
| 109 | - $this->get_toggle_bar_wrapper_css( $attributes, 'Mobile' ), | |
| 110 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_bar_wrapper_css( $attributes, $device ); } ) | |
| 103 | + $this->get_toggle_bar_wrapper_css( $attributes, 'Mobile' ) | |
| 111 | 104 | ); |
| 112 | 105 | $css_generator->add_class_styles( |
| 113 | 106 | '{{WRAPPER}} .ablocks-toggle__label', |
| 114 | 107 | $this->get_toggle_label_css( $attributes ), |
| 115 | 108 | $this->get_toggle_label_css( $attributes, 'Tablet' ), |
| 116 | - $this->get_toggle_label_css( $attributes, 'Mobile' ), | |
| 117 | - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_toggle_label_css( $attributes, $device ); } ) | |
| 109 | + $this->get_toggle_label_css( $attributes, 'Mobile' ) | |
| 118 | 110 | ); |
| 119 | 111 | $css_generator->add_class_styles( |
| 120 | 112 | '{{WRAPPER}} .ablocks-toggle__label--active', |
| 121 | 113 | $this->get_toggle_label_active_css( $attributes ) |