Skip to content

Commit b0ce0c8

Browse files
author
Max Harris
authored
Merge pull request #152 from wpcomvip/AC-1542
Mobile styles for video header with text
2 parents f05a4a0 + edf60fb commit b0ce0c8

File tree

3 files changed

+80
-23
lines changed

3 files changed

+80
-23
lines changed

themes/jolteon/css/app.css

Lines changed: 18 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/jolteon/css/app.min.css

Lines changed: 14 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/jolteon/css/scss/06-components/_components.hero-slider.scss

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
content: '';
7777
left: 292px;
7878
}
79-
8079
}
8180
}
8281

@@ -122,7 +121,6 @@
122121
@include mq($from: desktop) {
123122
height: 620px;
124123
}
125-
126124
}
127125

128126
&__dots {
@@ -254,7 +252,11 @@
254252

255253
&.hero--video {
256254
flex-flow: column;
257-
min-height: 500px;
255+
min-height: 95vh;
256+
257+
@include mq($from: wide) {
258+
flex-flow: row;
259+
}
258260

259261
.header-video-container {
260262
margin-top: 80px;
@@ -263,7 +265,7 @@
263265

264266
video {
265267
background-color: $white;
266-
border: 1px solid $white;
268+
border: 2px solid $white;
267269
box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);
268270
height: auto;
269271
margin: ($padding-large-horizontal * 4) auto 0;
@@ -278,38 +280,75 @@
278280
max-width: 700px;
279281
}
280282

281-
@include mq($from: desktop) {
282-
max-width: 800px;
283+
@include mq($from: wide) {
284+
margin-left: $padding-large-vertical;
285+
max-width: 100%;
286+
width: 700px;
283287
}
284288
}
285289

286290
@include mq($from: tablet) {
287291
margin-top: 0;
288292
}
289293

290-
@include mq($from: desktop) {
294+
@include mq($from: wide) {
291295
margin-top: inherit;
296+
padding: 0 ($padding-large-vertical * 3);
292297
}
293298
}
294299

295300
.button-container {
296301
z-index: 5;
297302

303+
.hero__title {
304+
margin-top: 0;
305+
}
306+
298307
.cta-button {
299-
display: block;
308+
display: inline-block;
309+
margin: 0 $padding-small-vertical;
310+
padding: 0 $padding-large-vertical;
311+
}
300312

301-
@include mq($from: phablet) {
313+
@include mq($from: phablet) {
314+
.cta-button {
302315
display: inline-block;
303316
}
304317
}
318+
319+
@include mq($from: wide) {
320+
padding: 0 ($padding-large-vertical * 3);
321+
text-align: left;
322+
323+
.hero__title {
324+
margin-top: ($padding-large-horizontal * 3);
325+
max-width: 670px;
326+
padding-bottom: 0;
327+
}
328+
329+
.hero__subtitle {
330+
margin-left: 0;
331+
}
332+
333+
.cta-button {
334+
margin-left: 0;
335+
margin-right: $padding-large-vertical;
336+
padding: inherit;
337+
}
338+
}
305339
}
306340

307341
@include mq($from: tablet) {
308342
height: auto;
309343
max-height: 650px;
344+
min-height: 82vh;
310345
}
311346

312347
@include mq($from: desktop) {
348+
min-height: 70vh;
349+
}
350+
351+
@include mq($from: wide) {
313352
max-height: 720px;
314353
}
315354
}

0 commit comments

Comments
 (0)