aboutsummaryrefslogtreecommitdiff
path: root/web/style/player.css
blob: e01cbc35bf060acea6a7addfaa135cc5064b6d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
    This file is part of jellything (https://codeberg.org/metamuffin/jellything)
    which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
    Copyright (C) 2023 metamuffin <metamuffin.org>
    Copyright (C) 2023 tpart
*/

form.playerconf {
    display: grid;
    grid-template-areas:
        "h h h"
        "v a s"
        "b b b";
    gap: 1em;
    grid-template-columns: auto auto auto;
    grid-template-rows: 3em auto 5em;
}

legend {
    font-size: 1.5em;
}
input[type="radio"] {
    appearance: none;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border-radius: 8px;
    padding: 2px;
    background-clip: content-box;
    border: 2px solid var(--font);
    background-color: transparent;
    transition: background-color 0.3s;
}
input[type="radio"]:checked {
    background-color: var(--accent-light);
}

fieldset label {
    transition: color 0.2s;
}
fieldset label:hover {
    color: var(--accent-light);
}

.playerconf {
    margin: 2em;
}
.playerconf h2 {
    grid-area: h;
    text-align: center;
}
.playerconf h3 {
    grid-area: h;
    text-align: center;
}
.playerconf .video {
    grid-area: v;
}
.playerconf .audio {
    grid-area: a;
}
.playerconf .subtitles {
    grid-area: s;
}
.playerconf input[type="submit"] {
    grid-area: b;
    width: 30%;
    height: 3em;
    font-size: 1.5em;
}

.player nav {
    opacity: 0;
    transition: opacity 0.2s;
}
.player nav:hover {
    opacity: 1;
}
.player #main {
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
.player video {
    width: 100vw;
    height: 100vh;
    background-color: black;
}