Align A2 IM preview with character-only frames (B-style H1, fullwidth table lines), refine shell/titlebar styling, and document the theme rules. Co-authored-by: Cursor <cursoragent@cursor.com>
236 lines
4.0 KiB
SCSS
236 lines
4.0 KiB
SCSS
.insertModal {
|
|
:global(.ant-modal-content) {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 32px rgba(26, 35, 48, 0.12);
|
|
}
|
|
|
|
:global(.ant-modal-header) {
|
|
padding: 16px 20px 10px;
|
|
border-bottom: 1px solid rgba(26, 35, 48, 0.08);
|
|
}
|
|
|
|
:global(.ant-modal-title) {
|
|
text-align: center;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
color: #1a2330;
|
|
}
|
|
|
|
:global(.ant-modal-body) {
|
|
padding: 12px 20px 8px;
|
|
}
|
|
|
|
:global(.ant-modal-footer) {
|
|
padding: 12px 20px 16px;
|
|
border-top: 1px solid rgba(26, 35, 48, 0.06);
|
|
}
|
|
}
|
|
|
|
.insertBody {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
padding: 4px 0 2px;
|
|
}
|
|
|
|
.dimRow {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 28px;
|
|
}
|
|
|
|
.dimField {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: #1a2330;
|
|
|
|
:global(.ant-input-number) {
|
|
width: 88px;
|
|
}
|
|
}
|
|
|
|
.gridPreview {
|
|
display: grid;
|
|
gap: 6px;
|
|
padding: 14px;
|
|
border-radius: 10px;
|
|
background: linear-gradient(180deg, #f7fafb 0%, #eef3f5 100%);
|
|
border: 1px solid rgba(26, 35, 48, 0.08);
|
|
min-height: 120px;
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.gridCell {
|
|
aspect-ratio: 1.6 / 1;
|
|
min-height: 22px;
|
|
border-radius: 4px;
|
|
border: 1px solid rgba(13, 148, 136, 0.28);
|
|
background: rgba(255, 255, 255, 0.9);
|
|
transition: border-color 140ms ease, background 140ms ease;
|
|
}
|
|
|
|
.hint {
|
|
margin: 0;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.editModal {
|
|
:global(.ant-modal-content) {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 32px rgba(26, 35, 48, 0.12);
|
|
}
|
|
|
|
:global(.ant-modal-header) {
|
|
padding: 16px 20px 10px;
|
|
border-bottom: 1px solid rgba(26, 35, 48, 0.08);
|
|
}
|
|
|
|
:global(.ant-modal-title) {
|
|
font-weight: 600;
|
|
color: #1a2330;
|
|
}
|
|
|
|
:global(.ant-modal-body) {
|
|
padding: 12px 20px 8px;
|
|
}
|
|
|
|
:global(.ant-modal-footer) {
|
|
padding: 12px 20px 16px;
|
|
border-top: 1px solid rgba(26, 35, 48, 0.06);
|
|
}
|
|
}
|
|
|
|
.editToolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.toolGroup {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolLabel {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.editScroll {
|
|
overflow: auto;
|
|
max-height: min(52vh, 420px);
|
|
border: 1px solid rgba(26, 35, 48, 0.09);
|
|
border-radius: 10px;
|
|
background: #fbfcfd;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.editTable {
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
width: max-content;
|
|
min-width: 100%;
|
|
|
|
th,
|
|
td {
|
|
padding: 8px;
|
|
border-bottom: 1px solid rgba(26, 35, 48, 0.08);
|
|
border-right: 1px solid rgba(26, 35, 48, 0.06);
|
|
vertical-align: top;
|
|
min-width: 120px;
|
|
}
|
|
|
|
th {
|
|
background: rgba(13, 148, 136, 0.08);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.colHandle {
|
|
appearance: none;
|
|
border: none;
|
|
background: transparent;
|
|
color: #0f766e;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
padding: 0 0 6px;
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
transition: color 140ms ease;
|
|
|
|
&:hover {
|
|
color: #0d9488;
|
|
}
|
|
}
|
|
|
|
.colHandleActive {
|
|
color: #0d9488;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
.colActions,
|
|
.rowActions {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.rowActions {
|
|
min-width: 64px;
|
|
border-right: none !important;
|
|
background: transparent;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.iconBtn {
|
|
appearance: none;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
border: 1px solid rgba(26, 35, 48, 0.12);
|
|
background: #fff;
|
|
color: #64748b;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
display: inline-grid;
|
|
place-items: center;
|
|
transition:
|
|
color 140ms ease,
|
|
border-color 140ms ease,
|
|
background 140ms ease;
|
|
|
|
&:hover:not(:disabled) {
|
|
color: #0f766e;
|
|
border-color: rgba(13, 148, 136, 0.4);
|
|
background: rgba(13, 148, 136, 0.06);
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|