Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第103行: | 第103行: | ||
} | } | ||
/** | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.gfl-logo-box { | .gfl-logo-box { | ||
| 第115行: | 第116行: | ||
padding: 6px 2px; | padding: 6px 2px; | ||
font-size: 13px; | font-size: 13px; | ||
} | |||
} | |||
*/ | |||
/* --- 移动端按钮导航尝试 --- */ | |||
@media (max-width: 768px) { | |||
.gfl-logo-box { | |||
display: none; | |||
} | |||
.gfl-nav-compact { | |||
flex-direction: column; | |||
} | |||
.gfl-item { | |||
width: 100% !important; | |||
flex: none; | |||
} | |||
.gfl-title { | |||
text-align: left; | |||
padding: 10px 15px; | |||
border-bottom: 1px solid var(--border-color-base, #ccc); | |||
font-size: 14px; | |||
} | |||
.gfl-content { | |||
position: static; | |||
border: none; | |||
border-left: 4px solid #E6A23C; | |||
box-shadow: none; | |||
background-color: var(--background-color-neutral-subtle, #f8f9fa) !important; | |||
} | |||
.gfl-links-wrap a { | |||
text-align: left; | |||
padding: 10px 15px; | |||
background: transparent; | |||
border: none; | |||
border-bottom: 1px solid rgba(128, 128, 128, 0.1); | |||
} | } | ||
} | } | ||
2026年5月7日 (四) 08:23的版本
.gfl-nav-compact {
margin: 1em 0;
display: flex;
flex-wrap: wrap;
position: relative;
color: var(--color-base, #202122);
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: 2px solid #E6A23C;
}
.gfl-logo-box img {
max-height: 28px;
width: auto;
}
.gfl-item {
flex: 1;
min-width: 60px;
position: relative;
outline: none;
z-index: 1;
}
.gfl-title {
display: block;
padding: 6px 2px;
border-bottom: 2px solid transparent;
text-align: center;
cursor: pointer;
font-size: 13px;
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.2s 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 4px 10px rgba(0,0,0,0.15);
}
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
grid-template-rows: 1fr;
}
.gfl-links-wrap {
min-height: 0;
padding: 0 4px;
display: flex;
flex-direction: column;
}
.gfl-item:hover .gfl-links-wrap,
.gfl-item:focus .gfl-links-wrap {
padding: 6px 4px;
}
.gfl-links-wrap a {
display: block;
padding: 4px 6px;
margin: 2px 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 {
display: none;
}
.gfl-item {
flex: none;
width: 33.33% !important;
}
.gfl-title {
border-bottom: 1px solid var(--border-color-base, #ccc);
padding: 6px 2px;
font-size: 13px;
}
}
*/
/* --- 移动端按钮导航尝试 --- */
@media (max-width: 768px) {
.gfl-logo-box {
display: none;
}
.gfl-nav-compact {
flex-direction: column;
}
.gfl-item {
width: 100% !important;
flex: none;
}
.gfl-title {
text-align: left;
padding: 10px 15px;
border-bottom: 1px solid var(--border-color-base, #ccc);
font-size: 14px;
}
.gfl-content {
position: static;
border: none;
border-left: 4px solid #E6A23C;
box-shadow: none;
background-color: var(--background-color-neutral-subtle, #f8f9fa) !important;
}
.gfl-links-wrap a {
text-align: left;
padding: 10px 15px;
background: transparent;
border: none;
border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}
}