/
_campaign.scss
133 lines (103 loc) · 2.63 KB
/
_campaign.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
121
122
123
124
125
126
127
128
129
130
131
132
133
// 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';
/* -------------------------------------------------------------------------- */
// Campaign hero image
$color-campaign-background: #0f161b;
.hero-image {
background: $color-campaign-background;
img {
display: block;
margin: 0 auto;
}
}
// hide the header for english locales that see the campaign hero image
html[lang^="en"] {
.header-intro {
display: none;
}
.podcast {
padding-top: 60px;
}
}
/* -------------------------------------------------------------------------- */
// Campaign articles & Download Firefox CTA
.campaign-articles,
.download-firefox {
background: $color-campaign-background;
.content:before {
content: none;
}
.news-feed,
.content-container {
padding: 20px;
}
@media #{$mq-tablet} {
.news-feed,
.content-container {
padding: 20px 40px;
}
}
}
.campaign-articles {
.content {
padding-bottom: 0;
}
.news-feed {
background: #fff;
}
}
/* -------------------------------------------------------------------------- */
// Download Firefox CTA specific styles
.download-firefox {
.content {
padding-top: 0;
}
.content-container {
@include clearfix;
background: #dddada url('/media/img/firefox/template/logo-jumbo-high-res.png') top 20px center no-repeat;
@include background-size(160px, auto);
padding-top: 200px;
}
.content-info {
position: relative;
text-align: center;
}
h2 {
@include font-size-level3;
margin-bottom: 20px;
}
@media #{$mq-tablet} {
.content-container {
@include background-size(260px, auto);
background-position: top 20px left 40px;
padding-top: 20px;
}
.content-info {
text-align: left;
padding-left: 300px;
}
}
@media #{$mq-desktop} {
.content-container {
@include background-size(420px, auto);
}
.content-info {
padding-left: 460px;
}
}
@media #{$mq-desktop-wide} {
h2 {
float: left;
margin-bottom: 40px;
padding-right: 5%;
width: 45%;
}
.download-button {
float: left;
text-align: center;
width: 50%;
}
}
}