Skip to content

Commit ff7c22b

Browse files
committed
Make video section height flexible
Signed-off-by: Dmitry Shurupov <[email protected]>
1 parent 99d7743 commit ff7c22b

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

assets/scss/_base.scss

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ $quickstart-button-padding: 0 50px;
3232
$vendor-strip-height: 88px;
3333
$vendor-strip-font-size: 16px;
3434

35-
// video
36-
$video-section-height: 200px;
37-
3835
@import "size";
3936
@import "documentation";
4037

@@ -434,9 +431,6 @@ $ocean-nodes-padding-Y: 60px;
434431
$ocean-nodes-main-margin-bottom: 60px;
435432
$ocean-nodes-h3-margin-bottom: 30px;
436433

437-
// video
438-
$video-section-height: 200px;
439-
440434
// Home-specific
441435

442436
.td-home {
@@ -514,13 +508,10 @@ section#cncf {
514508
}
515509

516510
// Video thingy
517-
#video {
518-
height: $video-section-height;
519-
}
520-
521511
#video {
522512
width: 100%;
523513
position: relative;
514+
overflow: hidden;
524515
background-position: center center;
525516
background-size: cover;
526517

@@ -557,7 +548,7 @@ section#cncf {
557548
padding: 2px 8px;
558549
margin: 5px;
559550
}
560-
551+
561552
#desktopKCButton {
562553
display: inline;
563554
position: absolute;
@@ -623,6 +614,10 @@ section#cncf {
623614
}
624615
}
625616

617+
#video:has(#desktopKCButton) {
618+
height: 580px;
619+
}
620+
626621
#videoPlayer {
627622
@include fullScreen;
628623
background-color: rgba(0, 0, 0, 0.9);

assets/scss/_desktop.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
$main-max-width: 1200px;
22
$vendor-strip-height: 44px;
3-
$video-section-height: 580px;
43

54
@media screen and (min-width: 1024px) {
65

@@ -50,13 +49,12 @@ $video-section-height: 580px;
5049
}
5150

5251
#video {
53-
height: $video-section-height;
5452
position: relative;
55-
background-position: center center;
53+
background-position: top center;
5654
background-size: cover;
5755

5856
&>.light-text {
59-
margin-right: 10%;
57+
margin: 0 10% 15px 0;
6058
}
6159
}
6260

assets/scss/_tablet.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ $headline-wrapper-margin-bottom: 40px;
2828
$quickstart-button-padding: 0 50px;
2929
$vendor-strip-font-size: 16px;
3030

31-
//video
32-
$video-section-height: 400px;
33-
3431
////////////////////////////////////////////////////////////////////////////////////////////////////
3532
////////////////////////////////////////////////////////////////////////////////////////////////////
3633
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -134,15 +131,13 @@ $video-section-height: 400px;
134131
}
135132

136133
#video {
137-
height: $video-section-height;
138134
display: block;
139-
height: 550px;
140135

141136
& > .light-text {
142137
display: block;
143138
float: right;
144139
text-align: left;
145-
margin-right: 5%;
140+
margin: 0 5% 15px 0;
146141
}
147142
}
148143

0 commit comments

Comments
 (0)