-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
106 lines (100 loc) · 2.33 KB
/
style.css
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
:root {
--navbar-font-size: 1.25rem;
--navbar-line-height: calc(var(--navbar-font-size) * 1.2);
--nav-item-padding: 1rem;
--navbar-height: calc(var(--nav-item-padding) * 2 + var(--navbar-line-height));
--nav-bar-text-color: #c8d6e5;
--nav-bar-background-color: #111;
--nav-bar-hover-color: #555;
--dropdown-box-shadow-color: rgba(0, 0, 0, 0.4);
--background-color: rgb(44, 44, 44);
--text-color: #ddd;
}
.light-mode {
--nav-bar-text-color: #333;
--nav-bar-background-color: #ddd;
--nav-bar-hover-color: #aaa;
--dropdown-box-shadow-color: rgba(0, 0, 0, 0.2);
--background-color: white;
--text-color: black;
}
body * {
font-family: Arial, Helvetica, sans-serif;
color: var(--text-color);
}
body {
margin: 0px;
background-color: var(--background-color);
overscroll-behavior: none;
display: flex;
flex-direction: column;
min-height: 100vh;
}
h1 {
margin-top: 1em;
text-align: center;
font-size: 4em;
}
p {
margin: 4em 0;
font-size: 1.75em;
text-indent: 3em;
line-height: 1.75em;
}
#nav-bar {
background-color: var(--nav-bar-background-color);
/* color: var(--nav-bar-text-color); */
font-size: var(--navbar-font-size);
line-height: var(--navbar-line-height);
user-select: none;
height: var(--navbar-height);
width: 100%;
z-index: 1;
flex: 0;
}
.nav-item {
float: left;
color: var(--nav-bar-text-color);
padding: var(--nav-item-padding);
margin: 0px;
text-decoration: none;
}
.nav-item:hover, .dropdown-item:hover {
background-color: var(--nav-bar-hover-color);
cursor: pointer;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown-name {
float: none;
display: block;
/* Overwrite button properties */
background-color: initial;
border: none;
font-size: inherit;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-content {
display: none;
position: absolute;
min-width: 160px;
box-shadow: 0px 8px 16px 0px var(--dropdown-box-shadow-color);
z-index: 1;
}
.dropdown-item {
float: none;
padding: var(--nav-item-padding);
text-decoration: none;
display: block;
background-color: var(--background-color);
}
#background-canvas {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
}