Skip to content

Commit

Permalink
Merge pull request #777 from carolcoral/main
Browse files Browse the repository at this point in the history
change: 全局背景兼容移动端展示(不展示)
  • Loading branch information
carolcoral authored Jul 8, 2024
2 parents f031d1c + 53ac4fe commit 7abda84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion templates/modules/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ <h3 class="footer-title">友链</h3>
}
}

@media screen and (max-width: 768px) {
@media screen and (max-width: 1300px) {
#footer {
background: linear-gradient(180deg, var(--heo-background) 0%, #fff0 25%);
margin-top: 0;
Expand Down
14 changes: 2 additions & 12 deletions templates/modules/layouts/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,9 @@
}
}

@media screen and (max-width: 768px) {
@media screen and (max-width: 1300px) {
.global_background_img {
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 1;
position: fixed;
z-index: -999;
background: var(--heo-background);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
display: none;
}
}

Expand Down

0 comments on commit 7abda84

Please sign in to comment.