| @@ -37,9 +37,10 @@ | ||
| 37 | 37 | $css_generator->add_class_styles( |
| 38 | 38 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button', |
| 39 | 39 | $this->get_login_form_button_css( $attributes ), |
| 40 | 40 | $this->get_login_form_button_css( $attributes, 'Tablet' ), |
| 41 | - $this->get_login_form_button_css( $attributes, 'Mobile' ) | |
| 41 | + $this->get_login_form_button_css( $attributes, 'Mobile' ), | |
| 42 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_login_form_button_css( $attributes, $device ); } ) | |
| 42 | 43 | ); |
| 43 | 44 | |
| 44 | 45 | $css_generator->add_class_styles( |
| 45 | 46 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button:hover', |
| @@ -44,9 +45,10 @@ | ||
| 44 | 45 | $css_generator->add_class_styles( |
| 45 | 46 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group button:hover', |
| 46 | 47 | $this->get_login_btn_hover_css( $attributes ), |
| 47 | 48 | $this->get_login_btn_hover_css( $attributes, 'Tablet' ), |
| 48 | - $this->get_login_btn_hover_css( $attributes, 'Mobile' ) | |
| 49 | + $this->get_login_btn_hover_css( $attributes, 'Mobile' ), | |
| 50 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_login_btn_hover_css( $attributes, $device ); } ) | |
| 49 | 51 | ); |
| 50 | 52 | $css_generator->add_class_styles( |
| 51 | 53 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info, |
| 52 | 54 | {{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info a ', |
| @@ -51,9 +53,10 @@ | ||
| 51 | 53 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info, |
| 52 | 54 | {{WRAPPER}} .academy-login-form-wrapper .academy-login-form-info a ', |
| 53 | 55 | $this->get_login_form_footer_css( $attributes ), |
| 54 | 56 | $this->get_login_form_footer_css( $attributes, 'Tablet' ), |
| 55 | - $this->get_login_form_footer_css( $attributes, 'Mobile' ) | |
| 57 | + $this->get_login_form_footer_css( $attributes, 'Mobile' ), | |
| 58 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_login_form_footer_css( $attributes, $device ); } ) | |
| 56 | 59 | ); |
| 57 | 60 | |
| 58 | 61 | $form_title_desktop_css = $this->get_form_title_css( $attributes ); |
| 59 | 62 | if ( ! empty( $attributes['title_color'] ) ) { |
| @@ -62,9 +65,10 @@ | ||
| 62 | 65 | $css_generator->add_class_styles( |
| 63 | 66 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading', |
| 64 | 67 | $this->get_form_title_css( $attributes ), |
| 65 | 68 | $this->get_form_title_css( $attributes, 'Tablet' ), |
| 66 | - $this->get_form_title_css( $attributes, 'Mobile' ) | |
| 69 | + $this->get_form_title_css( $attributes, 'Mobile' ), | |
| 70 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_title_css( $attributes, $device ); } ) | |
| 67 | 71 | ); |
| 68 | 72 | $css_generator->add_class_styles( |
| 69 | 73 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form-heading:hover', |
| 70 | 74 | $this->form_title_desktop_hover_css( $attributes ) |
| @@ -73,9 +77,10 @@ | ||
| 73 | 77 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form label, |
| 74 | 78 | {{WRAPPER}} .academy-login-form-wrapper .academy-login-form a', |
| 75 | 79 | $this->get_input_field_label_css( $attributes ), |
| 76 | 80 | $this->get_input_field_label_css( $attributes, 'Tablet' ), |
| 77 | - $this->get_input_field_label_css( $attributes, 'Mobile' ) | |
| 81 | + $this->get_input_field_label_css( $attributes, 'Mobile' ), | |
| 82 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_input_field_label_css( $attributes, $device ); } ) | |
| 78 | 83 | ); |
| 79 | 84 | |
| 80 | 85 | $css_generator->add_class_styles( |
| 81 | 86 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form label:hover, |
| @@ -81,9 +86,10 @@ | ||
| 81 | 86 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form label:hover, |
| 82 | 87 | {{WRAPPER}} .academy-login-form-wrapper .academy-login-form a:hover', |
| 83 | 88 | $this->get_input_field_label_hover_css( $attributes ), |
| 84 | 89 | $this->get_input_field_label_hover_css( $attributes, 'Tablet' ), |
| 85 | - $this->get_input_field_label_hover_css( $attributes, 'Mobile' ) | |
| 90 | + $this->get_input_field_label_hover_css( $attributes, 'Mobile' ), | |
| 91 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_input_field_label_hover_css( $attributes, $device ); } ) | |
| 86 | 92 | ); |
| 87 | 93 | |
| 88 | 94 | $css_generator->add_class_styles( |
| 89 | 95 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input', |
| @@ -88,9 +94,10 @@ | ||
| 88 | 94 | $css_generator->add_class_styles( |
| 89 | 95 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input', |
| 90 | 96 | $this->get_input_field_css( $attributes ), |
| 91 | 97 | $this->get_input_field_css( $attributes, 'Tablet' ), |
| 92 | - $this->get_input_field_css( $attributes, 'Mobile' ) | |
| 98 | + $this->get_input_field_css( $attributes, 'Mobile' ), | |
| 99 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_input_field_css( $attributes, $device ); } ) | |
| 93 | 100 | ); |
| 94 | 101 | |
| 95 | 102 | $css_generator->add_class_styles( |
| 96 | 103 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input::placeholder', |
| @@ -95,9 +102,10 @@ | ||
| 95 | 102 | $css_generator->add_class_styles( |
| 96 | 103 | '{{WRAPPER}} .academy-login-form-wrapper .academy-login-form .academy-form-group input::placeholder', |
| 97 | 104 | $this->get_input_field_placeholder_css( $attributes ), |
| 98 | 105 | $this->get_input_field_placeholder_css( $attributes, 'Tablet' ), |
| 99 | - $this->get_input_field_placeholder_css( $attributes, 'Mobile' ) | |
| 106 | + $this->get_input_field_placeholder_css( $attributes, 'Mobile' ), | |
| 107 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_input_field_placeholder_css( $attributes, $device ); } ) | |
| 100 | 108 | ); |
| 101 | 109 | |
| 102 | 110 | $css_generator->add_class_styles( |
| 103 | 111 | '{{WRAPPER}} .academy-login-form-wrapper', |
| @@ -102,9 +110,10 @@ | ||
| 102 | 110 | $css_generator->add_class_styles( |
| 103 | 111 | '{{WRAPPER}} .academy-login-form-wrapper', |
| 104 | 112 | $this->get_form_card_css( $attributes ), |
| 105 | 113 | $this->get_form_card_css( $attributes, 'Tablet' ), |
| 106 | - $this->get_form_card_css( $attributes, 'Mobile' ) | |
| 114 | + $this->get_form_card_css( $attributes, 'Mobile' ), | |
| 115 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_card_css( $attributes, $device ); } ) | |
| 107 | 116 | ); |
| 108 | 117 | |
| 109 | 118 | $css_generator->add_class_styles( |
| 110 | 119 | '{{WRAPPER}} .academy-login-form-wrapper:hover', |
| @@ -109,9 +118,10 @@ | ||
| 109 | 118 | $css_generator->add_class_styles( |
| 110 | 119 | '{{WRAPPER}} .academy-login-form-wrapper:hover', |
| 111 | 120 | $this->get_form_card_hover_css( $attributes ), |
| 112 | 121 | $this->get_form_card_hover_css( $attributes, 'Tablet' ), |
| 113 | - $this->get_form_card_hover_css( $attributes, 'Mobile' ) | |
| 122 | + $this->get_form_card_hover_css( $attributes, 'Mobile' ), | |
| 123 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_form_card_hover_css( $attributes, $device ); } ) | |
| 114 | 124 | ); |
| 115 | 125 | |
| 116 | 126 | return $css_generator->generate_css(); |
| 117 | 127 | } |