跳转到内容
打开/关闭菜单
  • 1 条目
  • 2 文件
  • 8 用户
  • 591 编辑
ANACHRONISM
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:标识符/styles.css

来自ANACHRONISM
Ancimen​(留言 | 贡献)2026年9月29日 (二) 17:39的版本 (创建页面,内容为“→============================================ 标识符通用样式 ============================================:​ .identifier { display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; width: 100%; padding: 8px 12px; gap: 12px; font-size: 1rem; line-height: 1.4; border-radius: 4px; margin: 6px 0; } .identifier__left { font-weight: 800; flex: 0 1 auto; min-widt…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
/* ============================================
   标识符通用样式
   ============================================ */

.identifier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    padding: 8px 12px;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: 4px;
    margin: 6px 0;
}

.identifier__left {
    font-weight: 800;
    flex: 0 1 auto;
    min-width: 0;
}

.identifier__left a {
    color: inherit;
    text-decoration: none;
}

.identifier__left a:hover {
    text-decoration: underline;
}

.identifier__right {
    font-size: 0.6em;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    justify-content: flex-end;
    text-align: right;
    min-width: 0;
}

.identifier__author {
    font-size: 1.8em;
    font-weight: bold;
    white-space: nowrap;
}

.identifier__author a {
    color: inherit;
    text-decoration: none;
}

.identifier__author a:hover {
    text-decoration: underline;
}

/* 窄屏:改为两行 */
@media (max-width: 700px) {
    .identifier {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .identifier__right {
        justify-content: flex-start;
        text-align: left;
    }
}

/* 夜间模式:作者链接颜色跟随正文,不再额外处理 */