← All changes
|
includes/blocks/academy-password-reset-form/block.php
+18
-9
2.11.0
→
2.14.0
View file →
| @@ -37,15 +37,17 @@ | ||
| 37 | 37 | $css_generator->add_class_styles( |
| 38 | 38 | '{{WRAPPER}} .academy-password-reset-form-wrapper', |
| 39 | 39 | $this->getResetFormCss( $attributes ), |
| 40 | 40 | $this->getResetFormCss( $attributes, 'Tablet' ), |
| 41 | - $this->getResetFormCss( $attributes, 'Mobile' ) | |
| 41 | + $this->getResetFormCss( $attributes, 'Mobile' ), | |
| 42 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormCss( $attributes, $device ); } ) | |
| 42 | 43 | ); |
| 43 | 44 | $css_generator->add_class_styles( |
| 44 | 45 | '{{WRAPPER}} .academy-password-reset-form-wrapper:hover', |
| 45 | 46 | $this->getResetFormHoverCss( $attributes ), |
| 46 | 47 | $this->getResetFormHoverCss( $attributes, 'Tablet' ), |
| 47 | - $this->getResetFormHoverCss( $attributes, 'Mobile' ) | |
| 48 | + $this->getResetFormHoverCss( $attributes, 'Mobile' ), | |
| 49 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormHoverCss( $attributes, $device ); } ) | |
| 48 | 50 | ); |
| 49 | 51 | |
| 50 | 52 | $css_generator->add_class_styles( |
| 51 | 53 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group label', |
| @@ -50,9 +52,10 @@ | ||
| 50 | 52 | $css_generator->add_class_styles( |
| 51 | 53 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group label', |
| 52 | 54 | $this->getResetFormLabelCss( $attributes ), |
| 53 | 55 | $this->getResetFormLabelCss( $attributes, 'Tablet' ), |
| 54 | - $this->getResetFormLabelCss( $attributes, 'Mobile' ) | |
| 56 | + $this->getResetFormLabelCss( $attributes, 'Mobile' ), | |
| 57 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormLabelCss( $attributes, $device ); } ) | |
| 55 | 58 | ); |
| 56 | 59 | |
| 57 | 60 | $css_generator->add_class_styles( |
| 58 | 61 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input', |
| @@ -57,33 +60,38 @@ | ||
| 57 | 60 | $css_generator->add_class_styles( |
| 58 | 61 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input', |
| 59 | 62 | $this->getResetFormInputCss( $attributes ), |
| 60 | 63 | $this->getResetFormInputCss( $attributes, 'Tablet' ), |
| 61 | - $this->getResetFormInputCss( $attributes, 'Mobile' ) | |
| 64 | + $this->getResetFormInputCss( $attributes, 'Mobile' ), | |
| 65 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormInputCss( $attributes, $device ); } ) | |
| 62 | 66 | ); |
| 63 | 67 | $css_generator->add_class_styles( |
| 64 | 68 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group input:hover', |
| 65 | 69 | $this->getResetFormInputHoverCss( $attributes ), |
| 66 | 70 | $this->getResetFormInputHoverCss( $attributes, 'Tablet' ), |
| 67 | - $this->getResetFormInputHoverCss( $attributes, 'Mobile' ) | |
| 71 | + $this->getResetFormInputHoverCss( $attributes, 'Mobile' ), | |
| 72 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormInputHoverCss( $attributes, $device ); } ) | |
| 68 | 73 | ); |
| 69 | 74 | $css_generator->add_class_styles( |
| 70 | 75 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button', |
| 71 | 76 | $this->getResetFormButtonCss( $attributes ), |
| 72 | 77 | $this->getResetFormButtonCss( $attributes, 'Tablet' ), |
| 73 | - $this->getResetFormButtonCss( $attributes, 'Mobile' ) | |
| 78 | + $this->getResetFormButtonCss( $attributes, 'Mobile' ), | |
| 79 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormButtonCss( $attributes, $device ); } ) | |
| 74 | 80 | ); |
| 75 | 81 | $css_generator->add_class_styles( |
| 76 | 82 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form .academy-form-group button:hover', |
| 77 | 83 | $this->getResetFormButtonHoverCss( $attributes ), |
| 78 | 84 | $this->getResetFormButtonHoverCss( $attributes, 'Tablet' ), |
| 79 | - $this->getResetFormButtonHoverCss( $attributes, 'Mobile' ) | |
| 85 | + $this->getResetFormButtonHoverCss( $attributes, 'Mobile' ), | |
| 86 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormButtonHoverCss( $attributes, $device ); } ) | |
| 80 | 87 | ); |
| 81 | 88 | $css_generator->add_class_styles( |
| 82 | 89 | '{{WRAPPER}} .academy-password-reset-form-wrapper h2.academy-password-reset-form-heading', |
| 83 | 90 | $this->getResetFormHeaderCss( $attributes ), |
| 84 | 91 | $this->getResetFormHeaderCss( $attributes, 'Tablet' ), |
| 85 | - $this->getResetFormHeaderCss( $attributes, 'Mobile' ) | |
| 92 | + $this->getResetFormHeaderCss( $attributes, 'Mobile' ), | |
| 93 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormHeaderCss( $attributes, $device ); } ) | |
| 86 | 94 | ); |
| 87 | 95 | |
| 88 | 96 | $css_generator->add_class_styles( |
| 89 | 97 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form-info a', |
| @@ -88,9 +96,10 @@ | ||
| 88 | 96 | $css_generator->add_class_styles( |
| 89 | 97 | '{{WRAPPER}} .academy-password-reset-form-wrapper .academy-password-reset-form-info a', |
| 90 | 98 | $this->getResetFormFooterCss( $attributes ), |
| 91 | 99 | $this->getResetFormFooterCss( $attributes, 'Tablet' ), |
| 92 | - $this->getResetFormFooterCss( $attributes, 'Mobile' ) | |
| 100 | + $this->getResetFormFooterCss( $attributes, 'Mobile' ), | |
| 101 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->getResetFormFooterCss( $attributes, $device ); } ) | |
| 93 | 102 | ); |
| 94 | 103 | |
| 95 | 104 | return $css_generator->generate_css(); |
| 96 | 105 | } |