Updated video card frontend rendering

Refs https://github.com/TryGhost/Team/issues/1229
This commit is contained in:
Sanne de Vries 2021-12-14 11:48:28 +01:00
parent 845ed665f0
commit 5a798c35ba

View File

@ -40,16 +40,29 @@
background: transparent;
}
.kg-video-player-container {
position: absolute;
bottom: 0;
width: 100%;
height: 80px;
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.5));
z-index: 999;
}
.kg-video-player {
position: absolute;
bottom: 0;
display: flex;
flex-grow: 1;
align-items: center;
padding: 8px 12px;
width: 100%;
z-index: 9999;
padding: 12px 16px;
}
.kg-video-current-time {
min-width: 38px;
padding: 0 4px;
color: #fff;
font-family: inherit;
font-size: .85em;
font-weight: 500;
@ -58,7 +71,7 @@
}
.kg-video-time {
color: #ababab;
color: rgba(255, 255, 255, 0.6);
font-family: inherit;
font-size: .85em;
font-weight: 500;
@ -73,7 +86,6 @@
.kg-video-play-icon,
.kg-video-pause-icon {
position: relative;
bottom: 1px;
padding: 0px 4px 0 0;
font-size: 0;
background: transparent;
@ -87,7 +99,7 @@
.kg-video-pause-icon svg {
width: 14px;
height: 14px;
fill: currentColor;
fill: #fff;
}
.kg-video-seek-slider {
@ -98,6 +110,7 @@
.kg-video-playback-rate {
min-width: 37px;
padding: 0 4px;
color: #fff;
font-family: inherit;
font-size: .85em;
font-weight: 600;
@ -110,7 +123,7 @@
.kg-video-mute-icon,
.kg-video-unmute-icon {
position: relative;
bottom: 1px;
bottom: -1px;
padding: 0 4px;
font-size: 0;
background: transparent;
@ -120,7 +133,7 @@
.kg-video-unmute-icon svg {
width: 16px;
height: 16px;
fill: currentColor;
fill: #fff;
}
.kg-video-volume-slider {
@ -134,7 +147,7 @@
width: var(--seek-before-width) !important;
height: 4px;
cursor: pointer;
background-color: currentColor;
background-color: #EBEEF0;
border-radius: 2px;
}
@ -145,7 +158,7 @@
width: var(--volume-before-width) !important;
height: 4px;
cursor: pointer;
background-color: currentColor;
background-color: #EBEEF0;
border-radius: 2px;
}
@ -192,15 +205,15 @@
width: 100%;
height: 4px;
cursor: pointer;
background: rgba(124, 139, 154, 0.25);
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
}
.kg-video-card input[type="range"]::-webkit-slider-thumb {
position: relative;
box-sizing: content-box;
width: 12px;
height: 12px;
width: 13px;
height: 13px;
margin: -5px 0 0 0;
border: 0;
cursor: pointer;
@ -220,19 +233,19 @@
width: 100%;
height: 4px;
cursor: pointer;
background: rgba(124, 139, 154, 0.25);
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
}
.kg-video-card input[type="range"]::-moz-range-progress {
background: currentColor;
background: #EBEEF0;
border-radius: 2px;
}
.kg-video-card input[type="range"]::-moz-range-thumb {
box-sizing: content-box;
width: 12px;
height: 12px;
width: 13px;
height: 13px;
border: 0;
cursor: pointer;
background: #fff;
@ -261,13 +274,13 @@
}
.kg-video-card input[type="range"]::-ms-fill-upper {
background: currentColor;
background: #EBEEF0;
}
.kg-video-card input[type="range"]::-ms-thumb {
box-sizing: content-box;
width: 12px;
height: 12px;
width: 13px;
height: 13px;
border: 0;
cursor: pointer;
background: #fff;