Skip to content

Commit d156496

Browse files
committed
cleaned up styling code
1 parent 3eb2fdf commit d156496

File tree

8 files changed

+41
-73
lines changed

8 files changed

+41
-73
lines changed

src/app/styles/base/_base.scss

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

src/app/styles/components/_componentMap.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
background-color: #f9fafb;
88
}
99

10+
#root {
11+
height: 100%;
12+
}
13+
1014
/* Node Styling */
1115
.compMapParent,
1216
.compMapChild {

src/app/styles/components/_jsonTree.scss

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

src/app/styles/components/_performanceVisx.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
align-items: center;
66
padding: 12px 16px;
77
background-color: white;
8-
border-bottom: 1px solid #e5e7eb;
98
max-width: 1200px;
109
justify-content: space-around;
1110
}
@@ -66,3 +65,7 @@
6665
padding: 0.5rem;
6766
color: #1e293b;
6867
}
68+
69+
.perf-rect {
70+
fill: $perf-background;
71+
}

src/app/styles/layout/_actionContainer.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,4 @@
4949
padding: 4px 16px;
5050
}
5151

52-
.react-select__control {
53-
background-color: #f3f4f6 !important;
54-
border: none !important;
55-
border-radius: 0.375rem !important;
56-
min-height: 30px !important;
57-
box-shadow: none !important;
58-
}
5952

60-
.react-select__single-value {
61-
color: #374151 !important;
62-
font-size: 0.875rem !important;
63-
font-weight: 500 !important;
64-
}

src/app/styles/layout/_stateContainer.scss

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,10 @@
179179
background: #94a3b8;
180180
}
181181

182-
/* JSON Tree overrides */
182+
/* JSON Tree styling */
183183
.json-tree {
184-
background-color: transparent !important;
185-
margin: 0 !important;
186-
padding: 4px 0 !important;
187-
}
188-
189-
.json-tree ul {
190-
background-color: transparent !important;
191-
margin: 0 !important;
192-
padding-left: 16px !important;
184+
overflow: auto;
185+
list-style: none;
193186
}
194187

195188
/* Animation for Tooltip Appearance */

src/app/styles/layout/_travelContainer.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@
66
border-top: 1px solid #e5e7eb;
77
}
88

9-
.visx-group {
10-
margin-top: 10px;
11-
}
12-
139
.react-select-container {
1410
font-size: 16px;
1511
min-width: 90px;
1612
margin: 8px;
1713
}
14+
15+
.react-select__control {
16+
background-color: #f3f4f6 !important;
17+
border: none !important;
18+
border-radius: 0.375rem !important;
19+
min-height: 30px !important;
20+
box-shadow: none !important;
21+
}
22+
23+
.react-select__single-value {
24+
color: #374151 !important;
25+
font-size: 0.875rem !important;
26+
font-weight: 500 !important;
27+
}

src/app/styles/main.scss

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
font-size: 14px;
77
}
88

9+
html {
10+
margin: 0;
11+
padding: 0;
12+
height: 100%;
13+
}
14+
15+
body {
16+
margin: 0;
17+
padding: 0;
18+
height: 100%;
19+
}
20+
921
/* width */
1022
::-webkit-scrollbar {
1123
width: 5px;
@@ -31,22 +43,22 @@
3143
@import 'abstracts/variablesLM';
3244

3345
// 3. Base stuff
34-
@import 'base/base', 'base/helpers';
46+
@import 'base/helpers';
3547

3648
// 4. Layout-related sections
3749
@import 'layout/mainContainer', 'layout/bodyContainer', 'layout/actionContainer',
3850
'layout/errorContainer', 'layout/stateContainer', 'layout/travelContainer',
3951
'layout/buttonsContainer';
4052

4153
// 5. Components
42-
@import 'components/buttons', 'components/actionComponent', 'components/jsonTree',
43-
'components/performanceVisx', 'components/componentMap', 'components/ax';
54+
@import 'components/buttons', 'components/actionComponent', 'components/performanceVisx',
55+
'components/componentMap', 'components/ax';
4456

4557
// slider component
4658
@import './components/rc-slider';
4759

4860
// d3 chart component
49-
@import './components/d3graph.css';
61+
@import './components/d3graph';
5062

5163
// diff component
5264
@import './components/diff';

0 commit comments

Comments
 (0)