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

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

来自OGAS数据中枢
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
 
(未显示同一用户的14个中间版本)
第12行: 第12行:


.gf-left-panel {
.gf-left-panel {
     flex: 0 0 65%;
     flex: 0 0 70%;
     border-right: 1px solid var(--border-color-subtle);
     border-right: 1px solid var(--border-color-subtle);
     position: relative;
     position: relative;
     overflow: hidden;
     overflow: hidden;
     background-image: url('/wiki/Special:FilePath/图鉴背景.png');
     background-image: url('/wiki/Special:FilePath/图鉴背景.jpg');
     background-size: cover;
     background-size: cover;
     background-position: center bottom;
     background-position: center bottom;
第28行: 第28行:
     justify-content: center;
     justify-content: center;
     padding: 10px 10px 0 10px;
     padding: 10px 10px 0 10px;
     cursor: pointer;
     cursor: default;
     position: relative;
     position: relative;
}
}


.gf-main-img, .gf-main-img a, .gf-main-img img {
.gf-main-img,
.gf-main-img a,
.gf-main-img img {
     max-width: 100% !important;
     max-width: 100% !important;
     max-height: 100% !important;
     max-height: 100% !important;
第43行: 第45行:


.gf-image-container img {
.gf-image-container img {
    transform: scale(1.0);
     transition: opacity 0.3s ease;
     transition: transform 0.3s ease, opacity 0.3s ease;
}
 
.gf-image-container:hover img {
    transform: scale(1.02);
}
}


第55行: 第52行:
}
}


.gf-view-original, .gf-change-bg-btn {
.gf-view-original {
     position: absolute;
     position: absolute;
     right: 12px;
     right: 12px;
    bottom: 12px;
     width: 32px;
     width: 32px;
     height: 32px;
     height: 32px;
第66行: 第64行:
     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 d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-position: center;
     background-position: center;
第72行: 第71行:
}
}


.gf-view-original {
.gf-view-original:hover {
    bottom: 12px;
    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");
}
 
.gf-change-bg-btn {
    bottom: 52px;
    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='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3Ccircle filter='drop-shadow(1px 1px 1px white)' cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
 
.gf-view-original:hover, .gf-change-bg-btn:hover {
     background-color: var(--color-primary);
     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");
     transform: scale(1.1);
     transform: scale(1.1);
}
}


.gf-view-original:hover {
.gf-bg-selector {
    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");
}
 
.gf-change-bg-btn:hover {
    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='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
 
.gf-bg-popover {
     position: absolute;
     position: absolute;
     right: 52px;
     right: 50px;
     bottom: 52px;
     bottom: 12px;
     background: var(--color-surface-3);
     width: 150px;
     border: 1px solid var(--border-color-subtle);
     height: 32px;
    border-radius: 8px;
     z-index: 10;
    padding: 8px;
     padding: 0 8px;
    display: none;
     font-size: 13px;
    grid-template-columns: repeat(3, 1fr);
     border-radius: 4px;
    gap: 6px;
     background-color: var(--color-surface-3);
     z-index: 30;
     box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    width: 280px;
}
 
.gf-bg-popover.active {
    display: grid;
}
 
.gf-bg-item {
     font-size: 11px;
     padding: 6px 4px;
    text-align: center;
     background: var(--background-color-interactive-subtle, var(--color-surface-2));
     border: 1px solid var(--border-color-subtle);
     border: 1px solid var(--border-color-subtle);
     color: var(--color-base);
     color: var(--color-base);
     border-radius: 4px;
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
     cursor: pointer;
     cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s;
}
}


.gf-bg-item:hover {
.gf-bg-selector:focus {
     background: var(--background-color-interactive, var(--color-surface-4));
     outline: none;
    border-color: var(--color-primary);
}
}


第144行: 第107行:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 8px;
     gap: 6px;
   
    max-height: calc(100% - 60px);
}
}


第158行: 第123行:
     justify-content: center;
     justify-content: center;
     color: var(--color-base);
     color: var(--color-base);
    flex-shrink: 0;
     align-self: flex-start;
     align-self: flex-start;
}
}
第173行: 第139行:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 4px;
     gap: 3px;
     transition: 0.2s opacity;
    overflow-y: auto;
    touch-action: pan-y;              
     transition: opacity 0.2s;
    padding-bottom: 4px;
    max-height: 380px;               
}
}


第182行: 第152行:
}
}


.gf-switch-btn {  
.gf-group-btn {
     background: var(--background-color-interactive-subtle, var(--color-surface-2));  
     background: rgba(0, 0, 0, 0.75) !important;
     border: 1px solid var(--border-color-subtle);  
     border: 1px solid rgba(255, 255, 255, 0.6) !important;
     border-radius: 4px;  
    color: #fff !important;
     padding: 4px 10px;  
     border-radius: 4px;
     cursor: pointer;  
     padding: 5px 10px;
     cursor: pointer;
     font-size: 12px;
     font-size: 12px;
     color: var(--color-base);
     font-weight: bold;
     transition: background-color 0.2s, color 0.2s;
    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 {
.gf-switch-btn:hover {
     background: var(--background-color-interactive, var(--color-surface-3));
     background: rgba(40, 40, 40, 0.8) !important;
    border-color: #fff !important;
    color: #fff !important;
}
}


.gf-switch-btn.active {
.gf-switch-btn.active {
     background: var(--color-primary);
     background: rgba(20, 20, 20, 0.8) !important;
     border-color: var(--color-primary);
    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;
}
}


第207行: 第235行:
}
}


.gf-info-table, .gf-bottom-table {
.gf-info-table,
.gf-bottom-table {
     width: 100%;
     width: 100%;
     border-collapse: collapse;
     border-collapse: collapse;
     margin: 0 !important;
     margin: 0 !important;
}
.gf-template-box, .gf-infobox-new {
    clear: both;
}
}


第225行: 第250行:
}
}


.gf-label {  
.gf-label {
     background: var(--color-surface-2);  
     background: var(--color-surface-2);
     padding: 8px 10px;  
     padding: 8px 10px;
     font-weight: bold;  
     font-weight: bold;
     width: 1px;
     width: 1px;
     white-space: nowrap;
     white-space: nowrap;
     border-bottom: 1px solid var(--border-color-subtle);  
     border-bottom: 1px solid var(--border-color-subtle);
     border-right: 1px solid var(--border-color-subtle);
     border-right: 1px solid var(--border-color-subtle);
     color: var(--color-base);
     color: var(--color-base);
}
}


.gf-info-table td, .gf-bottom-table td {  
.gf-info-table td,
     padding: 8px 12px;  
.gf-bottom-table td {
     padding: 8px 12px;
     border-bottom: 1px solid var(--border-color-subtle);
     border-bottom: 1px solid var(--border-color-subtle);
     color: var(--color-base);
     color: var(--color-base);
}
}


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


@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
     .gf-infobox-new { flex-direction: column; }
     .gf-infobox-new {
     .gf-left-panel { flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--border-color-subtle); }
        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;
    }
}
}

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