User:弃权者/Template:少女前线信息/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第19行: | 第19行: | ||
flex-direction: column; | flex-direction: column; | ||
position: relative; | position: relative; | ||
overflow: hidden; /* 防止立绘放大溢出 */ | |||
} | } | ||
| 第29行: | 第30行: | ||
min-height: 450px; | min-height: 450px; | ||
cursor: pointer; | cursor: pointer; | ||
position: relative; | |||
} | } | ||
/* 立绘初始状态:增大到125%并下移5% */ | |||
.gf-image-container img, | .gf-image-container img, | ||
.gf-main-img img { | .gf-main-img img { | ||
| 第42行: | 第41行: | ||
width: auto !important; | width: auto !important; | ||
object-fit: contain; | object-fit: contain; | ||
transition: opacity 0.3s ease, filter 0.3s ease; | transform: scale(1.25) translateY(5%); | ||
transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, filter 0.3s ease; | |||
} | |||
/* Hover状态:微幅放大到约1.3倍(在1.25基础上再大一点) */ | |||
.gf-image-container:hover img { | |||
transform: scale(1.3) translateY(5%); | |||
} | } | ||
| 第48行: | 第53行: | ||
filter: blur(5px); | filter: blur(5px); | ||
opacity: 0.5; | opacity: 0.5; | ||
} | |||
/* 查看原图按钮 */ | |||
.gf-view-original { | |||
position: absolute; | |||
right: 12px; | |||
bottom: 12px; | |||
width: 36px; | |||
height: 36px; | |||
background-color: var(--background-color-interactive, rgba(255,255,255,0.6)); | |||
backdrop-filter: blur(4px); | |||
border: 1px solid var(--border-color-subtle, #ccc); | |||
border-radius: 50%; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
color: var(--color-base, #444); | |||
z-index: 15; | |||
transition: all 0.2s; | |||
} | |||
.gf-view-original:hover { | |||
background-color: var(--color-primary, #36c); | |||
color: #fff; | |||
transform: scale(1.1); | |||
} | } | ||
| 第54行: | 第84行: | ||
left: 10px; | left: 10px; | ||
top: 10px; | top: 10px; | ||
z-index: | z-index: 20; | ||
display: flex; | display: flex; | ||
align-items: flex-start; | align-items: flex-start; | ||
| 第71行: | 第101行: | ||
justify-content: center; | justify-content: center; | ||
opacity: 0.8; | opacity: 0.8; | ||
} | } | ||
.gf-switcher-toggle:hover { opacity: 1; background-color: var(--color-primary, #36c); color: #fff; } | .gf-switcher-toggle:hover { opacity: 1; background-color: var(--color-primary, #36c); color: #fff; } | ||
.gf-switcher-toggle::before { content: "≡"; font-size: 18px; font-weight: bold; } | |||
.gf-switcher-toggle::before { | |||
} | |||
.gf-switcher-list { | .gf-switcher-list { | ||
| 第110行: | 第134行: | ||
} | } | ||
.gf-switch-btn.active { | .gf-switch-btn.active { background-color: var(--color-primary, #36c); color: #fff; } | ||
} | |||
.gf-header-row { | .gf-right-panel { flex: 1; min-width: 250px; background-color: var(--color-surface-0, #ffffff); } | ||
.gf-info-table, .gf-bottom-table { width: 100%; border-collapse: collapse; margin: 0 !important; } | |||
.gf-header-row { background-color: var(--color-surface-2, #eeeeee) !important; color: var(--color-base, #202122) !important; font-weight: bold; font-size: 1.1em; padding: 12px !important; text-align: center !important; } | |||
} | |||
.gf-label { | .gf-label { | ||
| 第149行: | 第152行: | ||
} | } | ||
.gf-info-table td, .gf-bottom-table td { | .gf-info-table td, .gf-bottom-table td { padding: 10px 15px; color: var(--color-base, #202122); vertical-align: middle; border-bottom: 1px solid var(--border-color-subtle, #eaecf0); } | ||
} | |||
.gf-bottom-section { | .gf-bottom-section { width: 100%; margin-top: 2em; background-color: var(--color-surface-0, #ffffff); border: 1px solid var(--border-color-subtle, #c8ccd1); border-radius: 8px; overflow: hidden; } | ||
} | |||
@media screen and (max-width: 900px) { | @media screen and (max-width: 900px) { | ||
.gf-infobox-new { flex-direction: column; } | .gf-infobox-new { flex-direction: column; } | ||
.gf-left-panel { flex: 0 0 auto; width: 100%; border-right: none; } | .gf-left-panel { flex: 0 0 auto; width: 100%; border-right: none; } | ||
} | } | ||
2026年5月15日 (五) 23:49的版本
.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;
align-items: stretch;
}
.gf-left-panel {
flex: 0 0 65%;
background-color: var(--color-surface-1, #f8f9fa);
border-right: 1px solid var(--border-color-subtle, #eaecf0);
display: flex;
flex-direction: column;
position: relative;
overflow: hidden; /* 防止立绘放大溢出 */
}
.gf-image-container {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 15px;
min-height: 450px;
cursor: pointer;
position: relative;
}
/* 立绘初始状态:增大到125%并下移5% */
.gf-image-container img,
.gf-main-img img {
max-width: 100% !important;
max-height: 500px !important;
height: auto !important;
width: auto !important;
object-fit: contain;
transform: scale(1.25) translateY(5%);
transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, filter 0.3s ease;
}
/* Hover状态:微幅放大到约1.3倍(在1.25基础上再大一点) */
.gf-image-container:hover img {
transform: scale(1.3) translateY(5%);
}
.gf-image-container.loading img {
filter: blur(5px);
opacity: 0.5;
}
/* 查看原图按钮 */
.gf-view-original {
position: absolute;
right: 12px;
bottom: 12px;
width: 36px;
height: 36px;
background-color: var(--background-color-interactive, rgba(255,255,255,0.6));
backdrop-filter: blur(4px);
border: 1px solid var(--border-color-subtle, #ccc);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-base, #444);
z-index: 15;
transition: all 0.2s;
}
.gf-view-original:hover {
background-color: var(--color-primary, #36c);
color: #fff;
transform: scale(1.1);
}
.gf-switcher-overlay {
position: absolute;
left: 10px;
top: 10px;
z-index: 20;
display: flex;
align-items: flex-start;
gap: 8px;
}
.gf-switcher-toggle {
width: 32px;
height: 32px;
background-color: var(--color-surface-3, #eeeeee);
border: 1px solid var(--border-color-subtle, #ccc);
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.8;
}
.gf-switcher-toggle:hover { opacity: 1; background-color: var(--color-primary, #36c); color: #fff; }
.gf-switcher-toggle::before { content: "≡"; font-size: 18px; font-weight: bold; }
.gf-switcher-list {
display: flex;
flex-direction: column;
gap: 6px;
transition: transform 0.3s ease, opacity 0.3s ease;
transform-origin: left top;
}
.gf-switcher-overlay.collapsed .gf-switcher-list {
transform: scale(0.8);
opacity: 0;
pointer-events: none;
}
.gf-switch-btn {
background-color: var(--background-color-interactive, rgba(255,255,255,0.7));
backdrop-filter: blur(4px);
border: 1px solid var(--border-color-subtle, #ccc);
border-radius: 4px;
padding: 6px 12px;
cursor: pointer;
font-size: 0.85em;
color: var(--color-base, #222);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: all 0.2s;
white-space: nowrap;
}
.gf-switch-btn.active { background-color: var(--color-primary, #36c); color: #fff; }
.gf-right-panel { flex: 1; min-width: 250px; background-color: var(--color-surface-0, #ffffff); }
.gf-info-table, .gf-bottom-table { width: 100%; border-collapse: collapse; margin: 0 !important; }
.gf-header-row { background-color: var(--color-surface-2, #eeeeee) !important; color: var(--color-base, #202122) !important; font-weight: bold; font-size: 1.1em; padding: 12px !important; text-align: center !important; }
.gf-label {
background-color: var(--color-surface-2, #f2f2f2);
color: var(--color-base, #202122);
text-align: left;
padding: 10px 15px;
font-weight: bold;
width: 1%;
white-space: nowrap;
border-right: 1px solid var(--border-color-subtle, #eaecf0);
border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
}
.gf-info-table td, .gf-bottom-table td { padding: 10px 15px; color: var(--color-base, #202122); vertical-align: middle; border-bottom: 1px solid var(--border-color-subtle, #eaecf0); }
.gf-bottom-section { width: 100%; margin-top: 2em; background-color: var(--color-surface-0, #ffffff); border: 1px solid var(--border-color-subtle, #c8ccd1); border-radius: 8px; overflow: hidden; }
@media screen and (max-width: 900px) {
.gf-infobox-new { flex-direction: column; }
.gf-left-panel { flex: 0 0 auto; width: 100%; border-right: none; }
}