VANA/VANA-php/resources/css/app.css

320 lines
4.5 KiB
CSS
Raw Permalink Normal View History

2024-10-18 17:47:20 +02:00
*,
*::before,
*::after {
box-sizing: border-box;
}
2024-10-29 21:27:29 +01:00
:root{
--c1: #F2F2F2;
--c2: #D9D9D9;
--c3: #737373;
--c4: #404040;
--c5: #0D0D0D;
}
2024-10-18 17:47:20 +02:00
/* Prevent font size inflation */
html {
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
2024-10-29 21:27:29 +01:00
-webkit-font-smoothing: antialiased;
2024-10-18 17:47:20 +02:00
text-size-adjust: none;
}
2024-10-29 21:27:29 +01:00
*{
margin: 0;
2024-10-18 17:47:20 +02:00
}
ul[role='list'],
ol[role='list'] {
list-style: none;
}
body {
min-height: 100vh;
line-height: 1.5;
2024-10-29 21:27:29 +01:00
padding: 1.5em;
font-family: sans-serif;
background: var(--c4);
color: var(--c1);
}
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
input, button, textarea, select {
font: inherit;
2024-10-18 17:47:20 +02:00
}
h1,
h2,
h3,
h4,
button,
input,
label {
line-height: 1.1;
}
fieldset{
display: block;
border: none;
padding: 0;
margin: 0;
}
/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
text-wrap: balance;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
color: currentColor;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font-family: inherit;
font-size: inherit;
}
/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
min-height: 10em;
}
/* Anything that has been anchored to should have extra scroll margin */
:target {
scroll-margin-block: 5ex;
}
dl{
display: grid;
grid-template-areas: "title desc" ;
2024-10-29 21:27:29 +01:00
gap: .5em 1em;
}
dt{
font-weight: 600;
2024-10-18 17:47:20 +02:00
}
.visually-hidden {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
/* Tabs */
.tablist{
height: 100%;
display: grid;
grid-template: "tablist" "panel";
2024-10-29 21:27:29 +01:00
grid-template-rows: 2.5em 1fr;
2024-10-18 17:47:20 +02:00
}
.controls{
2024-10-29 21:27:29 +01:00
background: var(--c5);
2024-10-18 17:47:20 +02:00
}
.control {
display: inline-block;
}
.control label {
2024-10-29 21:27:29 +01:00
display: inline-grid;
justify-items: center;
align-items: center;
2024-10-18 17:47:20 +02:00
padding: .5em 1em;
2024-10-29 21:27:29 +01:00
height: 2.5em;
color: var(--c1);
2024-10-18 17:47:20 +02:00
}
input[type="radio"]:checked + label {
2024-10-29 21:27:29 +01:00
background: var(--c3);
2024-10-18 17:47:20 +02:00
}
a:focus,
input:focus,
input[type="radio"]:focus + label {
outline: 2px dotted;
outline-offset: 2px;
}
input[type="radio"] + label:hover {
cursor: pointer;
text-decoration: underline;
}
.panel {
2024-10-29 21:27:29 +01:00
background: var(--c3);
2024-10-18 17:47:20 +02:00
padding: 1em;
2024-10-29 21:27:29 +01:00
height: calc(50vh - 4em);
overflow-y: scroll;
}
#tablist_panel_transcript_panel font{
display: block;
color: #fff !important
}
#transcript{
padding: 0;
list-style: none;
}
#transcript a{
cursor: pointer;
}
#transcript li{
display: flex;
}
#transcript li>div{
margin-right: 1em;
2024-10-18 17:47:20 +02:00
}
2024-11-01 09:45:32 +01:00
.vjs-title-bar{
display: none !important;
}
2024-10-18 17:47:20 +02:00
2024-10-29 21:27:29 +01:00
2024-10-18 17:47:20 +02:00
/* Layout */
2024-11-01 17:50:06 +01:00
header{
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #000;
z-index: 99;
height: 2.5em;
display: flex;
align-items: center;
padding: 0 2em;
}
header a{
text-decoration: none;
}
header a:before{
content: '←';
padding: 0 .5em 0 0;
}
2024-10-18 17:47:20 +02:00
main {
width: 100%;
2024-11-01 17:50:06 +01:00
margin-top: 1.5em;
height: calc(100vh - 6.5em);
2024-10-18 17:47:20 +02:00
display: grid;
grid-template-areas: "video tabs" "timeline timeline";
2024-10-29 21:27:29 +01:00
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr 50%;
2024-10-18 17:47:20 +02:00
gap: 1em;
}
#video {
grid-area: video;
}
#tabs {
grid-area: tabs;
}
#timeline {
grid-area: timeline;
position: relative;
2024-10-29 21:27:29 +01:00
background: var(--c3);
2024-10-18 17:47:20 +02:00
}
#timeline-bar{
height: 2em;
margin-left: 20em;
background: #aaa;
2024-11-01 09:45:32 +01:00
display: flex;
justify-content: space-between;
}
#timeline-bar>span{
display: inline-flex;
align-items: center;
2024-10-18 17:47:20 +02:00
}
#timeline-bar-ctrl{
display: inline-block;
background: #000;
width: .1875em;
height: 100%;
position: absolute;
2024-11-01 22:55:38 +01:00
z-index: 999;
2024-10-18 17:47:20 +02:00
}
#timeline-bar-ctrl::before{
2024-11-01 22:55:38 +01:00
content: "";
2024-10-18 17:47:20 +02:00
width: 2em;
height: 2em;
border-radius: 50%;
2024-11-01 22:55:38 +01:00
transform: translate3d(calc(-50% + .09375em), 0, 0);
2024-10-18 17:47:20 +02:00
position: absolute;
2024-11-01 22:55:38 +01:00
background: #000;
2024-10-18 17:47:20 +02:00
}
#tracks{
height: calc(100% - 2em);
overflow-y: scroll;
}
.track {
width: 100%;
min-height: 15em;
display: grid;
grid-template: 100% / 20em 1fr;
}
.track + .track {
2024-10-29 21:27:29 +01:00
border-top: 1px solid var(--c1);
2024-10-18 17:47:20 +02:00
}
.track-ctrl{
2024-10-29 21:27:29 +01:00
padding: 1em;
background: var(--c3);
2024-10-18 17:47:20 +02:00
}
.track-viz{
2024-10-29 21:27:29 +01:00
background: var(--c3);
2024-10-18 17:47:20 +02:00
}
2024-11-01 17:50:06 +01:00
ul.segments{
padding: 0;
grid-template: 1fr / repeat(4, 1fr);
list-style: none;
display: grid;
grid-template: ;
height: 100%;
}
ul.segments li{
background: #ccc;
color: #000;
border-left: .0625em solid #fff;
padding: 1em;
}
2024-11-18 22:45:18 +01:00
.track-viz svg{
width: 100% !important;
}