Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
| 第4行: | 第4行: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
position: relative; | position: relative; | ||
background-color: var(--background-color-neutral-subtle, #f8f9fa); | background-color: var(--background-color-neutral-subtle, #f8f9fa); | ||
border: 1px solid var(--border-color-base, #ccc); | border: 1px solid var(--border-color-base, #ccc); | ||
| 第15行: | 第14行: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
border-right: | border-right: 1px solid var(--border-color-base, #ccc); | ||
} | } | ||
| 第28行: | 第27行: | ||
position: relative; | position: relative; | ||
outline: none; | outline: none; | ||
} | } | ||
.gfl-title { | .gfl-title { | ||
display: block; | display: block; | ||
padding: | padding: 8px 4px; | ||
text-align: center; | text-align: center; | ||
cursor: pointer; | cursor: pointer; | ||
font-size: 13px; | font-size: 13px; | ||
border-bottom: 2px solid transparent; | |||
transition: all 0.2s; | transition: all 0.2s; | ||
} | } | ||
| 第43行: | 第41行: | ||
.gfl-item:hover .gfl-title, | .gfl-item:hover .gfl-title, | ||
.gfl-item:focus .gfl-title { | .gfl-item:focus .gfl-title { | ||
color: #E6A23C; | |||
border-bottom-color: #E6A23C !important; | border-bottom-color: #E6A23C !important; | ||
background-color: var(--background-color-interactive-subtle, #eeeeee); | background-color: var(--background-color-interactive-subtle, #eeeeee); | ||
| 第55行: | 第54行: | ||
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
border: | background: var(--background-color-base, #fff) !important; | ||
border: 1px solid #E6A23C; | |||
border-top: none; | border-top: none; | ||
z-index: 1000; | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| 第68行: | 第67行: | ||
.gfl-links-wrap { | .gfl-links-wrap { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
padding: 4px; | |||
padding: | |||
} | } | ||
.gfl-links-wrap a { | .gfl-links-wrap a { | ||
display: block; | display: block; | ||
padding: | padding: 6px; | ||
margin: 2px 0; | margin: 2px 0; | ||
font-size: 12px; | |||
text-align: center; | |||
background-color: var(--background-color-neutral-subtle, #f8f9fa); | background-color: var(--background-color-neutral-subtle, #f8f9fa); | ||
border: 1px solid var(--border-color-base, #ccc); | |||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
| 第107行: | 第87行: | ||
display: none; | display: none; | ||
} | } | ||
.gfl-nav-compact { | |||
border-bottom: none; | |||
} | |||
.gfl-item { | .gfl-item { | ||
flex: none; | flex: none; | ||
width: 33.33% !important; | width: 33.33% !important; | ||
box-sizing: border-box; | |||
border-bottom: 1px solid var(--border-color-base, #ccc); | |||
border-right: 1px solid var(--border-color-base, #ccc); | |||
} | } | ||
.gfl-item:nth-child(3n) { | |||
border-right: none; | |||
} | |||
.gfl-title { | .gfl-title { | ||
padding: 12px 2px; | |||
padding: | |||
font-size: 13px; | font-size: 13px; | ||
border-bottom: none; | |||
} | |||
.gfl-item:focus .gfl-title { | |||
color: #E6A23C; | |||
background-color: #fff; | |||
} | |||
.gfl-content { | |||
position: static; | |||
border: none; | |||
background-color: #fff !important; | |||
border-left: 3px solid #E6A23C; | |||
} | |||
.gfl-links-wrap a { | |||
text-align: left; | |||
padding: 10px 15px; | |||
border: none; | |||
border-bottom: 1px solid #f0f0f0; | |||
} | } | ||
} | } | ||
2026年5月7日 (四) 08:38的版本
.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.4;
}
.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: 8px 4px;
text-align: center;
cursor: pointer;
font-size: 13px;
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, #eeeeee);
}
.gfl-content {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.2s ease-out;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: 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: 4px;
}
.gfl-links-wrap a {
display: block;
padding: 6px;
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);
text-decoration: none !important;
}
@media (max-width: 768px) {
.gfl-logo-box {
display: none;
}
.gfl-nav-compact {
border-bottom: none;
}
.gfl-item {
flex: none;
width: 33.33% !important;
box-sizing: border-box;
border-bottom: 1px solid var(--border-color-base, #ccc);
border-right: 1px solid var(--border-color-base, #ccc);
}
.gfl-item:nth-child(3n) {
border-right: none;
}
.gfl-title {
padding: 12px 2px;
font-size: 13px;
border-bottom: none;
}
.gfl-item:focus .gfl-title {
color: #E6A23C;
background-color: #fff;
}
.gfl-content {
position: static;
border: none;
background-color: #fff !important;
border-left: 3px solid #E6A23C;
}
.gfl-links-wrap a {
text-align: left;
padding: 10px 15px;
border: none;
border-bottom: 1px solid #f0f0f0;
}
}