f0ckv2/public/s/css/v0ck.css
2021-05-25 14:42:28 +02:00

192 lines
3.5 KiB
CSS

.v0ck {
position: relative;
font-size: 0;
overflow: hidden;
background-color: #000;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
}
.v0ck_fullscreen {
max-width: none;
max-height: none;
width: 100%;
height: 100%;
background-color: black;
}
.v0ck_fullscreen video {
width: 100%;
height: auto;
}
.v0ck_overlay {
pointer-events: none;
position: absolute;
z-index: 1;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.v0ck_overlay > svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 60px;
width: 60px;
filter: drop-shadow(0 0 9px var(--accent));
stroke: var(--accent);
stroke-width: 20px;
}
.v0ck_player_button {
background: none;
border: 0;
line-height: 1;
color: white;
text-align: center;
outline: 0;
padding: 0;
margin: 2px;
cursor: pointer;
min-width: 40px;
height: 28px;
}
.v0ck_player_button.v0ck_tplay > svg {
height: 17px;
}
.v0ck_player_button svg:hover {
filter: drop-shadow(0 0 9px var(--accent));
fill: #000;
stroke: var(--accent);
stroke-width: 30px;
}
.v0ck_hidden {
display: none;
}
svg {
width: 20px;
height: 20px;
fill: #fff;
stroke: #fff;
cursor: pointer;
}
.v0ck_player_controls {
display: flex;
position: absolute;
bottom: 0;
width: 100%;
transform: translateY(100%) translateY(-2px);
transition: all .5s;
flex-wrap: wrap;
z-index: 2;
background: rgba(0, 0, 0, 0.7);
}
.v0ck:hover .v0ck_player_controls, .v0ck_paused .v0ck_player_controls {
transform: translateY(0);
}
.v0ck:hover .v0ck_progress, .v0ck_paused .v0ck_progress {
height: 8px;
}
.v0ck_player_controls > * {
flex: 1;
}
.v0ck_progress {
flex: 10;
position: relative;
display: flex;
flex-basis: 100%;
height: 5px;
transition: height 0.4s;
background: rgb(23 23 23);
cursor: pointer;
}
.v0ck_progress_filled {
width: 50%;
background: var(--accent);
flex: 0;
flex-basis: 0%;
}
.v0ck_player_controls > input[type="range"][name="volume"]::after {
position: absolute;
top: -2px;
text-shadow: 1px 1px 1px 0 rgba(0,0,0,0.5);
font-size: 0.8em;
}
.v0ck_player_controls > input[type="range"][name="volume"] {
position: relative;
height: 5px;
margin: auto;
-webkit-appearance: none;
position: relative;
overflow: hidden;
min-width: 0;
max-width: 0;
cursor: pointer;
border-radius: 0;
transition: all .6s;
}
.v0ck_player_controls:hover > input[type="range"][name="volume"] {
min-width: 70px;
max-width: 70px;
}
.v0ck_player_controls > input[type=range]:focus {
outline: none;
}
.v0ck_player_button.v0ck_playtime {
max-width: none;
cursor: default;
min-width: 100px;
}
.v0ck_player_controls > input[type="range"][name="volume"]::-webkit-slider-runnable-track {
background-color: rgb(65, 65, 65);
}
.v0ck_player_controls > input[type="range"][name="volume"]::-moz-range-track {
height: 5px;
background-color: rgb(65, 65, 65);
}
.v0ck_player_controls > input[type="range"][name="volume"]::-webkit-slider-thumb {
-webkit-appearance: none;
background: var(--accent);
height: 5px;
width: 0.1px;
border: 0;
box-shadow: -100vw 0 0 100vw var(--accent);
}
.v0ck_player_controls > input[type="range"][name="volume"]::-moz-range-thumb {
background: var(--accent);
height: 5px;
width: 0.1px;
border: 0;
box-shadow: -100vw 0 0 100vw var(--accent);
}
@media (max-width: 900px) {
.v0ck_player_controls > input[type="range"][name="volume"] {
display: none;
}
}