-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavigation.module.css
66 lines (55 loc) · 1.23 KB
/
navigation.module.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
/* NOTE: that this file is also being used by ../../useRoutes/URApp.js
it would be better to move this file to a higher directory for better accessibility
eg. src/shared or in src/styles */
.mainNav {
background-color: rgb(9, 64, 64);
color: #00ffff;
padding: 0.4rem 0;
/* * Added css below to accommodate
* hacky design for Exercise Navigation */
position: relative;
z-index: 999;
}
.mainNav > ul {
display: flex;
align-items: center;
justify-content: space-around;
width: 100%;
max-width: fit-content;
gap: 0.4rem;
margin: 0 auto;
flex-wrap: wrap;
}
.mainNav a {
padding: 0.5rem;
display: inline-block;
border-radius: 0.5em;
}
.mainNav a:hover {
background-color: #3a8b8b;
color: #000000;
}
.activeNavLink {
background-color: #7c7c44;
color: #00ffff;
}
.sideNav {
float: right;
border: 1px solid cyan;
padding: 1rem;
margin-left: 1rem;
}
.specialLink {
background-color: #040434;
color: #dfcaca;
}
/* added .mainNav to increase specificity;
previously overruled by .manNav a:hover */
.mainNav .specialLink:hover {
background-color: #dfcaca;
color: #040434;
}
/* > EXPERIMENTAL: used to apply display flow-root if it contains .sideNav */
div:has(.sideNav) {
display: flow-root;
}