| 1 |
$content_large_padding: 20px; |
| 2 |
$content_small_padding_vertical: round( $content_large_padding / 2.5 ); |
| 3 |
$content_small_padding_horizontal: round( $content_large_padding / 1.5 ); |
| 4 |
$content_small_breakpoint: 450px; |
| 5 |
$content_tiny_breakpoint: 320px; |
| 6 |
|
| 7 |
@mixin fca_eoi_layout_inputs_wrapper( $withDelimiter ) { |
| 8 |
@if $withDelimiter { |
| 9 |
border-top: 1px solid #DBDBDB; |
| 10 |
border-bottom: 1px solid #DBDBDB; |
| 11 |
padding: $content_large_padding 0; |
| 12 |
|
| 13 |
@media ( min-width: 1px ) and ( max-width: $content_small_breakpoint ), |
| 14 |
( min-height: 1px ) and ( max-height: $content_small_breakpoint ) { |
| 15 |
padding: $content_small_padding_vertical 0; |
| 16 |
} |
| 17 |
|
| 18 |
@media ( min-width: 1px ) and ( max-width: $content_tiny_breakpoint ), |
| 19 |
( min-height: 1px ) and ( max-height: $content_tiny_breakpoint ) { |
| 20 |
padding: 0; |
| 21 |
border: none; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
margin: $content_large_padding 0; |
| 26 |
|
| 27 |
@media ( min-width: 1px ) and ( max-width: $content_small_breakpoint ), |
| 28 |
( min-height: 1px ) and ( max-height: $content_small_breakpoint ) { |
| 29 |
margin: $content_small_padding_vertical 0; |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
& { |
| 34 |
display: inline-block; |
| 35 |
} |
| 36 |
|
| 37 |
&.fca_eoi_layout_widget { |
| 38 |
max-width: 300px; |
| 39 |
} |
| 40 |
|
| 41 |
&.fca_eoi_layout_postbox { |
| 42 |
max-width: 600px; |
| 43 |
} |
| 44 |
|
| 45 |
&.fca_eoi_layout_popup { |
| 46 |
max-width: 650px; |
| 47 |
} |
| 48 |
|
| 49 |
&.fca_eoi_layout_widget div.fca_eoi_layout_field_wrapper { |
| 50 |
float: none; |
| 51 |
width: 100%; |
| 52 |
} |
| 53 |
|
| 54 |
div.fca_eoi_layout_content_wrapper { |
| 55 |
margin: $content_large_padding; |
| 56 |
} |
| 57 |
|
| 58 |
div.fca_eoi_layout_field_wrapper { |
| 59 |
border: solid 1px transparent; |
| 60 |
width: 49%; |
| 61 |
border-radius: 3px; |
| 62 |
margin-bottom: 10px; |
| 63 |
position: relative; |
| 64 |
} |
| 65 |
|
| 66 |
div.fca_eoi_layout_name_field_wrapper { |
| 67 |
@if $ltr { float: left; } @else { float: right; } |
| 68 |
box-sizing: border-box; |
| 69 |
display: inline-block; |
| 70 |
} |
| 71 |
|
| 72 |
div.fca_eoi_layout_email_field_wrapper { |
| 73 |
@if $ltr { float: right; } @else { float: left; } |
| 74 |
box-sizing: border-box; |
| 75 |
display: inline-block; |
| 76 |
} |
| 77 |
|
| 78 |
div.fca_eoi_layout_inputs_wrapper_no_name div.fca_eoi_layout_field_wrapper { |
| 79 |
float: none; |
| 80 |
width: 100%; |
| 81 |
} |
| 82 |
|
| 83 |
div.fca_eoi_layout_field_wrapper input, |
| 84 |
div.fca_eoi_layout_field_wrapper input:focus { |
| 85 |
border: none !important; |
| 86 |
width: 100%; |
| 87 |
height: auto; |
| 88 |
font-size: 16px; |
| 89 |
line-height: 1.2em; |
| 90 |
padding: 7px 0; |
| 91 |
outline: none; |
| 92 |
background: none !important; |
| 93 |
box-shadow: none; |
| 94 |
} |
| 95 |
|
| 96 |
div.fca_eoi_layout_submit_button_wrapper { |
| 97 |
clear: both; |
| 98 |
transition: background 350ms linear, border-color 350ms linear; |
| 99 |
margin-left: auto; |
| 100 |
margin-right: auto; |
| 101 |
} |
| 102 |
|
| 103 |
div.fca_eoi_layout_fatcatapps_link_wrapper a { |
| 104 |
display: block; |
| 105 |
margin: round( $content_large_padding / 2 ) 0 0; |
| 106 |
font-size: 12px; |
| 107 |
} |
| 108 |
|
| 109 |
&.fca_eoi_layout_popup, |
| 110 |
&.fca_eoi_layout_widget, |
| 111 |
&.fca_eoi_layout_postbox { |
| 112 |
div.fca_eoi_layout_content_wrapper { |
| 113 |
div.fca_eoi_form_text_element.fca_eoi_layout_headline_copy_wrapper div, |
| 114 |
div.fca_eoi_form_text_element.fca_eoi_layout_description_copy_wrapper div, |
| 115 |
div.fca_eoi_layout_field_wrapper i.fa:before, |
| 116 |
div.fca_eoi_layout_field_wrapper div.fca_eoi_layout_field_inner input, |
| 117 |
div.fca_eoi_layout_field_wrapper div.fca_eoi_layout_field_inner input:focus, |
| 118 |
div.fca_eoi_layout_submit_button_wrapper input, |
| 119 |
div.fca_eoi_layout_submit_button_wrapper input:focus, |
| 120 |
div.fca_eoi_form_text_element.fca_eoi_layout_privacy_copy_wrapper div, |
| 121 |
div.fca_eoi_layout_fatcatapps_link_wrapper a { |
| 122 |
@media (min-width: 1px) and (max-width: $content_small_breakpoint), |
| 123 |
(min-height: 1px) and (max-height: $content_small_breakpoint) { |
| 124 |
font-size: 13px !important; |
| 125 |
} |
| 126 |
@media (min-width: 1px) and (max-width: $content_tiny_breakpoint), |
| 127 |
(min-height: 1px) and (max-height: $content_tiny_breakpoint) { |
| 128 |
font-size: 12px !important; |
| 129 |
} |
| 130 |
} |
| 131 |
} |
| 132 |
} |
| 133 |
|
| 134 |
@media ( min-width: 1px ) and ( max-width: $content_small_breakpoint ), |
| 135 |
( min-height: 1px ) and ( max-height: $content_small_breakpoint ) { |
| 136 |
div.fca_eoi_layout_content_wrapper { |
| 137 |
margin: $content_small_padding_vertical $content_small_padding_horizontal; |
| 138 |
} |
| 139 |
|
| 140 |
div.fca_eoi_layout_fatcatapps_link_wrapper a { |
| 141 |
margin: 0; |
| 142 |
} |
| 143 |
|
| 144 |
div.fca_eoi_form_text_element.fca_eoi_layout_headline_copy_wrapper { |
| 145 |
margin-bottom: 5px; |
| 146 |
} |
| 147 |
} |
| 148 |
|
| 149 |
@media ( min-width: 1px ) and ( max-width: 768px ) { |
| 150 |
div.fca_eoi_layout_field_wrapper { |
| 151 |
float: none; |
| 152 |
width: 100%; |
| 153 |
} |
| 154 |
} |
| 155 |
|