跳到正文
搜索
搜索
查看“︁模板:提示/styles.css”︁的源代码
阅读
查看历史
查看源代码
讨论
←
模板:提示/styles.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
/* 语义提示:正文与题头一组样式,类型只选择同源纸色和边线。 */ .nv-notice { box-sizing: border-box; position: relative; margin: 1.5em 0; padding: 14px 20px 14px 46px; border: 0; border-radius: 0; background: var(--nv-panel-rule-bg); color: var(--nv-ink); font-size: 15.5px; font-weight: 400; line-height: 1.85; } .nv-notice__title { display: flex; align-items: center; gap: 8px; margin-bottom: 0.35rem; color: var(--nv-notice-tone); font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: 0; } .nv-notice__body { font-size: 15.5px; line-height: 1.85; } .nv-notice__body > :last-child { margin-bottom: 0; } .nv-notice--example { background: var(--nv-panel-example-bg); } .nv-notice--note, .nv-notice--warning { background: var(--nv-panel-note-bg); } .nv-notice--danger { background: var(--nv-panel-warning-bg); } .nv-notice--brief { margin: 0.9rem 0; padding: 0.15rem 0 0.15rem 0.8rem; border-left: 1px solid var(--nv-hair); background: transparent; font-size: 15.5px; line-height: 1.8; } .nv-notice--brief .nv-notice__title { gap: 6px; margin-bottom: 0.15rem; color: var(--nv-ink-muted); font-size: 12px; line-height: 1.5; letter-spacing: 0.06em; } .nv-notice--brief .nv-notice__body, .nv-notice--brief .nv-notice__body p { margin: 0; font-size: 15.5px; line-height: 1.8; } @media (max-width: 720px) { .nv-notice { margin: 1.15rem 0; } .nv-notice--brief { margin: 0.9rem 0; } } /* 几何记号只由此模板生成;保留已有 warning=注意、danger=警告 的语义。 */ .nv-notice::before { content: ""; position: absolute; left: 20px; top: 23px; width: 10px; height: 10px; background: var(--nv-panel-rule-line); } .nv-notice b:first-child { color: var(--nv-notice-tone); letter-spacing: 0.06em; } .nv-notice--example::before { border-radius: 50%; background: var(--nv-panel-example-line); } .nv-notice--note::before, .nv-notice--warning::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 11px; background: var(--nv-panel-note-line); } .nv-notice--danger::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); width: 12px; height: 12px; top: 22px; background: var(--nv-panel-warning-line); } .nv-notice--brief::before { content: none; }
返回
模板:提示/styles.css
。