Skip to content

Commit 52648bb

Browse files
committed
began styling performance controls
1 parent af9851b commit 52648bb

File tree

3 files changed

+53
-55
lines changed

3 files changed

+53
-55
lines changed

src/app/components/StateRoute/PerformanceVisx/BarGraph.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const BarGraph = (props: BarGraphProps): JSX.Element => {
125125
<div className='bargraph-position'>
126126
<div className='saveSeriesContainer'>
127127
<form className='routesForm' id='routes-formcontrol'>
128-
<label id='routes-dropdown'>Select Route: </label>
128+
<label id='routes-dropdown'>Route: </label>
129129
<select
130130
className='performance-dropdown'
131131
labelId='demo-simple-select-label'
@@ -144,7 +144,7 @@ const BarGraph = (props: BarGraphProps): JSX.Element => {
144144
</select>
145145
</form>
146146
<form className='routesForm' id='routes-formcontrol'>
147-
<label id='routes-dropdown'>Select Snapshot: </label>
147+
<label id='routes-dropdown'>Snapshot: </label>
148148
<select
149149
labelid='demo-simple-select-label'
150150
id='snapshot-select'

src/app/styles/base/_base.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,3 @@ body {
3131
border-color: $state-cont-border;
3232
border-width: 0px;
3333
}
34-
35-
.saveSeriesContainer {
36-
padding-bottom: 15px;
37-
padding-top: 10px;
38-
}
Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,68 @@
11
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');
22

3-
#RenderContainer {
3+
.saveSeriesContainer {
44
display: flex;
5-
justify-content: center;
5+
align-items: center;
6+
padding: 12px 16px;
7+
background-color: white;
8+
border-bottom: 1px solid #e5e7eb;
9+
max-width: 1200px;
10+
justify-content: space-around;
611
}
712

8-
#routes-formcontrol {
9-
padding: 3px;
10-
margin-left: 50px;
11-
font:
12-
400 16px 'Outfit',
13-
sans-serif;
14-
text-align: left;
13+
.routesForm {
14+
display: flex;
15+
align-items: center;
16+
gap: 10px;
1517
}
1618

1719
#routes-dropdown {
18-
color: $performance-options-label !important;
19-
font:
20-
400 16px 'Outfit',
21-
sans-serif;
22-
text-align: left;
23-
}
24-
25-
.saveSeriesContainer {
26-
#routes-select,
27-
#snapshot-select {
28-
background-color: $performance-options-dropdown !important;
29-
}
30-
}
31-
32-
.saveSeriesContainer {
33-
#routes-select,
34-
#snapshot-select {
35-
&:hover {
36-
cursor: pointer;
37-
}
38-
}
20+
font-size: 14px;
21+
font-weight: 500;
22+
color: #4b5563;
23+
user-select: none;
24+
white-space: nowrap;
3925
}
4026

27+
.performance-dropdown,
4128
#routes-select,
42-
#snapshot-select {
43-
color: white !important;
44-
font:
45-
400 16px 'Outfit',
46-
sans-serif;
47-
text-align: left;
48-
width: 120px;
49-
height: 30px;
50-
border-radius: 5px;
51-
text-align: center;
29+
#snapshot-select,
30+
.control-select {
31+
background-color: #f9fafb;
32+
border: 1px solid #e5e7eb;
33+
color: #374151;
34+
font-size: 14px;
35+
padding: 6px 12px;
36+
border-radius: 6px;
37+
min-width: 140px;
38+
cursor: pointer;
39+
transition: all 200ms ease;
40+
appearance: none;
41+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
42+
background-repeat: no-repeat;
43+
background-position: right 8px center;
44+
background-size: 16px;
5245
}
5346

54-
#seriesname {
55-
float: right;
56-
width: 220px;
57-
margin-right: 165px;
58-
height: 24px;
47+
.performance-dropdown:hover,
48+
#routes-select:hover,
49+
#snapshot-select:hover,
50+
.control-select:hover {
51+
border-color: #d1d5db;
52+
background-color: #f3f4f6;
5953
}
6054

61-
input:focus,
62-
textarea:focus,
63-
select:focus {
55+
.performance-dropdown:focus,
56+
#routes-select:focus,
57+
#snapshot-select:focus,
58+
.control-select:focus {
6459
outline: none;
60+
border-color: #14b8a6;
61+
box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
62+
}
63+
64+
.routes,
65+
.control-select option {
66+
padding: 0.5rem;
67+
color: #1e293b;
6568
}

0 commit comments

Comments
 (0)