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

Template:少女前线/styles.css:修订间差异

模板页面
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
第36行: 第36行:
     font-size: 13px;
     font-size: 13px;
     color: var(--color-base, #202122);
     color: var(--color-base, #202122);
     transition: all 0.2s;
    border-bottom: 2px solid transparent;
     transition: color 0.2s, background-color 0.2s;
}
}


第48行: 第49行:
     display: grid;
     display: grid;
     grid-template-rows: 0fr;
     grid-template-rows: 0fr;
     transition: grid-template-rows 0.2s;
     transition: grid-template-rows 0.3s ease;
     position: absolute;
     position: absolute;
     top: 100%;
     top: 100%;
第55行: 第56行:
     background-color: var(--background-color-base, #fff) !important;
     background-color: var(--background-color-base, #fff) !important;
     border: 1px solid #E6A23C;
     border: 1px solid #E6A23C;
    border-top: none;
     z-index: 1000;
     z-index: 1000;
     overflow: hidden;
     overflow: hidden;
    visibility: hidden;
}
}


第63行: 第64行:
.gfl-item:focus .gfl-content {
.gfl-item:focus .gfl-content {
     grid-template-rows: 1fr;
     grid-template-rows: 1fr;
    visibility: visible;
}
}


第70行: 第70行:
     flex-direction: column;
     flex-direction: column;
     padding: 6px;
     padding: 6px;
    min-height: 0;
}
}


第102行: 第103行:
     }
     }


     .gfl-item:nth-child(3n),
     .gfl-item:nth-child(3n) {
    .gfl-item:last-child {
         border-right: none;
         border-right: none;
     }
     }
第114行: 第114行:
         padding: 14px 2px;
         padding: 14px 2px;
         font-weight: 500;
         font-weight: 500;
        border-bottom: none;
     }
     }


第124行: 第125行:
     }
     }
      
      
    /* 对应不同格子的弹出偏移 */
     .gfl-item:nth-child(3n-1) .gfl-content { left: -100%; }
     .gfl-item:nth-child(3n-1) .gfl-content { left: -100%; }
     .gfl-item:nth-child(3n) .gfl-content { left: -200%; }
     .gfl-item:nth-child(3n) .gfl-content { left: -200%; }
第131行: 第133行:
         grid-template-columns: 1fr 1fr;
         grid-template-columns: 1fr 1fr;
         gap: 4px;
         gap: 4px;
    }
   
    .gfl-links-wrap a {
        background-color: var(--background-color-neutral-subtle, #f8f9fa);
        border: 1px solid var(--border-color-base, #ccc);
     }
     }
}
}

2026年5月7日 (四) 08:44的版本

.gfl-nav-compact {
    margin: 1em 0;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    background-color: var(--background-color-neutral-subtle, #f8f9fa);
    border: 1px solid var(--border-color-base, #ccc);
    line-height: 1.5;
}

.gfl-logo-box {
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color-base, #ccc);
}

.gfl-logo-box img {
    max-height: 30px;
    width: auto;
}

.gfl-item {
    flex: 1;
    min-width: 80px;
    position: relative;
    outline: none;
}

.gfl-title {
    display: block;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-base, #202122);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, background-color 0.2s;
}

.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
    color: #E6A23C;
    background-color: var(--background-color-interactive-subtle, #eee);
}

.gfl-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-color-base, #fff) !important;
    border: 1px solid #E6A23C;
    border-top: none;
    z-index: 1000;
    overflow: hidden;
}

.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
    grid-template-rows: 1fr;
}

.gfl-links-wrap {
    display: flex;
    flex-direction: column;
    padding: 6px;
    min-height: 0;
}

.gfl-links-wrap a {
    display: block;
    padding: 8px;
    margin: 2px 0;
    font-size: 12px;
    text-align: center;
    background-color: var(--background-color-neutral-subtle, #f8f9fa);
    border: 1px solid var(--border-color-base, #ccc);
    color: var(--color-progressive, #3366ff) !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .gfl-logo-box {
        display: none;
    }

    .gfl-nav-compact {
        border: 1px solid var(--border-color-base, #ccc);
        background-color: transparent;
    }

    .gfl-item {
        flex: none;
        width: 33.33% !important;
        box-sizing: border-box;
        border-right: 1px solid var(--border-color-base, #ccc);
        border-bottom: 1px solid var(--border-color-base, #ccc);
    }

    .gfl-item:nth-child(3n) {
        border-right: none;
    }

    .gfl-item:nth-last-child(-n+3) {
        border-bottom: none;
    }

    .gfl-title {
        padding: 14px 2px;
        font-weight: 500;
        border-bottom: none;
    }

    .gfl-content {
        position: absolute;
        top: 100%;
        left: 0;
        width: 300%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    /* 对应不同格子的弹出偏移 */
    .gfl-item:nth-child(3n-1) .gfl-content { left: -100%; }
    .gfl-item:nth-child(3n) .gfl-content { left: -200%; }

    .gfl-links-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
}