Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第5行: | 第5行: | ||
gap: 4px; | gap: 4px; | ||
font-size: 13px; | font-size: 13px; | ||
background-color: var(--background-color-neutral-subtle, #f8f9fa); | |||
} | } | ||
| 第22行: | 第21行: | ||
flex: 1; | flex: 1; | ||
min-width: 80px; | min-width: 80px; | ||
position: relative; | |||
outline: none; | outline: none; | ||
} | } | ||
| 第34行: | 第34行: | ||
transition: border-color 0.2s; | transition: border-color 0.2s; | ||
position: relative; | position: relative; | ||
z-index: 1002; | |||
} | } | ||
| 第40行: | 第40行: | ||
.gfl-item:focus .gfl-title { | .gfl-item:focus .gfl-title { | ||
border-bottom-color: #E6A23C !important; | border-bottom-color: #E6A23C !important; | ||
} | } | ||
.gfl-content { | .gfl-content { | ||
display: | display: grid; | ||
grid-template-rows: 0fr; | |||
transition: grid-template-rows 0.3s ease-out; | |||
position: absolute; | position: absolute; | ||
top: 100%; | top: 100%; | ||
left: | left: 0; | ||
width: 100%; | |||
width: | |||
background-color: var(--background-color-base, #fff); | background-color: var(--background-color-base, #fff); | ||
border: | border: 1px solid #E6A23C; | ||
border-top: none; | |||
z-index: 1000; | z-index: 1000; | ||
box-shadow: 0 4px 10px rgba(0,0,0,0.1); | box-shadow: 0 4px 10px rgba(0,0,0,0.1); | ||
overflow: hidden; | |||
} | } | ||
.gfl-item:hover .gfl-content, | .gfl-item:hover .gfl-content, | ||
.gfl-item:focus .gfl-content { | .gfl-item:focus .gfl-content { | ||
grid-template-rows: 1fr; | |||
} | } | ||
.gfl-links-wrap { | .gfl-links-wrap { | ||
min-height: 0; | |||
padding: 0 8px; | |||
transition: padding 0.3s; | |||
display: flex; | display: flex; | ||
flex-wrap: wrap | flex-direction: column; | ||
} | |||
.gfl-item:hover .gfl-links-wrap, | |||
.gfl-item:focus .gfl-links-wrap { | |||
padding: 8px; | |||
} | } | ||
.gfl-links-wrap a { | .gfl-links-wrap a { | ||
display: | display: block; | ||
padding: | padding: 6px 8px; | ||
margin: 2px 0; | |||
background-color: var(--background-color-interactive-subtle, #eee); | background-color: var(--background-color-interactive-subtle, #eee); | ||
color: var(--color-base, inherit) !important; | color: var(--color-base, inherit) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
border-radius: 2px; | border-radius: 2px; | ||
font-size: 12px; | font-size: 12px; | ||
border: 1px solid transparent; | |||
transition: background 0.2s; | |||
text-align: center; | |||
} | } | ||
.gfl-links-wrap a:hover { | .gfl-links-wrap a:hover { | ||
color: #E6A23C !important; | color: #E6A23C !important; | ||
background-color: rgba(230, 162, 60, 0.05); | background-color: rgba(230, 162, 60, 0.05); | ||
border-color: #E6A23C; | |||
} | } | ||
2026年5月7日 (四) 07:34的版本
.gfl-nav-compact {
margin: 1em 0;
display: flex;
flex-wrap: wrap;
gap: 4px;
font-size: 13px;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
}
.gfl-logo-box {
padding: 6px 12px;
background-color: transparent;
color: #E6A23C;
font-weight: bold;
display: flex;
align-items: center;
border-right: 1px solid #E6A23C;
}
.gfl-item {
flex: 1;
min-width: 80px;
position: relative;
outline: none;
}
.gfl-title {
display: block;
padding: 8px 4px;
background-color: rgba(0,0,0,0.02);
border-bottom: 2px solid var(--border-color-base, #ccc);
text-align: center;
cursor: pointer;
transition: border-color 0.2s;
position: relative;
z-index: 1002;
}
.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
border-bottom-color: #E6A23C !important;
}
.gfl-content {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.3s ease-out;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: var(--background-color-base, #fff);
border: 1px solid #E6A23C;
border-top: none;
z-index: 1000;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
overflow: hidden;
}
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
grid-template-rows: 1fr;
}
.gfl-links-wrap {
min-height: 0;
padding: 0 8px;
transition: padding 0.3s;
display: flex;
flex-direction: column;
}
.gfl-item:hover .gfl-links-wrap,
.gfl-item:focus .gfl-links-wrap {
padding: 8px;
}
.gfl-links-wrap a {
display: block;
padding: 6px 8px;
margin: 2px 0;
background-color: var(--background-color-interactive-subtle, #eee);
color: var(--color-base, inherit) !important;
text-decoration: none !important;
border-radius: 2px;
font-size: 12px;
border: 1px solid transparent;
transition: background 0.2s;
text-align: center;
}
.gfl-links-wrap a:hover {
color: #E6A23C !important;
background-color: rgba(230, 162, 60, 0.05);
border-color: #E6A23C;
}
@media (max-width: 768px) {
.gfl-item {
flex: none;
width: calc(33.33% - 4px);
}
.gfl-logo-box {
width: 100%;
justify-content: center;
border-right: none;
border-bottom: 1px solid #E6A23C;
margin-bottom: 2px;
}
}