Skip to content

Commit

Permalink
Merge pull request #44 from D-Sketon/perf_1
Browse files Browse the repository at this point in the history
perf: 优化头图显示
  • Loading branch information
zkz098 authored Mar 2, 2023
2 parents c74f611 + 235537a commit fd4c941
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/css/_common/outline/header/image.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
min-height: 25rem;
z-index: -9;
background-color: #363636;

content-visibility: auto;
contain-intrinsic-size: 100vw 70vh;

img {
width: 100%;
height: 100%;
Expand Down
3 changes: 3 additions & 0 deletions source/css/_common/outline/header/waves.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
min-height: 3.125rem;
max-height: 9.375rem;
position:relative;
content-visibility: auto;
contain-intrinsic-size: 100vw 15vh;

+mobile() {
height: 10vh;
contain-intrinsic-size: 100vw 10vh;
}
}
/* Animation */
Expand Down

0 comments on commit fd4c941

Please sign in to comment.