Full-project rename. `git grep -i aksrt` is now empty apart from the
DBMigrator 3.3.0 changelog note that documents the rename itself.
Code identifiers
- PHP namespace AKSRT\ -> Jio\ (composer PSR-4 + 378 declarations)
- global constants AKSRT_* -> JIO_* (VERSION/DIR/URI, PAY_TYPE_*, CAPTCHA_*)
- procedural functions, hooks, options, meta keys, table names,
cookies, query vars, ajax actions and nonces: aksrt_ -> jio_
- text domain aksrt -> jio; Theme Name -> Jio
- JS globals: aksrtData/aksrtAdminData/... -> jioData/jioAdminData/...,
window.AKSRTCaptcha & friends -> window.JioCaptcha, Aksrt* -> Jio*
- Vue components Aks*.vue -> Jio*.vue (15 files renamed + imports)
- CSS classes/data-attrs/custom properties: aksrt- -> jio-
- REST namespace aksrt/v1 -> jio/v1 (incl. payment gateway callbacks)
Storage layer
- DB tables {prefix}aksrt_* -> {prefix}jio_*; SCHEMA_VERSION 3.2.0 -> 3.3.0
so dbDelta creates the new names on install
- widget id_base aksrt_widget_* -> jio_widget_*
- uninstall.php drop list rebuilt from the actual migrator tables
(dropped 3 stale entries, added the 17 missing ones)
Removed
- hardcoded https://api.aksrt.com/version.json default update endpoint;
get_endpoint() now reads the 「更新端点」 setting and do_check() no-ops
when it is empty
Files renamed: inc/helpers/aksrt-*.php -> jio-*.php (54),
assets/admin/src/components/form/Aks*.vue -> Jio*.vue (15).
Build artifacts regenerated: assets/css/build, assets/js/runtime,
assets/admin/build.
Verified: audit-psr4-paths errors=0, audit-admin-contracts errors=0
(warnings=56, unchanged baseline), 813/813 widget-system tests,
44/44 phpunit, php -l clean across all PHP.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
698 lines
20 KiB
CSS
698 lines
20 KiB
CSS
/* User center ticket (工单) center
|
|
*
|
|
* 结构:面板(统计筛选卡 / 搜索栏 / 工单卡片 / 分页) + 两个运行时弹窗
|
|
* (详情对话时间线、新建表单)。颜色一律走主题 token,状态色由行内
|
|
* --jio-ticket-color 驱动,深色主题无需额外覆盖。
|
|
*/
|
|
|
|
.jio-tickets-page,
|
|
.jio-ticket-modal {
|
|
--tickets-ink: var(--color-ink, #1d2738);
|
|
--tickets-ink-2: var(--color-ink-2, #4e5358);
|
|
--tickets-muted: var(--color-ink-3, #758096);
|
|
--tickets-line: color-mix(in srgb, var(--color-ink, #1d2738) 10%, transparent);
|
|
--tickets-soft: color-mix(in srgb, var(--color-ink, #1d2738) 4%, transparent);
|
|
--tickets-primary: var(--color-primary, #3b82f6);
|
|
--tickets-danger: var(--color-error, #ef4444);
|
|
--tickets-radius: 12px;
|
|
color: var(--tickets-ink);
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 头部
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.uc-tickets-panel__head {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 20px;
|
|
align-items: end;
|
|
padding: 4px 0 20px;
|
|
}
|
|
|
|
.jio-tickets-page__eyebrow {
|
|
margin: 0 0 7px;
|
|
color: var(--tickets-primary);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .14em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.uc-tickets-panel__title { display: flex; align-items: center; gap: 9px; font-size: 21px; }
|
|
.uc-tickets-panel__title-icon { color: var(--tickets-primary); font-size: 17px; }
|
|
.uc-tickets-panel__title-wrap > p:last-child { margin-bottom: 0; }
|
|
.jio-tickets-page__create .fa { font-size: 12px; }
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 统计卡(兼作状态快捷筛选)
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.jio-tickets-page__stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.jio-tickets-page__stat {
|
|
--jio-ticket-color: var(--tickets-primary);
|
|
display: grid;
|
|
gap: 6px;
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--tickets-line);
|
|
border-radius: var(--tickets-radius);
|
|
background: var(--surface-1, #fff);
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
|
|
}
|
|
|
|
.jio-tickets-page__stat:hover {
|
|
border-color: color-mix(in srgb, var(--jio-ticket-color) 45%, transparent);
|
|
}
|
|
|
|
.jio-tickets-page__stat:focus-visible {
|
|
outline: 2px solid var(--jio-ticket-color);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.jio-tickets-page__stat.is-active {
|
|
border-color: var(--jio-ticket-color);
|
|
background: color-mix(in srgb, var(--jio-ticket-color) 7%, var(--surface-1, #fff));
|
|
box-shadow: 0 0 0 1px var(--jio-ticket-color) inset;
|
|
}
|
|
|
|
.jio-tickets-page__stat span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
overflow: hidden;
|
|
color: var(--tickets-muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.jio-tickets-page__stat strong {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.jio-tickets-page__stat.is-active strong { color: var(--jio-ticket-color); }
|
|
|
|
.jio-tickets-page__stat-dot {
|
|
flex: 0 0 auto;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--jio-ticket-color);
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 搜索 / 筛选
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.jio-tickets-page__search {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.jio-tickets-page__search-box {
|
|
position: relative;
|
|
display: block;
|
|
flex: 1 1 220px;
|
|
margin: 0;
|
|
}
|
|
|
|
.jio-tickets-page__search-box > .fa {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 12px;
|
|
color: var(--tickets-muted);
|
|
font-size: 13px;
|
|
transform: translateY(-50%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.jio-tickets-page__search input,
|
|
.jio-tickets-page__search select {
|
|
height: 36px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--tickets-line);
|
|
border-radius: 9px;
|
|
background: var(--surface-1, #fff);
|
|
color: inherit;
|
|
font-size: 13px;
|
|
transition: border-color .15s ease, box-shadow .15s ease;
|
|
}
|
|
|
|
.jio-tickets-page__search input { width: 100%; padding-left: 34px; }
|
|
.jio-tickets-page__search select { flex: 0 0 auto; max-width: 160px; cursor: pointer; }
|
|
|
|
.jio-tickets-page__search input:focus,
|
|
.jio-tickets-page__search select:focus {
|
|
border-color: var(--tickets-primary);
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--tickets-primary) 16%, transparent);
|
|
}
|
|
|
|
.jio-tickets-page__reset {
|
|
padding: 0 4px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--tickets-primary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.jio-tickets-page__reset:hover { text-decoration: underline; }
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 工单卡片
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.jio-tickets-page__list {
|
|
display: grid;
|
|
gap: 10px;
|
|
transition: opacity .15s ease;
|
|
}
|
|
|
|
.jio-tickets-page__list.is-busy { opacity: .55; pointer-events: none; }
|
|
.jio-tickets-page__list > .post_ajax_loader.is-loading { display: grid; gap: 10px; }
|
|
|
|
.jio-tickets-page__card {
|
|
--jio-ticket-color: #6b7280;
|
|
position: relative;
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 14px 44px 14px 18px;
|
|
border: 1px solid var(--tickets-line);
|
|
border-radius: var(--tickets-radius);
|
|
background: var(--surface-1, #fff);
|
|
overflow: hidden;
|
|
transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
|
|
}
|
|
|
|
/* 左侧状态色条:一眼区分工单状态。 */
|
|
.jio-tickets-page__card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 3px;
|
|
background: var(--jio-ticket-color);
|
|
}
|
|
|
|
.jio-tickets-page__card:not(.is-placeholder):hover {
|
|
border-color: color-mix(in srgb, var(--jio-ticket-color) 40%, transparent);
|
|
box-shadow: 0 6px 18px rgb(15 23 42 / 6%);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.jio-tickets-page__card:focus-within {
|
|
border-color: var(--tickets-primary);
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--tickets-primary) 16%, transparent);
|
|
}
|
|
|
|
.jio-tickets-page__card.is-closed .jio-tickets-page__card-title { color: var(--tickets-muted); }
|
|
|
|
.jio-tickets-page__card.is-placeholder { padding-right: 18px; }
|
|
.jio-tickets-page__card.is-placeholder::before { background: var(--tickets-line); }
|
|
|
|
.jio-tickets-page__card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
|
|
|
|
.jio-tickets-page__card-num {
|
|
color: var(--tickets-muted);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.jio-tickets-page__card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
|
|
|
|
/* 标题按钮的 ::after 铺满整卡:整张卡可点,键盘只聚焦一次。 */
|
|
.jio-tickets-page__card-title button {
|
|
display: -webkit-box;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.jio-tickets-page__card-title button::after { content: ''; position: absolute; inset: 0; }
|
|
.jio-tickets-page__card-title button:focus-visible { outline: none; }
|
|
|
|
.jio-tickets-page__card-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px 16px;
|
|
color: var(--tickets-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.jio-tickets-page__card-meta span { display: inline-flex; align-items: center; gap: 5px; }
|
|
.jio-tickets-page__card-meta .fa { font-size: 11px; opacity: .75; }
|
|
|
|
.jio-tickets-page__card-arrow {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 18px;
|
|
color: var(--tickets-muted);
|
|
font-size: 12px;
|
|
transform: translateY(-50%);
|
|
transition: transform .15s ease, color .15s ease;
|
|
}
|
|
|
|
.jio-tickets-page__card:hover .jio-tickets-page__card-arrow {
|
|
color: var(--jio-ticket-color);
|
|
transform: translate(3px, -50%);
|
|
}
|
|
|
|
/* 状态徽章:前台列表 / 详情 / 后台 SPA 预览同构。 */
|
|
.jio-ticket-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 2px 10px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--jio-ticket-color, #6b7280) 13%, transparent);
|
|
color: var(--jio-ticket-color, #6b7280);
|
|
font-size: 12px;
|
|
font-weight: 650;
|
|
line-height: 1.6;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.jio-ticket-badge::before {
|
|
content: '';
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 空态 / 错误态
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.jio-tickets-page__empty {
|
|
display: grid;
|
|
gap: 8px;
|
|
justify-items: center;
|
|
padding: 44px 16px;
|
|
border: 1px dashed var(--tickets-line);
|
|
border-radius: var(--tickets-radius);
|
|
text-align: center;
|
|
}
|
|
|
|
.jio-ticket-modal .jio-tickets-page__empty { border: 0; padding: 28px 8px; }
|
|
|
|
.jio-tickets-page__empty-icon {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
margin-bottom: 4px;
|
|
border-radius: 50%;
|
|
background: color-mix(in srgb, var(--tickets-primary) 10%, transparent);
|
|
color: var(--tickets-primary);
|
|
font-size: 22px;
|
|
}
|
|
|
|
.jio-tickets-page__empty h3 { margin: 0; font-size: 15px; }
|
|
.jio-tickets-page__empty p { margin: 0 0 6px; color: var(--tickets-muted); font-size: 13px; }
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 分页
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.jio-tickets-page__pagination {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.jio-tickets-page__page-chip {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
min-width: 34px;
|
|
height: 34px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--tickets-line);
|
|
border-radius: 9px;
|
|
background: var(--surface-1, #fff);
|
|
color: inherit;
|
|
font-size: 13px;
|
|
font-variant-numeric: tabular-nums;
|
|
cursor: pointer;
|
|
transition: border-color .15s ease, color .15s ease;
|
|
}
|
|
|
|
.jio-tickets-page__page-chip:hover:not(:disabled):not(.is-active) {
|
|
border-color: var(--tickets-primary);
|
|
color: var(--tickets-primary);
|
|
}
|
|
|
|
.jio-tickets-page__page-chip.is-active {
|
|
border-color: transparent;
|
|
background: var(--tickets-primary);
|
|
color: var(--color-on-primary, #fff);
|
|
cursor: default;
|
|
}
|
|
|
|
.jio-tickets-page__page-chip:disabled { opacity: .4; cursor: not-allowed; }
|
|
.jio-tickets-page__page-chip.is-step .fa { font-size: 11px; }
|
|
.jio-tickets-page__page-gap { padding: 0 2px; color: var(--tickets-muted); }
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 弹窗壳
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.jio-ticket-detail-modal:not(.jio-modal-runtime--bottom) .jio-modal-runtime__dialog {
|
|
width: min(620px, calc(100vw - 32px));
|
|
}
|
|
|
|
.jio-ticket-create-modal:not(.jio-modal-runtime--bottom) .jio-modal-runtime__dialog {
|
|
width: min(540px, calc(100vw - 32px));
|
|
}
|
|
|
|
.jio-ticket-modal .jio-modal-runtime__title { font-size: 16px; font-weight: 700; }
|
|
|
|
/* 详情:对话框定高且自身不滚动 —— 概要吸顶、时间线是唯一滚动区、回复框吸底。 */
|
|
.jio-ticket-detail-modal .jio-modal-runtime__dialog {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: min(88vh, 720px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.jio-ticket-detail-modal.jio-modal-runtime--bottom .jio-modal-runtime__dialog { height: 90vh; }
|
|
.jio-ticket-detail-modal .jio-modal-runtime__header { flex: 0 0 auto; padding-bottom: 12px; }
|
|
|
|
.jio-ticket-detail-modal .jio-modal-runtime__content {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 加载骨架 / 错误态不走三段布局,补回内边距。 */
|
|
.jio-ticket-detail-modal .jio-modal-runtime__content > :not(.jio-ticket-detail) { margin: 18px; }
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 详情:吸顶概要条 + 对话时间线
|
|
* ------------------------------------------------------------------ */
|
|
|
|
.jio-ticket-detail {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
/* 概要条默认收起;展开的要素面板浮在时间线之上,不推动对话。 */
|
|
.jio-ticket-detail__summary {
|
|
position: relative;
|
|
z-index: 2;
|
|
flex: 0 0 auto;
|
|
margin: 0 18px;
|
|
border: 1px solid var(--tickets-line);
|
|
border-radius: 10px;
|
|
background: var(--surface-1, #fff);
|
|
box-shadow: inset 3px 0 0 var(--jio-ticket-color, var(--tickets-primary));
|
|
}
|
|
|
|
.jio-ticket-detail__toggle {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 9px 12px 9px 14px;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: background-color .15s ease;
|
|
}
|
|
|
|
.jio-ticket-detail__toggle:hover { background: var(--tickets-soft); }
|
|
.jio-ticket-detail__toggle:focus-visible { outline: 2px solid var(--tickets-primary); outline-offset: -2px; }
|
|
|
|
.jio-ticket-detail__title {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.jio-ticket-detail__toggle-text {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
gap: 4px;
|
|
align-items: center;
|
|
color: var(--tickets-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.jio-ticket-detail__toggle-text .fa { font-size: 10px; transition: transform .2s ease; }
|
|
.jio-ticket-detail__summary.is-open .jio-ticket-detail__toggle-text .fa { transform: rotate(180deg); }
|
|
|
|
.jio-ticket-detail__more {
|
|
position: absolute;
|
|
top: calc(100% + 6px);
|
|
right: 0;
|
|
left: 0;
|
|
display: grid;
|
|
gap: 12px;
|
|
max-height: min(50vh, 360px);
|
|
padding: 14px 16px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--tickets-line);
|
|
border-radius: 10px;
|
|
background: var(--surface-1, #fff);
|
|
box-shadow: 0 12px 32px rgb(15 18 28 / 14%);
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.jio-ticket-detail__more[hidden] { display: none; }
|
|
.jio-ticket-detail__full-title { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.5; word-break: break-word; }
|
|
|
|
.jio-ticket-detail__facts {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
|
gap: 8px 16px;
|
|
margin: 0;
|
|
}
|
|
|
|
.jio-ticket-detail__facts > div { min-width: 0; }
|
|
.jio-ticket-detail__facts dt { margin: 0 0 2px; color: var(--tickets-muted); font-size: 11px; }
|
|
.jio-ticket-detail__facts dd { margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* 唯一滚动区:细滚动条,仅悬停时加深。 */
|
|
.jio-ticket-thread {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
min-height: 0;
|
|
margin: 0;
|
|
padding: 16px 18px;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
list-style: none;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: color-mix(in srgb, var(--tickets-ink) 16%, transparent) transparent;
|
|
}
|
|
|
|
.jio-ticket-thread:focus-visible { outline: 2px solid var(--tickets-primary); outline-offset: -2px; }
|
|
.jio-ticket-thread::-webkit-scrollbar { width: 6px; }
|
|
.jio-ticket-thread::-webkit-scrollbar-track { background: transparent; }
|
|
|
|
.jio-ticket-thread::-webkit-scrollbar-thumb {
|
|
border-radius: 3px;
|
|
background: color-mix(in srgb, var(--tickets-ink) 16%, transparent);
|
|
}
|
|
|
|
.jio-ticket-thread:hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--tickets-ink) 28%, transparent); }
|
|
|
|
/* 用户消息靠右(主色气泡),客服消息靠左(中性气泡)。 */
|
|
.jio-ticket-msg { display: flex; gap: 10px; align-items: flex-start; }
|
|
.jio-ticket-msg.is-user { flex-direction: row-reverse; }
|
|
|
|
/* 系统记录(如催单):居中灰色提示条。 */
|
|
.jio-ticket-msg.is-system { justify-content: center; }
|
|
.jio-ticket-msg__system {
|
|
display: inline-flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding: 3px 12px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--tickets-ink) 6%, transparent);
|
|
color: var(--tickets-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.jio-ticket-msg__avatar {
|
|
display: inline-grid;
|
|
flex: 0 0 32px;
|
|
place-items: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: color-mix(in srgb, var(--tickets-primary) 14%, transparent);
|
|
color: var(--tickets-primary);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.jio-ticket-msg.is-admin .jio-ticket-msg__avatar {
|
|
background: color-mix(in srgb, var(--color-success, #10b981) 15%, transparent);
|
|
color: var(--color-success, #10b981);
|
|
}
|
|
|
|
.jio-ticket-msg__main { display: grid; gap: 5px; max-width: min(82%, 460px); min-width: 0; }
|
|
.jio-ticket-msg.is-user .jio-ticket-msg__main { justify-items: end; }
|
|
|
|
.jio-ticket-msg__head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.jio-ticket-msg.is-user .jio-ticket-msg__head { flex-direction: row-reverse; }
|
|
.jio-ticket-msg__head time { color: var(--tickets-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
|
|
.jio-ticket-msg__tag {
|
|
padding: 0 6px;
|
|
border-radius: 4px;
|
|
background: var(--tickets-soft);
|
|
color: var(--tickets-muted);
|
|
font-size: 11px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.jio-ticket-msg__bubble {
|
|
display: grid;
|
|
gap: 8px;
|
|
max-width: 100%;
|
|
padding: 10px 13px;
|
|
border-radius: 4px 12px 12px 12px;
|
|
background: var(--tickets-soft);
|
|
border: 1px solid var(--tickets-line);
|
|
}
|
|
|
|
.jio-ticket-msg.is-user .jio-ticket-msg__bubble {
|
|
border-color: color-mix(in srgb, var(--tickets-primary) 22%, transparent);
|
|
border-radius: 12px 4px 12px 12px;
|
|
background: color-mix(in srgb, var(--tickets-primary) 9%, var(--surface-1, #fff));
|
|
}
|
|
|
|
.jio-ticket-msg__body {
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.jio-ticket-msg__quote {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--tickets-muted);
|
|
font-size: 12px;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
transition: opacity .15s ease, color .15s ease;
|
|
}
|
|
|
|
.jio-ticket-msg:hover .jio-ticket-msg__quote,
|
|
.jio-ticket-msg__quote:focus-visible { opacity: 1; }
|
|
.jio-ticket-msg__quote:hover { color: var(--tickets-primary); }
|
|
|
|
@media (hover: none) {
|
|
.jio-ticket-msg__quote { opacity: 1; }
|
|
}
|
|
|
|
.jio-ticket-quote {
|
|
display: grid;
|
|
gap: 2px;
|
|
margin: 0;
|
|
padding: 6px 10px;
|
|
border-left: 3px solid color-mix(in srgb, var(--tickets-ink) 18%, transparent);
|
|
border-radius: 0 6px 6px 0;
|
|
background: color-mix(in srgb, var(--tickets-ink) 4%, transparent);
|
|
color: var(--tickets-muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.jio-ticket-quote strong { color: var(--tickets-ink-2); font-weight: 600; }
|
|
.jio-ticket-quote span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
.jio-ticket-quote.is-deleted span { font-style: italic; }
|
|
|
|
.jio-ticket-attachments { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
|
|
.jio-ticket-attachment {
|
|
display: block;
|
|
width: 72px;
|
|
height: 72px;
|
|
border: 1px solid var(--tickets-line);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.jio-ticket-attachment img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
|
|
.jio-ticket-attachment:hover img { transform: scale(1.05); }
|
|
|
|
/* ------------------------------------------------------------------ *
|
|
* 窄屏
|
|
* ------------------------------------------------------------------ */
|
|
|
|
@media (max-width: 640px) {
|
|
.uc-tickets-panel__head { grid-template-columns: 1fr; align-items: start; gap: 14px; }
|
|
.jio-tickets-page__create { justify-self: start; }
|
|
.jio-tickets-page__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
|
|
.jio-tickets-page__stat { padding: 10px 12px; }
|
|
.jio-tickets-page__stat strong { font-size: 17px; }
|
|
.jio-tickets-page__search select { flex: 1 1 calc(50% - 4px); max-width: none; }
|
|
.jio-tickets-page__card { padding-right: 36px; }
|
|
.jio-tickets-page__card-arrow { right: 14px; }
|
|
.jio-ticket-msg__main { max-width: calc(100% - 42px); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.jio-tickets-page *,
|
|
.jio-ticket-modal * { transition: none !important; animation-duration: .01ms !important; }
|
|
}
|