| @@ -27,9 +27,10 @@ | ||
| 27 | 27 | $css_generator->add_class_styles( |
| 28 | 28 | '{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title', |
| 29 | 29 | $this->get_heading_css( $attributes, '' ), |
| 30 | 30 | $this->get_heading_css( $attributes, 'Tablet' ), |
| 31 | - $this->get_heading_css( $attributes, 'Mobile' ) | |
| 31 | + $this->get_heading_css( $attributes, 'Mobile' ), | |
| 32 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_heading_css( $attributes, $device ); } ) | |
| 32 | 33 | ); |
| 33 | 34 | |
| 34 | 35 | $css_generator->add_class_styles( |
| 35 | 36 | '{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title:hover', |
| @@ -34,9 +35,10 @@ | ||
| 34 | 35 | $css_generator->add_class_styles( |
| 35 | 36 | '{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-title:hover', |
| 36 | 37 | $this->get_heading_hover_css( $attributes, '' ), |
| 37 | 38 | $this->get_heading_hover_css( $attributes, 'Tablet' ), |
| 38 | - $this->get_heading_hover_css( $attributes, 'Mobile' ) | |
| 39 | + $this->get_heading_hover_css( $attributes, 'Mobile' ), | |
| 40 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_heading_hover_css( $attributes, $device ); } ) | |
| 39 | 41 | ); |
| 40 | 42 | |
| 41 | 43 | $css_generator->add_class_styles( |
| 42 | 44 | '{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span, |
| @@ -42,9 +44,10 @@ | ||
| 42 | 44 | '{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span, |
| 43 | 45 | {{WRAPPER}} .academy-tabs-content .academy-lists li span', |
| 44 | 46 | $this->get_list_css( $attributes, '' ), |
| 45 | 47 | $this->get_list_css( $attributes, 'Tablet' ), |
| 46 | - $this->get_list_css( $attributes, 'Mobile' ) | |
| 48 | + $this->get_list_css( $attributes, 'Mobile' ), | |
| 49 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_list_css( $attributes, $device ); } ) | |
| 47 | 50 | ); |
| 48 | 51 | |
| 49 | 52 | $css_generator->add_class_styles( |
| 50 | 53 | '{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span:hover, |
| @@ -50,15 +53,17 @@ | ||
| 50 | 53 | '{{WRAPPER}} .academy-single-course__content-item--benefits .benefits-content ul li span:hover, |
| 51 | 54 | {{WRAPPER}} .academy-tabs-content .academy-lists li span:hover', |
| 52 | 55 | $this->get_list_hover_css( $attributes, '' ), |
| 53 | 56 | $this->get_list_hover_css( $attributes, 'Tablet' ), |
| 54 | - $this->get_list_hover_css( $attributes, 'Mobile' ) | |
| 57 | + $this->get_list_hover_css( $attributes, 'Mobile' ), | |
| 58 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_list_hover_css( $attributes, $device ); } ) | |
| 55 | 59 | ); |
| 56 | 60 | $css_generator->add_class_styles( |
| 57 | 61 | '{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a', |
| 58 | 62 | $this->get_tab_css( $attributes, '' ), |
| 59 | 63 | $this->get_tab_css( $attributes, 'Tablet' ), |
| 60 | - $this->get_tab_css( $attributes, 'Mobile' ) | |
| 64 | + $this->get_tab_css( $attributes, 'Mobile' ), | |
| 65 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_tab_css( $attributes, $device ); } ) | |
| 61 | 66 | ); |
| 62 | 67 | |
| 63 | 68 | $css_generator->add_class_styles( |
| 64 | 69 | '{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a:hover', |
| @@ -63,9 +68,10 @@ | ||
| 63 | 68 | $css_generator->add_class_styles( |
| 64 | 69 | '{{WRAPPER}} .academy-single-course__content-item--additional-info .academy-tabs-nav li a:hover', |
| 65 | 70 | $this->get_tab_hover_css( $attributes, '' ), |
| 66 | 71 | $this->get_tab_hover_css( $attributes, 'Tablet' ), |
| 67 | - $this->get_tab_hover_css( $attributes, 'Mobile' ) | |
| 72 | + $this->get_tab_hover_css( $attributes, 'Mobile' ), | |
| 73 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_tab_hover_css( $attributes, $device ); } ) | |
| 68 | 74 | ); |
| 69 | 75 | |
| 70 | 76 | $css_generator->add_class_styles( |
| 71 | 77 | '{{WRAPPER}} .academy-tabs-nav li.active', |
| @@ -70,9 +76,10 @@ | ||
| 70 | 76 | $css_generator->add_class_styles( |
| 71 | 77 | '{{WRAPPER}} .academy-tabs-nav li.active', |
| 72 | 78 | $this->get_active_list_css( $attributes, '' ), |
| 73 | 79 | $this->get_active_list_css( $attributes, 'Tablet' ), |
| 74 | - $this->get_active_list_css( $attributes, 'Mobile' ) | |
| 80 | + $this->get_active_list_css( $attributes, 'Mobile' ), | |
| 81 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_active_list_css( $attributes, $device ); } ) | |
| 75 | 82 | ); |
| 76 | 83 | |
| 77 | 84 | $css_generator->add_class_styles( |
| 78 | 85 | '{{WRAPPER}} .academy-tabs-nav li.active', |
| @@ -77,9 +84,10 @@ | ||
| 77 | 84 | $css_generator->add_class_styles( |
| 78 | 85 | '{{WRAPPER}} .academy-tabs-nav li.active', |
| 79 | 86 | $this->get_active_list_hover_css( $attributes, '' ), |
| 80 | 87 | $this->get_active_list_hover_css( $attributes, 'Tablet' ), |
| 81 | - $this->get_active_list_hover_css( $attributes, 'Mobile' ) | |
| 88 | + $this->get_active_list_hover_css( $attributes, 'Mobile' ), | |
| 89 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_active_list_hover_css( $attributes, $device ); } ) | |
| 82 | 90 | ); |
| 83 | 91 | |
| 84 | 92 | return $css_generator->generate_css(); |
| 85 | 93 | } |