Skip to content

Commit 0934319

Browse files
authored
Merge pull request #10 from oslabs-beta/noahoo7/debugging
fixed sidebar overlap
2 parents afbd85c + 751d107 commit 0934319

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

.d.js

Whitespace-only changes.

app/stylesheets/MainContainer.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
@import './constants.scss';
2+
23
.main-container {
34
background-color: $grey;
4-
flex: 1;
5+
// flex: 1;
56
min-height: 100vh;
67
@include centerWithFlex(space-between);
78
flex-direction: column;
89
padding-left: $sidebarWidth;
10+
transition: padding-left, 200ms;
911
max-width: 100%;
1012

13+
1114
.main-routes {
1215
width: 100%;
1316
max-width: 100%;
1417
height: 100%;
1518
padding-bottom: 20px;
1619
}
20+
1721
.copyright-container {
1822
@include centerWithFlex(center);
1923
position: fixed;
@@ -23,4 +27,4 @@
2327
margin: 30px 0px;
2428
color: $background;
2529
}
26-
}
30+
}

app/stylesheets/Occupied.scss

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
font-size: 42px;
4343
margin: 10px;
4444
padding: 5px;
45+
4546
&:hover {
4647
cursor: pointer;
4748
box-shadow: $boxshadow3;
@@ -54,6 +55,7 @@
5455
top: 43px;
5556
left: 300px;
5657
margin-left: $logoPositionLeft - 34px;
58+
5759
&:hover {
5860
color: $gblue;
5961
font-weight: 500;
@@ -110,6 +112,7 @@
110112
margin: 0px;
111113
margin-left: 15px;
112114
margin-right: 15px;
115+
113116
&:hover {
114117
cursor: pointer;
115118
box-shadow: $boxshadow3;
@@ -123,6 +126,7 @@
123126
margin-left: -35px;
124127
font-size: 26px;
125128
padding: 8px;
129+
126130
&:hover {
127131
cursor: pointer;
128132
box-shadow: $boxshadow3;
@@ -172,6 +176,7 @@
172176
margin-top: 4px;
173177
margin-left: 2px;
174178
font-size: 26px;
179+
175180
// padding: 8px;
176181
&:hover {
177182
cursor: pointer;
@@ -222,6 +227,7 @@
222227
margin-top: 4px;
223228
margin-left: 2px;
224229
font-size: 26px;
230+
225231
// padding: 8px;
226232
&:hover {
227233
cursor: pointer;
@@ -284,6 +290,7 @@ button {
284290
margin: 10px 0;
285291
// padding: 0px;
286292
color: transparent;
293+
287294
&:hover {
288295
background-color: transparent;
289296
}
@@ -296,6 +303,7 @@ button {
296303
box-shadow: none;
297304
transform: translateX(-40px);
298305
filter: none;
306+
299307
&:hover {
300308
background: none;
301309
background-color: none;
@@ -321,6 +329,7 @@ button {
321329
position: relative;
322330
display: flex;
323331
flex-direction: column;
332+
324333
.searchIconSvg {
325334
transform: scale(0.1) translate(758.9px, -720px);
326335
position: absolute;
@@ -383,6 +392,7 @@ select:-webkit-autofill:focus {
383392
padding: 0;
384393
cursor: pointer;
385394
transition: all 0.5s;
395+
386396
&:after,
387397
&:before {
388398
content: ' ';
@@ -391,10 +401,12 @@ select:-webkit-autofill:focus {
391401
position: absolute;
392402
transition: all 0.5s;
393403
}
404+
394405
&:hover {
395406
position: relative;
396407
border-top-right-radius: 0px;
397408
border-bottom-left-radius: 0px;
409+
398410
&:before,
399411
&:after {
400412
width: 25%;
@@ -410,22 +422,28 @@ select:-webkit-autofill:focus {
410422
// opacity: 0.7;
411423
// box-shadow: 0 4px 20px 0 rgba(0, 0, 0,.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4);
412424
}
425+
413426
&:hover p {
414427
color: $background;
415428
font-weight: 400;
416429
}
430+
417431
&:hover .cardFooter {
418432
color: $background;
419433
}
434+
420435
&:hover .cardLine {
421436
background-color: $background;
422437
}
438+
423439
&:hover #cardFooterText {
424440
color: $background;
425441
}
442+
426443
&:hover .cardFooterIcon {
427444
color: $background;
428445
}
446+
429447
&:hover #databaseName {
430448
color: $background;
431449
}
@@ -438,10 +456,12 @@ select:-webkit-autofill:focus {
438456
// opacity: 0.7;
439457
// box-shadow: 0 4px 20px 0 rgba(0, 0, 0,.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4);
440458
}
459+
441460
.databaseIconContainer {
442461
display: inline-block;
443462
overflow: visible;
444463
}
464+
445465
.databaseIconHeader {
446466
position: absolute;
447467
background-color: $ggreen;
@@ -460,6 +480,7 @@ select:-webkit-autofill:focus {
460480
background-position: center;
461481
background-size: 70%;
462482
background-repeat: no-repeat;
483+
463484
.databaseIcon {
464485
width: 55px;
465486
height: 55px;
@@ -475,10 +496,12 @@ select:-webkit-autofill:focus {
475496
// opacity: 0.7;
476497
// box-shadow: 0 4px 20px 0 rgba(0, 0, 0,.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4);
477498
}
499+
478500
.databaseIconContainer {
479501
display: inline-block;
480502
overflow: visible;
481503
}
504+
482505
.databaseIconHeader {
483506
position: absolute;
484507
background-color: $gyellow;
@@ -495,6 +518,7 @@ select:-webkit-autofill:focus {
495518
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(255, 152, 0, 0.4);
496519
background-image: url('../assets/postgres-icon-white.png');
497520
background-size: cover;
521+
498522
.databaseIcon {
499523
visibility: hidden;
500524
}
@@ -513,6 +537,7 @@ select:-webkit-autofill:focus {
513537
display: inline-block;
514538
overflow: visible;
515539
}
540+
516541
.databaseIconHeader {
517542
position: absolute;
518543
background-color: $gorange;
@@ -529,6 +554,7 @@ select:-webkit-autofill:focus {
529554
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(255, 152, 0, 0.4);
530555
background-image: url('../assets/aws-icon-white.png');
531556
background-size: cover;
557+
532558
.databaseIcon {
533559
visibility: hidden;
534560
}
@@ -554,6 +580,7 @@ select:-webkit-autofill:focus {
554580
left: 180px;
555581
border-radius: 3px;
556582
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(0, 255, 42, 0.4);
583+
557584
.databaseIcon {
558585
width: 55px;
559586
height: 55px;
@@ -600,4 +627,4 @@ select:-webkit-autofill:focus {
600627
#serviceName {
601628
font-size: 11px;
602629
margin-top: 6px;
603-
}
630+
}

app/stylesheets/SidebarContainer.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
width: 300px;
1919
}
2020

21+
.sidebar-container:hover + .main-container {
22+
padding-left: 300px;
23+
}
24+
2125
.sidebar-container:hover #logout {
2226
opacity: 1;
2327
}
@@ -111,6 +115,7 @@
111115
opacity: 0.65;
112116
width: 78%;
113117
margin-right: 5px;
118+
114119
&:hover {
115120
background-color: $hover;
116121
opacity: 0.85;
@@ -130,6 +135,7 @@
130135
border-radius: 50%;
131136
margin: 30px 0px;
132137
background-size: scale-down;
138+
133139
&:hover {
134140
background-color: $hover;
135141
opacity: 0.85;
@@ -222,4 +228,4 @@
222228
animation: none;
223229
-webkit-tap-highlight-color: transparent;
224230
}
225-
}
231+
}

0 commit comments

Comments
 (0)