aboutsummaryrefslogtreecommitdiff
path: root/web/style/nodepage.css
blob: c6cf981698c3b6033759ab549d85024766a56ce2 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
    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) 2024 metamuffin <metamuffin.org>
    Copyright (C) 2023 tpart
*/
.backdrop {
    width: calc(100% + 2 * var(--main-side-margin));
    height: min(50vh, calc(var(--backdrop-height) + 5em));
    margin-left: calc(-1 * var(--main-side-margin));
    margin-right: calc(-1 * var(--main-side-margin));
    margin-top: calc(-1 * var(--bar-height));
    margin-bottom: -5em;
    -webkit-mask-image: linear-gradient(
        rgba(0, 0, 0, 1),
        transparent min(50vh, calc(var(--backdrop-height) + 5em))
    );
    mask-image: linear-gradient(
        rgba(0, 0, 0, 1),
        transparent min(50vh, calc(var(--backdrop-height) + 5em))
    );
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}
.page.node {
    position: relative;
    width: 100%;
}
.page.node .bigposter {
    width: max(8em, 25%);
    float: left;
    margin: 3em;
    margin-top: -1em;
    height: 100%;
}
.page.node .bigposter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bigposter.aspect-thumb {
    aspect-ratio: var(--land-thumb-aspect)
}
.bigposter.aspect-land {
    aspect-ratio: var(--land-poster-aspect)
}
.bigposter.aspect-port {
    aspect-ratio: var(--port-poster-aspect)
}
.bigposter.aspect-square {
    aspect-ratio: 1;
}

.page.node .title h1 {
    margin-right: 1em;
}
.page.node .title .play {
    display: inline-block;
    font-size: small;
    background-color: #52b83340;
}
.page.node .title .play::before {
    content: "play_arrow";
    vertical-align: middle;
}
.page.node .title .mark_watched,
.page.node .title .mark_unwatched {
    display: inline-block;
}
.page.node .title .mark_watched input,
.page.node .title .mark_unwatched input {
    background-color: #80808040;
}

/* TODO find a non-horrible way to put the icon there */
/*.page.node .title .mark_watched input::before {
    content: "done_all";
}
.page.node .title .mark_unwatched input::before {
    content: "undo";
}*/

.dirup {
    width: 100%;
    font-size: large;
    display: block;
    text-align: center;
    background-color: var(--background-light);
    border-radius: 0.2em;
    padding: 0.6em;
    margin: 0.2em;
    transition: filter 0.22s;
}
.dirup:hover {
    filter: brightness(120%);
}

@media (max-width: 500px) {
    .page.node .bigposter {
        margin: 1.5em;
    }
}