打开/关闭菜单
26
6675
46
1.2万
OGAS数据中枢
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

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

来自OGAS数据中枢
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
(未显示同一用户的55个中间版本)
第1行: 第1行:
/* =====================================================
.gf-infobox-new {
  少女前线信息框 — 左立绘 + 右信息 双栏布局
    display: flex;
  纯 CSS 立绘切换,使用 :checked ~ 兄弟选择器,零 JavaScript
    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 {
.gf-infobox-wrap {
     flex: 0 0 70%;
     display: flex;
     border-right: 1px solid var(--border-color-subtle);
    flex-direction: row;
     position: relative;
    align-items: stretch;
    float: right;
    width: 560px;
    margin: 0 0 1em 1.5em;
     background-color: var(--background-color-neutral-subtle, #f8f9fa);
    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;
    background-image: url('/wiki/Special:FilePath/图鉴背景.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
}


/* ── 左侧立绘区 ── */
.gf-image-container {
.gf-infobox-left {
     height: 480px;
     flex: 0 0 270px;
    width: 270px;
    background-color: var(--background-color-base, #ffffff);
    border-right: 1px solid var(--border-color-subtle, #c8ccd1);
     display: flex;
     display: flex;
     flex-direction: column;
     align-items: flex-end;
    justify-content: center;
    padding: 10px 10px 0 10px;
    cursor: default;
    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 {
    transition: opacity 0.3s ease;
}
 
.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 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, border-color 0.2s;
}
}


/* ── Radio 状态机:隐藏但保留在 DOM 中 ──
.gf-view-original:hover {
  必须是 .gf-illust-slides 和 .gf-illust-tabs 的同级前兄弟元素,
    background-color: var(--color-primary);
  这样 ~ 选择器才能找到它们 */
     border-color: var(--color-primary);
.gf-illust-switcher {
     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");
     display: flex;
     transform: scale(1.1);
     flex-direction: column;
     flex: 1;
}
}


.gf-radio {
.gf-bg-selector {
     position: absolute;
     position: absolute;
     width: 0;
    right: 50px;
     height: 0;
    bottom: 12px;
     opacity: 0;
     width: 150px;
     pointer-events: none;
     height: 32px;
    z-index: 10;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 4px;
    background-color: var(--color-surface-3);
    border: 1px solid var(--border-color-subtle);
    color: var(--color-base);
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
     cursor: pointer;
}
}


/* ── 立绘幻灯片:默认全部隐藏 ── */
.gf-bg-selector:focus {
.gf-illust-slides {
     outline: none;
     width: 100%;
    border-color: var(--color-primary);
}
}


.gf-illust-slide {
.gf-switcher-overlay {
     display: none;
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 20;
     display: flex;
     flex-direction: column;
     flex-direction: column;
    gap: 6px;
   
    max-height: calc(100% - 60px);
}
.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;
     align-items: center;
     width: 100%;
     justify-content: center;
    color: var(--color-base);
    flex-shrink: 0;
    align-self: flex-start;
}
}


.gf-illust-slide img {
.gf-switcher-toggle:hover {
     width: 100%;
     background: var(--background-color-interactive, var(--color-surface-4));
    max-width: 270px;
    height: auto;
    display: block;
}
}


/* ── 核心机制:radio :checked 控制哪张立绘显示 ──
.gf-switcher-toggle::before {
  结构:.gf-illust-switcher > [radio × N] + .gf-illust-slides > .gf-slide-N
     content: "≡";
  radio 是 .gf-illust-slides 的前兄弟,~ 可以找到它,再用后代选择器定位 .gf-slide-N */
.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;
     font-weight: bold;
    border-bottom: 2px solid var(--color-progressive, #3366cc);
}
}


