Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的26个中间版本) | |||
| 第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); | ||
| 第10行: | 第9行: | ||
.gfl-logo-box { | .gfl-logo-box { | ||
width: | width: 50px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
border-right: | border-right: 1px solid var(--border-color-base, #ccc); | ||
} | } | ||
.gfl-logo-box img { | .gfl-logo-box img { | ||
max-height: | max-height: 24px; | ||
width: auto; | width: auto; | ||
} | } | ||
| 第27行: | 第23行: | ||
.gfl-item { | .gfl-item { | ||
flex: 1; | flex: 1; | ||
min-width: | min-width: 60px; | ||
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; | |||
color: var(--color-base, #202122); | |||
border-top: 2px solid transparent; | |||
transition: all 0.2s; | transition: all 0.2s; | ||
} | } | ||
.gfl-item:hover .gfl-title, | .gfl-item:hover .gfl-title, | ||
.gfl-item:focus .gfl-title { | .gfl-item:focus .gfl-title { | ||
border- | color: #E6A23C; | ||
background-color: var(--background-color-interactive-subtle, # | border-top-color: #E6A23C !important; | ||
background-color: var(--background-color-interactive-subtle, #eee); | |||
} | } | ||
.gfl-content { | .gfl-content { | ||
position: absolute; | position: absolute; | ||
bottom: 100%; | |||
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
border: | background-color: var(--background-color-base, #fff) !important; | ||
border- | border: 1px solid #E6A23C; | ||
border-bottom: none; | |||
z-index: 1000; | |||
overflow: hidden; | overflow: hidden; | ||
max-height: 0; | |||
opacity: 0; | |||
transition: max-height 0.5s ease-in-out, opacity 0.3s ease; | |||
pointer-events: none; | |||
} | } | ||
.gfl-item:hover .gfl-content, | .gfl-item:hover .gfl-content, | ||
.gfl-item:focus .gfl-content { | .gfl-item:focus .gfl-content { | ||
max-height: 1200px; | |||
opacity: 1; | |||
pointer-events: auto; | |||
} | } | ||
.gfl-links-wrap { | .gfl-links-wrap { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
padding: 4px; | |||
padding: | |||
} | } | ||
| 第86行: | 第78行: | ||
display: block; | display: block; | ||
padding: 8px; | padding: 8px; | ||
margin: | margin: 1px 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); | |||
color: var(--color-progressive, #3366ff) !important; | color: var(--color-progressive, #3366ff) !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.gfl-logo-box { | .gfl-logo-box { | ||
display: none; | |||
} | } | ||
.gfl-item { | .gfl-item { | ||
flex: | flex: none; | ||
width: | width: 33.33% !important; | ||
box-sizing: border-box; | |||
border-right: 1px solid var(--border-color-base, #ccc); | |||
border-top: 1px solid var(--border-color-base, #ccc); | |||
position: relative; | |||
} | |||
.gfl-nav-compact { | |||
border-top: none; | |||
} | |||
.gfl-item:nth-child(3n) { | |||
border-right: none; | |||
} | |||
.gfl-item:nth-child(-n+3) { | |||
border-top: none; | |||
} | } | ||
.gfl-title { | .gfl-title { | ||
padding: 10px 2px; | |||
} | |||
.gfl-content { | |||
width: 100%; | |||
bottom: 100%; | |||
left: 0; | |||
box-shadow: 0 -4px 8px rgba(0,0,0,0.1); | |||
} | } | ||
.gfl-links-wrap a { | |||
.gfl- | text-align: center; | ||
padding: 10px 4px; | |||
margin-bottom: 2px; | |||
} | } | ||
} | } | ||
2026年5月8日 (五) 19:46的最新版本
.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);
}
.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: 24px;
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;
color: var(--color-base, #202122);
border-top: 2px solid transparent;
transition: all 0.2s;
}
.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
color: #E6A23C;
border-top-color: #E6A23C !important;
background-color: var(--background-color-interactive-subtle, #eee);
}
.gfl-content {
position: absolute;
bottom: 100%;
left: 0;
width: 100%;
background-color: var(--background-color-base, #fff) !important;
border: 1px solid #E6A23C;
border-bottom: none;
z-index: 1000;
overflow: hidden;
max-height: 0;
opacity: 0;
transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
pointer-events: none;
}
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
max-height: 1200px;
opacity: 1;
pointer-events: auto;
}
.gfl-links-wrap {
display: flex;
flex-direction: column;
padding: 4px;
}
.gfl-links-wrap a {
display: block;
padding: 8px;
margin: 1px 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-top: 1px solid var(--border-color-base, #ccc);
position: relative;
}
.gfl-nav-compact {
border-top: none;
}
.gfl-item:nth-child(3n) {
border-right: none;
}
.gfl-item:nth-child(-n+3) {
border-top: none;
}
.gfl-title {
padding: 10px 2px;
}
.gfl-content {
width: 100%;
bottom: 100%;
left: 0;
box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
}
.gfl-links-wrap a {
text-align: center;
padding: 10px 4px;
margin-bottom: 2px;
}
}