Skip to content

Commit 8ac32e2

Browse files
author
Diogo Ferraz
committed
fix(layout): keep ambient background subtle and restore previous app shell gradient styling
1 parent 4fcfabc commit 8ac32e2

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

src/app/app.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
<ng-template #appLayout>
88
<div class="layout-wrapper" [ngClass]="containerClass">
9+
<div class="layout-ambient layout-ambient--one" aria-hidden="true"></div>
10+
<div class="layout-ambient layout-ambient--two" aria-hidden="true"></div>
911
<app-topbar></app-topbar>
1012
<app-sidebar></app-sidebar>
1113
<div class="layout-main-container">

src/app/app.component.scss

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,48 @@
55

66
.layout-wrapper {
77
min-height: 100vh;
8+
position: relative;
9+
overflow: hidden;
10+
}
11+
12+
.layout-ambient {
13+
position: absolute;
14+
border-radius: 999px;
15+
filter: blur(56px);
16+
pointer-events: none;
17+
z-index: 0;
18+
opacity: 0.18;
19+
}
20+
21+
.layout-ambient--one {
22+
width: 28rem;
23+
height: 28rem;
24+
top: -12rem;
25+
right: -8rem;
26+
background: color-mix(in srgb, var(--primary-color) 55%, transparent);
27+
}
28+
29+
.layout-ambient--two {
30+
width: 30rem;
31+
height: 30rem;
32+
left: -10rem;
33+
bottom: -14rem;
34+
background: color-mix(in srgb, var(--blue-400) 50%, transparent);
35+
}
36+
37+
app-topbar {
38+
position: relative;
39+
z-index: 3;
40+
}
41+
42+
app-sidebar {
43+
position: relative;
44+
z-index: 2;
45+
}
46+
47+
.layout-main-container {
48+
position: relative;
49+
z-index: 1;
850
}
951

1052
.layout-main-container {
@@ -19,4 +61,4 @@
1961
.layout-main {
2062
flex: 1 1 auto;
2163
padding-bottom: 2rem;
22-
}
64+
}

0 commit comments

Comments
 (0)