| @@ -29,9 +29,10 @@ | ||
| 29 | 29 | '{{WRAPPER}} .academy-review-form, |
| 30 | 30 | {{WRAPPER}} .academy-review-form--open-form .comment-respond', |
| 31 | 31 | $this->get_review_form_css( $attributes, '' ), |
| 32 | 32 | $this->get_review_form_css( $attributes, 'Tablet' ), |
| 33 | - $this->get_review_form_css( $attributes, 'Mobile' ) | |
| 33 | + $this->get_review_form_css( $attributes, 'Mobile' ), | |
| 34 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_form_css( $attributes, $device ); } ) | |
| 34 | 35 | ); |
| 35 | 36 | $css_generator->add_class_styles( |
| 36 | 37 | '{{WRAPPER}} .academy-review-form:hover, |
| 37 | 38 | {{WRAPPER}} .academy-review-form--open-form .comment-respond:hover', |
| @@ -36,21 +37,24 @@ | ||
| 36 | 37 | '{{WRAPPER}} .academy-review-form:hover, |
| 37 | 38 | {{WRAPPER}} .academy-review-form--open-form .comment-respond:hover', |
| 38 | 39 | $this->get_review_form_hover_css( $attributes, '' ), |
| 39 | 40 | $this->get_review_form_hover_css( $attributes, 'Tablet' ), |
| 40 | - $this->get_review_form_hover_css( $attributes, 'Mobile' ) | |
| 41 | + $this->get_review_form_hover_css( $attributes, 'Mobile' ), | |
| 42 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_form_hover_css( $attributes, $device ); } ) | |
| 41 | 43 | ); |
| 42 | 44 | $css_generator->add_class_styles( |
| 43 | 45 | '{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review', |
| 44 | 46 | $this->get_review_button_css( $attributes, '' ), |
| 45 | 47 | $this->get_review_button_css( $attributes, 'Tablet' ), |
| 46 | - $this->get_review_button_css( $attributes, 'Mobile' ) | |
| 48 | + $this->get_review_button_css( $attributes, 'Mobile' ), | |
| 49 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_button_css( $attributes, $device ); } ) | |
| 47 | 50 | ); |
| 48 | 51 | $css_generator->add_class_styles( |
| 49 | 52 | '{{WRAPPER}} .academy-review-form__add-review .academy-btn-add-review:hover', |
| 50 | 53 | $this->get_review_button_hover_css( $attributes, '' ), |
| 51 | 54 | $this->get_review_button_hover_css( $attributes, 'Tablet' ), |
| 52 | - $this->get_review_button_hover_css( $attributes, 'Mobile' ) | |
| 55 | + $this->get_review_button_hover_css( $attributes, 'Mobile' ), | |
| 56 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_button_hover_css( $attributes, $device ); } ) | |
| 53 | 57 | ); |
| 54 | 58 | $css_generator->add_class_styles( |
| 55 | 59 | '{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a, |
| 56 | 60 | {{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a::before', |
| @@ -55,9 +59,10 @@ | ||
| 55 | 59 | '{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a, |
| 56 | 60 | {{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a::before', |
| 57 | 61 | $this->get_start_review_css( $attributes, '' ), |
| 58 | 62 | $this->get_start_review_css( $attributes, 'Tablet' ), |
| 59 | - $this->get_start_review_css( $attributes, 'Mobile' ) | |
| 63 | + $this->get_start_review_css( $attributes, 'Mobile' ), | |
| 64 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_start_review_css( $attributes, $device ); } ) | |
| 60 | 65 | ); |
| 61 | 66 | $css_generator->add_class_styles( |
| 62 | 67 | '{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a:hover, |
| 63 | 68 | {{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a:hover::before', |
| @@ -62,33 +67,38 @@ | ||
| 62 | 67 | '{{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a:hover, |
| 63 | 68 | {{WRAPPER}} .academy-review-form .academy-review-form-rating p.stars a:hover::before', |
| 64 | 69 | $this->get_start_review_hover_css( $attributes, '' ), |
| 65 | 70 | $this->get_start_review_hover_css( $attributes, 'Tablet' ), |
| 66 | - $this->get_start_review_hover_css( $attributes, 'Mobile' ) | |
| 71 | + $this->get_start_review_hover_css( $attributes, 'Mobile' ), | |
| 72 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_start_review_hover_css( $attributes, $device ); } ) | |
| 67 | 73 | ); |
| 68 | 74 | $css_generator->add_class_styles( |
| 69 | 75 | '{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea', |
| 70 | 76 | $this->get_form_css( $attributes, '' ), |
| 71 | 77 | $this->get_form_css( $attributes, 'Tablet' ), |
| 72 | - $this->get_form_css( $attributes, 'Mobile' ) | |
| 78 | + $this->get_form_css( $attributes, 'Mobile' ), | |
| 79 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_css( $attributes, $device ); } ) | |
| 73 | 80 | ); |
| 74 | 81 | $css_generator->add_class_styles( |
| 75 | 82 | '{{WRAPPER}} .academy-review-form .comment-respond form.comment-form .academy-review-form-review textarea:hover', |
| 76 | 83 | $this->get_form_hover_css( $attributes, '' ), |
| 77 | 84 | $this->get_form_hover_css( $attributes, 'Tablet' ), |
| 78 | - $this->get_form_hover_css( $attributes, 'Mobile' ) | |
| 85 | + $this->get_form_hover_css( $attributes, 'Mobile' ), | |
| 86 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_hover_css( $attributes, $device ); } ) | |
| 79 | 87 | ); |
| 80 | 88 | $css_generator->add_class_styles( |
| 81 | 89 | '{{WRAPPER}} .academy-review-form input[type=submit]', |
| 82 | 90 | $this->get_submit_css( $attributes, '' ), |
| 83 | 91 | $this->get_submit_css( $attributes, 'Tablet' ), |
| 84 | - $this->get_submit_css( $attributes, 'Mobile' ) | |
| 92 | + $this->get_submit_css( $attributes, 'Mobile' ), | |
| 93 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_submit_css( $attributes, $device ); } ) | |
| 85 | 94 | ); |
| 86 | 95 | $css_generator->add_class_styles( |
| 87 | 96 | '{{WRAPPER}} .academy-review-form input[type=submit]:hover', |
| 88 | 97 | $this->get_submit_hover_css( $attributes, '' ), |
| 89 | 98 | $this->get_submit_hover_css( $attributes, 'Tablet' ), |
| 90 | - $this->get_submit_hover_css( $attributes, 'Mobile' ) | |
| 99 | + $this->get_submit_hover_css( $attributes, 'Mobile' ), | |
| 100 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_submit_hover_css( $attributes, $device ); } ) | |
| 91 | 101 | ); |
| 92 | 102 | return $css_generator->generate_css(); |
| 93 | 103 | } |
| 94 | 104 | |