/* ── 立绘说明 ── */
.gf-switcher-list {
.gf-illust-caption {
     display: flex;
     width: 100%;
     flex-direction: column;
     text-align: center;
     gap: 3px;
     font-size: 0.85em;
     overflow-y: auto;
     color: var(--color-subtle, #54595d);
     touch-action: pan-y;              
     padding: 4px 6px;
     transition: opacity 0.2s;
     background: var(--background-color-neutral-subtle, #f8f9fa);
     padding-bottom: 4px;
     border-top: 1px solid var(--border-color-subtle, #eaecf0);
     max-height: 380px;                
     box-sizing: border-box;
}
}


/* ── 切换标签栏 ── */
.gf-switcher-overlay.collapsed .gf-switcher-list {
.gf-illust-tabs {
     opacity: 0;
     display: flex;
     pointer-events: none;
    flex-wrap: wrap;
     border-top: 1px solid var(--border-color-subtle, #c8ccd1);
    background: var(--background-color-neutral-subtle, #f8f9fa);
}
}


.gf-illust-tab {
.gf-group-btn {
     flex: 1 1 0;
     background: rgba(0, 0, 0, 0.75) !important;
     min-width: 0;
     border: 1px solid rgba(255, 255, 255, 0.6) !important;
     padding: 5px 4px;
     color: #fff !important;
     font-size: 0.82em;
     border-radius: 4px;
     text-align: center;
     padding: 5px 10px;
     cursor: pointer;
     cursor: pointer;
     border-right: 1px solid var(--border-color-subtle, #c8ccd1);
     font-size: 12px;
     color: var(--color-base, #202122);
    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;
     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 {
.gf-group-btn:hover {
     border-right: none;
    background: rgba(50, 50, 50, 0.85) !important;
     border-color: #fff !important;
}
}


.gf-illust-tab:hover {
.gf-group-btn.active {
     background: var(--background-color-interactive-subtle-hover, #eaecf0);
     border-color: #ff8c00 !important;
    box-shadow: 0 0 5px rgba(255,140,0,0.5), 0 2px 4px rgba(0,0,0,0.25);
}
}


/* ── 单张立绘(兼容旧 image 参数)── */
.gf-variant-list {
.gf-illust-single {
    width: 100%;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     gap: 2px;
    padding-left: 10px;
    opacity: 1;
    transition: opacity 0.15s ease;
}
}


.gf-illust-single img {
.gf-variant-list.collapsed {
    width: 100%;
     display: none;
    max-width: 270px;
    height: auto;
     display: block;
}
}


/* ── 无立绘占位 ── */
.gf-switch-btn {
.gf-illust-missing {
     background: rgba(0, 0, 0, 0.65) !important;
     width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
     padding: 24px 12px;
    color: #ddd !important;
     text-align: center;
    border-radius: 3px;
     color: var(--color-subtle, #54595d);
     padding: 3px 8px;
     font-size: 0.9em;
    cursor: pointer;
     line-height: 1.7;
     font-size: 11px;
     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;
}
}


/* ── 右侧信息区 ── */
.gf-switch-btn::before {
.gf-infobox-right {
     content: "·  ";
     flex: 1 1 0;
     opacity: 0.6;
     min-width: 0;
    display: flex;
    flex-direction: column;
}
}


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


/* ── 信息表格 ── */
.gf-switch-btn.active {
.gf-info-table {
     background: rgba(20, 20, 20, 0.8) !important;
     width: 100%;
     border-color: #ff8c00 !important;
     border-collapse: collapse;
     border-width: 1px !important;     
     background: var(--background-color-base, #ffffff);
    color: #fff !important;
     margin: 0;
     font-weight: normal !important;  
     table-layout: auto;
     box-shadow: 0 0 4px rgba(255,140,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
}
}


.gf-info-table th {
.gf-switch-btn.active::before {
    background: var(--background-color-neutral-subtle, #f8f9fa);
     content: "▶  ";
    color: var(--color-base, #202122);
     opacity: 1;
     text-align: left;
     color: #ff8c00;
     padding: 5px 8px;
     white-space: nowrap;
    border-bottom: 1px solid var(--border-color-subtle, #eaecf0);
    font-weight: bold;
    font-size: 0.9em;
    width: 1px;
    vertical-align: top;
}
}


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


.gf-info-table tr:last-child th,
.gf-info-table,
.gf-info-table tr:last-child td {
.gf-bottom-table {
     border-bottom: none;
    width: 100%;
     border-collapse: collapse;
    margin: 0 !important;
}
}


.gf-info-table a {
.gf-header-row {
     color: var(--color-link, #3366cc);
     background: var(--color-surface-2) !important;
     text-decoration: none;
    padding: 10px !important;
     text-align: center !important;
    font-weight: bold;
    color: var(--color-base);
}
}


.gf-info-table a:hover {
.gf-label {
     text-decoration: underline;
    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-section-header {
.gf-info-table td,
     text-align: center !important;
.gf-bottom-table td {
     background: var(--background-color-neutral-subtle, #f8f9fa) !important;
     padding: 8px 12px;
     width: auto !important;
     border-bottom: 1px solid var(--border-color-subtle);
    white-space: normal !important;
     color: var(--color-base);
    border-top: 1px solid var(--border-color-subtle, #c8ccd1);
}
}


.gf-related {
.gf-bottom-section {
     vertical-align: top !important;
     margin-top: 15px;
     word-break: break-word !important;
    border: 1px solid var(--border-color-subtle);
     border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-0);
}
}


/* ── 响应式:窄屏改为上下布局 ── */
@media screen and (max-width: 768px) {
@media screen and (max-width: 800px) {
     .gf-infobox-new {
     .gf-infobox-wrap {
        float: none;
        width: 100%;
         flex-direction: column;
         flex-direction: column;
        margin: 1em 0;
     }
     }


     .gf-infobox-left {
     .gf-left-panel {
         flex: none;
         flex: none;
         width: 100%;
         width: 100%;
         border-right: none;
         border-right: none;
         border-bottom: 1px solid var(--border-color-subtle, #c8ccd1);
         border-bottom: 1px solid var(--border-color-subtle);
     }
     }


     .gf-illust-slide img,
     .gf-image-container {
    .gf-illust-single img {
        height: 65vw;
         max-width: 100%;
        min-height: 300px;
        align-items: center;
         padding: 10px;
     }
     }


     .gf-infobox-right {
   
         width: 100%;
     .gf-group-btn {
         padding: 7px 12px;
        font-size: 13px;
     }
     }


     .gf-info-table th,
     .gf-switch-btn {
    .gf-info-table td {
         padding: 5px 10px;
         padding: 8px 10px;
         font-size: 12px;
         font-size: 1em;
     }
     }
}
}

2026年5月16日 (六) 15:07的版本

.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 70%;
    border-right: 1px solid var(--border-color-subtle);
    position: relative;
    overflow: hidden;
    background-image: url('/wiki/Special:FilePath/图鉴背景.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.gf-image-container {
    height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 10px 0 10px;
    cursor: default;
    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 {
    transition: opacity 0.3s ease;
}

.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 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, border-color 0.2s;
}

.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-bg-selector {
    position: absolute;
    right: 50px;
    bottom: 12px;
    width: 150px;
    height: 32px;
    z-index: 10;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 4px;
    background-color: var(--color-surface-3);
    border: 1px solid var(--border-color-subtle);
    color: var(--color-base);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.gf-bg-selector:focus {
    outline: none;
    border-color: var(--color-primary);
}

.gf-switcher-overlay {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    
    max-height: calc(100% - 60px);
}

.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);
    flex-shrink: 0;
    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: 3px;
    overflow-y: auto;
    touch-action: pan-y;               
    transition: opacity 0.2s;
    padding-bottom: 4px;
    max-height: 380px;                 
}

.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: 12px;
    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;
}

.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;
    gap: 2px;
    padding-left: 10px;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.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: 11px;
    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;
}

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

    .gf-image-container {
        height: 65vw;
        min-height: 300px;
        align-items: center;
        padding: 10px;
    }

    
    .gf-group-btn {
        padding: 7px 12px;
        font-size: 13px;
    }

    .gf-switch-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}