Skip to content

Commit 1fdea60

Browse files
author
scotty
committed
video close button
1 parent 143fe3e commit 1fdea60

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

_sass/_base.sass

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,13 +1216,41 @@ $feature-box-div-margin-bottom: 40px
12161216

12171217
#videoPlayer
12181218
@include fullScreen
1219-
background-color: rgba(0, 0, 0, 0.75)
1219+
background-color: rgba(0, 0, 0, 0.9)
12201220
display: none
12211221

12221222
iframe
12231223
@include pureCenter
12241224
@include maintain-aspect-ratio
12251225

1226+
#closeButton
1227+
position: absolute
1228+
top: 20px
1229+
right: 20px
1230+
width: 50px
1231+
height: 50px
1232+
border: 2px solid transparent
1233+
transition: 0.3s
1234+
1235+
&:before, &:after
1236+
content: ""
1237+
position: absolute
1238+
top: calc(50% - 1px)
1239+
left: 10%
1240+
width: 80%
1241+
height: 2px
1242+
background-color: white
1243+
1244+
&:before
1245+
transform: rotate(45deg)
1246+
1247+
&:after
1248+
transform: rotate(-45deg)
1249+
1250+
&:hover
1251+
border-color: white
1252+
1253+
12261254

12271255

12281256
// Features

_sass/_desktop.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ $video-section-height: 550px
3838
background-size: cover
3939

4040

41+
4142
#talkToUs
4243
h4
4344
br

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h4>We would love to hear from you, how you are using Kubernetes,<br> and what w
161161

162162
<div id="videoPlayer">
163163
<iframe data-url="https://www.youtube.com/embed/WwBdNXt6wO4?autoplay=1" frameborder="0" allowfullscreen></iframe>
164-
<button class="close-button">foo</button>
164+
<button id="closeButton"></button>
165165
</div>
166166

167167
<style>

0 commit comments

Comments
 (0)