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

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

模板页面
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
第1行: 第1行:
/* --- 基础容器 --- */
.gfl-nav-compact {
.gfl-nav-compact {
     margin: 0.5em 0;
     margin: 0.5em 0;
第16行: 第17行:
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
    flex-shrink: 0;
}
}


第45行: 第47行:
     z-index: 1000;
     z-index: 1000;
     box-sizing: border-box;
     box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
}


第52行: 第55行:
}
}


/* --- 暴力清除星号核心区 --- */
/* --- 终极星号歼灭区 --- */


.gfl-links-wrap ul,
/* 1. 彻底清除 ul 容器的默认缩进和标识 */
.gfl-links-wrap ul {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important; /* 清除某些皮肤用的背景图星号 */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
 
/* 2. 彻底清除 li 的所有装饰 */
.gfl-links-wrap li {
.gfl-links-wrap li {
    display: flex !important; /* 强制改变显示模式,使其不再是 list-item */
     list-style: none !important;
     list-style: none !important;
     list-style-type: none !important;
     background: none !important; /* 清除背景图形式的星号 */
    list-style-image: none !important;
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
    display: inline !important;
}
}


/* 针对某些皮肤使用伪元素渲染星号的情况 */
/* 3. 拦截所有可能的伪元素星号 */
.gfl-links-wrap li::before,
.gfl-links-wrap li::before,
.gfl-links-wrap li::after,
.gfl-links-wrap li::marker {
.gfl-links-wrap li::marker {
     content: "" !important;
     content: none !important;
     display: none !important;
     display: none !important;
    width: 0 !important;
    height: 0 !important;
}
}


.gfl-links-wrap {
/* --- 链接标签化 --- */
    line-height: 2.2;
    white-space: normal;
    text-align: left;
}
 
/* 链接美化为卡片标签 */
.gfl-links-wrap a {
.gfl-links-wrap a {
     display: inline-block;
     display: inline-block;
     padding: 2px 10px;
     padding: 4px 12px;
     margin: 2px 4px;
     margin: 3px;
     background-color: var(--background-color-interactive-subtle, rgba(0,0,0,0.05));
     background-color: var(--background-color-interactive-subtle, rgba(0,0,0,0.05));
     color: var(--color-base, inherit) !important;
     color: var(--color-base, inherit) !important;
第88行: 第99行:
     border: 1px solid var(--border-color-base, #ccc);
     border: 1px solid var(--border-color-base, #ccc);
     transition: all 0.2s;
     transition: all 0.2s;
    line-height: 1.2;
}
}


第96行: 第108行:
}
}


/* 移动端适配 */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .gfl-item {
     .gfl-item {

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

/* --- 基础容器 --- */
.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;
    flex-shrink: 0;
}

.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;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* --- 终极星号歼灭区 --- */

/* 1. 彻底清除 ul 容器的默认缩进和标识 */
.gfl-links-wrap ul {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important; /* 清除某些皮肤用的背景图星号 */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. 彻底清除 li 的所有装饰 */
.gfl-links-wrap li {
    display: flex !important; /* 强制改变显示模式,使其不再是 list-item */
    list-style: none !important;
    background: none !important; /* 清除背景图形式的星号 */
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. 拦截所有可能的伪元素星号 */
.gfl-links-wrap li::before,
.gfl-links-wrap li::after,
.gfl-links-wrap li::marker {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* --- 链接标签化 --- */
.gfl-links-wrap a {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px;
    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;
    line-height: 1.2;
}

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