Template:少女前线/styles.css:修订间差异
模板页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第6行: | 第6行: | ||
font-size: 13px; | font-size: 13px; | ||
position: relative; | position: relative; | ||
border: 1px solid var(--border-color-base, #ddd); | border: 1px solid var(--border-color-base, #ddd); | ||
} | } | ||
| 第12行: | 第11行: | ||
.gfl-logo-box { | .gfl-logo-box { | ||
padding: 6px 12px; | padding: 6px 12px; | ||
background-color: | background-color: transparent; | ||
color: # | color: #f4c430; | ||
font-weight: bold; | font-weight: bold; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
border-right: 1px solid #f4c430; | |||
} | } | ||
| 第38行: | 第38行: | ||
.gfl-item:hover .gfl-title, | .gfl-item:hover .gfl-title, | ||
.gfl-item:focus .gfl-title { | .gfl-item:focus .gfl-title { | ||
background-color: | background-color: rgba(244, 196, 48, 0.1) !important; | ||
color: | color: #f4c430 !important; | ||
border-bottom-color: | border-bottom-color: #f4c430 !important; | ||
} | } | ||
| 第52行: | 第52行: | ||
border-left: 5px solid transparent; | border-left: 5px solid transparent; | ||
border-right: 5px solid transparent; | border-right: 5px solid transparent; | ||
border-top: 5px solid | border-top: 5px solid #f4c430; | ||
z-index: 1001; | z-index: 1001; | ||
} | } | ||
| 第64行: | 第64行: | ||
width: calc(100% + 2px); | width: calc(100% + 2px); | ||
background-color: var(--background-color-base, #fff); | background-color: var(--background-color-base, #fff); | ||
border: 2px solid | border: 2px solid #f4c430; | ||
padding: | padding: 12px; | ||
z-index: 1000; | z-index: 1000; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
box-shadow: 0 4px 12px rgba( | box-shadow: 0 4px 12px rgba(244, 196, 48, 0.15); | ||
} | } | ||
| 第76行: | 第76行: | ||
} | } | ||
.gfl-links-wrap { | .gfl-links-wrap { | ||
display: flex; | display: flex; | ||
| 第91行: | 第90行: | ||
border-radius: 2px; | border-radius: 2px; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
font-size: 12px; | |||
} | |||
.gfl-links-wrap a:hover { | |||
border-color: #f4c430; | |||
color: #f4c430 !important; | |||
background-color: rgba(244, 196, 48, 0.05); | |||
} | } | ||
| 第98行: | 第104行: | ||
width: calc(33.33% - 4px); | width: calc(33.33% - 4px); | ||
} | } | ||
.gfl-logo-box { width: 100%; justify-content: center; | .gfl-logo-box { | ||
width: 100%; | |||
justify-content: center; | |||
margin-bottom: | border-right: none; | ||
border-bottom: 1px solid #f4c430; | |||
margin-bottom: 2px; | |||
} | } | ||
} | } | ||
2026年5月7日 (四) 07:17的版本
.gfl-nav-compact {
margin: 1em 0;
display: flex;
flex-wrap: wrap;
gap: 4px;
font-size: 13px;
position: relative;
border: 1px solid var(--border-color-base, #ddd);
}
.gfl-logo-box {
padding: 6px 12px;
background-color: transparent;
color: #f4c430;
font-weight: bold;
display: flex;
align-items: center;
border-right: 1px solid #f4c430;
}
.gfl-item {
flex: 1;
min-width: 80px;
outline: none;
}
.gfl-title {
display: block;
padding: 8px 4px;
background-color: rgba(0,0,0,0.02);
border-bottom: 2px solid var(--border-color-base, #ccc);
text-align: center;
cursor: pointer;
transition: all 0.2s;
position: relative;
}
.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
background-color: rgba(244, 196, 48, 0.1) !important;
color: #f4c430 !important;
border-bottom-color: #f4c430 !important;
}
.gfl-item:hover .gfl-title::after,
.gfl-item:focus .gfl-title::after {
content: "";
position: absolute;
bottom: -7px;
left: 50%;
transform: translateX(-50%);
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #f4c430;
z-index: 1001;
}
.gfl-content {
display: none;
position: absolute;
top: 100%;
left: -1px;
right: -1px;
width: calc(100% + 2px);
background-color: var(--background-color-base, #fff);
border: 2px solid #f4c430;
padding: 12px;
z-index: 1000;
box-sizing: border-box;
box-shadow: 0 4px 12px rgba(244, 196, 48, 0.15);
}
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
display: block;
}
.gfl-links-wrap {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.gfl-links-wrap a {
display: inline-block;
padding: 4px 10px;
background-color: var(--background-color-interactive-subtle, #eee);
color: var(--color-base, inherit) !important;
text-decoration: none !important;
border-radius: 2px;
border: 1px solid #ccc;
font-size: 12px;
}
.gfl-links-wrap a:hover {
border-color: #f4c430;
color: #f4c430 !important;
background-color: rgba(244, 196, 48, 0.05);
}
@media (max-width: 768px) {
.gfl-item {
flex: none;
width: calc(33.33% - 4px);
}
.gfl-logo-box {
width: 100%;
justify-content: center;
border-right: none;
border-bottom: 1px solid #f4c430;
margin-bottom: 2px;
}
}