User:弃权者/Template:少女前线信息/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第9行: | 第9行: | ||
overflow: hidden; | overflow: hidden; | ||
clear: both; | clear: both; | ||
} | } | ||
| 第16行: | 第15行: | ||
background-color: var(--color-surface-1, #f8f9fa); | background-color: var(--color-surface-1, #f8f9fa); | ||
border-right: 1px solid var(--border-color-subtle, #eaecf0); | border-right: 1px solid var(--border-color-subtle, #eaecf0); | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
| 第23行: | 第20行: | ||
.gf-image-container { | .gf-image-container { | ||
height: 480px; /* 固定高度,防止图片撑爆 */ | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: | padding: 10px; | ||
cursor: pointer; | cursor: pointer; | ||
position: relative; | position: relative; | ||
} | } | ||
.gf-main-img, .gf-main-img a, .gf-main-img img { | |||
.gf-main-img, | |||
.gf-main-img a | |||
.gf- | |||
max-width: 100% !important; | max-width: 100% !important; | ||
max-height: 100% !important; | max-height: 100% !important; | ||
width: auto !important; | width: auto !important; | ||
height: auto !important; | height: auto !important; | ||
object-fit: contain; | object-fit: contain; | ||
display: block; | |||
margin: 0 auto; | |||
} | } | ||
/* | /* 移除所有 scale(1.25) 或 scale(1.3) */ | ||
.gf-image-container img { | |||
transform: scale(1.0); | |||
transition: transform 0.3s ease, opacity 0.3s ease; | |||
} | |||
/* 仅在 hover 时极细微放大以作反馈 */ | |||
.gf-image-container:hover img { | .gf-image-container:hover img { | ||
transform: scale(1. | transform: scale(1.02); | ||
} | } | ||
.gf-image-container.loading img { | .gf-image-container.loading img { | ||
filter: | filter: grayscale(1) opacity(0.5); | ||
} | } | ||
.gf-view-original { | .gf-view-original { | ||
position: absolute; | position: absolute; | ||
| 第73行: | 第60行: | ||
width: 32px; | width: 32px; | ||
height: 32px; | height: 32px; | ||
background-color: rgba(255, 255, 255, 0. | background-color: rgba(255, 255, 255, 0.8); | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
border-radius: 50%; | border-radius: 50%; | ||
z-index: | z-index: 10; | ||
cursor: pointer; | cursor: pointer; | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='% | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E"); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-position: center; | background-position: center; | ||
| 第87行: | 第72行: | ||
.gf-view-original:hover { | .gf-view-original:hover { | ||
background-color: | background-color: #36c; | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E"); | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E"); | ||
} | } | ||
.gf-switcher-overlay { position: absolute; left: 10px; top: 10px; z-index: 20; display: flex; gap: 8px; } | |||
.gf-switcher-overlay { position: absolute; left: 10px; top: 10px; z-index: 20; display: flex | .gf-switcher-toggle { width: 32px; height: 32px; background: #eee; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; } | ||
.gf-switcher-toggle { width: 32px; height: 32px; background | .gf-switcher-toggle::before { content: "≡"; font-weight: bold; } | ||
.gf-switcher-list { display: flex; flex-direction: column; gap: 4px; transition: 0.2s opacity; } | |||
.gf-switcher-toggle::before { content: "≡" | .gf-switcher-overlay.collapsed .gf-switcher-list { opacity: 0; pointer-events: none; } | ||
.gf-switcher-list { display: flex; flex-direction: column; gap: | .gf-switch-btn { background: rgba(255,255,255,0.9); border: 1px solid #ccc; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 12px; } | ||
.gf-switcher-overlay.collapsed .gf-switcher-list { | .gf-switch-btn.active { background: #36c; color: #fff; } | ||
.gf-switch-btn { background | |||
.gf-switch-btn.active { background | .gf-right-panel { flex: 1; min-width: 280px; } | ||
.gf-right-panel { flex: 1; min-width: | .gf-info-table, .gf-bottom-table { width: 100%; border-collapse: collapse; } | ||
.gf-info-table, .gf-bottom-table { width: 100%; border-collapse: collapse | .gf-header-row { background: #eee; padding: 10px; text-align: center; font-weight: bold; } | ||
.gf-header-row { background | .gf-label { background: #f9f9f9; padding: 8px 12px; font-weight: bold; width: 80px; border-bottom: 1px solid #eee; border-right: 1px solid #eee; } | ||
.gf-label { background | .gf-info-table td, .gf-bottom-table td { padding: 8px 12px; border-bottom: 1px solid #eee; } | ||
.gf-info-table td, .gf-bottom-table td { padding: | .gf-bottom-section { margin-top: 15px; border: 1px solid #c8ccd1; border-radius: 8px; overflow: hidden; } | ||
.gf-bottom-section { | |||
@media screen and (max-width: | @media screen and (max-width: 768px) { | ||
.gf-infobox-new { flex-direction: column; } | .gf-infobox-new { flex-direction: column; } | ||
.gf-left-panel { flex: | .gf-left-panel { flex: none; width: 100%; } | ||
} | } | ||
2026年5月16日 (六) 00:00的版本
.gf-infobox-new {
display: flex;
flex-wrap: wrap;
width: 100%;
margin-top: 1em;
background-color: var(--color-surface-0, #ffffff);
border: 1px solid var(--border-color-subtle, #c8ccd1);
border-radius: 8px;
overflow: hidden;
clear: both;
}
.gf-left-panel {
flex: 0 0 65%;
background-color: var(--color-surface-1, #f8f9fa);
border-right: 1px solid var(--border-color-subtle, #eaecf0);
position: relative;
overflow: hidden;
}
.gf-image-container {
height: 480px; /* 固定高度,防止图片撑爆 */
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
cursor: pointer;
position: relative;
}
.gf-main-img, .gf-main-img a, .gf-main-img img {
max-width: 100% !important;
max-height: 100% !important;
width: auto !important;
height: auto !important;
object-fit: contain;
display: block;
margin: 0 auto;
}
/* 移除所有 scale(1.25) 或 scale(1.3) */
.gf-image-container img {
transform: scale(1.0);
transition: transform 0.3s ease, opacity 0.3s ease;
}
/* 仅在 hover 时极细微放大以作反馈 */
.gf-image-container:hover img {
transform: scale(1.02);
}
.gf-image-container.loading img {
filter: grayscale(1) opacity(0.5);
}
.gf-view-original {
position: absolute;
right: 12px;
bottom: 12px;
width: 32px;
height: 32px;
background-color: rgba(255, 255, 255, 0.8);
border: 1px solid #ccc;
border-radius: 50%;
z-index: 10;
cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
background-size: 16px;
}
.gf-view-original:hover {
background-color: #36c;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
}
.gf-switcher-overlay { position: absolute; left: 10px; top: 10px; z-index: 20; display: flex; gap: 8px; }
.gf-switcher-toggle { width: 32px; height: 32px; background: #eee; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gf-switcher-toggle::before { content: "≡"; font-weight: bold; }
.gf-switcher-list { display: flex; flex-direction: column; gap: 4px; transition: 0.2s opacity; }
.gf-switcher-overlay.collapsed .gf-switcher-list { opacity: 0; pointer-events: none; }
.gf-switch-btn { background: rgba(255,255,255,0.9); border: 1px solid #ccc; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.gf-switch-btn.active { background: #36c; color: #fff; }
.gf-right-panel { flex: 1; min-width: 280px; }
.gf-info-table, .gf-bottom-table { width: 100%; border-collapse: collapse; }
.gf-header-row { background: #eee; padding: 10px; text-align: center; font-weight: bold; }
.gf-label { background: #f9f9f9; padding: 8px 12px; font-weight: bold; width: 80px; border-bottom: 1px solid #eee; border-right: 1px solid #eee; }
.gf-info-table td, .gf-bottom-table td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.gf-bottom-section { margin-top: 15px; border: 1px solid #c8ccd1; border-radius: 8px; overflow: hidden; }
@media screen and (max-width: 768px) {
.gf-infobox-new { flex-direction: column; }
.gf-left-panel { flex: none; width: 100%; }
}