-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavigationcontrol.css
More file actions
125 lines (118 loc) · 2.1 KB
/
navigationcontrol.css
File metadata and controls
125 lines (118 loc) · 2.1 KB
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
*{
}
body{
overflow-x: hidden;
}
.flex{
display:flex;
gap:var(--gap, 2rem);
}
.logo{
margin: 2rem;
}
.primary-header{
align-items: center;
justify-content: space-between;
position: relative;
z-index: 1;
background-color: #002D62;
}
.mobile-nav-toggle{
display: none;
cursor: pointer;
}
.primary-navigation{
list-style: none;
padding: 0;
margin: 0;
backdrop-filter:blur(1);
text-transform: uppercase;
}
.primary-navigation a{
text-decoration: none;
color: white;
font-weight: bold;
}
@media(max-width: 1000px) {
.primary-navigation {
--gap: 2em;
position: fixed;
z-index: 1000;
left: 70%;
top: 0;
right: 0;
bottom: 0;
flex-direction: column;
padding: min(30vh, 10rem) 2em;
transform: translateX(100%);
transition: 350ms ease-out;
}
.primary-navigation[data-visible="true"]{
transform: translateX(0%);
}
.mobile-nav-toggle{
display: block;
position: absolute;
z-index: 999999;
background-color: transparent;
background-repeat: no-repeat;
background-image: url("VisualEditor_-_Icon_-_Menu.png");
color: white;
width: 2rem;
border: 0;
aspect-ratio: 1;
top: 2rem;
right: 2rem;
}
}
@media (min-width:800px) {
.primary-navigation{
padding:3rem;
}
}
.nav::before{
content:'';
display: block;
height: 3px;
background-color: white;
position: relative;
border-radius: 50px;
top: 0;
width:0%;
transition: all ease-in-out 500ms;
}
.nav:hover::before{
width: 100%;
}
.current::before{
width: 100%;
}
#login{
padding-top: 3.5px;
padding-left: 8px;
padding-bottom: 1px;
padding-right: 8px;
border-radius: 10px;
margin-bottom: -5px;
color: black;
}
#login:hover{
transform: scale(1.2);
}
.menu{
width: 20px;
height: 2px;
background-color: white;
color: white;
margin: 3px 0;
}
#id_no_2{
margin-top: 3px;
cursor: pointer;
padding-left:5px;
padding-right: 2px;
border-radius: 20px;
}
#id_no_2:hover{
transform: scale(1.2);
}