Skip to content

Commit 0c6a258

Browse files
fix: 调整水印样式,优化主包装器的定位和溢出处理
Signed-off-by: wangsimiao1 <wangsimiao1@xiaomi.com>
1 parent 6f84e97 commit 0c6a258

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

_sass/base/_base.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,7 @@ mjx-container {
472472
}
473473
}
474474

475-
#main-wrapper {
476-
position: relative;
477-
overflow: hidden;
478-
475+
body {
479476
&::after {
480477
content: 'MickeyMiao\'s Blog';
481478
position: fixed;
@@ -497,10 +494,15 @@ mjx-container {
497494
animation: watermark-enter 0.8s v.$ease-spring both;
498495
}
499496

500-
body[sidebar-display] &::after {
497+
&[sidebar-display]::after {
501498
opacity: 0;
502499
transform: translate(-50%, -50%) rotate(-18deg) scale(0.85);
503500
}
501+
}
502+
503+
#main-wrapper {
504+
position: relative;
505+
overflow: hidden;
504506

505507
@include mx.pl-pr(0);
506508

0 commit comments

Comments
 (0)