Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第21行: | 第21行: | ||
flex: 1; | flex: 1; | ||
min-width: 80px; | min-width: 80px; | ||
outline: none; | outline: none; | ||
} | } | ||
| 第47行: | 第47行: | ||
} | } | ||
.gfl-item:hover .gfl-content, | .gfl-item:hover .gfl-content, | ||
.gfl-item:focus .gfl-content { | .gfl-item:focus .gfl-content { | ||
| 第53行: | 第52行: | ||
} | } | ||
/* --- 暴力清除星号核心区 --- */ | |||
.gfl-links-wrap ul, | .gfl-links-wrap ul, | ||
.gfl-links-wrap li { | .gfl-links-wrap li { | ||
list-style: none !important; | |||
list-style-type: none !important; | list-style-type: none !important; | ||
list-style-image: none !important; | list-style-image: none !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
display: inline !important; /* | display: inline !important; | ||
} | |||
/* 针对某些皮肤使用伪元素渲染星号的情况 */ | |||
.gfl-links-wrap li::before, | |||
.gfl-links-wrap li::marker { | |||
content: "" !important; | |||
display: none !important; | |||
} | } | ||
.gfl-links-wrap { | .gfl-links-wrap { | ||
line-height: 2. | line-height: 2.2; | ||
white-space: normal; | white-space: normal; | ||
text-align: left; | |||
} | } | ||
/* | /* 链接美化为卡片标签 */ | ||
.gfl-links-wrap a { | .gfl-links-wrap a { | ||
display: inline-block; | display: inline-block; | ||
| 第84行: | 第87行: | ||
border-radius: 2px; | border-radius: 2px; | ||
border: 1px solid var(--border-color-base, #ccc); | border: 1px solid var(--border-color-base, #ccc); | ||
transition: all 0.2s; | |||
} | } | ||
.gfl-links-wrap a:hover { | .gfl-links-wrap a:hover { | ||
border-color: var(--color-primary, #3366ff); | border-color: var(--color-primary, #3366ff); | ||
color: var(--color-primary, #3366ff) !important; | |||
background-color: var(--background-color-primary-subtle, rgba(51,102,255,0.1)); | background-color: var(--background-color-primary-subtle, rgba(51,102,255,0.1)); | ||
} | } | ||
| 第97行: | 第102行: | ||
} | } | ||
.gfl-logo-box { width: 100%; justify-content: center; } | .gfl-logo-box { width: 100%; justify-content: center; } | ||
} | } | ||
2026年5月7日 (四) 07:05的版本
.gfl-nav-compact {
margin: 0.5em 0;
display: flex;
flex-wrap: wrap;
gap: 4px;
font-size: 13px;
position: relative;
color: var(--color-base, inherit);
}
.gfl-logo-box {
padding: 6px 12px;
background-color: var(--color-primary, #3366ff);
color: #fff;
font-weight: bold;
display: flex;
align-items: center;
}
.gfl-item {
flex: 1;
min-width: 80px;
outline: none;
}
.gfl-title {
display: block;
padding: 8px 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;
}
.gfl-content {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
width: 100%;
background-color: var(--background-color-base, #fff);
border: 1px solid var(--color-primary, #3366ff);
padding: 12px;
z-index: 1000;
box-sizing: border-box;
}
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
display: block;
}
/* --- 暴力清除星号核心区 --- */
.gfl-links-wrap ul,
.gfl-links-wrap li {
list-style: none !important;
list-style-type: none !important;
list-style-image: none !important;
margin: 0 !important;
padding: 0 !important;
display: inline !important;
}
/* 针对某些皮肤使用伪元素渲染星号的情况 */
.gfl-links-wrap li::before,
.gfl-links-wrap li::marker {
content: "" !important;
display: none !important;
}
.gfl-links-wrap {
line-height: 2.2;
white-space: normal;
text-align: left;
}
/* 链接美化为卡片标签 */
.gfl-links-wrap a {
display: inline-block;
padding: 2px 10px;
margin: 2px 4px;
background-color: var(--background-color-interactive-subtle, rgba(0,0,0,0.05));
color: var(--color-base, inherit) !important;
text-decoration: none !important;
border-radius: 2px;
border: 1px solid var(--border-color-base, #ccc);
transition: all 0.2s;
}
.gfl-links-wrap a:hover {
border-color: var(--color-primary, #3366ff);
color: var(--color-primary, #3366ff) !important;
background-color: var(--background-color-primary-subtle, rgba(51,102,255,0.1));
}
@media (max-width: 768px) {
.gfl-item {
flex: none;
width: calc(33.33% - 4px);
}
.gfl-logo-box { width: 100%; justify-content: center; }
}