Skip to content

Commit a14a76a

Browse files
committed
Fixed user popout No.2
1 parent 9628fb4 commit a14a76a

File tree

3 files changed

+40
-17
lines changed

3 files changed

+40
-17
lines changed

src/theme/_vars.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
--fb-popout-size: var(--popout-modal-size, var(--popout-image-size));
3737
--fb-popout-position: var(--popout-modal-position, var(--popout-image-position));
3838
--fb-popout-repeat: var(--popout-modal-repeat, var(--popout-image-repeat));
39+
40+
--fb-overlay-image: var(--popout-modal-image, var(--overlay-image));
41+
--fb-overlay-blur: var(--popout-modal-blur, var(--overlay-image-blur));
42+
--fb-overlay-size: var(--popout-modal-size, var(--overlay-image-size));
43+
--fb-overlay-position: var(--popout-modal-position, var(--overlay-image-position));
44+
--fb-overlay-repeat: var(--popout-modal-repeat, var(--overlay-image-repeat));
3945
}
4046

4147
.theme-dark {

src/theme/app/_background.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@
4646
border-radius: 3px;
4747
&::before {
4848
content: '';
49-
background: linear-gradient(var(--tint), var(--tint)), var(--fb-popout-modal-image);
50-
background-position: var(--fb-popout-modal-position, center);
51-
background-size: var(--fb-popout-modal-size, cover);
52-
background-attachment: var(--popout-modal-attachment, fixed);
53-
background-repeat: var(--popout-modal-repeat, no-repeat);
49+
background: linear-gradient(var(--tint), var(--tint)), var(--fb-overlay-image);
50+
background-position: var(--fb-overlay-position, center);
51+
background-size: var(--fb-overlay-size, cover);
52+
background-attachment: var(--fb-overlay-attachment, fixed);
53+
background-repeat: var(--fb-overlay-repeat, no-repeat);
5454
box-shadow: inset 0 0 0 100vmax rgb(0, 0, 0, var(--overlay-brightness, var(--popout-modal-brightness)));
55-
height: calc(100% + var(--fb-popout-modal-blur) * 5);
56-
width: calc(100% + var(--fb-popout-modal-blur) * 5);
57-
top: calc(var(--fb-popout-modal-blur) / -1 * 2.5);
58-
left: calc(var(--fb-popout-modal-blur) / -1 * 2.5);
55+
height: calc(100% + var(--fb-overlay-blur) * 5);
56+
width: calc(100% + var(--fb-overlay-blur) * 5);
57+
top: calc(var(--fb-overlay-blur) / -1 * 2.5);
58+
left: calc(var(--fb-overlay-blur) / -1 * 2.5);
5959
position: absolute;
60-
filter: blur(var(--fb-popout-modal-blur));
61-
transform: translate(var(--fb-popout-modal-blur) / -1, calc(var(--fb-popout-modal-blur) / -1));
60+
filter: blur(var(--fb-overlay-blur));
61+
transform: translate(var(--fb-overlay-blur) / -1, calc(var(--fb-overlay-blur) / -1));
6262
pointer-events: none;
6363
user-select: none;
6464
z-index: -1;

src/theme/popouts/_userpopout.scss

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
#app-mount [class*='userPopoutOuter-3AVBmJ'] {
1+
#app-mount .userPopoutOuter-3AVBmJ {
22
box-shadow: none;
33
overflow: hidden !important;
44
position: relative;
5-
border-radius: 3px;
5+
border-radius: 8px;
66
opacity: 0;
77
animation: fadeIn 0.3s ease forwards;
8+
padding: 0;
89

910
&::before {
1011
content: '';
@@ -26,11 +27,27 @@
2627
z-index: -1;
2728
}
2829

29-
.userProfileInnerWithBanner-3CJ1Og {
30-
background: transparent;
30+
.userPopoutInner-1hXSeY {
3131
&::before {
32-
background: linear-gradient(var(--profile-gradient-primary-color), var(--profile-gradient-primary-color) 120px, var(--profile-gradient-secondary-color));
33-
opacity: 0.25;
32+
top: 4px;
33+
left: 4px;
34+
}
35+
&:not(.userProfileInnerThemedNonPremium-1gT-zY) {
36+
.avatarPositionPremiumBanner-2nq2Fy {
37+
top: 73px;
38+
left: 21px;
39+
}
40+
.bannerSVGWrapper-qc0szY {
41+
margin: 2px 4px 4px 4px;
42+
box-sizing: border-box;
43+
width: calc(100% - 8px);
44+
min-width: unset !important;
45+
}
46+
}
47+
&.userProfileInnerThemedNonPremium-1gT-zY {
48+
.overlayBackground-1KgwVi {
49+
margin: 0 8px 8px;
50+
}
3451
}
3552
}
3653

0 commit comments

Comments
 (0)