Skip to content

Commit 6356f63

Browse files
authored
Merge pull request #1867 from rohitsrma/refactor-subscribe-css-to-scss
Refactor subscribe.css to SCSS
2 parents 857b7bb + 7f2bf4a commit 6356f63

File tree

1 file changed

+116
-134
lines changed

1 file changed

+116
-134
lines changed

css/subscribe.css renamed to css/subscribe.scss

Lines changed: 116 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
---
3+
14
.subscribe-a {
25
text-align: center;
36
}
@@ -6,36 +9,39 @@
69
width: 100%;
710
padding: 0.8rem 0.5rem;
811
background: rgba(100, 120, 129, 1);
12+
display: flex;
13+
justify-content: center;
14+
align-items: center;
15+
height: 3.5rem;
16+
font-style: normal;
17+
font-weight: 500;
18+
font-size: 1.125rem;
19+
letter-spacing: 0.5px;
920
}
1021

11-
.NAME {
22+
.NAME, .EMAIL {
1223
width: 100%;
1324
height: 3rem;
1425
border: 1px solid #000000;
1526
box-sizing: border-box;
1627
border-radius: 5px;
1728
padding: 15px;
29+
30+
&::placeholder {
31+
font-style: normal;
32+
font-weight: normal;
33+
font-size: 1rem;
34+
letter-spacing: 0.5px;
35+
color: #999999;
36+
}
37+
}
38+
39+
.NAME {
1840
flex: 0 0 calc(50% - 1rem);
1941
}
2042

2143
.EMAIL {
22-
width: 100%;
23-
height: 3rem;
2444
margin-top: 2rem;
25-
border: 1px solid #000000;
26-
box-sizing: border-box;
27-
border-radius: 5px;
28-
padding: 15px;
29-
}
30-
31-
.NAME::placeholder,
32-
.NAME::placeholder,
33-
.EMAIL::placeholder {
34-
font-style: normal;
35-
font-weight: normal;
36-
font-size: 1rem;
37-
letter-spacing: 0.5px;
38-
color: #999999;
3945
}
4046

4147
.subscribe-inputbox {
@@ -47,130 +53,98 @@
4753
align-items: center;
4854
}
4955

50-
.subscribe-button {
51-
display: flex;
52-
justify-content: center;
53-
align-items: center;
54-
height: 3.5rem;
55-
font-style: normal;
56-
font-weight: 500;
57-
font-size: 1.125rem;
58-
letter-spacing: 0.5px;
59-
}
60-
6156
#mc_embed_signup {
6257
clear: left;
6358
font: 14px Helvetica, Arial, sans-serif;
6459
text-align: center;
6560
margin-top: 25px;
6661
width: 80%;
67-
}
68-
69-
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
70-
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
71-
#mc_embed_signup .button {
72-
width: 100%;
73-
margin: 0px;
74-
background-color: rgba(255, 152, 0, 0.5);
75-
text-align: center;
76-
}
77-
78-
#mc_embed_signup .button:hover {
79-
background-color: rgba(255, 152, 0, 0.7);
80-
}
8162

82-
#mc_embed_signup .button {
83-
margin: 0px;
84-
background-color: rgba(255, 152, 0, 0.5);
85-
text-align: center;
86-
}
63+
.button {
64+
width: 100%;
65+
margin: 0px;
66+
background-color: rgba(255, 152, 0, 0.5);
67+
text-align: center;
8768

88-
#mc_embed_signup .button:hover {
89-
background-color: rgba(255, 152, 0, 0.7);
69+
&:hover {
70+
background-color: rgba(255, 152, 0, 0.7);
71+
}
72+
}
9073
}
9174

9275
.form-container {
93-
/* border: 1px dashed #1e2117; */
9476
display: flex;
9577
flex-direction: column;
9678
align-items: center;
97-
/* padding: 5rem 5rem!important; */
9879
background-color: #3c494f;
99-
}
10080

101-
.form-container > p {
102-
font-style: normal;
103-
font-weight: 600;
104-
font-size: 2.7rem;
105-
line-height: 2.25rem;
106-
color: #fff;
107-
}
81+
> p {
82+
font-style: normal;
83+
font-weight: 600;
84+
font-size: 2.7rem;
85+
line-height: 2.25rem;
86+
color: #fff;
87+
}
10888

