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