Files
NiceQuote/assets/manage.css

599 lines
12 KiB
CSS
Raw Normal View History

/*
* NiceQuote 2.3 后台「引用管理」页
*
* 全部 nq-adm- 前缀,只在面板页加载;弹窗部分复用 admin.css 的 .nq-mask / .nq-modal,
* 所以要保证本文件在 admin.css 之后引入。
*/
.nq-adm {
--na-bg: #fff;
--na-fg: #1f2328;
--na-muted: #6b7280;
--na-line: #e6e8eb;
--na-soft: #f7f8fa;
--na-accent: var(--nq-ui-accent, #467b96);
--na-danger: #c0392b;
--na-ok: #1a7f47;
width: 100%;
box-sizing: border-box;
color: var(--na-fg);
font-size: 14px;
line-height: 1.6;
}
.nq-adm *,
.nq-adm *::before,
.nq-adm *::after {
box-sizing: border-box;
}
/* ---------- 标题与提示 ---------- */
/* 页面标题直接用后台自带的 .typecho-page-title(含顶部 25px 间距),
不再另造副标题层级 */
.nq-adm .typecho-page-title {
width: auto;
}
.nq-adm-flash {
margin: 0 0 16px;
padding: 10px 14px;
border: 1px solid transparent;
border-radius: 8px;
font-size: 13px;
}
.nq-adm-flash.is-ok {
border-color: rgba(26, 127, 71, .3);
background: rgba(26, 127, 71, .08);
color: var(--na-ok);
}
.nq-adm-flash.is-warn {
border-color: rgba(180, 120, 0, .3);
background: rgba(180, 120, 0, .08);
color: #a06a00;
}
.nq-adm-flash.is-err {
border-color: rgba(192, 57, 43, .3);
background: rgba(192, 57, 43, .08);
color: var(--na-danger);
}
/* ---------- 统计卡 ---------- */
.nq-adm-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 16px;
}
/* 文字与数值统一居中 */
.nq-adm-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 16px 14px;
border: 1px solid var(--na-line);
border-radius: 10px;
background: var(--na-bg);
text-align: center;
}
.nq-adm-card.is-warn {
border-color: rgba(192, 57, 43, .35);
background: rgba(192, 57, 43, .04);
}
.nq-adm-card-label {
color: var(--na-muted);
font-size: 12px;
letter-spacing: .02em;
}
.nq-adm-card-value {
font-size: 26px;
font-weight: 600;
line-height: 1.25;
letter-spacing: -.01em;
}
.nq-adm-card-foot {
color: var(--na-muted);
font-size: 12px;
}
.nq-adm-card-foot a {
color: var(--na-danger);
text-decoration: none;
border-bottom: 1px dashed currentColor;
}
/* ---------- 分布 / Top ---------- */
.nq-adm-panels {
display: grid;
grid-template-columns: 1.15fr 1fr;
gap: 12px;
margin-bottom: 16px;
}
.nq-adm-panel {
padding: 14px 16px;
border: 1px solid var(--na-line);
border-radius: 10px;
background: var(--na-bg);
}
.nq-adm-panel h3 {
margin: 0 0 10px;
font-size: 13px;
font-weight: 600;
}
.nq-adm-bars {
margin: 0;
padding: 0;
list-style: none;
}
.nq-adm-bars li + li {
margin-top: 6px;
}
.nq-adm-bars a {
display: flex;
align-items: center;
gap: 10px;
color: inherit;
text-decoration: none;
}
.nq-adm-bar-name {
flex: 0 0 76px;
color: var(--na-muted);
font-size: 12px;
}
.nq-adm-bar-track {
flex: 1 1 auto;
height: 7px;
border-radius: 4px;
background: var(--na-soft);
overflow: hidden;
}
.nq-adm-bar-fill {
display: block;
height: 100%;
border-radius: 4px;
background: var(--na-accent);
opacity: .75;
}
.nq-adm-bars a:hover .nq-adm-bar-fill {
opacity: 1;
}
.nq-adm-bar-num {
flex: 0 0 34px;
text-align: right;
font-size: 12px;
font-variant-numeric: tabular-nums;
}
.nq-adm-top {
margin: 0;
padding: 0;
list-style: none;
}
.nq-adm-top li {
display: flex;
align-items: center;
gap: 8px;
padding: 5px 0;
font-size: 13px;
}
.nq-adm-top li + li {
border-top: 1px dashed var(--na-line);
}
.nq-adm-top-title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.nq-adm-top-num {
flex: 0 0 auto;
color: var(--na-muted);
font-size: 12px;
font-variant-numeric: tabular-nums;
}
/* ---------- 明细卡片 ---------- */
.nq-adm-box {
border: 1px solid var(--na-line);
border-radius: 10px;
background: var(--na-bg);
overflow: hidden;
}
.nq-adm-box-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
padding: 13px 16px;
border-bottom: 1px solid var(--na-line);
background: var(--na-soft);
}
.nq-adm-box-head strong {
font-size: 14px;
font-weight: 600;
}
.nq-adm-box-head span {
color: var(--na-muted);
font-size: 12px;
}
/* ---------- 工具条 ---------- */
/* 筛选栏整体居中:表单铺满一行,里面的控件在行内居中 */
.nq-adm-toolbar {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
padding: 12px 16px;
border-bottom: 1px solid var(--na-line);
}
.nq-adm-filter {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
flex: 1 1 auto;
min-width: 0;
flex-wrap: wrap;
}
.nq-adm-input {
height: 32px;
padding: 0 10px;
border: 1px solid var(--na-line);
border-radius: 7px;
background: var(--na-bg);
color: inherit;
font-size: 13px;
outline: none;
}
.nq-adm-input:focus {
border-color: var(--na-accent);
}
.nq-adm-search {
flex: 0 1 260px;
min-width: 140px;
}
.nq-adm-btn {
display: inline-flex;
align-items: center;
height: 32px;
padding: 0 14px;
border: 1px solid var(--na-line);
border-radius: 7px;
background: var(--na-bg);
color: var(--na-fg);
font-size: 13px;
text-decoration: none;
cursor: pointer;
}
.nq-adm-btn:hover {
border-color: #c8ced6;
}
.nq-adm-btn.is-primary {
border-color: var(--na-accent);
background: var(--na-accent);
color: #fff;
}
.nq-adm-btn.is-plain {
background: transparent;
color: var(--na-muted);
}
.nq-adm-btn.is-danger {
border-color: rgba(192, 57, 43, .4);
color: var(--na-danger);
}
.nq-adm-btn.is-danger:hover {
border-color: var(--na-danger);
background: rgba(192, 57, 43, .06);
}
/* ---------- 表格 ---------- */
.nq-adm-tablewrap {
background: var(--na-bg);
overflow-x: auto;
}
.nq-adm-table {
width: 100%;
min-width: 720px;
border-collapse: collapse;
font-size: 13px;
}
.nq-adm-table th {
padding: 9px 12px;
border-bottom: 1px solid var(--na-line);
background: var(--na-soft);
color: var(--na-muted);
font-size: 12px;
font-weight: 500;
text-align: left;
white-space: nowrap;
}
.nq-adm-table td {
padding: 10px 12px;
border-bottom: 1px solid var(--na-line);
vertical-align: middle;
}
.nq-adm-table tbody tr:last-child td {
border-bottom: 0;
}
.nq-adm-table tbody tr:hover {
background: rgba(127, 127, 127, .045);
}
.nq-adm-table tbody tr.is-missing {
background: rgba(192, 57, 43, .035);
}
/* 序号和表头同一套对齐方式:都靠左 */
.nq-col-no {
width: 48px;
color: var(--na-muted);
font-variant-numeric: tabular-nums;
text-align: left;
}
.nq-col-arrow {
width: 22px;
color: #c2c8d0;
text-align: center;
}
.nq-col-state {
width: 66px;
}
.nq-col-act {
width: 96px;
white-space: nowrap;
text-align: right;
}
.nq-adm-host {
display: block;
max-width: 320px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--na-fg);
font-weight: 500;
text-decoration: none;
}
/* 能点的地方给一条淡淡的虚线,鼠标划过才变成实线 + 主色 */
a.nq-adm-host {
text-decoration: underline dotted;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
text-decoration-color: rgba(127, 127, 127, .45);
}
a.nq-adm-host:hover {
color: var(--na-accent);
text-decoration-style: solid;
text-decoration-color: currentColor;
}
.nq-adm-meta {
display: block;
margin-top: 1px;
color: var(--na-muted);
font-size: 12px;
white-space: nowrap;
}
.nq-adm-meta em {
font-style: normal;
color: #a06a00;
}
.nq-adm-target {
display: inline-block;
max-width: 240px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: bottom;
}
/* 被引用内容:有前台页面就是链接(新窗口),没有就退化成纯文字 */
a.nq-adm-target {
color: var(--na-fg);
text-decoration: underline dotted;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
text-decoration-color: rgba(127, 127, 127, .45);
}
a.nq-adm-target:hover {
color: var(--na-accent);
text-decoration-style: solid;
text-decoration-color: currentColor;
}
span.nq-adm-target {
color: var(--na-fg);
}
/* 引用位置也是纯文字时的形态,和链接保持同一套排版 */
span.nq-adm-host {
color: var(--na-fg);
}
.nq-adm-code {
display: inline-block;
margin-left: 6px;
padding: 1px 5px;
border-radius: 4px;
background: var(--na-soft);
color: var(--na-muted);
font-family: Consolas, Monaco, monospace;
font-size: 11px;
}
.nq-adm-badge {
display: inline-block;
margin-right: 6px;
padding: 0 6px;
border-radius: 4px;
background: rgba(127, 127, 127, .12);
color: var(--na-muted);
font-size: 11px;
line-height: 18px;
white-space: nowrap;
}
.nq-adm-badge.is-post,
.nq-adm-badge.is-page {
background: rgba(70, 123, 150, .14);
color: #3b6a83;
}
.nq-adm-badge.is-comment {
background: rgba(150, 110, 70, .14);
color: #8a6239;
}
.nq-adm-badge.is-user {
background: rgba(90, 130, 90, .14);
color: #4a7048;
}
.nq-adm-badge.is-category,
.nq-adm-badge.is-tag {
background: rgba(120, 100, 160, .14);
color: #5f4d85;
}
.nq-adm-badge.is-url {
background: rgba(70, 150, 120, .14);
color: #3d7f68;
}
.nq-adm-state {
font-size: 12px;
}
.nq-adm-state.is-ok {
color: var(--na-ok);
}
.nq-adm-state.is-err {
color: var(--na-danger);
}
.nq-adm-link {
padding: 0;
border: 0;
background: none;
color: var(--na-accent);
font-size: 13px;
cursor: pointer;
}
.nq-adm-link:hover {
text-decoration: underline;
}
.nq-adm-link.is-danger {
margin-left: 10px;
color: var(--na-danger);
}
/* 外部链接也走文章编辑页,这里只留一个可点击的入口 */
.nq-adm .nq-adm-link.nq-goto {
padding: 0;
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
color: var(--na-accent);
text-decoration: none;
}
.nq-adm .nq-adm-link.nq-goto:hover {
color: var(--na-accent);
text-decoration: underline;
}
.nq-adm-inline {
display: inline;
margin: 0;
}
/* NewAdmin 会给后台所有 a 上色、加内边距和圆角,这里的文字链接要还原成纯文本 */
.nq-adm .nq-adm-host,
.nq-adm .nq-adm-bars a {
padding: 0;
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
}
/* 按钮型的链接要把颜色守住:.newadmin a 的特异性比单个类高 */
.nq-adm a.nq-adm-btn {
color: var(--na-fg);
}
.nq-adm a.nq-adm-btn.is-primary {
color: #fff;
}
.nq-adm a.nq-adm-btn.is-plain {
color: var(--na-muted);
}
.nq-adm a.nq-adm-btn.is-danger {
color: var(--na-danger);
}
/* ---------- 空状态与分页 ---------- */
.nq-adm-empty {
margin: 0;
color: var(--na-muted);
font-size: 13px;
}
.nq-adm-empty-big {
padding: 56px 20px;
border: 0;
text-align: center;
}
/* 分页沿用后台自带的 ul.typecho-pager(文章/评论/邮件管理同款),
这里只补一条分隔线、左侧的条数说明,以及深色下的底色 */
.nq-adm-pagerbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
padding: 12px 16px 14px;
border-top: 1px solid var(--na-line);
}
.nq-adm-pagerbar .typecho-pager {
margin: 0 0 0 auto;
}
.nq-adm-pagerbar .typecho-pager li a {
color: var(--na-fg);
}
.nq-adm-pagerbar .typecho-pager li.current a {
background: rgba(127, 127, 127, .18);
color: var(--na-fg);
font-weight: 600;
}
.nq-adm-pagerbar .typecho-pager li a:hover {
background: rgba(127, 127, 127, .13);
color: var(--na-fg);
text-decoration: none;
}
.nq-adm-pager-info {
color: var(--na-muted);
font-size: 13px;
}
/* ---------- 深色 ---------- */
html.dark .nq-adm,
body.dark .nq-adm,
#newadmin.dark .nq-adm,
.nq-adm.nq-dark {
--na-bg: #1f2937;
--na-fg: #e5e7eb;
--na-muted: #94a3b8;
--na-line: rgba(255, 255, 255, .1);
--na-soft: rgba(255, 255, 255, .05);
--na-danger: #f28b82;
--na-ok: #6ee7a8;
}
html.dark .nq-adm .nq-adm-badge.is-post,
html.dark .nq-adm .nq-adm-badge.is-page,
body.dark .nq-adm .nq-adm-badge.is-post,
body.dark .nq-adm .nq-adm-badge.is-page,
#newadmin.dark .nq-adm .nq-adm-badge.is-post,
#newadmin.dark .nq-adm .nq-adm-badge.is-page,
.nq-adm.nq-dark .nq-adm-badge.is-post,
.nq-adm.nq-dark .nq-adm-badge.is-page {
background: rgba(106, 169, 196, .18);
color: #9ecbdd;
}
html.dark .nq-adm .nq-adm-code,
body.dark .nq-adm .nq-adm-code,
#newadmin.dark .nq-adm .nq-adm-code,
.nq-adm.nq-dark .nq-adm-code {
background: rgba(255, 255, 255, .06);
}
/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
.nq-adm-panels {
grid-template-columns: 1fr;
}
}
@media (max-width: 640px) {
.nq-adm-stats {
grid-template-columns: 1fr;
}
.nq-adm-host,
.nq-adm-target {
max-width: 160px;
}
.nq-col-arrow {
display: none;
}
.nq-adm-table th,
.nq-adm-table td {
padding: 8px;
}
}