| @@ -23,15 +23,17 @@ | ||
| 23 | 23 | $css_generator->add_class_styles( |
| 24 | 24 | '{{WRAPPER}}.ablocks-block--table table, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell , {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell', |
| 25 | 25 | $this->get_table_border_css( $attributes ), |
| 26 | 26 | $this->get_table_border_css( $attributes, 'Tablet' ), |
| 27 | - $this->get_table_border_css( $attributes, 'Mobile' ) | |
| 27 | + $this->get_table_border_css( $attributes, 'Mobile' ), | |
| 28 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_table_border_css( $attributes, $device ); } ) | |
| 28 | 29 | ); |
| 29 | 30 | $css_generator->add_class_styles( |
| 30 | 31 | '{{WRAPPER}}.ablocks-block--table table:hover, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell:hover, {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell:hover', |
| 31 | 32 | $this->get_table_border_hover_css( $attributes ), |
| 32 | 33 | $this->get_table_border_hover_css( $attributes, 'Tablet' ), |
| 33 | - $this->get_table_border_hover_css( $attributes, 'Mobile' ) | |
| 34 | + $this->get_table_border_hover_css( $attributes, 'Mobile' ), | |
| 35 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_table_border_hover_css( $attributes, $device ); } ) | |
| 34 | 36 | ); |
| 35 | 37 | $css_generator->add_class_styles( |
| 36 | 38 | '{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd', |
| 37 | 39 | $this->get_row_odd_css( $attributes ) |
| @@ -87,15 +89,17 @@ | ||
| 87 | 89 | $css_generator->add_class_styles( |
| 88 | 90 | '{{WRAPPER}}.ablocks-block--table table, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell , {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell', |
| 89 | 91 | $this->get_table_border_css( $attributes ), |
| 90 | 92 | $this->get_table_border_css( $attributes, 'Tablet' ), |
| 91 | - $this->get_table_border_css( $attributes, 'Mobile' ) | |
| 93 | + $this->get_table_border_css( $attributes, 'Mobile' ), | |
| 94 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_table_border_css( $attributes, $device ); } ) | |
| 92 | 95 | ); |
| 93 | 96 | $css_generator->add_class_styles( |
| 94 | 97 | '{{WRAPPER}}.ablocks-block--table table:hover, {{WRAPPER}}.ablocks-block--table-header .ablocks-block--table-cell:hover, {{WRAPPER}}.ablocks-block--table .ablocks-block--table-cell:hover', |
| 95 | 98 | $this->get_table_border_hover_css( $attributes ), |
| 96 | 99 | $this->get_table_border_hover_css( $attributes, 'Tablet' ), |
| 97 | - $this->get_table_border_hover_css( $attributes, 'Mobile' ) | |
| 100 | + $this->get_table_border_hover_css( $attributes, 'Mobile' ), | |
| 101 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_table_border_hover_css( $attributes, $device ); } ) | |
| 98 | 102 | ); |
| 99 | 103 | $css_generator->add_class_styles( |
| 100 | 104 | '{{WRAPPER}} .ablocks-block--table-body .ablocks-table-row--odd', |
| 101 | 105 | $this->get_row_odd_css( $attributes ) |