Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第4行: | 第4行: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 4px; | gap: 4px; | ||
font-size: | font-size: 13px; | ||
position: relative; | position: relative; | ||
color: var(--color-base, #202122); | color: var(--color-base, #202122); | ||
| 第84行: | 第83行: | ||
text-decoration: none !important; | text-decoration: none !important; | ||
border-radius: 2px; | border-radius: 2px; | ||
font-size: | font-size: 12px; | ||
border: 1px solid var(--border-color-base, #ccc); | border: 1px solid var(--border-color-base, #ccc); | ||
text-align: center; | text-align: center; | ||
| 第101行: | 第100行: | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.gfl-logo-box { | |||
width: 25%; | |||
justify-content: center; | |||
border-right: 2px solid #E6A23C; | |||
border-bottom: 2px solid var(--border-color-base, #ccc); | |||
box-sizing: border-box; | |||
font-size: 12px; | |||
padding: 6px 4px; | |||
} | |||
.gfl-item { | .gfl-item { | ||
flex: none; | flex: none; | ||
width: | width: 37.5%; | ||
} | |||
.gfl-item:nth-of-type(n+3) { | |||
width: 33.33%; | |||
} | } | ||
.gfl- | |||
.gfl-nav-compact { | |||
gap: 0; | |||
} | } | ||
} | } | ||
2026年5月7日 (四) 07:46的版本
.gfl-nav-compact {
margin: 1em 0;
display: flex;
flex-wrap: wrap;
gap: 4px;
font-size: 13px;
position: relative;
color: var(--color-base, #202122);
}
.gfl-logo-box {
padding: 6px 12px;
color: #E6A23C;
font-weight: bold;
display: flex;
align-items: center;
border-right: 2px solid #E6A23C;
}
.gfl-item {
flex: 1;
min-width: 80px;
position: relative;
outline: none;
z-index: 1;
}
.gfl-title {
display: block;
padding: 8px 4px;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
border-bottom: 2px solid var(--border-color-base, #ccc);
text-align: center;
cursor: pointer;
transition: all 0.2s;
}
.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
border-bottom-color: #E6A23C !important;
background-color: var(--background-color-interactive-subtle, #eeeeee);
}
.gfl-content {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.3s ease-out;
position: absolute;
top: 100%;
left: 0;
width: 100%;
border: 2px solid #E6A23C;
border-top: none;
overflow: hidden;
background-color: var(--background-color-base, #ffffff) !important;
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.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: 8px;
margin: 3px 0;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-progressive, #3366ff) !important;
text-decoration: none !important;
border-radius: 2px;
font-size: 12px;
border: 1px solid var(--border-color-base, #ccc);
text-align: center;
}
.gfl-links-wrap a:hover {
color: #E6A23C !important;
background-color: var(--background-color-interactive-subtle, #eeeeee);
border-color: #E6A23C;
}
.gfl-item:hover,
.gfl-item:focus {
z-index: 999;
}
@media (max-width: 768px) {
.gfl-logo-box {
width: 25%;
justify-content: center;
border-right: 2px solid #E6A23C;
border-bottom: 2px solid var(--border-color-base, #ccc);
box-sizing: border-box;
font-size: 12px;
padding: 6px 4px;
}
.gfl-item {
flex: none;
width: 37.5%;
}
.gfl-item:nth-of-type(n+3) {
width: 33.33%;
}
.gfl-nav-compact {
gap: 0;
}
}