/
home-pre-download.scss
120 lines (97 loc) · 2.17 KB
/
home-pre-download.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@import '../pebbles/includes/lib';
@import '../pebbles/components/modal';
.pre-download-button-container {
display: inline-block;
button[type="button"] {
margin-top: 20px;
}
.fx-privacy-link {
margin-top: 10px;
}
}
.pre-download-newsletter {
display: none;
}
#modal .pre-download-newsletter {
display: block;
}
.pre-download-newsletter-content {
@include font-size(16px);
background: #fff;
padding: 40px 20px;
@media #{$mq-tablet} {
padding: 60px 40px;
}
h2 {
@include font-size(28px);
font-weight: bold;
margin-bottom: 20px;
}
.field-email label {
display: block;
font-weight: bold;
margin-bottom: 10px;
}
.field {
margin-bottom: 20px;
}
input[type="email"] {
padding: 12px 8px;
width: 100%;
}
select {
width: 100%;
}
button[type="submit"] {
background-color: #000;
border-radius: 2px;
border: 2px solid #000;
color: #fff;
transition: background-color 100ms, color 100ms;
&:hover,
&:focus {
background-color: #fff;
color: #000;
}
}
.form-details small {
@include font-size(16px);
display: block;
margin-top: 10px;
text-align: center;
}
.errorlist {
color: $color-mozred;
}
}
.pre-download-continue {
text-align: center;
margin: 20px 0 0;
}
// Hide modal header visually and add top padding to compensate
#modal > .window > .inner {
background: transparent;
max-width: 512px;
padding: 70px 0 0;
header {
@include visually-hidden;
}
}
.js {
// hide details for JS users
// (displayed when email field is focused)
#form-details,
.form-details {
display: none;
}
#newsletter-spinner {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
}