79 lines
1.3 KiB
Plaintext
79 lines
1.3 KiB
Plaintext
const video-padding = 56.25%
|
|
const video-control-color = rgba(255, 255, 255, 0.75)
|
|
const video-progress-height = 0.35rem
|
|
const video-progress-clickable-height-buffer = 0.4rem
|
|
|
|
.video-container
|
|
position relative
|
|
width 100%
|
|
min-height 100px
|
|
padding-bottom video-padding
|
|
border-radius ui-element-border-radius
|
|
overflow hidden
|
|
|
|
:hover
|
|
.video-controls
|
|
opacity 1
|
|
|
|
.video
|
|
position absolute
|
|
width 100%
|
|
height 100%
|
|
left 0
|
|
top 0
|
|
background-color black
|
|
|
|
.video-controls
|
|
horizontal
|
|
align-items center
|
|
position absolute
|
|
bottom 0
|
|
right 0
|
|
padding 0.5rem 0.75rem
|
|
opacity 0
|
|
width 100%
|
|
default-transition
|
|
|
|
:hover
|
|
opacity 1 !important
|
|
|
|
.video-progress-clickable
|
|
flex 1
|
|
padding video-progress-clickable-height-buffer 0
|
|
|
|
:hover
|
|
cursor pointer
|
|
|
|
.video-progress-container
|
|
height video-progress-height
|
|
background rgba(255, 255, 255, 0.3)
|
|
border-radius ui-element-border-radius
|
|
transform translateZ(0)
|
|
overflow hidden
|
|
|
|
.video-progress
|
|
background white
|
|
width 100%
|
|
height video-progress-height
|
|
transform scaleX(0)
|
|
transform-origin 0
|
|
will-change transform
|
|
|
|
.video-time
|
|
color video-control-color
|
|
margin-left 0.5rem
|
|
|
|
.video-control
|
|
background transparent !important
|
|
color video-control-color
|
|
border none
|
|
line-height 1em
|
|
height auto
|
|
padding 0
|
|
margin-left 0.5rem
|
|
|
|
:hover
|
|
color white
|
|
|
|
::-webkit-media-controls
|
|
display none !important |