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

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

模板页面
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
 
(未显示同一用户的51个中间版本)
第1行: 第1行:
.gfl-nav {
.gfl-nav-compact {
     border: 1px solid var(--border-color-base, #aaa);
     margin: 1em 0;
     background-color: var(--background-color-neutral-subtle, rgba(128, 128, 128, 0.1));
    display: flex;
     backdrop-filter: blur(4px);
    flex-wrap: wrap;
    padding: 10px;
    position: relative;
    font-size: 14px;
     background-color: var(--background-color-neutral-subtle, #f8f9fa);
    margin-bottom: 1em;
     border: 1px solid var(--border-color-base, #ccc);
    color: var(--color-base, inherit);
}
}
.gfl-header {
 
.gfl-logo-box {
    width: 50px;
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
     border-bottom: 2px solid var(--color-primary, #3366ff);
    justify-content: center;
    padding-bottom: 5px;
     border-right: 1px solid var(--border-color-base, #ccc);
    margin-bottom: 10px;
}
}
.gfl-menu {
 
     display: flex;
.gfl-logo-box img {
    flex-wrap: wrap;
     max-height: 24px;
     gap: 8px;
     width: auto;
}
}
.gfl-item {
.gfl-item {
    flex: 1;
    min-width: 60px;
     position: relative;
     position: relative;
     flex: 1;
     outline: none;
    min-width: 100px;
}
}
.gfl-title {
.gfl-title {
     display: block;
     display: block;
     padding: 8px;
     padding: 8px 4px;
    background: transparent;
    font-weight: bold;
     text-align: center;
     text-align: center;
     cursor: pointer;
     cursor: pointer;
     border: 1px solid var(--border-color-base, #ccc);
     font-size: 13px;
     transition: all 0.3s ease;
    color: var(--color-base, #202122);
    border-top: 2px solid transparent;
     transition: all 0.2s;
}
 
.gfl-item:hover .gfl-title,
.gfl-item:focus .gfl-title {
    color: #E6A23C;
    border-top-color: #E6A23C !important;
    background-color: var(--background-color-interactive-subtle, #eee);
}
}
.gfl-content {
.gfl-content {
    display: none;
     position: absolute;
     position: absolute;
     top: 100%;
     bottom: 100%;
     left: 50%;
     left: 0;
    transform: translateX(-50%);
     width: 100%;
     z-index: 100;
     background-color: var(--background-color-base, #fff) !important;
    min-width: 100%;
     border: 1px solid #E6A23C;
    width: max-content;
    border-bottom: none;
     background-color: var(--background-color-base, #fff);
    z-index: 1000;
     border: 1px solid var(--color-primary, #3366ff);
    overflow: hidden;
     box-shadow: 0 0 10px var(--color-primary, #3366ff);
     max-height: 0;
    padding: 5px 0;
    opacity: 0;
     margin-top: 2px;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
     pointer-events: none;
}
}
.gfl-item:hover .gfl-content {
 
     display: block;
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
     max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
}
}
.gfl-item:hover .gfl-title {
 
     color: var(--color-primary, #3366ff);
.gfl-links-wrap {
    border-color: var(--color-primary, #3366ff);
     display: flex;
     box-shadow: 0 0 8px var(--color-primary, #3366ff);
     flex-direction: column;
     background: transparent;
     padding: 4px;
}
}
.gfl-content ul, .gfl-content li {
 
    list-style: none !important;
.gfl-links-wrap a {
    margin: 0 !important;
    padding: 0 !important;
}
.gfl-content a {
     display: block;
     display: block;
     padding: 8px 15px;
     padding: 8px;
     color: var(--color-base, #202122) !important;
     margin: 1px 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;
     text-decoration: none !important;
    text-align: center;
}
}
.gfl-content a:hover {
 
    background-color: var(--background-color-primary-subtle, rgba(51, 102, 255, 0.1));
@media (max-width: 768px) {
     color: var(--color-primary, #3366ff) !important;
    .gfl-logo-box {
        display: none;
    }
 
    .gfl-item {
        flex: none;
        width: 33.33% !important;
        box-sizing: border-box;
        border-right: 1px solid var(--border-color-base, #ccc);
        border-top: 1px solid var(--border-color-base, #ccc);
        position: relative;
    }
 
    .gfl-nav-compact {
        border-top: none;
    }
 
    .gfl-item:nth-child(3n) {
        border-right: none;
    }
 
    .gfl-item:nth-child(-n+3) {
        border-top: none;
    }
 
    .gfl-title {
        padding: 10px 2px;
    }
 
    .gfl-content {
        width: 100%;
        bottom: 100%;
        left: 0;
        box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
     }
 
    .gfl-links-wrap a {
        text-align: center;
        padding: 10px 4px;
        margin-bottom: 2px;
    }
}
}

2026年5月8日 (五) 19:46的最新版本

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

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

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

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

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

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

.gfl-content {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-color-base, #fff) !important;
    border: 1px solid #E6A23C;
    border-bottom: none;
    z-index: 1000;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    pointer-events: none;
}

.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
}

.gfl-links-wrap {
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.gfl-links-wrap a {
    display: block;
    padding: 8px;
    margin: 1px 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-item {
        flex: none;
        width: 33.33% !important;
        box-sizing: border-box;
        border-right: 1px solid var(--border-color-base, #ccc);
        border-top: 1px solid var(--border-color-base, #ccc);
        position: relative; 
    }

    .gfl-nav-compact {
        border-top: none;
    }

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

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

    .gfl-title {
        padding: 10px 2px;
    }

    .gfl-content {
        width: 100%;
        bottom: 100%;
        left: 0;
        box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
    }

    .gfl-links-wrap a {
        text-align: center;
        padding: 10px 4px;
        margin-bottom: 2px;
    }
}