打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

User:弃权者/Template:少女前线信息/styles.css:修订间差异

来自OGAS数据中枢
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
 
(未显示同一用户的30个中间版本)
第1行: 第1行:
/* =====================================================
.gf-infobox-new {
  少女前线信息框 — 左立绘 + 右信息 双栏布局
  纯 CSS 立绘切换,使用 :checked ~ 兄弟选择器,零 JavaScript
  ===================================================== */
 
/* ── 外层包裹 ── */
.gf-infobox-wrap {
     display: flex;
     display: flex;
     flex-direction: row;
     flex-wrap: wrap;
    align-items: stretch;
     width: 100%;
    float: right;
     margin-top: 1em;
     width: 560px;
     background-color: var(--color-surface-0);
     margin: 0 0 1em 1.5em;
     border: 1px solid var(--border-color-subtle);
     background-color: var(--background-color-neutral-subtle, #f8f9fa);
     border-radius: 8px;
     border: 1px solid var(--border-color-subtle, #c8ccd1);
    font-size: 0.875em;
    color: var(--color-base, #202122);
    box-sizing: border-box;
     border-radius: 4px;
     overflow: hidden;
     overflow: hidden;
    clear: both;
}
}


/* ── 左侧立绘区 ── */
.gf-left-panel {
.gf-infobox-left {
     flex: 0 0 65%;
     flex: 0 0 270px;
     background-color: var(--color-surface-1);
    width: 270px;
     border-right: 1px solid var(--border-color-subtle);
     background-color: var(--background-color-base, #ffffff);
     position: relative;
     border-right: 1px solid var(--border-color-subtle, #c8ccd1);
     overflow: hidden;
     display: flex;
     flex-direction: column;
}
}


/* ── Radio 状态机:隐藏但保留在 DOM 中 ──
.gf-image-container {
  必须是 .gf-illust-slides 和 .gf-illust-tabs 的同级前兄弟元素,
    height: 480px;
  这样 ~ 选择器才能找到它们 */
.gf-illust-switcher {
     display: flex;
     display: flex;
    flex-direction: column;
    flex: 1;
}
.gf-radio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
/* ── 立绘幻灯片:默认全部隐藏 ── */
.gf-illust-slides {
    width: 100%;
}
.gf-illust-slide {
    display: none;
    flex-direction: column;
     align-items: center;
     align-items: center;
     width: 100%;
     justify-content: center;
    padding: 10px;
    cursor: pointer;
    position: relative;
}
}


.gf-illust-slide img {
.gf-main-img, .gf-main-img a, .gf-main-img img {
     width: 100%;
     max-width: 100% !important;
     max-width: 270px;
     max-height: 100% !important;
     height: auto;
    width: auto !important;
     height: auto !important;
    object-fit: contain;
     display: block;
     display: block;
    margin: 0 auto;
}
}


/* ── 核心机制:radio :checked 控制哪张立绘显示 ──
.gf-image-container img {
  结构:.gf-illust-switcher > [radio × N] + .gf-illust-slides > .gf-slide-N
    transform: scale(1.0);
  radio 是 .gf-illust-slides 的前兄弟,~ 可以找到它,再用后代选择器定位 .gf-slide-N */
    transition: transform 0.3s ease, opacity 0.3s ease;
.gf-radio:nth-of-type(1):checked ~ .gf-illust-slides .gf-slide-1 { display: flex; }
.gf-radio:nth-of-type(2):checked ~ .gf-illust-slides .gf-slide-2 { display: flex; }
.gf-radio:nth-of-type(3):checked ~ .gf-illust-slides .gf-slide-3 { display: flex; }
.gf-radio:nth-of-type(4):checked ~ .gf-illust-slides .gf-slide-4 { display: flex; }
.gf-radio:nth-of-type(5):checked ~ .gf-illust-slides .gf-slide-5 { display: flex; }
 
/* ── 核心机制:radio :checked 控制 tab 高亮 ──
  同理,radio 是 .gf-illust-tabs 的前兄弟 */
.gf-radio:nth-of-type(1):checked ~ .gf-illust-tabs .gf-tab-1,
.gf-radio:nth-of-type(2):checked ~ .gf-illust-tabs .gf-tab-2,
.gf-radio:nth-of-type(3):checked ~ .gf-illust-tabs .gf-tab-3,
.gf-radio:nth-of-type(4):checked ~ .gf-illust-tabs .gf-tab-4,
.gf-radio:nth-of-type(5):checked ~ .gf-illust-tabs .gf-tab-5 {
    background: var(--background-color-base, #ffffff);
    color: var(--color-progressive, #3366cc);
    font-weight: bold;
    border-bottom: 2px solid var(--color-progressive, #3366cc);
}
}


/* ── 立绘说明 ── */
.gf-image-container:hover img {
.gf-illust-caption {
     transform: scale(1.02);
     width: 100%;
    text-align: center;
    font-size: 0.85em;
    color: var(--color-subtle, #54595d);
    padding: 4px 6px;
    background: var(--background-color-neutral-subtle, #f8f9fa);
    border-top: 1px solid var(--border-color-subtle, #eaecf0);
    box-sizing: border-box;
}
}


/* ── 切换标签栏 ── */
.gf-image-container.loading img {
.gf-illust-tabs {
     filter: grayscale(1) opacity(0.5);
     display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color-subtle, #c8ccd1);
    background: var(--background-color-neutral-subtle, #f8f9fa);
}
}


.gf-illust-tab {
.gf-view-original {
     flex: 1 1 0;
     position: absolute;
     min-width: 0;
    right: 12px;
     padding: 5px 4px;
    bottom: 12px;
     font-size: 0.82em;
     width: 32px;
     text-align: center;
     height: 32px;
     border-radius: 50%;
     z-index: 10;
     cursor: pointer;
     cursor: pointer;
    border-right: 1px solid var(--border-color-subtle, #c8ccd1);
    color: var(--color-base, #202122);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.12s;
    /* 消除 label 默认样式 */
    display: block;
    line-height: 1.6;
}


.gf-illust-tab:last-child {
    background-color: var(--color-surface-3); /* 使用皮肤的次级表面色,确保有背景感 */
     border-right: none;
    border: 1px solid var(--border-color-subtle);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 增加投影,使其在深浅色背景上都“浮”起来 */
   
    /* 修改 SVG:stroke 使用固定深灰色 (%23666),并给 SVG 增加一个浅白色的底影 */
    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-illust-tab:hover {
.gf-view-original:hover {
    background: var(--background-color-interactive-subtle-hover, #eaecf0);
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);
}
}


/* ── 单张立绘(兼容旧 image 参数)── */
.gf-switcher-overlay { position: absolute; left: 10px; top: 10px; z-index: 20; display: flex; gap: 8px; }
.gf-illust-single {
.gf-switcher-toggle {  
     width: 100%;
     width: 32px;
     display: flex;
    height: 32px;
     flex-direction: column;
    background: var(--background-color-interactive-subtle, var(--color-surface-3));
     align-items: center;
    border: 1px solid var(--border-color-subtle);
    border-radius: 4px;
    cursor: pointer;  
     display: flex;  
     align-items: center;  
     justify-content: center;
    color: var(--color-base);
}
}


.gf-illust-single img {
.gf-switcher-toggle:hover {
     width: 100%;
     background: var(--background-color-interactive, var(--color-surface-4));
    max-width: 270px;
}.gf-switcher-toggle::before { content: "≡"; font-weight: bold; }
    height: auto;
.gf-switcher-list { display: flex; flex-direction: column; gap: 4px; transition: 0.2s opacity; }
    display: block;
.gf-switcher-overlay.collapsed .gf-switcher-list { opacity: 0; pointer-events: none; }
}


/* ── 无立绘占位 ── */
.gf-switch-btn {  
.gf-illust-missing {
     background: var(--background-color-interactive-subtle, var(--color-surface-2));
     width: 100%;
    border: 1px solid var(--border-color-subtle);
     padding: 24px 12px;
    border-radius: 4px;  
     text-align: center;
     padding: 4px 10px;
     color: var(--color-subtle, #54595d);
    cursor: pointer;  
     font-size: 0.9em;
     font-size: 12px;
    line-height: 1.7;
     color: var(--color-base);
     transition: background-color 0.2s, color 0.2s;
}
}


/* ── 右侧信息区 ── */
.gf-switch-btn:hover {
.gf-infobox-right {
     background: var(--background-color-interactive, var(--color-surface-3));
     flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
}


.gf-infobox-title {
.gf-switch-btn.active {  
    text-align: center;
     background: var(--color-primary);  
    font-weight: bold;
     border-color: var(--color-primary);  
    font-size: 1.05em;
    padding: 8px 10px;
     background: var(--background-color-neutral-subtle, #f8f9fa);
     border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
    word-break: break-all;
}
}


/* ── 信息表格 ── */
.gf-right-panel { flex: 1; min-width: 280px; }
.gf-info-table {
.gf-info-table, .gf-bottom-table { width: 100%; border-collapse: collapse; margin: 0 !important; }
    width: 100%;
.gf-header-row { background: var(--color-surface-2) !important; padding: 10px !important; text-align: center !important; font-weight: bold; color: var(--color-base); }
    border-collapse: collapse;
    background: var(--background-color-base, #ffffff);
    margin: 0;
    table-layout: auto;
}


.gf-info-table th {
.gf-label {  
     background: var(--background-color-neutral-subtle, #f8f9fa);
     background: var(--color-surface-2);  
     color: var(--color-base, #202122);
     padding: 8px 10px;  
     text-align: left;
     font-weight: bold;  
     padding: 5px 8px;
     width: 1px;
     white-space: nowrap;
     white-space: nowrap;
     border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
     border-bottom: 1px solid var(--border-color-subtle);  
     font-weight: bold;
     border-right: 1px solid var(--border-color-subtle);
    font-size: 0.9em;
     color: var(--color-base);
     width: 1px;
    vertical-align: top;
}
}


.gf-info-table td {
.gf-info-table td, .gf-bottom-table td {  
     padding: 5px 8px;
     padding: 8px 12px;  
     border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
     border-bottom: 1px solid var(--border-color-subtle);
     color: var(--color-base, #202122);
     color: var(--color-base);
    vertical-align: middle;
    word-break: break-all;
    font-size: 0.9em;
}
}


.gf-info-table tr:last-child th,
.gf-bottom-section {
.gf-info-table tr:last-child td {
    margin-top: 15px;
     border-bottom: none;
    border: 1px solid var(--border-color-subtle);
     border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-0);
}
}


.gf-info-table a {
@media screen and (max-width: 768px) {
    color: var(--color-link, #3366cc);
     .gf-infobox-new { flex-direction: column; }
    text-decoration: none;
     .gf-left-panel { flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--border-color-subtle); }
}
 
.gf-info-table a:hover {
    text-decoration: underline;
}
 
.gf-section-header {
    text-align: center !important;
    background: var(--background-color-neutral-subtle, #f8f9fa) !important;
    width: auto !important;
    white-space: normal !important;
    border-top: 1px solid var(--border-color-subtle, #c8ccd1);
}
 
.gf-related {
    vertical-align: top !important;
    word-break: break-word !important;
}
 
/* ── 响应式:窄屏改为上下布局 ── */
@media screen and (max-width: 800px) {
     .gf-infobox-wrap {
        float: none;
        width: 100%;
        flex-direction: column;
        margin: 1em 0;
    }
 
     .gf-infobox-left {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
    }
 
    .gf-illust-slide img,
    .gf-illust-single img {
        max-width: 100%;
    }
 
    .gf-infobox-right {
        width: 100%;
    }
 
    .gf-info-table th,
    .gf-info-table td {
        padding: 8px 10px;
        font-size: 1em;
    }
}
}

2026年5月16日 (六) 00:38的最新版本

.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;
}

.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); /* 增加投影,使其在深浅色背景上都“浮”起来 */
    
    /* 修改 SVG:stroke 使用固定深灰色 (%23666),并给 SVG 增加一个浅白色的底影 */
    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; 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);
}

.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); 
    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);
}

.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); }
}