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

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

模板页面
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
第21行: 第21行:
     flex: 1;
     flex: 1;
     min-width: 80px;
     min-width: 80px;
     outline: none; /* 必须保留,用于接收焦点 */
     outline: none;
}
}


第47行: 第47行:
}
}


/* 仅使用 hover 和 focus 两个最基础的选择器 */
.gfl-item:hover .gfl-content,
.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
.gfl-item:focus .gfl-content {
第53行: 第52行:
}
}


.gfl-item:hover .gfl-title,
/* --- 暴力清除星号核心区 --- */
.gfl-item:focus .gfl-title {
    border-bottom-color: var(--color-primary, #3366ff);
    color: var(--color-primary, #3366ff);
}


/* 彻底清除 Wiki 列表的星号和缩进 */
.gfl-links-wrap ul,
.gfl-links-wrap ul,
.gfl-links-wrap li {
.gfl-links-wrap li {
    list-style: none !important;
     list-style-type: none !important;
     list-style-type: none !important;
     list-style-image: none !important;
     list-style-image: none !important;
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
     display: inline !important; /* 让列表项排成一排 */
     display: inline !important;
}
 
/* 针对某些皮肤使用伪元素渲染星号的情况 */
.gfl-links-wrap li::before,
.gfl-links-wrap li::marker {
    content: "" !important;
    display: none !important;
}
}


.gfl-links-wrap {
.gfl-links-wrap {
     line-height: 2.5; /* 增加行高,防止上下链接太挤 */
     line-height: 2.2;
     white-space: normal; /* 允许换行 */
     white-space: normal;
    text-align: left;
}
}


/* 将链接美化为小标签 */
/* 链接美化为卡片标签 */
.gfl-links-wrap a {
.gfl-links-wrap a {
     display: inline-block;
     display: inline-block;
第84行: 第87行:
     border-radius: 2px;
     border-radius: 2px;
     border: 1px solid var(--border-color-base, #ccc);
     border: 1px solid var(--border-color-base, #ccc);
    transition: all 0.2s;
}
}


.gfl-links-wrap a:hover {
.gfl-links-wrap a:hover {
     border-color: var(--color-primary, #3366ff);
     border-color: var(--color-primary, #3366ff);
    color: var(--color-primary, #3366ff) !important;
     background-color: var(--background-color-primary-subtle, rgba(51,102,255,0.1));
     background-color: var(--background-color-primary-subtle, rgba(51,102,255,0.1));
}
}
第97行: 第102行:
     }
     }
     .gfl-logo-box { width: 100%; justify-content: center; }
     .gfl-logo-box { width: 100%; justify-content: center; }
   
    .gfl-content {
        /* 移动端弹出层宽度自适应容器 */
        width: 100%;
    }
}
}

2026年5月7日 (四) 07:05的版本

.gfl-nav-compact {
    margin: 0.5em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    position: relative;
    color: var(--color-base, inherit);
}

.gfl-logo-box {
    padding: 6px 12px;
    background-color: var(--color-primary, #3366ff);
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
}

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

.gfl-title {
    display: block;
    padding: 8px 4px;
    background-color: var(--background-color-neutral-subtle, rgba(0,0,0,0.05));
    border-bottom: 2px solid var(--border-color-base, #ccc);
    text-align: center;
    cursor: pointer;
}

.gfl-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--background-color-base, #fff);
    border: 1px solid var(--color-primary, #3366ff);
    padding: 12px;
    z-index: 1000;
    box-sizing: border-box;
}

.gfl-item:hover .gfl-content,
.gfl-item:focus .gfl-content {
    display: block;
}

/* --- 暴力清除星号核心区 --- */

.gfl-links-wrap ul,
.gfl-links-wrap li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

/* 针对某些皮肤使用伪元素渲染星号的情况 */
.gfl-links-wrap li::before,
.gfl-links-wrap li::marker {
    content: "" !important;
    display: none !important;
}

.gfl-links-wrap {
    line-height: 2.2;
    white-space: normal;
    text-align: left;
}

/* 链接美化为卡片标签 */
.gfl-links-wrap a {
    display: inline-block;
    padding: 2px 10px;
    margin: 2px 4px;
    background-color: var(--background-color-interactive-subtle, rgba(0,0,0,0.05));
    color: var(--color-base, inherit) !important;
    text-decoration: none !important;
    border-radius: 2px;
    border: 1px solid var(--border-color-base, #ccc);
    transition: all 0.2s;
}

.gfl-links-wrap a:hover {
    border-color: var(--color-primary, #3366ff);
    color: var(--color-primary, #3366ff) !important;
    background-color: var(--background-color-primary-subtle, rgba(51,102,255,0.1));
}

@media (max-width: 768px) {
    .gfl-item {
        flex: none;
        width: calc(33.33% - 4px);
    }
    .gfl-logo-box { width: 100%; justify-content: center; }
}