aboutsummaryrefslogtreecommitdiff
path: root/web/style/navbar.css
blob: 308b39a63358b82c6082ec00bda60e576d282b5e (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
/*
    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>
*/
nav {
    user-select: none;
    z-index: 90;
    position: fixed;
    top: 0px;
    left: 0px;
    padding: 1em;
    width: calc(100vw - 2em);
    height: 2em;
    backdrop-filter: blur(6px);
    background-color: var(--c-nav);

    display: flex;
    align-items: center;
}

nav a {
    display: inline-block;
    border: 0px solid transparent;
    border-radius: 5px;
    padding: 0.5em;
    text-decoration: none;
    color: var(--font);
    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;
    cursor: pointer;
}

nav a:hover {
    background-color: var(--c-nav-hover);
    background-size: 0 2px, 100% 2px;
}

nav h1 {
    margin: 0px;
    margin-left: 0.5em;
    margin-right: 0.5em;
    font-size: 1.5em;
    display: inline;
}
nav .account {
    margin-left: auto;
}
nav .account .username {
    color: var(--accent-light);
    font-weight: bold;
    margin-right: 1em;
}

nav .admin::before {
    content: "admin_panel_settings";
}

nav .settings::before {
    content: "settings";
}

nav .logout::before {
    content: "logout";
}

nav .login::before {
    content: "login";
}

nav .back::before {
    content: "arrow_back";
}

.hybrid_button p {
    display: inline;
}
@media (max-width: 1000px) {
    .hybrid_button p {
        display: none;
    }
    *::before {
        margin-right: 0px;
    }
}
@media (max-width: 750px) {
    nav h1 {
        display: none;
    }
    nav .account span {
        display: none;
    }
}
@media (max-width: 400px) {
    nav .library {
        display: none;
    }
}