109-
@media (max-width: 840px) {
110-
.form-container {
89+
@media (max-width: 840px) {
11190
padding: 4rem 3vw !important;
112-
}
113-
.form-container > p {
114-
font-size: 2.6rem;
115-
line-height: 3rem;
116-
margin: 20px 0 10px 0;
117-
}
118-
}
119-
@media (min-width: 768px) {
120-
.form-container > p {
121-
margin: 0 25px;
122-
}
12391

124-
.NAME {
125-
height: 3rem;
126-
border: 1px solid #000000;
127-
box-sizing: border-box;
128-
border-radius: 5px;
129-
padding: 15px;
92+
> p {
93+
font-size: 2.6rem;
94+
line-height: 3rem;
95+
margin: 20px 0 10px 0;
96+
}
13097
}
13198

132-
.EMAIL {
133-
width: 100%;
134-
height: 3rem;
135-
margin-top: 2rem;
136-
border: 1px solid #000000;
137-
box-sizing: border-box;
138-
border-radius: 5px;
139-
padding: 15px;
140-
}
141-
}
99+
@media (min-width: 768px) {
100+
> p {
101+
margin: 0 25px;
102+
}
142103

143-
@media (max-width: 768px) {
144-
.EMAIL {
145-
width: 100%;
146-
}
147-
.email-div {
148-
display: flex;
149-
justify-content: center;
150-
}
151-
.subscribe-inputbox {
152-
padding-left: 6px;
153-
flex-direction: column;
154-
}
155-
#mc_embed_signup {
156-
clear: left;
157-
font: 14px Helvetica, Arial, sans-serif;
158-
text-align: center;
159-
margin-top: 10px;
104+
.NAME {
105+
height: 3rem;
106+
}
107+
108+
.EMAIL {
109+
width: 100%;
110+
margin-top: 2rem;
111+
}
160112
}
161-
.form-container > p {
162-
font-size: 2.6rem;
163-
line-height: 2.5rem;
164-
margin: 20px 0 10px 0;
113+
114+
@media (max-width: 768px) {
115+
.EMAIL {
116+
width: 100%;
117+
}
118+
119+
.email-div {
120+
display: flex;
121+
justify-content: center;
122+
}
123+
124+
.subscribe-inputbox {
125+
padding-left: 6px;
126+
flex-direction: column;
127+
}
128+
129+
#mc_embed_signup {
130+
clear: left;
131+
font: 14px Helvetica, Arial, sans-serif;
132+
text-align: center;
133+
margin-top: 10px;
134+
}
135+
136+
> p {
137+
font-size: 2.6rem;
138+
line-height: 2.5rem;
139+
margin: 20px 0 10px 0;
140+
}
165141
}
166142
}
167143

168144
.box1 {
169-
flex: wrap;
145+
flex-wrap: wrap;
170146
}
171147

172-
/* Mailing List */
173-
174148
.heading {
175149
text-align: center;
176150
font-weight: bold;
@@ -190,19 +164,24 @@
190164
border-radius: 0.25rem;
191165
display: flex;
192166
flex-direction: column;
167+
168+
+ .dark {
169+
background-color: red;
170+
}
193171
}
194-
.bg-grey-300 + .dark {
195-
background-color: red;
196-
}
172+
197173
.bg-single {
198174
background-color: #fff3c5;
175+
176+
.button {
177+
background-color: #ebc017;
178+
179+
&:hover {
180+
background-color: #e7cc5f;
181+
}
182+
}
199183
}
200-
.bg-single .button {
201-
background-color: #ebc017;
202-
}
203-
.bg-single .button:hover {
204-
background-color: #e7cc5f;
205-
}
184+
206185
.button {
207186
background-color: var(--brand-color-primary) !important;
208187
border-radius: 0.25rem;
@@ -214,11 +193,11 @@
214193
text-decoration: none !important;
215194
margin-left: 6px;
216195
border: 0;
217-
}
218196

219-
.button:hover {
220-
background-color: #00d3a9;
221-
color: #fff;
197+
&:hover {
198+
background-color: #00d3a9;
199+
color: #fff;
200+
}
222201
}
223202

224203
.p-normal {
@@ -242,16 +221,11 @@ a.saffron {
242221

243222
.mailing-container {
244223
display: flex;
245-
-ms-flex-wrap: wrap;
246224
flex-wrap: wrap;
247225
--flex-gap: var(--size-4);
248226
margin-left: calc(-1 * var(--flex-gap));
249227
margin-top: calc(-1 * var(--flex-gap));
250-
-webkit-box-pack: justify;
251-
-ms-flex-pack: justify;
252228
justify-content: space-between;
253-
-webkit-box-align: center;
254-
-ms-flex-align: center;
255229
align-items: center;
256230
}
257231

@@ -264,25 +238,30 @@ a.saffron {
264238
.bg-grey-300 {
265239
margin: 2%;
266240
}
241+
267242
.bg-single {
268243
padding-right: 2%;
269244
}
245+
270246
.mail-link-div {
271247
margin-top: 0px !important;
272248
}
273249
}
250+
274251
@media (min-width: 802px) and (max-width: 1075px) {
275252
.bg-grey-300 {
276-
/* padding-right: 100px; */
277253
margin: 3%;
278254
}
255+
279256
.bg-single {
280257
background-color: yellow;
281258
padding-right: 0px;
259+
260+
.button {
261+
margin: 2px 30px 0 6px;
262+
}
282263
}
283-
.bg-single .button {
284-
margin: 2px 30px 0 6px;
285-
}
264+
286265
.mail-link-div {
287266
margin-top: 0px !important;
288267
}
@@ -293,17 +272,20 @@ a.saffron {
293272
width: 40%;
294273
}
295274
}
275+
296276
@media (min-width: 600px) {
297277
.mailing-row {
298278
display: inline-flex;
299279
width: 100%;
300280
justify-content: center;
301281
}
282+
302283
.mailing-row-single {
303284
display: inline-flex;
304285
width: 100%;
305286
justify-content: center;
306287
}
288+
307289
.bg-grey-300 {
308290
width: 43%;
309291
margin: 2%;

0 commit comments

Comments
 (0)