Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第20行: | 第20行: | ||
flex: 1; | flex: 1; | ||
min-width: 60px; | min-width: 60px; | ||
position: relative; | |||
} | } | ||
| 第30行: | 第27行: | ||
padding: 6px 4px; | padding: 6px 4px; | ||
background-color: var(--background-color-neutral-subtle, rgba(0,0,0,0.05)); | background-color: var(--background-color-neutral-subtle, rgba(0,0,0,0.05)); | ||
border-bottom | border-bottom: 2px solid var(--border-color-base, #ccc); | ||
text-align: center; | text-align: center; | ||
cursor: pointer; | cursor: pointer; | ||
white-space: nowrap; | white-space: nowrap; | ||
-webkit-user-select: none; | |||
user-select: none; | |||
} | } | ||
| 第45行: | 第42行: | ||
right: 0; | right: 0; | ||
background-color: var(--background-color-base, #fff); | background-color: var(--background-color-base, #fff); | ||
border | border: 1px solid var(--color-primary, #3366ff); | ||
padding: 12px; | padding: 12px; | ||
margin-top: 2px; | margin-top: 2px; | ||
box-shadow: 0 4px 12px rgba(0,0,0,0.15); | |||
} | } | ||
.gfl- | /* 电脑端悬停显示 */ | ||
.gfl-item:hover .gfl-content { | |||
display: block; | display: block; | ||
} | } | ||
.gfl-item: | /* 移动端/点击瞬间显示 - 配合 tabindex 模拟点击展开 */ | ||
.gfl-item:active .gfl-content, | |||
.gfl-item:focus .gfl-content { | |||
display: block; | display: block; | ||
} | } | ||
.gfl- | .gfl-item:hover .gfl-title, | ||
.gfl-item: | .gfl-item:focus .gfl-title { | ||
border-bottom-color: var(--color-primary, #3366ff); | border-bottom-color: var(--color-primary, #3366ff); | ||
color: var(--color-primary, #3366ff); | color: var(--color-primary, #3366ff); | ||
| 第73行: | 第72行: | ||
.gfl-links-wrap ul, .gfl-links-wrap li { | .gfl-links-wrap ul, .gfl-links-wrap li { | ||
list-style | list-style: none !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
| 第82行: | 第81行: | ||
color: var(--color-base, inherit) !important; | color: var(--color-base, inherit) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
| 第95行: | 第93行: | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* 移动端点击后让面板固定在顶部下方 */ | |||
.gfl-content { | |||
position: absolute; | |||
width: calc(300% + 8px); /* 对应 33.33% 的宽度,跨越三列 */ | |||
} | |||
/* 处理不同位置的弹出框偏移 */ | |||
.gfl-item:nth-child(3n) .gfl-content { left: auto; right: 0; } | |||
.gfl-item:nth-child(3n-1) .gfl-content { left: -100%; } | |||
} | } | ||
2026年5月7日 (四) 06:54的版本
.gfl-nav-compact {
margin: 0.5em 0;
display: flex;
flex-wrap: wrap;
gap: 4px;
font-size: 13px;
position: relative;
z-index: 100;
}
.gfl-logo-box {
padding: 4px 12px;
background-color: var(--color-primary, #3366ff);
color: var(--color-inverted, #fff);
font-weight: bold;
flex-shrink: 0;
}
.gfl-item {
flex: 1;
min-width: 60px;
position: relative;
}
.gfl-title {
display: block;
padding: 6px 4px;
background-color: var(--background-color-neutral-subtle, rgba(0,0,0,0.05));
border-bottom: 2px solid var(--border-color-base, #ccc);
text-align: center;
cursor: pointer;
white-space: nowrap;
-webkit-user-select: none;
user-select: none;
}
.gfl-content {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: var(--background-color-base, #fff);
border: 1px solid var(--color-primary, #3366ff);
padding: 12px;
margin-top: 2px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* 电脑端悬停显示 */
.gfl-item:hover .gfl-content {
display: block;
}
/* 移动端/点击瞬间显示 - 配合 tabindex 模拟点击展开 */
.gfl-item:active .gfl-content,
.gfl-item:focus .gfl-content {
display: block;
}
.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
border-bottom-color: var(--color-primary, #3366ff);
color: var(--color-primary, #3366ff);
}
.gfl-links-wrap {
display: flex;
flex-wrap: wrap;
gap: 10px 16px;
}
.gfl-links-wrap ul, .gfl-links-wrap li {
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
display: inline;
}
.gfl-links-wrap a {
color: var(--color-base, inherit) !important;
text-decoration: none !important;
}
@media (max-width: 768px) {
.gfl-item {
flex: none;
width: calc(33.33% - 4px);
}
.gfl-logo-box {
width: 100%;
margin-bottom: 2px;
text-align: center;
}
/* 移动端点击后让面板固定在顶部下方 */
.gfl-content {
position: absolute;
width: calc(300% + 8px); /* 对应 33.33% 的宽度,跨越三列 */
}
/* 处理不同位置的弹出框偏移 */
.gfl-item:nth-child(3n) .gfl-content { left: auto; right: 0; }
.gfl-item:nth-child(3n-1) .gfl-content { left: -100%; }
}