User:弃权者/Template:少女前线信息/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第27行: | 第27行: | ||
cursor: pointer; | cursor: pointer; | ||
position: relative; | position: relative; | ||
background-image: url('/wiki/Special:FilePath/图鉴背景.png'); | |||
background-size: cover; | |||
background-position: center; | |||
background-repeat: no-repeat; | |||
} | } | ||
| 第61行: | 第65行: | ||
z-index: 10; | z-index: 10; | ||
cursor: pointer; | cursor: pointer; | ||
background-color: var(--color-surface-3); | |||
background-color: var(--color-surface-3); | |||
border: 1px solid var(--border-color-subtle); | border: 1px solid var(--border-color-subtle); | ||
box-shadow: 0 2px 5px rgba(0,0,0,0.2); | box-shadow: 0 2px 5px rgba(0,0,0,0.2); | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath filter='drop-shadow(1px 1px 1px white)' 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='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath filter='drop-shadow(1px 1px 1px white)' d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E"); | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
| 第74行: | 第75行: | ||
.gf-view-original:hover { | .gf-view-original:hover { | ||
background-color: var(--color-primary); | |||
border-color: var(--color-primary); | border-color: var(--color-primary); | ||
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.5' 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E"); | ||
| 第80行: | 第81行: | ||
} | } | ||
.gf-switcher-overlay { position: absolute; left: 10px; top: 10px; z-index: 20; display: flex; gap: 8px; } | .gf-switcher-overlay { | ||
.gf-switcher-toggle { | position: absolute; | ||
width: 32px; | left: 10px; | ||
height: 32px; | top: 10px; | ||
background: var(--background-color-interactive-subtle, var(--color-surface-3)); | z-index: 20; | ||
border: 1px solid var(--border-color-subtle); | display: flex; | ||
border-radius: 4px; | flex-direction: column; | ||
cursor: pointer; | gap: 8px; | ||
display: flex; | } | ||
align-items: center; | |||
.gf-switcher-toggle { | |||
width: 32px; | |||
height: 32px; | |||
background: var(--background-color-interactive-subtle, var(--color-surface-3)); | |||
border: 1px solid var(--border-color-subtle); | |||
border-radius: 4px; | |||
cursor: pointer; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | justify-content: center; | ||
color: var(--color-base); | color: var(--color-base); | ||
align-self: flex-start; | |||
} | } | ||
.gf-switcher-toggle:hover { | .gf-switcher-toggle:hover { | ||
background: var(--background-color-interactive, var(--color-surface-4)); | background: var(--background-color-interactive, var(--color-surface-4)); | ||
}.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-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 { | .gf-switch-btn { | ||
| 第115行: | 第141行: | ||
} | } | ||
.gf-switch-btn.active { | .gf-switch-btn.active { | ||
background: var(--color-primary); | background: var(--color-primary); | ||
border-color: var(--color-primary); | color: #fff; | ||
border-color: var(--color-primary); | |||
} | } | ||
.gf-right-panel { flex: 1; min-width: 280px; } | .gf-right-panel { | ||
.gf-info-table, .gf-bottom-table { width: 100%; border-collapse: collapse; margin: 0 !important; } | flex: 1; | ||
.gf-header-row { background: var(--color-surface-2) !important; padding: 10px !important; text-align: center !important; font-weight: bold; color: var(--color-base); } | min-width: 280px; | ||
} | |||
.gf-info-table, .gf-bottom-table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
margin: 0 !important; | |||
} | |||
.gf-header-row { | |||
background: var(--color-surface-2) !important; | |||
padding: 10px !important; | |||
text-align: center !important; | |||
font-weight: bold; | |||
color: var(--color-base); | |||
} | |||
.gf-label { | .gf-label { | ||
| 第139行: | 第181行: | ||
border-bottom: 1px solid var(--border-color-subtle); | border-bottom: 1px solid var(--border-color-subtle); | ||
color: var(--color-base); | color: var(--color-base); | ||
width: auto; | |||
} | } | ||
2026年5月16日 (六) 09:58的版本
.gf-infobox-new {
display: flex;
flex-wrap: wrap;
width: 100%;
margin-top: 1em;
background-color: var(--color-surface-0);
border: 1px solid var(--border-color-subtle);
border-radius: 8px;
overflow: hidden;
clear: both;
}
.gf-left-panel {
flex: 0 0 65%;
background-color: var(--color-surface-1);
border-right: 1px solid var(--border-color-subtle);
position: relative;
overflow: hidden;
}
.gf-image-container {
height: 480px;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
cursor: pointer;
position: relative;
background-image: url('/wiki/Special:FilePath/图鉴背景.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.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;
}
.gf-image-container img {
transform: scale(1.0);
transition: transform 0.3s ease, opacity 0.3s ease;
}
.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;
border-radius: 50%;
z-index: 10;
cursor: pointer;
background-color: var(--color-surface-3);
border: 1px solid var(--border-color-subtle);
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath filter='drop-shadow(1px 1px 1px white)' 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: var(--color-primary);
border-color: var(--color-primary);
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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
transform: scale(1.1);
}
.gf-switcher-overlay {
position: absolute;
left: 10px;
top: 10px;
z-index: 20;
display: flex;
flex-direction: column;
gap: 8px;
}
.gf-switcher-toggle {
width: 32px;
height: 32px;
background: var(--background-color-interactive-subtle, var(--color-surface-3));
border: 1px solid var(--border-color-subtle);
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-base);
align-self: flex-start;
}
.gf-switcher-toggle:hover {
background: var(--background-color-interactive, var(--color-surface-4));
}
.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: var(--background-color-interactive-subtle, var(--color-surface-2));
border: 1px solid var(--border-color-subtle);
border-radius: 4px;
padding: 4px 10px;
cursor: pointer;
font-size: 12px;
color: var(--color-base);
transition: background-color 0.2s, color 0.2s;
}
.gf-switch-btn:hover {
background: var(--background-color-interactive, var(--color-surface-3));
}
.gf-switch-btn.active {
background: var(--color-primary);
color: #fff;
border-color: var(--color-primary);
}
.gf-right-panel {
flex: 1;
min-width: 280px;
}
.gf-info-table, .gf-bottom-table {
width: 100%;
border-collapse: collapse;
margin: 0 !important;
}
.gf-header-row {
background: var(--color-surface-2) !important;
padding: 10px !important;
text-align: center !important;
font-weight: bold;
color: var(--color-base);
}
.gf-label {
background: var(--color-surface-2);
padding: 8px 10px;
font-weight: bold;
width: 1px;
white-space: nowrap;
border-bottom: 1px solid var(--border-color-subtle);
border-right: 1px solid var(--border-color-subtle);
color: var(--color-base);
}
.gf-info-table td, .gf-bottom-table td {
padding: 8px 12px;
border-bottom: 1px solid var(--border-color-subtle);
color: var(--color-base);
width: auto;
}
.gf-bottom-section {
margin-top: 15px;
border: 1px solid var(--border-color-subtle);
border-radius: 8px;
overflow: hidden;
background: var(--color-surface-0);
}
@media screen and (max-width: 768px) {
.gf-infobox-new { flex-direction: column; }
.gf-left-panel { flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--border-color-subtle); }
}