跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
1
条目
2
文件
8
用户
591
编辑
ANACHRONISM
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
打开/关闭外观设置菜单
无法加载外观设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
请求账号
查看“︁模板:标识符/styles.css”︁的源代码
来自ANACHRONISM
查看
阅读
查看源代码
查看历史
相关页面
模板
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
←
模板:标识符/styles.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
旅人
您可以查看和复制此页面的源代码。
/* ============================================ 标识符通用样式 ============================================ */ .identifier { display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; position: relative; /* 供四角绝对定位 */ width: 100%; padding: 14px 24px; /* 内边距加大,给角字符留空间 */ gap: 12px; font-size: 1rem; line-height: 1.4; border-radius: 4px; margin: 6px 0; } /* ===== 四角符号 ===== */ .identifier__corner { position: absolute; font-size: 1.5em; line-height: 1; font-weight: 300; color: currentColor; opacity: 0.55; /* 等宽字体让四个角形状更规整 */ font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace; /* 稍微拉长纵向,视觉上更"框住" */ transform: scaleY(1.25); transform-origin: center; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); } .identifier__corner--tl { top: 3px; left: 6px; } .identifier__corner--tr { top: 3px; right: 6px; } .identifier__corner--bl { bottom: 3px; left: 6px; } .identifier__corner--br { bottom: 3px; right: 6px; } /* ===== 左侧:标识符名称 ===== */ .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; padding: 12px 20px; } .identifier__right { justify-content: flex-start; text-align: left; } }
返回
模板:标识符/styles.css
。
查看“︁模板:标识符/styles.css”︁的源代码
来自ANACHRONISM