Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第10行: | 第10行: | ||
.gfl-logo-box { | .gfl-logo-box { | ||
width: | width: 50px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| 第18行: | 第18行: | ||
.gfl-logo-box img { | .gfl-logo-box img { | ||
max-height: | max-height: 28px; | ||
width: auto; | width: auto; | ||
} | } | ||
| 第24行: | 第24行: | ||
.gfl-item { | .gfl-item { | ||
flex: 1; | flex: 1; | ||
min-width: | min-width: 60px; | ||
position: relative; | position: relative; | ||
outline: none; | outline: none; | ||
| 第37行: | 第37行: | ||
color: var(--color-base, #202122); | color: var(--color-base, #202122); | ||
border-bottom: 2px solid transparent; | border-bottom: 2px solid transparent; | ||
transition: | transition: all 0.2s; | ||
} | } | ||
| 第43行: | 第43行: | ||
.gfl-item:focus .gfl-title { | .gfl-item:focus .gfl-title { | ||
color: #E6A23C; | color: #E6A23C; | ||
border-bottom-color: #E6A23C !important; | |||
background-color: var(--background-color-interactive-subtle, #eee); | background-color: var(--background-color-interactive-subtle, #eee); | ||
} | } | ||
| 第88行: | 第89行: | ||
.gfl-logo-box { | .gfl-logo-box { | ||
display: none; | display: none; | ||
} | } | ||
| 第113行: | 第109行: | ||
.gfl-title { | .gfl-title { | ||
padding: 14px 2px; | padding: 14px 2px; | ||
border-bottom: none; | border-bottom: none; | ||
} | } | ||
.gfl-content { | .gfl-content { | ||
width: 300%; | width: 300%; | ||
box-shadow: 0 4px | box-shadow: 0 4px 10px rgba(0,0,0,0.1); | ||
} | } | ||
.gfl-item:nth-child(3n-1) .gfl-content { left: -100%; } | .gfl-item:nth-child(3n-1) .gfl-content { left: -100%; } | ||
.gfl-item:nth-child(3n) .gfl-content { left: -200%; } | .gfl-item:nth-child(3n) .gfl-content { left: -200%; } | ||
| 第132行: | 第123行: | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr 1fr; | grid-template-columns: 1fr 1fr; | ||
gap: | gap: 6px; | ||
} | } | ||
} | } | ||
2026年5月7日 (四) 08:48的版本
.gfl-nav-compact {
margin: 1em 0;
display: flex;
flex-wrap: wrap;
position: relative;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
border: 1px solid var(--border-color-base, #ccc);
line-height: 1.5;
}
.gfl-logo-box {
width: 50px;
display: flex;
align-items: center;
justify-content: center;
border-right: 1px solid var(--border-color-base, #ccc);
}
.gfl-logo-box img {
max-height: 28px;
width: auto;
}
.gfl-item {
flex: 1;
min-width: 60px;
position: relative;
outline: none;
}
.gfl-title {
display: block;
padding: 10px 4px;
text-align: center;
cursor: pointer;
font-size: 13px;
color: var(--color-base, #202122);
border-bottom: 2px solid transparent;
transition: all 0.2s;
}
.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
color: #E6A23C;
border-bottom-color: #E6A23C !important;
background-color: var(--background-color-interactive-subtle, #eee);
}
.gfl-content {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.3s ease;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: var(--background-color-base, #fff) !important;
border: 1px solid #E6A23C;
border-top: none;
z-index: 1000;
overflow: hidden;
}
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
grid-template-rows: 1fr;
}
.gfl-links-wrap {
display: flex;
flex-direction: column;
padding: 6px;
min-height: 0;
}
.gfl-links-wrap a {
display: block;
padding: 8px;
margin: 2px 0;
font-size: 12px;
text-align: center;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
border: 1px solid var(--border-color-base, #ccc);
color: var(--color-progressive, #3366ff) !important;
text-decoration: none !important;
}
@media (max-width: 768px) {
.gfl-logo-box {
display: none;
}
.gfl-item {
flex: none;
width: 33.33% !important;
box-sizing: border-box;
border-right: 1px solid var(--border-color-base, #ccc);
border-bottom: 1px solid var(--border-color-base, #ccc);
}
.gfl-item:nth-child(3n) {
border-right: none;
}
.gfl-item:nth-last-child(-n+3) {
border-bottom: none;
}
.gfl-title {
padding: 14px 2px;
border-bottom: none;
}
.gfl-content {
width: 300%;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gfl-item:nth-child(3n-1) .gfl-content { left: -100%; }
.gfl-item:nth-child(3n) .gfl-content { left: -200%; }
.gfl-links-wrap {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
}