Home.css:修订间差异
来自失传媒体中文维基
更多操作
状态:未填写 | 类型:未填写
| (未显示同一用户的11个中间版本) | |||
| 第30行: | 第30行: | ||
width: 50px; | width: 50px; | ||
height: 50px; | height: 50px; | ||
} | } | ||
.site::after { | .site::after { | ||
content: attr(data-name); | |||
content: attr( | |||
position: absolute; | position: absolute; | ||
top: calc(100% + 8px); | top: calc(100% + 8px); | ||
left: 50%; | left: 50%; | ||
transform: translateX(-50%); | background: var(--color-surface-0); | ||
transform: translateX(-50%) translateY(80%); | |||
color: var(--color-base); | |||
font-size: 12px; | font-size: 12px; | ||
padding: 4px 8px; | padding: 4px 8px; | ||
border-radius: 4px; | border-radius: 4px; | ||
white-space: nowrap; | white-space: nowrap; | ||
opacity: 0; | opacity: 0; | ||
visibility: hidden; | visibility: hidden; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
box-shadow: 0 0 5px 0px var(--color-base); | |||
z-index: 30; | z-index: 30; | ||
} | |||
.site:hover{ | |||
transform:scale(1.3); | |||
} | |||
.site:hover::after { | |||
opacity: 1; | |||
visibility: visible; | |||
transform: translateX(-50%) translateY(0%); | |||
} | } | ||
2026年4月10日 (五) 23:49的最新版本
.page-header-info {
display: none !important;
}
.recent-article {
max-height: 40vh;
overflow-y: auto;
}
.other-sites {
display: grid;
grid-template-columns: repeat(4, 1fr);
justify-items: center;
justify-content: center;
background: var(--color-surface-1);
}
.other-sites .site {
position: relative;
cursor: pointer;
display: block;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
margin-bottom: 30px;
margin-top: 30px;
transition: all 0.3s ease;
}
.other-sites .site img{
width: 50px;
height: 50px;
}
.site::after {
content: attr(data-name);
position: absolute;
top: calc(100% + 8px);
left: 50%;
background: var(--color-surface-0);
transform: translateX(-50%) translateY(80%);
color: var(--color-base);
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
box-shadow: 0 0 5px 0px var(--color-base);
z-index: 30;
}
.site:hover{
transform:scale(1.3);
}
.site:hover::after {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0%);
}