Skip to content

Commit bb58e50

Browse files
committed
Improve UI and fix build/lint issues
1 parent aa4aa5d commit bb58e50

File tree

5 files changed

+892
-388
lines changed

5 files changed

+892
-388
lines changed

src/app/app.component.css

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
:host {
2+
display: flex;
3+
flex-direction: column;
4+
height: 100vh;
5+
overflow: hidden;
6+
}
7+
18
.navbar {
29
position: sticky;
310
top: 0;
@@ -7,7 +14,14 @@
714
align-items: center;
815
height: 64px;
916
transition: all 0.25s ease;
17+
flex-shrink: 0;
1018
}
19+
20+
.sidenav-container {
21+
flex: 1;
22+
overflow: hidden;
23+
}
24+
1125
.logo {
1226
display: flex;
1327
align-items: center;
@@ -16,6 +30,7 @@
1630
margin-left: -4px;
1731
height: 100%;
1832
}
33+
1934
.logo-icon {
2035
transform: scale(0.95);
2136
transform-origin: left center;
@@ -35,35 +50,37 @@
3550
margin-top: 4px;
3651
gap: 3px;
3752
}
53+
3854
.tag-title {
3955
font-size: 0.85em;
4056
font-weight: 500;
4157
line-height: 1;
4258
letter-spacing: 0.04em;
4359
}
60+
4461
.tag-subtitle {
4562
font-size: 0.65em;
4663
margin-top: 0;
4764
letter-spacing: 0.08em;
4865
opacity: 0.6;
4966
}
50-
.github-fork-ribbon::before {
51-
background-color: #333;
52-
}
67+
5368
.menu-btn {
5469
margin-right: 4px;
5570
transition: all 0.2s ease;
5671
}
72+
5773
.menu-btn:hover {
5874
background: rgba(0,0,0,0.04);
5975
transform: scale(1.05);
6076
}
61-
.spacer {
62-
flex: 1 1 auto;
63-
}
77+
6478
.content {
6579
padding: 24px;
6680
animation: fadeSlide 1s ease;
81+
height: 100%;
82+
box-sizing: border-box;
83+
overflow-y: auto;
6784
}
6885
@keyframes fadeSlide {
6986
from {
@@ -85,9 +102,6 @@
85102
.tag-subtitle {
86103
font-size: 11px;
87104
}
88-
.github-fork-ribbon {
89-
display: none;
90-
}
91105
.logo,
92106
.logo-icon {
93107
opacity: 0;

src/app/app.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
</div>
1717
<div class="dummy"></div>
1818
</div>
19-
<span class="spacer"></span>
2019
</mat-toolbar>
2120
<mat-sidenav-container class="sidenav-container">
2221
<mat-sidenav mode="side" opened class="sidenav" [style.width]="sidenavWidth">

0 commit comments

Comments
 (0)