注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 曲目信息infobox的修复 */
.infobox {
padding-left: 13px;
}
@media (max-width: 510px) {
.infobox {
float: none;
margin-left: 0;
margin-bottom: 20px;
order: 0;
}
.citizen-section,
.mw-content-ltr {
display: flex;
flex-direction: column;
}
.citizen-section>p,
.mw-content-ltr>p {
width: 100%;
margin-top: 20px;
}
}
.home-card--button {
position: relative;
overflow: hidden;
}
.home-card__foreground {
position: absolute;
left: 15px;
top: 50%;
color: white;
font-weight: bold;
user-select: none;
pointer-events: none;
transform: translateY(-50%);
z-index: 2;
}
.home-card__background::before {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: "";
background: linear-gradient(90deg,
rgba(0, 0, 0, 1) 0%,
rgba(0, 0, 0, 0.4) 50%,
transparent 100%);
pointer-events: none;
z-index: 1;
}
.infobox {
padding-left: 13px;
}
@media (max-width: 510px) {
.infobox {
float: none;
margin-left: 0;
margin-bottom: 20px;
order: 1;
}
.citizen-section {
display: flex;
flex-direction: column;
}
.citizen-section>p {
width: 100%;
margin-top: 20px;
order: 2;
}
}
/*红龙的神秘css*/
/* 首页背景缩放 */
#home-nav .home-card {
overflow: hidden;
position: relative;
}
#home-nav .home-card__background img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
transform-origin: center;
will-change: transform;
backface-visibility: hidden;
}
#home-nav .home-card:hover .home-card__background img {
transform: scale(1.07);
}