zorn-js/src/styles/app.css

185 lines
3.3 KiB
CSS
Raw Normal View History

2023-10-16 15:53:54 -04:00
.plyx-player {
width: 100%;
display: inline-flex;
}
.video-container {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
2023-10-16 17:35:27 -04:00
font-family: Arial, Helvetica, sans-serif;
2023-10-16 15:53:54 -04:00
}
.plyx-player-controls {
display: inline-flex;
right: 0;
left: 0;
padding: 10px;
position: absolute;
bottom: 0;
transition: all 0.2s ease;
2023-10-16 17:35:27 -04:00
background-image: linear-gradient(to bottom, rgba(12, 12, 12, 0), rgba(12, 12, 12, 0.75));
2023-10-16 15:53:54 -04:00
flex-direction: inherit;
}
.row-1 {
display: flex;
justify-content: space-between;
width: 100%;
2023-10-16 17:35:27 -04:00
padding-bottom: 12px;
2023-10-16 15:53:54 -04:00
}
.row-1-start {
display: flex;
align-items: center;
}
.row-1-end {
display: flex;
align-items: center;
}
button {
aspect-ratio: 1;
height: 32px;
width: 32px;
color: white;
background-color: transparent;
border: none;
margin: 0px 6px;
}
button:hover {
background: rgba(44, 44, 44, 0.6);
border-radius: 6px;
}
#volume-button svg {
aspect-ratio: 1;
height: 32px;
width: 32px;
fill: white;
padding: 3px 0px 0px 0px;
}
.video-controls.hide {
opacity: 0;
pointer-events: none;
}
.video-progress {
position: relative;
height: 6.4px;
2023-10-16 17:35:27 -04:00
margin: 24px 0px;
2023-10-16 15:53:54 -04:00
}
progress {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 2px;
width: 100%;
height: 8.4px;
pointer-events: none;
position: absolute;
top: 0;
}
progress::-webkit-progress-bar {
background-color: #474545;
border-radius: 2px;
}
progress::-webkit-progress-value {
background: red;
border-radius: 2px;
}
progress::-moz-progress-bar {
border: none;
background: #ff7e7e;
}
.seek {
position: absolute;
top: 0;
width: 100%;
cursor: pointer;
margin: 0;
}
.seek:hover + .seek-tooltip {
display: block;
}
.seek-tooltip {
display: none;
position: absolute;
top: -50px;
margin-left: -20px;
font-size: 12px;
padding: 3px;
content: attr(data-title);
font-weight: bold;
color: #fff;
background-color: rgba(0, 0, 0, 0.6);
}
input[type=range] {
-webkit-appearance: none;
-moz-appearance: none;
height: 8.4px;
background: transparent;
cursor: pointer;
}
input[type=range]:focus {
outline: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: transparent;
}
input[type=range]:focus::-moz-range-track {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
cursor: pointer;
border-radius: 1.3px;
-webkit-appearance: none;
transition: all 0.4s ease;
}
input[type=range]::-webkit-slider-thumb {
height: 16px;
width: 16px;
border-radius: 16px;
background: red;
cursor: pointer;
-webkit-appearance: none;
margin-left: -1px;
}
input[type=range]::-moz-range-track {
width: 100%;
height: 8.4px;
cursor: pointer;
border: 1px solid transparent;
background: transparent;
border-radius: 0;
}
input[type=range].volume {
height: 5px;
background-color: #fff;
}
input[type=range].volume::-webkit-slider-runnable-track {
background-color: transparent;
}
input[type=range].volume::-webkit-slider-thumb {
margin-left: 0;
height: 14px;
width: 14px;
background: #fff;
}
input[type=range].volume::-moz-range-thumb {
border: 1px solid #fff;
background: #fff;
}
input[type="range"]::-moz-range-thumb {
height: 12px;
2023-10-16 17:35:27 -04:00
width: 12px;
border-radius: 10px;
2023-10-16 15:53:54 -04:00
border: none;
background: #f00;
cursor: pointer;
}
.hide {
opacity: 0;
pointer-events: none;
}
#progress-bar {
2023-10-16 17:35:27 -04:00
background: rgba(12, 12, 12, 0.1);
2023-10-16 15:53:54 -04:00
border: none;
2023-10-16 17:35:27 -04:00
border-radius: 10px;
2023-10-16 15:53:54 -04:00
}