aboutsummaryrefslogtreecommitdiff
path: root/web/style/layout.css
blob: 16ae668885a73a6c55fa7552ec5d16c3456b72b1 (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/*
    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
*/
@font-face {
    font-family: "Cantarell";
    src: url(/assets/cantarell.woff2) format("woff2");
}

@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/material-icons.woff2") format("woff2");
}

:root {
    --card-size: min(50vw, 17em);
    --bar-height: 5em;
    --port-poster-aspect: 1.41;
    --land-poster-aspect: (1.41 / 2);
    --land-thumb-aspect: (9 / 16);
    --backdrop-height: 24em;
    --main-side-margin: 2em;
}

::selection {
    background-color: var(--accent-dark);
}

* {
    color: var(--font);
    scrollbar-width: thin;
    scrollbar-color: var(--background-light) #0000;
}
:root {
    font-family: "Cantarell", sans-serif;
    font-weight: 500;
}

body {
    background-color: var(--background-dark);
    width: 100vw;
    margin: 0px;
    padding: 0px;
}

h1 {
    font-weight: bold;
    color: var(--font-highlight);
}

code {
    font-family: monospace !important;
}
.log .time,
.log .module {
    color: grey;
}

#main {
    display: block;
    margin-top: var(--bar-height);
    margin-left: var(--main-side-margin);
    margin-right: var(--main-side-margin);
    margin-bottom: 1em;
}

section.message {
    background-color: var(--background-light);
    border-radius: 8px;
}
.error {
    padding: 1em;
    color: var(--c-error);
    font-family: monospace;
}
.success {
    padding: 1em;
    color: var(--c-success);
}

footer {
    padding: 0.1em;
    text-align: center;
}
footer p {
    color: var(--font-dark);
    font-size: 0.8em;
}

*::before,
.icon {
    font-family: "Material Icons";
    line-height: 1;
    font-size: 1.1em;
    vertical-align: text-bottom;
    display: inline-block;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
}
*::before {
    margin-right: 3px;
}

.homelist {
    overflow-x: scroll;
    max-width: 100%;
}
.homelist ul {
    display: table;
}
.homelist ul li {
    display: table-cell;
}

@media (max-width: 750px) {
    .homelist ul {
        padding-left: 0;
    }
}
@media (max-width: 600px), (max-height: 800px) {
    #main h2 {
        margin: 0;
    }
}