Skip to content

Commit d01499c

Browse files
authored
Merge pull request #17 from oslabs-beta/45/styling_updates
45/styling updates
2 parents a68f1f7 + e967eb9 commit d01499c

File tree

5 files changed

+57
-33
lines changed

5 files changed

+57
-33
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export default function ComponentMap({
220220
if (data[key] !== 'reactFiber' && typeof data[key] !== 'object' && exclude.includes(key) !== true) {
221221
propsFormat.push(<p className="stateprops">
222222
{`${key}: ${data[key]}`}
223-
</p>);
223+
</p>);
224224
} else if (data[key] !== 'reactFiber' && typeof data[key] === 'object' && exclude.includes(key) !== true) {
225225
const result = makePropsPretty(data[key]);
226226
nestedObj.push(result);
@@ -359,7 +359,7 @@ export default function ComponentMap({
359359
forceUpdate();
360360
}}
361361
/>
362-
)}
362+
)}
363363
{/* This creates the rectangle boxes for each component and sets it relative position to other parent nodes of the same level. */}
364364
{node.depth !== 0 && (
365365
<rect
@@ -371,9 +371,7 @@ export default function ComponentMap({
371371
fill={node.children ? '#161521' : '#62d6fb'}
372372
// node.data.isExpanded = if node is collapsed
373373
// stroke={(node.data.isExpanded && node.child) ? '#95fb62' : '#a69ff5'} => node.child is gone when clicked, even if it actually has children. Maybe better call node.children => node.leaf
374-
stroke={(node.data.isExpanded && node.data.children.length > 0) ? '#95fb62' : '#a69ff5'}
375-
376-
// if already child in fill do not all stroke to change change color later but it works!!!!!!!!
374+
stroke={(node.data.isExpanded && node.data.children.length > 0) ? '#ff6569' : 'none'}
377375
strokeWidth={3}
378376
// strokeDasharray={node.children ? '0' : '2,2'}
379377
strokeOpacity="1"
@@ -412,16 +410,16 @@ export default function ComponentMap({
412410
textAnchor="middle"
413411
style={{ pointerEvents: 'none' }}
414412
fill={
415-
node.depth === 0
416-
? '#161521'
417-
: node.children
418-
? 'white'
419-
: '#161521'
420-
}
413+
node.depth === 0
414+
? '#161521'
415+
: node.children
416+
? 'white'
417+
: '#161521'
418+
}
421419
z
422-
>
423-
{node.data.name}
424-
</text>
420+
>
421+
{node.data.name}
422+
</text>
425423
</Group>
426424
);
427425
})}

src/app/components/LinkControls.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const controlStyles = {
1010
const dropDownStyle = {
1111
margin: '0.5em',
1212
fontSize: '12px',
13+
fontFamily: 'Roboto, sans-serif',
1314
borderRadius: '4px',
15+
borderStyle: 'solid',
16+
borderWidth: '1px',
1417
backgroundColor: '#242529',
1518
color: 'white',
1619
padding: '2px',
@@ -112,12 +115,11 @@ export default function LinkControls({
112115
</select>
113116

114117
{/* Controls for the select selections. */}
115-
<label>Select:</label>
118+
<label> Select:</label>
116119
&nbsp; {/*This is a non-breaking space - Prevents an automatic line break at this position */}
117-
<input list='nodeOptions' type='text' name="nodeOptions"
118-
onChange={e => {
119-
setSelectedNode(e.target.value)
120-
}}
120+
<input id='selectInput' list='nodeOptions' type='text' name="nodeOptions"
121+
onChange={e => { setSelectedNode(e.target.value) }}
122+
style={dropDownStyle}
121123
/>
122124
<datalist id='nodeOptions'>
123125
{nodeList.map(node => (

src/app/components/RenderingFrequency.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ const ComponentCard = props => {
9898
);
9999
};
100100

101+
// const dataComponentContainer = (
102+
// <div>
103+
// {dataComponentArray.}
104+
// </div>
105+
// );
106+
101107
const DataComponent = props => {
102108
const {
103109
header,

src/app/styles/components/_buttons.scss

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
2+
23
.save-series-button {
34
padding: 3px;
45
outline: transparent;
@@ -23,6 +24,7 @@
2324
background: rgb(41, 164, 41);
2425
}
2526
}
27+
2628
.delete-button {
2729
padding: 3px;
2830
outline: transparent;
@@ -63,6 +65,7 @@
6365
width: 120px;
6466
background: $red-color-gradient;
6567
}
68+
6669
.empty-button:hover {
6770
color: black;
6871
box-shadow: $box-shadow-red;
@@ -114,7 +117,6 @@
114117
// remove the blue border when button is clicked
115118
color: white;
116119
background-color: $fiery-rose;
117-
118120
cursor: pointer;
119121
}
120122

@@ -168,6 +170,7 @@
168170
background: $blue-color-gradient;
169171
border-radius: 5px;
170172
}
173+
171174
.play-button:focus,
172175
.backward-button:focus,
173176
.forward-button:focus {
@@ -192,6 +195,7 @@
192195
border-color: transparent;
193196
background: $blue-color-gradient;
194197
}
198+
195199
.import-button:hover,
196200
.howToUse-button:hover,
197201
.export-button:hover,
@@ -212,6 +216,7 @@
212216
overflow: visible;
213217
vertical-align: -0.125em;
214218
}
219+
215220
%button-shared {
216221
padding: 5px;
217222
outline: none;
@@ -235,11 +240,9 @@
235240
.dropdown-dark {
236241
background: #444;
237242
border-color: #111111 #0a0a0a black;
238-
background-image: -webkit-linear-gradient(
239-
top,
240-
transparent,
241-
rgba(0, 0, 0, 0.4)
242-
);
243+
background-image: -webkit-linear-gradient(top,
244+
transparent,
245+
rgba(0, 0, 0, 0.4));
243246
background-image: -moz-linear-gradient(top, transparent, rgba(0, 0, 0, 0.4));
244247
background-image: -o-linear-gradient(top, transparent, rgba(0, 0, 0, 0.4));
245248
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
@@ -259,21 +262,23 @@
259262
.dropdown-dark .dropdown-select {
260263
color: #aaa;
261264
text-shadow: 0 1px black;
262-
background: #444; /* Fallback for IE 8 */
265+
background: #444;
266+
/* Fallback for IE 8 */
263267
}
264268

265269
.dropdown-dark .dropdown-select:focus {
266270
color: #ccc;
267271
}
268272

269-
.dropdown-dark .dropdown-select > option {
273+
.dropdown-dark .dropdown-select>option {
270274
background: #444;
271275
text-shadow: 0 1px rgba(0, 0, 0, 0.4);
272276
}
273277

274278
.MuiSelect-icon {
275279
color: lightgrey !important;
276280
}
281+
277282
.series-options-container {
278283
display: flex;
279284
justify-content: space-between;
@@ -284,29 +289,35 @@
284289
.snapshotId-header {
285290
font-size: 1rem;
286291
}
292+
287293
.dropdown-and-delete-series-container {
288294
display: flex;
289295
align-items: center;
290296
}
297+
291298
.close-button-container {
292299
display: flex;
293300
justify-content: flex-end;
294301
}
302+
295303
.closebtn {
296304
font-size: 20px;
297305
color: #818181;
298306
background-color: transparent;
299307
border: none;
300308
box-shadow: none;
301309
}
310+
302311
.closebtn:hover {
303312
color: #f1f1f1;
304313
}
314+
305315
.side-bar-button {
306316
width: 80px;
307317
height: 30px;
308318
padding: 0 2rem;
309319
}
320+
310321
/* sidebar button open and closing functionality */
311322
aside {
312323
width: 250px;
@@ -318,13 +329,15 @@ aside {
318329
.no-aside {
319330
width: 30px;
320331
}
332+
321333
.toggle {
322334
// width: 40px;
323335
// height: 10px;
324336
display: block;
325337
position: relative;
326338
margin-top: 1rem;
327339
}
340+
328341
/* toggle i handles arrow animation */
329342
.toggle i,
330343
.toggle i::after,
@@ -370,7 +383,9 @@ aside {
370383
.no-aside .toggle i::after {
371384
transform: none;
372385
}
386+
373387
#arrow {
374388
margin-bottom: 40px;
375389
}
376-
/* ^ sidebar button open and closing functionality */
390+
391+
/* ^ sidebar button open and closing functionality */

src/app/styles/components/_renderingFrequency.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@
99
border-radius: 5px;
1010
border: 1px solid rgba(184, 196, 194, 0.25);
1111
box-shadow: 2px 3px 4px 2px rgba(0, 0, 0, 0.2);
12-
padding:5px;
12+
padding: 5px;
1313
width: 10vw;
14-
height:25vw;
14+
height: 25vw;
1515
overflow-y: scroll;
1616
overflow-wrap: break-word;
1717
}
18-
.DataComponent{
18+
19+
.DataComponent {
1920
padding-left: 30px;
2021
display: flex;
2122
flex-direction: row;
2223
flex-wrap: wrap;
2324
width: 50vw;
24-
height:40vw;
25+
height: 40vw;
2526
overflow-y: scroll;
2627
overflow-wrap: break-word;
2728
}
@@ -32,7 +33,7 @@
3233
align-items: center;
3334
justify-content: space-between;
3435
background: #242529;
35-
padding: 20px;
36+
padding: 20px;
3637
width: 50vw;
3738
height: 5vh;
3839
margin: 20px 10px;
@@ -65,6 +66,7 @@
6566
line-height: 18px;
6667
}
6768
}
69+
6870
.ExpandStyledGridElement {
6971
display: flex;
7072
flex-direction: row;
@@ -105,6 +107,7 @@
105107
line-height: 18px;
106108
}
107109
}
110+
108111
.RenderRight {
109112
padding-right: 5px;
110113
background: $blue-color-gradient;

0 commit comments

Comments
 (0)