form-01--form-container.php
3 years ago
form-02--form-fields.php
3 years ago
form-03--input.php
3 years ago
form-04--select2.php
3 years ago
form-05--select2-dropdown.php
3 years ago
form-06--timepicker-dropdown.php
3 years ago
form-07--radio.php
3 years ago
form-08--checkbox.php
3 years ago
form-09--calendar.php
3 years ago
form-10--submit.php
3 years ago
form-11--options-container.php
3 years ago
form-12--options-title.php
3 years ago
form-13--gdpr.php
3 years ago
form-14--error-message.php
3 years ago
form-15--success-message.php
2 years ago
form-16--recaptcha.php
3 years ago
general-01--module-container.php
3 years ago
general-02--main-layout.php
3 years ago
general-03--layout-header.php
3 years ago
general-04--layout-content.php
3 years ago
general-05--layout-footer.php
3 years ago
general-06--image-size.php
3 years ago
general-07--image-fitting.php
3 years ago
general-08--image-position.php
3 years ago
general-09--content-wrapper.php
3 years ago
general-10--title.php
3 years ago
general-11--subtitle.php
3 years ago
general-12--content.php
9 months ago
general-13--cta-container.php
3 years ago
general-14--cta-button.php
3 years ago
general-15--cta-alignment.php
3 years ago
general-16--nsa-link.php
3 years ago
general-17--close-button.php
3 years ago
general-18--popup-mask.php
3 years ago
general-19--cta-helper-text.php
3 years ago
module-size-embed.php
3 years ago
module-size-popup.php
3 years ago
module-size-slidein.php
3 years ago
form-15--success-message.php
310 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Success Message. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.3.0 |
| 7 | */ |
| 8 | |
| 9 | $container = '.hustle-success'; |
| 10 | $component = '.hustle-success-content'; |
| 11 | |
| 12 | // SETTINGS: Padding. |
| 13 | $padding_top = ( '' !== $advanced['success_message_padding_top'] ) ? $advanced['success_message_padding_top'] . $advanced['success_message_padding_unit'] : '0'; |
| 14 | $padding_right = ( '' !== $advanced['success_message_padding_right'] ) ? $advanced['success_message_padding_right'] . $advanced['success_message_padding_unit'] : '0'; |
| 15 | $padding_bottom = ( '' !== $advanced['success_message_padding_bottom'] ) ? $advanced['success_message_padding_bottom'] . $advanced['success_message_padding_unit'] : '0'; |
| 16 | $padding_left = ( '' !== $advanced['success_message_padding_left'] ) ? $advanced['success_message_padding_left'] . $advanced['success_message_padding_unit'] : '0'; |
| 17 | |
| 18 | $padding = $padding_top . ' ' . $padding_right . ' ' . $padding_bottom . ' ' . $padding_left; |
| 19 | |
| 20 | $mobile_padding_top = ( '' !== $advanced['success_message_padding_top_mobile'] ) ? $advanced['success_message_padding_top_mobile'] . $advanced['success_message_padding_unit_mobile'] : $padding_top; |
| 21 | $mobile_padding_right = ( '' !== $advanced['success_message_padding_right_mobile'] ) ? $advanced['success_message_padding_right_mobile'] . $advanced['success_message_padding_unit_mobile'] : $padding_right; |
| 22 | $mobile_padding_bottom = ( '' !== $advanced['success_message_padding_bottom_mobile'] ) ? $advanced['success_message_padding_bottom_mobile'] . $advanced['success_message_padding_unit_mobile'] : $padding_bottom; |
| 23 | $mobile_padding_left = ( '' !== $advanced['success_message_padding_left_mobile'] ) ? $advanced['success_message_padding_left_mobile'] . $advanced['success_message_padding_unit_mobile'] : $padding_left; |
| 24 | |
| 25 | $mobile_padding = $mobile_padding_top . ' ' . $mobile_padding_right . ' ' . $mobile_padding_bottom . ' ' . $mobile_padding_left; |
| 26 | $mobile_padding = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $padding : $mobile_padding; |
| 27 | |
| 28 | // SETTINGS: Border. |
| 29 | $border_top = ( '' !== $advanced['success_message_border_top'] ) ? $advanced['success_message_border_top'] . $advanced['success_message_border_unit'] : '0'; |
| 30 | $border_right = ( '' !== $advanced['success_message_border_right'] ) ? $advanced['success_message_border_right'] . $advanced['success_message_border_unit'] : '0'; |
| 31 | $border_bottom = ( '' !== $advanced['success_message_border_bottom'] ) ? $advanced['success_message_border_bottom'] . $advanced['success_message_border_unit'] : '0'; |
| 32 | $border_left = ( '' !== $advanced['success_message_border_left'] ) ? $advanced['success_message_border_left'] . $advanced['success_message_border_unit'] : '0'; |
| 33 | |
| 34 | $border_width = $border_top . ' ' . $border_right . ' ' . $border_bottom . ' ' . $border_left; |
| 35 | $border_style = $advanced['success_message_border_type']; |
| 36 | $border_color = $colors['optin_success_border']; |
| 37 | |
| 38 | $mobile_border_top = ( '' !== $advanced['success_message_border_top_mobile'] ) ? $advanced['success_message_border_top_mobile'] . $advanced['success_message_border_unit_mobile'] : $border_top; |
| 39 | $mobile_border_right = ( '' !== $advanced['success_message_border_right_mobile'] ) ? $advanced['success_message_border_right_mobile'] . $advanced['success_message_border_unit_mobile'] : $border_right; |
| 40 | $mobile_border_bottom = ( '' !== $advanced['success_message_border_bottom_mobile'] ) ? $advanced['success_message_border_bottom_mobile'] . $advanced['success_message_border_unit_mobile'] : $border_bottom; |
| 41 | $mobile_border_left = ( '' !== $advanced['success_message_border_left_mobile'] ) ? $advanced['success_message_border_left_mobile'] . $advanced['success_message_border_unit_mobile'] : $border_left; |
| 42 | |
| 43 | $mobile_border_width = $mobile_border_top . ' ' . $mobile_border_right . ' ' . $mobile_border_bottom . ' ' . $mobile_border_left; |
| 44 | $mobile_border_width = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $border_width : $mobile_border_width; |
| 45 | $mobile_border_style = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $border_style : $advanced['success_message_border_type_mobile']; |
| 46 | |
| 47 | // SETTINGS: Border Radius. |
| 48 | $radius_topleft = ( '' !== $advanced['success_message_radius_top_left'] ) ? $advanced['success_message_radius_top_left'] . $advanced['success_message_radius_unit'] : '0'; |
| 49 | $radius_topright = ( '' !== $advanced['success_message_radius_top_right'] ) ? $advanced['success_message_radius_top_right'] . $advanced['success_message_radius_unit'] : '0'; |
| 50 | $radius_bottomright = ( '' !== $advanced['success_message_radius_bottom_right'] ) ? $advanced['success_message_radius_bottom_right'] . $advanced['success_message_radius_unit'] : '0'; |
| 51 | $radius_bottomleft = ( '' !== $advanced['success_message_radius_bottom_left'] ) ? $advanced['success_message_radius_bottom_left'] . $advanced['success_message_radius_unit'] : '0'; |
| 52 | |
| 53 | $border_radius = $radius_topleft . ' ' . $radius_topright . ' ' . $radius_bottomright . ' ' . $radius_bottomleft; |
| 54 | |
| 55 | $mobile_radius_topleft = ( '' !== $advanced['success_message_radius_top_left_mobile'] ) ? $advanced['success_message_radius_top_left_mobile'] . $advanced['success_message_radius_unit_mobile'] : $radius_topleft; |
| 56 | $mobile_radius_topright = ( '' !== $advanced['success_message_radius_top_right_mobile'] ) ? $advanced['success_message_radius_top_right_mobile'] . $advanced['success_message_radius_unit_mobile'] : $radius_topright; |
| 57 | $mobile_radius_bottomright = ( '' !== $advanced['success_message_radius_bottom_right_mobile'] ) ? $advanced['success_message_radius_bottom_right_mobile'] . $advanced['success_message_radius_unit_mobile'] : $radius_bottomright; |
| 58 | $mobile_radius_bottomleft = ( '' !== $advanced['success_message_radius_bottom_left_mobile'] ) ? $advanced['success_message_radius_bottom_left_mobile'] . $advanced['success_message_radius_unit_mobile'] : $radius_bottomleft; |
| 59 | |
| 60 | $mobile_border_radius = $mobile_radius_topleft . ' ' . $mobile_radius_topright . ' ' . $mobile_radius_bottomright . ' ' . $mobile_radius_bottomleft; |
| 61 | $mobile_border_radius = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $border_radius : $mobile_border_radius; |
| 62 | |
| 63 | // SETTINGS: Box Shadow. |
| 64 | $shadow_offset_x = ( '' !== $advanced['success_message_drop_shadow_x'] ) ? $advanced['success_message_drop_shadow_x'] . $advanced['success_message_drop_shadow_unit'] : '0'; |
| 65 | $shadow_offset_y = ( '' !== $advanced['success_message_drop_shadow_y'] ) ? $advanced['success_message_drop_shadow_y'] . $advanced['success_message_drop_shadow_unit'] : '0'; |
| 66 | $shadow_blur = ( '' !== $advanced['success_message_drop_shadow_blur'] ) ? $advanced['success_message_drop_shadow_blur'] . $advanced['success_message_drop_shadow_unit'] : '0'; |
| 67 | $shadow_spread = ( '' !== $advanced['success_message_drop_shadow_spread'] ) ? $advanced['success_message_drop_shadow_spread'] . $advanced['success_message_drop_shadow_unit'] : '0'; |
| 68 | $shadow_color = $colors['optin_success_drop_shadow']; |
| 69 | |
| 70 | $box_shadow = $shadow_offset_x . ' ' . $shadow_offset_y . ' ' . $shadow_blur . ' ' . $shadow_spread . ' ' . $shadow_color; |
| 71 | |
| 72 | $mobile_shadow_offset_x = ( '' !== $advanced['success_message_drop_shadow_x_mobile'] ) ? $advanced['success_message_drop_shadow_x_mobile'] . $advanced['success_message_drop_shadow_unit_mobile'] : $shadow_offset_x; |
| 73 | $mobile_shadow_offset_y = ( '' !== $advanced['success_message_drop_shadow_y_mobile'] ) ? $advanced['success_message_drop_shadow_y_mobile'] . $advanced['success_message_drop_shadow_unit_mobile'] : $shadow_offset_y; |
| 74 | $mobile_shadow_blur = ( '' !== $advanced['success_message_drop_shadow_blur_mobile'] ) ? $advanced['success_message_drop_shadow_blur_mobile'] . $advanced['success_message_drop_shadow_unit_mobile'] : $shadow_blur; |
| 75 | $mobile_shadow_spread = ( '' !== $advanced['success_message_drop_shadow_spread_mobile'] ) ? $advanced['success_message_drop_shadow_spread_mobile'] . $advanced['success_message_drop_shadow_unit_mobile'] : $shadow_spread; |
| 76 | |
| 77 | $mobile_box_shadow = $mobile_shadow_offset_x . ' ' . $mobile_shadow_offset_y . ' ' . $mobile_shadow_blur . ' ' . $mobile_shadow_spread . ' ' . $shadow_color; |
| 78 | $mobile_box_shadow = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $box_shadow : $mobile_box_shadow; |
| 79 | |
| 80 | // SETTINGS: Colors. |
| 81 | $background = $colors['optin_success_background']; |
| 82 | $icon_color = $colors['optin_success_tick_color']; |
| 83 | |
| 84 | $link_default = $colors['link_static_color']; |
| 85 | $link_hover = $colors['link_hover_color']; |
| 86 | $link_focus = $colors['link_active_color']; |
| 87 | |
| 88 | $font_color = $colors['optin_success_content_color']; |
| 89 | |
| 90 | // ================================================== |
| 91 | // Check if module is an opt-in. |
| 92 | if ( $is_optin ) { |
| 93 | |
| 94 | $style .= ' '; |
| 95 | |
| 96 | // Mobile styles. |
| 97 | $style .= $prefix_mobile . $container . ' {'; |
| 98 | $style .= 'padding: ' . $mobile_padding . ';'; |
| 99 | $style .= 'border-width: ' . $mobile_border_width . ';'; |
| 100 | $style .= 'border-style: ' . $mobile_border_style . ';'; |
| 101 | $style .= 'border-radius: ' . $mobile_border_radius . ';'; |
| 102 | $style .= ( ! $is_vanilla ) ? 'border-color: ' . $border_color . ';' : ''; |
| 103 | $style .= ( ! $is_vanilla ) ? 'background-color: ' . $background . ';' : ''; |
| 104 | $style .= ( ! $is_vanilla ) ? 'box-shadow: ' . $mobile_box_shadow . ';' : ''; |
| 105 | $style .= ( ! $is_vanilla ) ? '-moz-box-shadow: ' . $mobile_box_shadow . ';' : ''; |
| 106 | $style .= ( ! $is_vanilla ) ? '-webkit-box-shadow: ' . $mobile_box_shadow . ';' : ''; |
| 107 | $style .= ( ! $is_vanilla ) ? 'color: ' . $font_color . ';' : ''; |
| 108 | $style .= '}'; |
| 109 | |
| 110 | if ( ! $is_vanilla ) { |
| 111 | |
| 112 | $style .= $prefix_mobile . $container . ' [class*="hustle-icon-"] {'; |
| 113 | $style .= 'color: ' . $icon_color . ';'; |
| 114 | $style .= '}'; |
| 115 | |
| 116 | $style .= $prefix_mobile . $container . ' a,'; |
| 117 | $style .= $prefix_mobile . $container . ' a:visited {'; |
| 118 | $style .= 'color: ' . $link_default . ';'; |
| 119 | $style .= '}'; |
| 120 | |
| 121 | $style .= $prefix_mobile . $container . ' a:hover {'; |
| 122 | $style .= 'color: ' . $link_hover . ';'; |
| 123 | $style .= '}'; |
| 124 | |
| 125 | $style .= $prefix_mobile . $container . ' a:focus,'; |
| 126 | $style .= $prefix_mobile . $container . ' a:active {'; |
| 127 | $style .= 'color: ' . $link_focus . ';'; |
| 128 | $style .= '}'; |
| 129 | |
| 130 | } |
| 131 | |
| 132 | $style .= $prefix_mobile . $component . ' b,'; |
| 133 | $style .= $prefix_mobile . $component . ' strong {'; |
| 134 | $style .= 'font-weight: bold;'; |
| 135 | $style .= '}'; |
| 136 | |
| 137 | $style .= $prefix_mobile . $component . ' blockquote {'; |
| 138 | $style .= 'margin-right: 0;'; |
| 139 | $style .= 'margin-left: 0;'; |
| 140 | $style .= '}'; |
| 141 | |
| 142 | // Desktop styles. |
| 143 | if ( $is_mobile_enabled ) { |
| 144 | $style .= $breakpoint . ' {'; |
| 145 | $style .= $prefix_desktop . $container . ' {'; |
| 146 | $style .= 'padding: ' . $padding . ';'; |
| 147 | $style .= 'border-width: ' . $border_width . ';'; |
| 148 | $style .= 'border-style: ' . $border_style . ';'; |
| 149 | $style .= 'border-radius: ' . $border_radius . ';'; |
| 150 | $style .= 'box-shadow: ' . $box_shadow . ';'; |
| 151 | $style .= '-moz-box-shadow: ' . $box_shadow . ';'; |
| 152 | $style .= '-webkit-box-shadow: ' . $box_shadow . ';'; |
| 153 | $style .= '}'; |
| 154 | $style .= '}'; |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | // ================================================== |
| 159 | // Add styles for typography. |
| 160 | $typos = array( |
| 161 | 'p' => 'paragraph', |
| 162 | 'h1' => 'heading_one', |
| 163 | 'h2' => 'heading_two', |
| 164 | 'h3' => 'heading_three', |
| 165 | 'h4' => 'heading_four', |
| 166 | 'h5' => 'heading_five', |
| 167 | 'h6' => 'heading_six', |
| 168 | 'li' => 'lists', |
| 169 | ); |
| 170 | |
| 171 | foreach ( $typos as $key => $prop ) { |
| 172 | |
| 173 | $prop_prefix = 'success_message'; |
| 174 | |
| 175 | // DESKTOP: Basic. |
| 176 | $font_family = $typography[ $prop_prefix . '_' . $prop . '_font_family' ]; |
| 177 | $font_size = $typography[ $prop_prefix . '_' . $prop . '_font_size' ]; |
| 178 | $font_size_unit = $typography[ $prop_prefix . '_' . $prop . '_font_size_unit' ]; |
| 179 | $font_size = ( '' !== $font_size ) ? $font_size . $font_size_unit : '0'; |
| 180 | $font_weight = $typography[ $prop_prefix . '_' . $prop . '_font_weight' ]; |
| 181 | $font_weight = ( 'regular' === $font_weight ) ? 'normal' : $font_weight; |
| 182 | |
| 183 | // MOBILE: Basic. |
| 184 | $mobile_font_size = $typography[ $prop_prefix . '_' . $prop . '_font_size_mobile' ]; |
| 185 | $mobile_font_size_unit = $typography[ $prop_prefix . '_' . $prop . '_font_size_unit_mobile' ]; |
| 186 | $mobile_font_size = ( '' !== $mobile_font_size ) ? $mobile_font_size . $mobile_font_size_unit : $font_size; |
| 187 | $mobile_font_weight = $typography[ $prop_prefix . '_' . $prop . '_font_weight_mobile' ]; |
| 188 | $mobile_font_weight = ( 'regular' === $mobile_font_weight ) ? 'normal' : $mobile_font_weight; |
| 189 | |
| 190 | if ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_typography ) ) { |
| 191 | $mobile_font_size = $font_size; |
| 192 | $mobile_font_weight = $font_weight; |
| 193 | } |
| 194 | |
| 195 | // DESKTOP: Advanced. |
| 196 | $line_height = $typography[ $prop_prefix . '_' . $prop . '_line_height' ]; |
| 197 | $line_height_unit = $typography[ $prop_prefix . '_' . $prop . '_line_height_unit' ]; |
| 198 | $line_height = ( '' !== $line_height ) ? $line_height . $line_height_unit : '0'; |
| 199 | $letter_spacing = $typography[ $prop_prefix . '_' . $prop . '_letter_spacing' ]; |
| 200 | $letter_spacing_unit = $typography[ $prop_prefix . '_' . $prop . '_letter_spacing_unit' ]; |
| 201 | $letter_spacing = ( '' !== $letter_spacing ) ? $letter_spacing . $letter_spacing_unit : '0'; |
| 202 | $text_transform = $typography[ $prop_prefix . '_' . $prop . '_text_transform' ]; |
| 203 | $text_decoration = $typography[ $prop_prefix . '_' . $prop . '_text_decoration' ]; |
| 204 | |
| 205 | // MOBILE: Advanced. |
| 206 | $mobile_line_height = $typography[ $prop_prefix . '_' . $prop . '_line_height_mobile' ]; |
| 207 | $mobile_line_height_unit = $typography[ $prop_prefix . '_' . $prop . '_line_height_unit_mobile' ]; |
| 208 | $mobile_line_height = ( '' !== $mobile_line_height ) ? $mobile_line_height . $mobile_line_height_unit : $line_height; |
| 209 | $mobile_letter_spacing = $typography[ $prop_prefix . '_' . $prop . '_letter_spacing_mobile' ]; |
| 210 | $mobile_letter_spacing_unit = $typography[ $prop_prefix . '_' . $prop . '_letter_spacing_unit_mobile' ]; |
| 211 | $mobile_letter_spacing = ( '' !== $mobile_letter_spacing ) ? $mobile_letter_spacing . $mobile_letter_spacing_unit : $letter_spacing; |
| 212 | $mobile_text_transform = $typography[ $prop_prefix . '_' . $prop . '_text_transform_mobile' ]; |
| 213 | $mobile_text_decoration = $typography[ $prop_prefix . '_' . $prop . '_text_decoration_mobile' ]; |
| 214 | |
| 215 | if ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_typography ) ) { |
| 216 | $mobile_line_height = $line_height; |
| 217 | $mobile_letter_spacing = $letter_spacing; |
| 218 | $mobile_text_transform = $text_transform; |
| 219 | $mobile_text_decoration = $text_decoration; |
| 220 | } |
| 221 | |
| 222 | // Check if success message is not empty. |
| 223 | if ( '' !== $emails['success_message'] ) { |
| 224 | |
| 225 | if ( 'li' === $key ) { |
| 226 | $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]),'; |
| 227 | $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]) {'; |
| 228 | $style .= 'margin: 0 0 10px;'; |
| 229 | $style .= '}'; |
| 230 | $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]):last-child,'; |
| 231 | $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]):last-child {'; |
| 232 | $style .= 'margin-bottom: 0;'; |
| 233 | $style .= '}'; |
| 234 | } |
| 235 | |
| 236 | if ( 'p' === $key ) { |
| 237 | |
| 238 | // Mobile styles. |
| 239 | $style .= $prefix_mobile . $component . ' {'; |
| 240 | $style .= ( ! $is_vanilla ) ? 'color: ' . $font_color . ';' : ''; |
| 241 | $style .= 'font-size: ' . $mobile_font_size . ';'; |
| 242 | $style .= 'line-height: ' . $mobile_line_height . ';'; |
| 243 | $style .= 'font-family: ' . $font_family . ';'; |
| 244 | $style .= '}'; |
| 245 | |
| 246 | // Desktop styles. |
| 247 | if ( $is_mobile_enabled ) { |
| 248 | $style .= $breakpoint . ' {'; |
| 249 | $style .= $prefix_desktop . $component . ' {'; |
| 250 | $style .= 'font-size: ' . $font_size . ';'; |
| 251 | $style .= 'line-height: ' . $line_height . ';'; |
| 252 | $style .= '}'; |
| 253 | $style .= '}'; |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | // Mobile styles. |
| 258 | $style .= $prefix_mobile . $component . ' ' . $key . ':not([class*="forminator-"]) {'; |
| 259 | $style .= ( 'li' === $key ) ? 'margin: 0 0 5px;' : 'margin: 0 0 10px;'; |
| 260 | $style .= ( ! $is_vanilla ) ? 'color: ' . $font_color . ';' : ''; |
| 261 | $style .= 'font: ' . $mobile_font_weight . ' ' . $mobile_font_size . '/' . $mobile_line_height . ' ' . $font_family . ';'; |
| 262 | $style .= 'letter-spacing: ' . $mobile_letter_spacing . ';'; |
| 263 | $style .= 'text-transform: ' . $mobile_text_transform . ';'; |
| 264 | $style .= 'text-decoration: ' . $mobile_text_decoration . ';'; |
| 265 | $style .= '}'; |
| 266 | $style .= $prefix_mobile . $component . ' ' . $key . ':not([class*="forminator-"]):last-child {'; |
| 267 | $style .= 'margin-bottom: 0;'; |
| 268 | $style .= '}'; |
| 269 | |
| 270 | if ( 'li' === $key && ! $is_vanilla ) { |
| 271 | $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]) ' . $key . ':before {'; |
| 272 | $style .= 'color: ' . $colors['ol_counter']; |
| 273 | $style .= '}'; |
| 274 | $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]) ' . $key . ':before {'; |
| 275 | $style .= 'background-color: ' . $colors['ul_bullets']; |
| 276 | $style .= '}'; |
| 277 | } |
| 278 | |
| 279 | // Desktop styles. |
| 280 | if ( $is_mobile_enabled ) { |
| 281 | |
| 282 | $style .= $breakpoint . ' {'; |
| 283 | $style .= $prefix_desktop . $component . ' ' . $key . ':not([class*="forminator-"]) {'; |
| 284 | $style .= ( 'li' !== $key ) ? 'margin-bottom: 20px;' : ''; |
| 285 | $style .= 'font: ' . $font_weight . ' ' . $font_size . '/' . $line_height . ' ' . $font_family . ';'; |
| 286 | $style .= 'letter-spacing: ' . $letter_spacing . ';'; |
| 287 | $style .= 'text-transform: ' . $text_transform . ';'; |
| 288 | $style .= 'text-decoration: ' . $text_decoration . ';'; |
| 289 | $style .= '}'; |
| 290 | $style .= ( 'li' !== $key ) ? $prefix_desktop . $component . ' ' . $key . ':not([class*="forminator-"]):last-child {' : ''; |
| 291 | $style .= ( 'li' !== $key ) ? 'margin-bottom: 0' : ''; |
| 292 | $style .= ( 'li' !== $key ) ? '}' : ''; |
| 293 | $style .= '}'; |
| 294 | |
| 295 | if ( 'li' === $key ) { |
| 296 | $style .= $breakpoint . ' {'; |
| 297 | $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]),'; |
| 298 | $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]) {'; |
| 299 | $style .= 'margin: 0 0 20px;'; |
| 300 | $style .= '}'; |
| 301 | $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]):last-child,'; |
| 302 | $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]):last-child {'; |
| 303 | $style .= 'margin-bottom: 0;'; |
| 304 | $style .= '}'; |
| 305 | $style .= '}'; |
| 306 | } |
| 307 | } |
| 308 | } |
| 309 | } |
| 310 |