← All changes
|
includes/blocks/academy-instructor-registration-form/block.php
+16
-8
2.12.0
→
2.14.0
View file →
| @@ -37,9 +37,10 @@ | ||
| 37 | 37 | $css_generator->add_class_styles( |
| 38 | 38 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group label', |
| 39 | 39 | $this->get_form_input_label_css( $attributes ), |
| 40 | 40 | $this->get_form_input_label_css( $attributes, 'Tablet' ), |
| 41 | - $this->get_form_input_label_css( $attributes, 'Mobile' ) | |
| 41 | + $this->get_form_input_label_css( $attributes, 'Mobile' ), | |
| 42 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_input_label_css( $attributes, $device ); } ) | |
| 42 | 43 | ); |
| 43 | 44 | |
| 44 | 45 | $css_generator->add_class_styles( |
| 45 | 46 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input', |
| @@ -44,15 +45,17 @@ | ||
| 44 | 45 | $css_generator->add_class_styles( |
| 45 | 46 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input', |
| 46 | 47 | $this->get_form_input_field_css( $attributes ), |
| 47 | 48 | $this->get_form_input_field_css( $attributes, 'Tablet' ), |
| 48 | - $this->get_form_input_field_css( $attributes, 'Mobile' ) | |
| 49 | + $this->get_form_input_field_css( $attributes, 'Mobile' ), | |
| 50 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_input_field_css( $attributes, $device ); } ) | |
| 49 | 51 | ); |
| 50 | 52 | $css_generator->add_class_styles( |
| 51 | 53 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input:hover', |
| 52 | 54 | $this->get_form_input_field_hover_css( $attributes ), |
| 53 | 55 | $this->get_form_input_field_hover_css( $attributes, 'Tablet' ), |
| 54 | - $this->get_form_input_field_hover_css( $attributes, 'Mobile' ) | |
| 56 | + $this->get_form_input_field_hover_css( $attributes, 'Mobile' ), | |
| 57 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_input_field_hover_css( $attributes, $device ); } ) | |
| 55 | 58 | ); |
| 56 | 59 | |
| 57 | 60 | $css_generator->add_class_styles( |
| 58 | 61 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input::placeholder', |
| @@ -57,15 +60,17 @@ | ||
| 57 | 60 | $css_generator->add_class_styles( |
| 58 | 61 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group input::placeholder', |
| 59 | 62 | $this->get_form_input_field_placeholder_css( $attributes ), |
| 60 | 63 | $this->get_form_input_field_placeholder_css( $attributes, 'Tablet' ), |
| 61 | - $this->get_form_input_field_placeholder_css( $attributes, 'Mobile' ) | |
| 64 | + $this->get_form_input_field_placeholder_css( $attributes, 'Mobile' ), | |
| 65 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_input_field_placeholder_css( $attributes, $device ); } ) | |
| 62 | 66 | ); |
| 63 | 67 | $css_generator->add_class_styles( |
| 64 | 68 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button', |
| 65 | 69 | $this->get_form_button_css( $attributes ), |
| 66 | 70 | $this->get_form_button_css( $attributes, 'Tablet' ), |
| 67 | - $this->get_form_button_css( $attributes, 'Mobile' ) | |
| 71 | + $this->get_form_button_css( $attributes, 'Mobile' ), | |
| 72 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_button_css( $attributes, $device ); } ) | |
| 68 | 73 | ); |
| 69 | 74 | |
| 70 | 75 | $css_generator->add_class_styles( |
| 71 | 76 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button:hover', |
| @@ -70,9 +75,10 @@ | ||
| 70 | 75 | $css_generator->add_class_styles( |
| 71 | 76 | '{{WRAPPER}} .academy-reg-form--instructor .academy-form-group button:hover', |
| 72 | 77 | $this->get_form_button_hover_css( $attributes ), |
| 73 | 78 | $this->get_form_button_hover_css( $attributes, 'Tablet' ), |
| 74 | - $this->get_form_button_hover_css( $attributes, 'Mobile' ) | |
| 79 | + $this->get_form_button_hover_css( $attributes, 'Mobile' ), | |
| 80 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_button_hover_css( $attributes, $device ); } ) | |
| 75 | 81 | ); |
| 76 | 82 | |
| 77 | 83 | $css_generator->add_class_styles( |
| 78 | 84 | '{{WRAPPER}} .academy-reg-form', |
| @@ -77,9 +83,10 @@ | ||
| 77 | 83 | $css_generator->add_class_styles( |
| 78 | 84 | '{{WRAPPER}} .academy-reg-form', |
| 79 | 85 | $this->get_form_css( $attributes ), |
| 80 | 86 | $this->get_form_css( $attributes, 'Tablet' ), |
| 81 | - $this->get_form_css( $attributes, 'Mobile' ) | |
| 87 | + $this->get_form_css( $attributes, 'Mobile' ), | |
| 88 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_css( $attributes, $device ); } ) | |
| 82 | 89 | ); |
| 83 | 90 | |
| 84 | 91 | $css_generator->add_class_styles( |
| 85 | 92 | '{{WRAPPER}} .academy-reg-form:hover', |
| @@ -84,9 +91,10 @@ | ||
| 84 | 91 | $css_generator->add_class_styles( |
| 85 | 92 | '{{WRAPPER}} .academy-reg-form:hover', |
| 86 | 93 | $this->get_form_hover_css( $attributes ), |
| 87 | 94 | $this->get_form_hover_css( $attributes, 'Tablet' ), |
| 88 | - $this->get_form_hover_css( $attributes, 'Mobile' ) | |
| 95 | + $this->get_form_hover_css( $attributes, 'Mobile' ), | |
| 96 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_hover_css( $attributes, $device ); } ) | |
| 89 | 97 | ); |
| 90 | 98 | |
| 91 | 99 | return $css_generator->generate_css(); |
| 92 | 100 | } |