aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/style/layout.css
blob: f7a21c2739d3948d369118ce3315e80b4cb226bd (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
/*
    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");
}

:root {
    --card-size: 12em;
    --bar-height: 5em;
    --banner-aspect: 1.41;
    --accent-light: rgb(255, 163, 87);
    --accent-dark: rgb(199, 90, 0);
    --backdrop-height: 18em;
    --background-dark: #070707;
    --background-light: #1c1c1c;
    --main-side-margin: 2em;
    --font: rgb(218, 218, 218);
}

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

* {
    color: var(--font);
    font-family: "Cantarell", sans-serif;
    font-weight: 500;

    scrollbar-width: thin;
    scrollbar-color: var(--background-light) #0000;
}

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

nav {
    z-index: 90;
    position: fixed;
    top: 0px;
    left: 0px;
    padding: 1em;
    width: calc(100vw - 2em);
    height: 2em;
    backdrop-filter: blur(6px);
    background-color: #1c1c1c9a;
}

nav a {
    border: 0px solid transparent;
    border-radius: 5px;
    padding: 0.5em;
    text-decoration: none;
}
nav a:hover {
    background-color: #ffffff10;
}
nav a {
    color: #dfe5f3;
    text-decoration: none;
    background-image: linear-gradient(transparent, transparent),
        linear-gradient(var(--accent-light), var(--accent-light));
    background-size: 100% 2px, 0 2px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.15s linear;
}
nav a:hover {
    background-size: 0 2px, 100% 2px;
}

nav h1 {
    margin: 0px;
    font-size: 1.5em;
    display: inline;
    margin-right: 1em;
}

nav .account {
    float: right;
    display: inline;
}

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

.error {
    padding: 1em;
    color: rgb(255, 117, 117);
    font-family: monospace;
}

footer {
    padding: 0.1em;
    text-align: center;
}
footer p {
    color: #828282;
    font-size: 0.8em;
}