-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu_style.css
134 lines (113 loc) · 3.15 KB
/
menu_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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/* The sidepanel menu */
.sidepanel {
white-space: nowrap;
height: 100%; /* Specify a height */
width: 0; /* 0 width - change this with JavaScript */
position: fixed; /* Stay in place */
z-index: 1; /* Stay on top */
top: 0;
left: 0;
background-color: #111; /* Black*/
overflow-x: hidden; /* Disable horizontal scroll */
overflow-y: scroll;
padding-top: 60px; /* Place content 60px from the top */
transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
scrollbar-color: #444 #222;
}
/* The sidepanel links */
.sidepanel a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: #888;
display: block;
transition: 0.3s;
cursor: pointer;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
color: #fff;
}
/* Position and style the close button (top right corner) */
.sidepanel .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
/* Style the button that is used to open the sidepanel */
.mainmenubtn {
font-size: 20px;
cursor: pointer;
background-color: #00000000;
color: white;
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 10px;
border: none;
height: 50px;
}
#topmenu {
position: absolute;
backdrop-filter: blur(3px);
background-color: #2524248c;
width: 100%;
height: 50px;
z-index: 1;
}
.mainmenubtn:hover {
background-color: #444;
}
.mainmenubtnonlylogo:hover {
background-color: #444;
}
.mainmenubtnonlylogo {
font-size: 20px;
cursor: pointer;
background-color: rgba(17, 17, 17, 0);
color: white;
padding: 10px;
border: none;
height: 50px;
width: 50px;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
background-color: #00000000;
z-index: 1; /* Stay on top */
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #35353586;
min-width: 150px;
border: 1px solid #3a3a3a;
border-radius: 5px;
z-index: 1;
backdrop-filter: blur(3px);
}
/* Links inside the dropdown */
.dropdown-content a {
color: white;
padding: 12px 16px;
text-decoration: none;
display: block;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #aaa;}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: #000000;}