User:弃权者/Template:少女前线信息/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 标签:手工回退 |
||
| 第451行: | 第451行: | ||
.gf-main-img img { | .gf-main-img img { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
} | } | ||
2026年5月17日 (日) 21:39的版本
.gf-infobox-new {
width: 100%;
margin-top: 1em;
clear: both;
box-sizing: border-box;
}
.gf-infobox-new *,
.gf-infobox-new *::before,
.gf-infobox-new *::after {
box-sizing: border-box;
}
.gf-left-panel {
position: relative;
width: 100%;
height: 480px;
overflow: hidden;
border-radius: 8px;
background-image: url('/wiki/Special:FilePath/图鉴背景.jpg');
background-size: cover;
background-position: center bottom;
background-repeat: no-repeat;
}
.gf-main-img span,
.gf-main-img a {
display: contents !important;
}
.gf-image-container {
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
justify-content: center;
padding-right: 15%;
padding: 10px;
position: relative;
}
.gf-main-img,
.gf-main-img a,
.gf-main-img img {
max-width: 70% !important;
max-height: 100% !important;
width: auto !important;
height: auto !important;
object-fit: contain;
display: block;
}
.gf-image-container img {
transition: opacity 0.3s ease;
}
.gf-image-container.loading img {
filter: grayscale(1) opacity(0.5);
}
.gf-controls {
position: absolute;
right: 12px;
bottom: 12px;
display: flex;
flex-direction: row;
gap: 8px;
z-index: 25;
}
.gf-img-inner {
max-width: 100% !important;
max-height: 100% !important;
width: auto !important;
height: auto !important;
}
.gf-view-original {
width: 32px;
height: 32px;
border-radius: 50%;
cursor: pointer;
background-color: rgba(0,0,0,0.5);
border: 1px solid rgba(255,255,255,0.3);
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
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-repeat: no-repeat;
background-position: center;
background-size: 16px;
transition: transform 0.2s, background-color 0.2s;
}
.gf-view-original:hover {
background-color: rgba(0,0,0,0.8);
transform: scale(1.1);
}
.gf-bg-selector {
height: 32px;
z-index: 25;
padding: 0 8px;
font-size: 12px;
border-radius: 4px;
background-color: rgba(0,0,0,0.5);
border: 1px solid rgba(255,255,255,0.3);
color: #fff;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
cursor: pointer;
}
.gf-bg-selector:focus {
outline: none;
}
.gf-switcher-overlay {
position: absolute;
right: 10px;
top: 10px;
z-index: 20;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 6px;
max-height: calc(100% - 60px);
width: 120px;
}
.gf-switcher-toggle {
width: 32px;
height: 32px;
background: rgba(0,0,0,0.6);
border: 1px solid rgba(255,255,255,0.3);
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
flex-shrink: 0;
}
.gf-switcher-toggle:hover {
background: rgba(0,0,0,0.85);
}
.gf-switcher-toggle::before {
content: "≡";
font-weight: bold;
}
.gf-switcher-list {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 3px;
overflow-y: auto;
touch-action: pan-y;
transition: opacity 0.2s;
padding-bottom: 4px;
max-height: calc(100% - 40px);
}
.gf-switcher-overlay.collapsed .gf-switcher-list {
opacity: 0;
pointer-events: none;
}
.gf-group-btn {
background: rgba(0,0,0,0.75) !important;
border: 1px solid rgba(255,255,255,0.6) !important;
color: #fff !important;
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
font-size: 13px;
font-weight: bold;
transition: background-color 0.2s, border-color 0.2s;
backdrop-filter: blur(4px);
box-shadow: 0 2px 4px rgba(0,0,0,0.25);
user-select: none;
text-align: left;
width: 100%;
}
.gf-group-btn:hover {
background: rgba(50,50,50,0.85) !important;
border-color: #fff !important;
}
.gf-group-btn.active {
border-color: #ff8c00 !important;
box-shadow: 0 0 5px rgba(255,140,0,0.5), 0 2px 4px rgba(0,0,0,0.25);
}
.gf-variant-list {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 2px;
padding-left: 8px;
}
.gf-variant-list.collapsed {
display: none;
}
.gf-switch-btn {
background: rgba(0,0,0,0.65) !important;
border: 1px solid rgba(255,255,255,0.5) !important;
color: #ddd !important;
border-radius: 3px;
padding: 3px 8px;
cursor: pointer;
font-size: 12px;
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
backdrop-filter: blur(4px);
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
user-select: none;
text-align: left;
width: 100%;
}
.gf-switch-btn::before {
content: "· ";
opacity: 0.6;
}
.gf-switch-btn:hover {
background: rgba(40,40,40,0.8) !important;
border-color: #fff !important;
color: #fff !important;
}
.gf-switch-btn.active {
background: rgba(20,20,20,0.8) !important;
border-color: #ff8c00 !important;
border-width: 1px !important;
color: #fff !important;
font-weight: normal !important;
box-shadow: 0 0 4px rgba(255,140,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
}
.gf-switch-btn.active::before {
content: "▶ ";
opacity: 1;
color: #ff8c00;
}
.gf-info-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 15;
padding: 48px 16px 14px 16px;
background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.82) 100%);
pointer-events: none;
}
.gf-info-overlay > * {
pointer-events: auto;
}
.gf-cv-block {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 8px;
}
.gf-cv-row {
display: inline-flex;
align-items: stretch;
overflow: hidden;
max-width: 280px;
}
.gf-cv-label {
background: rgba(60,60,60,0.9);
color: #fff;
font-size: 11px;
font-weight: bold;
padding: 3px 20px 3px 10px;
clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
white-space: nowrap;
letter-spacing: 0.08em;
flex-shrink: 0;
}
.gf-cv-value {
background: rgba(180,180,180,0.2);
color: #fff;
font-size: 11px;
padding: 3px 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
max-width: 140px;
}
.gf-stars {
margin-bottom: 2px;
filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}
.gf-subname {
font-size: 12px;
color: rgba(255,255,255,0.7);
text-shadow: 0 1px 4px rgba(0,0,0,0.9);
letter-spacing: 0.08em;
margin-bottom: 2px;
}
.gf-profile-wrap {
position: relative;
display: flex;
align-items: baseline;
gap: 12px;
margin-bottom: 10px;
overflow: hidden;
}
.gf-name {
font-size: 28px;
font-weight: bold;
color: #fff;
text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
line-height: 1.1;
letter-spacing: 0.05em;
position: relative;
z-index: 2;
}
.gf-profile-watermark {
font-size: 32px;
font-weight: 900;
color: rgba(255,255,255,0.08);
letter-spacing: 0.15em;
line-height: 1;
position: relative;
z-index: 1;
user-select: none;
pointer-events: none;
}
.gf-bottom-info {
display: flex;
align-items: center;
gap: 10px;
}
.gf-type-icon {
flex-shrink: 0;
}
.gf-affiliation {
display: flex;
flex-direction: column;
gap: 4px;
}
.gf-affil-row {
background: linear-gradient(to right, rgba(60,60,60,0.75) 0%, rgba(60,60,60,0.75) 60%, transparent 100%);
border: none;
border-left: 2px solid rgba(255,255,255,0.25);
color: #fff;
font-size: 12px;
padding: 3px 40px 3px 10px;
white-space: nowrap;
text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.gf-main-info-section {
margin-top: 8px;
border: 1px solid var(--border-color-subtle);
border-radius: 8px;
overflow: hidden;
background: var(--color-surface-0);
}
.gf-info-table,
.gf-bottom-table {
width: 100%;
border-collapse: collapse;
margin: 0 !important;
}
.gf-label {
background: var(--color-surface-2);
padding: 6px 10px;
font-weight: bold;
font-size: 13px;
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);
vertical-align: top;
}
.gf-info-table td,
.gf-bottom-table td {
padding: 6px 12px;
border-bottom: 1px solid var(--border-color-subtle);
color: var(--color-base);
}
.gf-color-info {
color: var(--color-subtle);
font-size: 12px;
}
.gf-marquee {
display: inline-block;
white-space: nowrap;
animation: gf-marquee 8s linear infinite;
}
.gf-marquee:hover {
animation-play-state: paused;
}
@keyframes gf-marquee {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
.gf-bottom-section {
margin-top: 8px;
border: 1px solid var(--border-color-subtle);
border-radius: 8px;
overflow: hidden;
background: var(--color-surface-0);
}
.gf-main-img img {
user-select: none;
pointer-events: none;
}
@media screen and (max-width: 600px) {
.gf-left-panel {
height: 80vw;
min-height: 320px;
}
.gf-main-img,
.gf-main-img a,
.gf-main-img img {
max-width: 100% !important;
}
.gf-name {
font-size: 18px;
}
.gf-profile-watermark {
font-size: 18px;
}
.gf-cv-label, .gf-cv-value { font-size: 10px; }
.gf-stars { transform: scale(0.8); transform-origin: left; }
.gf-affil-row { font-size: 11px; }
.gf-switcher-overlay { width: 80px; }
.gf-group-btn { font-size: 11px; padding: 4px 6px; }
.gf-switch-btn { font-size: 10px; padding: 3px 6px; }
}