Skip to content

Commit 29b9284

Browse files
committed
began styling navbar
1 parent 61c3e41 commit 29b9284

File tree

1 file changed

+28
-100
lines changed

1 file changed

+28
-100
lines changed

src/app/styles/layout/_stateContainer.scss

Lines changed: 28 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,21 @@
11
.state-container {
2-
font-size: 10px;
32
overflow: auto;
4-
background-color: $state-background;
5-
}
6-
7-
.toggleAC {
8-
background: #ff0001;
9-
height: 50%;
10-
text-decoration: none;
11-
border: none;
12-
}
13-
14-
.toggleAC:focus {
15-
outline: none;
16-
box-shadow: none;
17-
}
18-
19-
.state-container .main-navbar {
20-
background-color: $state-background;
21-
color: #ff0000;
22-
display: flex;
23-
flex-direction: row;
24-
justify-content: flex-start;
25-
align-items: center;
26-
height: 35px;
27-
margin: 6px;
283
}
294

305
.state-container .componentMapContainer {
316
height: 95% !important;
327
fill: $state-background;
338
}
349

35-
.state-container .main-navbar-container {
36-
position: sticky;
37-
top: 0px;
38-
left: 0px;
39-
z-index: 1;
40-
background-color: $state-background;
41-
42-
display: flex;
43-
flex-direction: row;
44-
justify-content: space-between;
45-
align-items: center;
46-
height: 35px;
47-
}
48-
4910
.no-data-message {
5011
color: #ff0001;
5112
font: normal 13px $text-font-stack;
5213
padding: 10px;
5314
}
5415

5516
.state-container {
56-
.main-navbar-text {
57-
margin: 6px;
58-
}
59-
6017
.main-router-link {
18+
//diff button
6119
font-size: 14px;
6220
height: 75%;
6321
width: 75px;
@@ -66,7 +24,6 @@
6624
align-items: center;
6725
text-decoration: none;
6826
color: $header-button-inactive-text;
69-
7027
background: $header-button-inactive;
7128
border-radius: 5px;
7229
border: 1px solid rgba(184, 196, 194, 0.25);
@@ -85,55 +42,50 @@
8542
}
8643

8744
.router-link {
88-
height: 100%;
89-
width: 10%;
90-
display: flex;
91-
justify-content: center;
92-
align-items: center;
93-
background-color: $navbar-unselected;
45+
padding: 8px 16px;
46+
font-size: 14px;
47+
font-weight: 500;
48+
border: none;
49+
border-bottom: 2px solid transparent;
50+
color: #4b5563;
9451
text-decoration: none;
95-
color: $navbar-unselected-text;
96-
font-size: 75%;
97-
overflow: hidden;
98-
}
99-
100-
.map-tab1 {
101-
border-top-left-radius: 5px;
102-
border-bottom-left-radius: 5px;
103-
}
104-
105-
.accessibility-tab {
106-
border-top-right-radius: 5px;
107-
border-bottom-right-radius: 5px;
108-
}
109-
110-
.router-link:hover {
111-
background-color: $navbar-hover;
112-
}
113-
114-
.router-link.is-active {
115-
background-color: $navbar-selected;
116-
color: $navbar-selected-text;
52+
background-color: transparent;
53+
cursor: pointer;
54+
transition:
55+
color 200ms ease,
56+
border-color 200ms ease;
57+
margin: 0;
58+
position: relative;
59+
60+
&:hover {
61+
color: #1f2937;
62+
background-color: transparent;
63+
}
64+
65+
&.is-active {
66+
border-bottom: 2px solid #0d9488;
67+
color: #0d9488;
68+
background-color: transparent;
69+
}
11770
}
11871

11972
.navbar {
12073
display: flex;
74+
background-color: white;
75+
border-bottom: 1px solid #e5e7eb;
12176
flex-direction: row;
12277
justify-content: center;
12378
align-items: center;
12479
height: 30px;
12580
position: fixed;
126-
top: 4px; //should revisit to figure out a more dynamic way of sticking the navbar to the bottom of the main-navbar // <- tried placing the main nav on the same line to save space but ran into problems with the svg div of the tree + animation. Will need closer inspection
81+
top: 4px;
12782
left: 50%;
12883
transform: translateX(-50%);
12984
width: 65vw;
13085
z-index: 1;
131-
132-
@extend %disable-highlight;
13386
}
13487

13588
.main-navbar {
136-
background-color: $header-background;
13789
display: flex;
13890
flex-direction: row;
13991
justify-content: flex-start;
@@ -143,15 +95,10 @@
14395
}
14496

14597
.main-navbar-container {
146-
top: 0px;
147-
left: 0px;
148-
z-index: 1;
149-
background-color: $header-background;
15098
display: flex;
15199
flex-direction: row;
152100
justify-content: space-between;
153101
align-items: center;
154-
height: 40px;
155102
}
156103
}
157104

@@ -162,7 +109,6 @@
162109
}
163110

164111
.performance-nav-bar-container {
165-
background-color: #ff0002;
166112
display: flex;
167113
border: $performance-subtab-border;
168114
height: 30px;
@@ -236,11 +182,6 @@
236182
z-index: 2;
237183
}
238184

239-
// .state-container .router-link {
240-
// border: 0.5px solid rgba(0, 0, 0, 0.5);
241-
// border-bottom: none;
242-
// }
243-
244185
.tooltipData {
245186
background-color: #373737;
246187
margin-top: 4px;
@@ -276,16 +217,3 @@
276217
.app-content {
277218
height: 100%;
278219
}
279-
280-
.heat-map-legend-container {
281-
display: flex;
282-
height: 3px;
283-
width: 200px;
284-
background-image: linear-gradient(
285-
to right,
286-
$heat-level-1,
287-
$heat-level-2,
288-
$heat-level-3,
289-
$heat-level-4
290-
);
291-
}

0 commit comments

Comments
 (0)