summaryrefslogtreecommitdiff
path: root/assets/css/header.css
blob: c5fcf9d4c08ee778d030f15df20c614d1b24739e (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
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: calc(var(--nav-width) + var(--gap) * 2);
    margin-inline-start: auto;
    margin-inline-end: auto;
    line-height: var(--header-height)
}

.nav a {
    display: block
}

.logo,
.menu {
    display: flex;
    margin: auto var(--gap);
}

.logo {
    flex-wrap: inherit
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    margin-inline-end: 10px
}

.logo a img {
    display: inline;
    vertical-align: middle;
    pointer-events: none;
    transform: translate(0, -10%);
    border-radius: 6px;
    margin-inline-end: 8px
}

.theme-toggle svg {
    height: 18px;
    user-select: none;
    cursor: pointer
}

body.dark #moon {
    vertical-align: middle;
    display: none
}

body:not(.dark) #sun {
    display: none
}

.menu {
    list-style: none;
    word-break: keep-all;
    overflow-x: auto;
    white-space: nowrap
}

.menu li+li {
    margin-inline-start: var(--gap)
}

.menu a {
    font-size: 16px
}

.menu .active {
    font-weight: 500;
    border-bottom: 2px solid currentColor
}

.lang-switch li,
.lang-switch ul,
.logo-switches {
    display: inline-flex
}

.lang-switch a {
    font-size: 16px;
    font-weight: 500;
    margin: 0 8px
}

.logo-switches {
    flex-wrap: inherit
}