Skip to content

Commit 998f53e

Browse files
committed
finally finished styling current shapshot button
1 parent 49b69e8 commit 998f53e

File tree

9 files changed

+10
-191
lines changed

9 files changed

+10
-191
lines changed

src/app/components/Actions/Action.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ const Action = (props: ActionProps): JSX.Element => {
8888
/>
8989
</div>
9090
{isCurrIndex ? (
91-
<button className='current-snap' type='button'>
92-
{`Snapshot: ${displayName}`}
93-
</button>
91+
<input
92+
className='current-snap'
93+
key={`ActionInput${displayName}`}
94+
type='text'
95+
placeholder={`Snapshot: ${displayName}`}
96+
/>
9497
) : (
9598
<button className='time-button' type='button'>
9699
{displayTime}

src/app/styles/abstracts/_variablesLM.scss

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/app/styles/components/_actionComponent.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@
117117
}
118118

119119
.current-snap {
120-
font-weight: bold;
120+
font-weight: 900;
121121
border: none;
122122
background: transparent;
123123
font-size: 1rem;
124124
color: #374151;
125125
width: 100%;
126-
padding: 2px 24px 2px 0px;
126+
padding: 2px 0px;
127127
}

src/app/styles/components/_ax.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
.accessibility-controls label:hover {
3939
background-color: #0d9488;
40-
transform: translateY(-1px);
4140
}
4241

4342
.accessibility-disable input[type='radio'] {
@@ -65,7 +64,6 @@
6564
.accessibility-disable label:hover {
6665
border-color: #d1d5db;
6766
background-color: #f3f4f6;
68-
transform: translateY(-1px);
6967
}
7068

7169
.accessibility-text {

src/app/styles/components/_buttons.scss

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
display: flex;
55
align-items: center;
66
justify-content: center;
7+
gap: 8px;
78
width: 100px;
89
height: 40px;
910
padding: 8px 12x;
@@ -22,13 +23,6 @@
2223

2324
&:hover {
2425
background-color: #374151;
25-
transform: translateY(-2px);
26-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
27-
}
28-
29-
&:active {
30-
transform: translateY(0);
31-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
3226
}
3327

3428
&:focus {
@@ -184,54 +178,6 @@ aside {
184178
display: none;
185179
}
186180

187-
/* ^ sidebar button open and closing functionality */
188-
.reconnect-button-pop-up {
189-
padding: 3px;
190-
outline: transparent;
191-
background-color: #050787;
192-
color: $reconnect-button-text !important;
193-
border: none;
194-
border-radius: 3px;
195-
cursor: pointer;
196-
line-height: 1.5em;
197-
font: 500 $button-text-size $text-font-stack;
198-
width: 120px;
199-
&:hover {
200-
color: black !important;
201-
background-color: #ff0001;
202-
}
203-
}
204-
205-
.cancel-button-pop-up {
206-
padding: 3px;
207-
outline: transparent;
208-
color: black;
209-
border: none;
210-
border-radius: 3px;
211-
cursor: pointer;
212-
line-height: 1.5em;
213-
font: 500 $button-text-size $text-font-stack;
214-
width: 120px;
215-
&:hover {
216-
color: $contrasting-color;
217-
background-color: #ff0001;
218-
}
219-
}
220-
221-
.close-icon-pop-up {
222-
cursor: pointer;
223-
color: #ff0001;
224-
font-size: 20px;
225-
padding-right: 8px;
226-
color: black;
227-
}
228-
229-
.warning-icon-pop-up {
230-
color: #d72828;
231-
margin-left: 5px;
232-
margin-right: -22px;
233-
}
234-
235181
.clear-button-modern {
236182
width: 100% !important;
237183
background-color: #f3f4f6 !important;

src/app/styles/layout/_buttonsContainer.scss

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464

6565
.introjs-tooltiptext {
6666
font-size: 14px;
67-
// color: #333;
6867
}
6968

7069
.introjs-progressbar {
@@ -80,17 +79,6 @@
8079
border-radius: 8px;
8180
}
8281

83-
.buttons-wrapper {
84-
display: flex;
85-
align-items: center;
86-
justify-content: space-between;
87-
max-width: 1200px;
88-
width: 100%;
89-
margin: 0 auto;
90-
padding: 0 24px;
91-
gap: 16px;
92-
}
93-
9482
.introjs-tooltip {
9583
color: black;
9684
background-color: white;
@@ -132,48 +120,6 @@
132120
outline: none;
133121
}
134122

135-
.dialog-pop-up {
136-
border: 1px solid #ff0001;
137-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
138-
padding: 13px;
139-
}
140-
141-
.dialog-pop-up-header {
142-
color: #ff0001;
143-
padding: 8px 16px;
144-
font-size: 20px;
145-
font-family: $text-font-stack;
146-
}
147-
148-
.dialog-pop-up-contents {
149-
background-color: $pop-up-window-background;
150-
color: $pop-up-window-text;
151-
font-family: $text-font-stack;
152-
line-height: 1.4;
153-
padding: 0px 15px 15px 15px !important;
154-
}
155-
156-
.dialog-pop-up-actions {
157-
padding: 15px;
158-
background-color: #ff0001;
159-
}
160-
161-
.close-icon-pop-up-div {
162-
height: 40px;
163-
width: 100%;
164-
background-color: #ff0001;
165-
display: flex;
166-
justify-content: flex-end;
167-
align-items: center;
168-
}
169-
170-
.warning-header-container {
171-
background-color: $pop-up-window-background;
172-
display: flex;
173-
align-items: center;
174-
height: 20%;
175-
}
176-
177123
.buttons-container button {
178124
display: flex;
179125
align-items: center;

src/app/styles/layout/_errorContainer.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,10 @@
7474

7575
.launch-button:hover {
7676
background-color: #374151;
77-
transform: translateY(-1px);
78-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
7977
}
8078

8179
.launch-button:active {
8280
background-color: #111827;
83-
transform: translateY(0);
84-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
8581
}
8682

8783
.github-link {

src/app/styles/layout/_travelContainer.scss

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,11 @@
55
align-items: center;
66
border-top: 1px solid #e5e7eb;
77
padding-left: 16px;
8-
gap: 12px;
8+
gap: 8px;
99
}
1010

1111
.react-select-container {
1212
font-size: 16px;
1313
min-width: 90px;
1414
margin: 8px;
1515
}
16-
17-
.react-select__control {
18-
background-color: #f3f4f6 !important;
19-
border: none !important;
20-
border-radius: 6px !important;
21-
box-shadow: none !important;
22-
}
23-
24-
.react-select__single-value {
25-
color: #374151 !important;
26-
font-size: 0.875rem !important;
27-
font-weight: 500 !important;
28-
}

src/app/styles/main.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,17 @@ body {
1818
height: 100%;
1919
}
2020

21-
// 1. Configuration and helpers
22-
@import 'abstracts/variablesLM';
23-
24-
// 3. Base
2521
@import 'base/helpers';
2622

27-
// 4. Layout-related sections
2823
@import 'layout/mainContainer', 'layout/bodyContainer', 'layout/actionContainer',
2924
'layout/errorContainer', 'layout/stateContainer', 'layout/travelContainer',
3025
'layout/buttonsContainer';
3126

32-
// 5. Components
3327
@import 'components/buttons', 'components/actionComponent', 'components/performanceVisx',
3428
'components/componentMap', 'components/ax';
3529

36-
// slider component
3730
@import './components/rc-slider';
3831

39-
// d3 chart component
4032
@import './components/d3graph';
4133

42-
// diff component
4334
@import './components/diff';

0 commit comments

Comments
 (0)