1389 lines
26 KiB
CSS
1389 lines
26 KiB
CSS
.rules-test-page {
|
|
color: #17231f;
|
|
scroll-behavior: smooth;
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
}
|
|
|
|
.rules-test-page .ant-card {
|
|
scroll-margin-top: 100px;
|
|
}
|
|
|
|
.rules-test-page .tag.tag-sm {
|
|
min-height: 20px;
|
|
padding: 2px 8px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
.rules-test-page #fields,
|
|
.rules-test-page #sub-documents,
|
|
.rules-test-page #visual-elements,
|
|
.rules-test-page #rules {
|
|
scroll-margin-top: 152px;
|
|
}
|
|
|
|
.rules-test-page .section-anchor {
|
|
display: block;
|
|
height: 0;
|
|
scroll-margin-top: 152px;
|
|
}
|
|
|
|
|
|
.rules-test-page .page-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
overflow: visible;
|
|
}
|
|
|
|
.rules-test-page .rules-test-list-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
overflow: visible;
|
|
}
|
|
|
|
.rules-test-page .rules-list-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.rules-test-page .rules-list-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rules-test-page .rules-list-title h2 {
|
|
margin: 0;
|
|
color: #17231f;
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.rules-test-page .rules-list-total {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
min-height: 28px;
|
|
padding: 4px 12px;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #6b7b73;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.rules-test-page .rules-list-total i,
|
|
.rules-test-page .rules-list-total strong {
|
|
color: #00684a;
|
|
}
|
|
|
|
.rules-test-page .rules-list-total strong {
|
|
margin-left: 2px;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.rules-test-page .rules-test-filter-panel {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.rules-test-page .rules-test-filter-panel .filter-list {
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.rules-test-page .rules-test-filter-panel .filter-actions {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.rules-test-page .rules-test-hero {
|
|
border: 1px solid #dfe8e3;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 16px 18px;
|
|
box-shadow: 0 1px 2px rgba(19, 51, 38, 0.04);
|
|
}
|
|
|
|
.rules-test-page .hero-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.rules-test-page .hero-title h1 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 650;
|
|
color: #123d2e;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.rules-test-page .hero-title p {
|
|
margin: 5px 0 0;
|
|
max-width: 760px;
|
|
color: #60746b;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.rules-test-page .hero-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rules-test-page .filter-card,
|
|
.rules-test-page .filter-card .card-body {
|
|
position: relative;
|
|
z-index: 30;
|
|
overflow: visible;
|
|
}
|
|
|
|
.rules-test-page .filter-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
align-items: end;
|
|
}
|
|
|
|
.rules-test-page .filter-strip.compact {
|
|
grid-template-columns: minmax(160px, 220px) minmax(220px, 280px) minmax(260px, 1fr);
|
|
}
|
|
|
|
.rules-test-page .filter-field label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: #42534b;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .filter-field select,
|
|
.rules-test-page .filter-field input {
|
|
width: 100%;
|
|
height: 36px;
|
|
border: 1px solid #d5ded9;
|
|
border-radius: 6px;
|
|
padding: 0 10px;
|
|
background: #fff;
|
|
color: #20352c;
|
|
}
|
|
|
|
.rules-test-page .rules-test-table .ant-table th {
|
|
background: #f4f8f6;
|
|
color: #415249;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rules-test-page .rules-test-table td {
|
|
padding-top: 18px;
|
|
padding-bottom: 18px;
|
|
padding-right: 12px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.rules-test-page .rules-test-table td:nth-child(2),
|
|
.rules-test-page .rules-test-table td:nth-child(3),
|
|
.rules-test-page .rules-test-table td:nth-child(4),
|
|
.rules-test-page .rules-test-table td:nth-child(5),
|
|
.rules-test-page .rules-test-table td:nth-child(7) {
|
|
text-align: center !important;
|
|
}
|
|
|
|
.rules-test-page .rules-test-table th:nth-child(2),
|
|
.rules-test-page .rules-test-table th:nth-child(3),
|
|
.rules-test-page .rules-test-table th:nth-child(4),
|
|
.rules-test-page .rules-test-table th:nth-child(5),
|
|
.rules-test-page .rules-test-table th:nth-child(7) {
|
|
text-align: center !important;
|
|
}
|
|
|
|
.rules-test-page .rules-test-table .inline-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.rules-test-page .rule-name {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-height: 54px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.rules-test-page .rule-name strong {
|
|
color: #183c2f;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.rules-test-page .rule-name span {
|
|
color: #7b8882;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.rules-test-page .rule-check-type {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
min-height: 54px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.rules-test-page .rule-check-type span:last-child {
|
|
color: #718279;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.rules-test-page .rule-detail-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.rules-test-page .rule-description-block {
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
border: 1px solid #e2ebe6;
|
|
border-radius: 8px;
|
|
background: #fbfdfc;
|
|
}
|
|
|
|
.rules-test-page .rule-description-block.compact {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.rules-test-page .rule-description-block label,
|
|
.rules-test-page .logic-expression label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: #72827b;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.rules-test-page .rule-description-block p {
|
|
margin: 0;
|
|
color: #263b32;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.rules-test-page .rule-content-stack {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rules-test-page .logic-expression {
|
|
padding: 10px;
|
|
border: 1px solid #e3ece7;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.rules-test-page .logic-expression div {
|
|
color: #1d3c2f;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
}
|
|
|
|
.rules-test-page .rule-prompt-preview {
|
|
margin: 0;
|
|
max-height: 260px;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
padding: 12px;
|
|
border: 1px solid #e3ece7;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #22392f;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.rules-test-page .inline-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.rules-test-page .yaml-layout {
|
|
display: grid;
|
|
grid-template-columns: 280px minmax(0, 1fr);
|
|
gap: 14px;
|
|
}
|
|
|
|
.rules-test-page .yaml-layout-single {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
overflow: visible;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.rules-test-page .section-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rules-test-page .config-toolbar-card .card-body {
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.rules-test-page .config-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.rules-test-page .config-toolbar-title {
|
|
color: #173d2f;
|
|
font-size: 16px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.rules-test-page .config-toolbar-desc {
|
|
margin-top: 4px;
|
|
color: #66786f;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .config-toolbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.rules-test-page .draft-tip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
margin-top: 12px;
|
|
padding: 9px 10px;
|
|
border: 1px solid #cce8d7;
|
|
border-radius: 6px;
|
|
background: #f3fbf6;
|
|
color: #17613f;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .draft-tip.danger {
|
|
border-color: #f0c9c1;
|
|
background: #fff6f4;
|
|
color: #9f3f2d;
|
|
}
|
|
|
|
.rules-test-page .validation-card .card-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rules-test-page .validation-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: #4f6258;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .validation-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rules-test-page .validation-item {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(76px, auto) minmax(120px, 220px) minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border: 1px solid #e2ebe6;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.rules-test-page .validation-item.error {
|
|
border-color: #f2c8c8;
|
|
background: #fff8f8;
|
|
}
|
|
|
|
.rules-test-page .validation-item.warning {
|
|
border-color: #efd8a9;
|
|
background: #fffaf0;
|
|
}
|
|
|
|
.rules-test-page .validation-item strong {
|
|
color: #283d33;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rules-test-page .validation-item span {
|
|
color: #6a7d73;
|
|
}
|
|
|
|
.rules-test-page .validation-item p {
|
|
margin: 0;
|
|
color: #34483e;
|
|
}
|
|
|
|
.rules-test-page .config-section-tools {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.rules-test-page .config-section-tip {
|
|
color: #61756b;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .config-item-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rules-test-page .config-item-card {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 14px 16px;
|
|
border: 1px solid #dbe7e1;
|
|
border-radius: 8px;
|
|
background: #fbfdfc;
|
|
}
|
|
|
|
.rules-test-page .config-item-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rules-test-page .config-item-main strong {
|
|
color: #173d2f;
|
|
font-size: 14px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.rules-test-page .config-item-main span {
|
|
color: #63766d;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.rules-test-page .config-item-actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rules-test-page .rules-version-select {
|
|
min-width: 168px;
|
|
height: 32px;
|
|
padding: 0 10px;
|
|
border: 1px solid #d5ded9;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #20352c;
|
|
}
|
|
|
|
.rules-test-page .document-draft-fields {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rules-test-page .document-draft-field-row {
|
|
display: grid;
|
|
grid-template-columns: 120px 1.2fr 110px 1.4fr 72px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rules-test-page .document-draft-field-row input,
|
|
.rules-test-page .document-draft-field-row select {
|
|
width: 100%;
|
|
}
|
|
|
|
.rules-test-page .document-fields-card {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.rules-test-page .document-fields-inline {
|
|
position: sticky;
|
|
top: 132px;
|
|
z-index: 20;
|
|
padding: 14px;
|
|
border: 1px solid #dbe9e2;
|
|
border-radius: 6px;
|
|
background: #fbfdfc;
|
|
box-shadow: 0 10px 24px rgba(23, 61, 47, 0.12);
|
|
}
|
|
|
|
.rules-test-page .document-row-expanded td {
|
|
background: #f6fbf8;
|
|
}
|
|
|
|
.rules-test-page .document-fields-row > td {
|
|
padding: 0 12px 14px !important;
|
|
background: #f6fbf8;
|
|
}
|
|
|
|
.rules-test-page .document-fields-inline-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.rules-test-page .document-fields-inline-header div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.rules-test-page .document-fields-inline-header strong {
|
|
color: #173d2f;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.rules-test-page .document-fields-inline-header span {
|
|
color: #6c7d74;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .document-fields-table-scroll {
|
|
max-height: min(420px, calc(100vh - 230px));
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
border: 1px solid #e5eee9;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.rules-test-page .document-fields-table-scroll .ant-table-wrapper {
|
|
border: 0;
|
|
}
|
|
|
|
.rules-test-page .document-fields-table-scroll .ant-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.rules-test-page .operation-group {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.rules-test-page .document-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: #00684a;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.rules-test-page .document-link:hover {
|
|
color: #005a3f;
|
|
}
|
|
|
|
.rules-test-page .document-link.active {
|
|
color: #123d2e;
|
|
}
|
|
|
|
.rules-test-page .rule-group-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.rules-test-page .rule-group-tabs button {
|
|
min-height: 30px;
|
|
padding: 5px 10px;
|
|
border: 1px solid #d9e3de;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #43574d;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rules-test-page .rule-group-tabs button.active {
|
|
border-color: #00684a;
|
|
background: #f1faf5;
|
|
color: #00684a;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rules-test-page .rules-drawer-shell {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 180;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.rules-test-page .rules-drawer-mask {
|
|
position: absolute;
|
|
inset: 0;
|
|
border: 0;
|
|
background: rgba(20, 35, 28, 0.18);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.rules-test-page .rules-drawer {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: min(520px, 92vw);
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
background: #fff;
|
|
box-shadow: -12px 0 28px rgba(21, 46, 35, 0.16);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.rules-test-page .rules-drawer-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid #e5eee9;
|
|
background: #f8fbf9;
|
|
}
|
|
|
|
.rules-test-page .rules-drawer-header h3 {
|
|
margin: 0;
|
|
color: #163b2d;
|
|
font-size: 18px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.rules-test-page .rules-drawer-header p {
|
|
margin: 5px 0 0;
|
|
color: #66786f;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .drawer-close {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 1px solid #d7e2dc;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #43574d;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rules-test-page .drawer-hint {
|
|
margin: 14px 20px 0;
|
|
padding: 10px 12px;
|
|
border: 1px solid #d8e8df;
|
|
border-radius: 6px;
|
|
background: #f6fbf8;
|
|
color: #4d675b;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.rules-test-page .drawer-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
padding: 18px 20px 22px;
|
|
}
|
|
|
|
.rules-test-page .drawer-form label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
color: #34483e;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rules-test-page .drawer-form label.drawer-checkbox-row {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.rules-test-page .drawer-form label.drawer-checkbox-row input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 0;
|
|
}
|
|
|
|
.rules-test-page .drawer-form input,
|
|
.rules-test-page .drawer-form select,
|
|
.rules-test-page .drawer-form textarea {
|
|
width: 100%;
|
|
border: 1px solid #d5ded9;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #20352c;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.rules-test-page .drawer-form input,
|
|
.rules-test-page .drawer-form select {
|
|
height: 38px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.rules-test-page .drawer-form select[multiple] {
|
|
height: 150px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row {
|
|
display: grid !important;
|
|
grid-template-columns: minmax(0, 1fr) 42px;
|
|
align-items: center;
|
|
gap: 12px !important;
|
|
padding: 11px 12px;
|
|
border: 1px solid #dbe9e2;
|
|
border-radius: 6px;
|
|
background: #fbfdfc;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row span {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row strong {
|
|
color: #2f493d;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row em {
|
|
color: #718279;
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row input {
|
|
width: 36px !important;
|
|
height: 20px !important;
|
|
padding: 0 !important;
|
|
appearance: none;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: #c8d6cf;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row input::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 999px;
|
|
background: #fff;
|
|
box-shadow: 0 1px 3px rgba(21, 46, 35, 0.22);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row input:checked {
|
|
background: #00684a;
|
|
}
|
|
|
|
.rules-test-page .drawer-switch-row input:checked::after {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
.rules-test-page .dependency-picker {
|
|
display: grid;
|
|
gap: 8px;
|
|
max-height: 230px;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
border: 1px solid #d5ded9;
|
|
border-radius: 6px;
|
|
background: #fbfdfc;
|
|
}
|
|
|
|
.rules-test-page .dependency-option {
|
|
display: grid !important;
|
|
grid-template-columns: 18px minmax(0, 1fr);
|
|
align-items: start;
|
|
gap: 8px !important;
|
|
min-height: 54px;
|
|
padding: 9px 10px;
|
|
border: 1px solid #e2ebe6;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #30453a;
|
|
font-weight: 400 !important;
|
|
}
|
|
|
|
.rules-test-page .dependency-option input {
|
|
flex: none;
|
|
width: 15px;
|
|
height: 15px;
|
|
margin-top: 2px;
|
|
padding: 0;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-name {
|
|
overflow-wrap: anywhere;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.rules-test-page .dependency-option em {
|
|
color: #7b8b83;
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
line-height: 1.35;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.rules-test-page .drawer-form textarea {
|
|
min-height: 96px;
|
|
padding: 9px 10px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.rules-test-page .drawer-form textarea.prompt-editor {
|
|
min-height: 170px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.rules-test-page .drawer-form input:focus,
|
|
.rules-test-page .drawer-form select:focus,
|
|
.rules-test-page .drawer-form textarea:focus {
|
|
border-color: #00684a;
|
|
box-shadow: 0 0 0 2px rgba(0, 104, 74, 0.1);
|
|
}
|
|
|
|
.rules-test-page .drawer-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.rules-test-page .drawer-subsection {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border: 1px solid #e1ebe6;
|
|
border-radius: 8px;
|
|
background: #fbfdfc;
|
|
}
|
|
|
|
.rules-test-page .drawer-subsection-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rules-test-page .drawer-subsection-header div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.rules-test-page .drawer-subsection-header strong {
|
|
color: #183c2f;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.rules-test-page .drawer-subsection-header span {
|
|
color: #6c7d74;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.rules-test-page .drawer-field-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rules-test-page .selected-dependencies {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
padding: 10px;
|
|
border: 1px solid #d5ded9;
|
|
border-radius: 6px;
|
|
background: #fbfdfc;
|
|
}
|
|
|
|
.rules-test-page .dependency-variable-button {
|
|
display: inline-flex;
|
|
align-items: stretch;
|
|
min-height: 32px;
|
|
overflow: hidden;
|
|
border: 1px solid #00684a;
|
|
border-radius: 6px;
|
|
background: #00684a;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 1.2;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.rules-test-page .dependency-variable-button:hover {
|
|
border-color: #005a3f;
|
|
background: #005a3f;
|
|
color: #fff;
|
|
}
|
|
|
|
.rules-test-page .dependency-variable-main,
|
|
.rules-test-page .dependency-variable-remove {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
line-height: 1;
|
|
}
|
|
|
|
.rules-test-page .dependency-variable-main {
|
|
max-width: 260px;
|
|
padding: 7px 10px 7px 12px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.rules-test-page .dependency-variable-remove {
|
|
justify-content: center;
|
|
width: 30px;
|
|
border-left: 1px solid rgba(255, 255, 255, 0.28);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.rules-test-page .dependency-variable-remove:hover {
|
|
background: rgba(255, 255, 255, 0.16);
|
|
color: #fff;
|
|
}
|
|
|
|
.rules-test-page .dependency-variable-main:focus-visible,
|
|
.rules-test-page .dependency-variable-remove:focus-visible {
|
|
outline: 2px solid rgba(0, 104, 74, 0.18);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.rules-test-page .subrule-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rules-test-page .subrule-item {
|
|
display: grid;
|
|
grid-template-columns: 34px minmax(0, 1fr);
|
|
align-items: start;
|
|
gap: 10px;
|
|
padding: 9px 10px;
|
|
border: 1px solid #e3ece7;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.rules-test-page .subrule-index {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
min-width: 30px;
|
|
border-radius: 50%;
|
|
background: #00684a;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
line-height: 1;
|
|
box-shadow: 0 2px 6px rgba(0, 104, 74, 0.18);
|
|
}
|
|
|
|
.rules-test-page .subrule-item div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rules-test-page .subrule-item strong {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
color: #22392f;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .subrule-item span {
|
|
color: #71857b;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.rules-test-page .subrule-item > .subrule-index {
|
|
color: #fff;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.rules-test-page .drawer-field-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 9px 10px;
|
|
border: 1px solid #e3ece7;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.rules-test-page .drawer-field-item div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rules-test-page .drawer-field-item strong {
|
|
color: #22392f;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .drawer-field-item span {
|
|
color: #71857b;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.rules-test-page .drawer-empty {
|
|
padding: 12px;
|
|
color: #71857b;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .drawer-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-shell {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 130;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-mask {
|
|
position: absolute;
|
|
inset: 0;
|
|
border: 0;
|
|
background: rgba(20, 36, 29, 0.28);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog {
|
|
position: absolute;
|
|
top: 8vh;
|
|
left: 50%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(860px, calc(100vw - 48px));
|
|
max-height: 84vh;
|
|
transform: translateX(-50%);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
box-shadow: 0 22px 54px rgba(21, 46, 35, 0.24);
|
|
pointer-events: auto;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-header,
|
|
.rules-test-page .dependency-dialog-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 16px 18px;
|
|
border-bottom: 1px solid #e5eee9;
|
|
background: #f8fbf9;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-header h3 {
|
|
margin: 0;
|
|
color: #173d2f;
|
|
font-size: 18px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-header p,
|
|
.rules-test-page .dependency-dialog-actions span {
|
|
margin: 4px 0 0;
|
|
color: #6c7d74;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-search {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 38px;
|
|
margin: 14px 18px 0;
|
|
padding: 0 10px;
|
|
border: 1px solid #d5ded9;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
color: #6c7d74;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-search input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: 0;
|
|
outline: none;
|
|
color: #20352c;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-body {
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-height: 320px;
|
|
max-height: calc(84vh - 188px);
|
|
padding: 14px 18px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group {
|
|
flex: 0 0 auto;
|
|
border: 1px solid #e1ebe6;
|
|
border-radius: 8px;
|
|
background: #fbfdfc;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 9px 12px;
|
|
border: 0;
|
|
color: #203c30;
|
|
background: #fbfdfc;
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group.expanded .dependency-option-group-title {
|
|
border-bottom: 1px solid #e1ebe6;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group-title:hover {
|
|
background: #f3faf6;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group-title i {
|
|
flex: none;
|
|
color: #66786f;
|
|
font-size: 16px;
|
|
transition: transform 0.18s ease;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group.expanded .dependency-option-group-title i {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group-title span {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-group-title em {
|
|
flex: none;
|
|
color: #7d8c84;
|
|
font-size: 12px;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.rules-test-page .dependency-option-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-actions {
|
|
border-top: 1px solid #e5eee9;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.rules-test-page .dependency-dialog-actions div {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
|
|
.rules-test-page .config-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.rules-test-page .section-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.rules-test-page .info-box {
|
|
border: 1px solid #dfe7e3;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
background: #fff;
|
|
}
|
|
|
|
.rules-test-page .info-box label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
color: #78857f;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.rules-test-page .info-box div {
|
|
color: #20352c;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rules-test-page .yaml-source {
|
|
max-height: 520px;
|
|
overflow: auto;
|
|
padding: 14px;
|
|
border-radius: 8px;
|
|
background: #102019;
|
|
color: #d7f2e4;
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.rules-test-page .yaml-source-highlighted code {
|
|
display: block;
|
|
}
|
|
|
|
.rules-test-page .yaml-line {
|
|
display: block;
|
|
min-height: 18px;
|
|
}
|
|
|
|
.rules-test-page .yaml-indent {
|
|
white-space: pre;
|
|
}
|
|
|
|
.rules-test-page .yaml-marker {
|
|
color: #8ad8ff;
|
|
}
|
|
|
|
.rules-test-page .yaml-key {
|
|
color: #83e2a8;
|
|
}
|
|
|
|
.rules-test-page .yaml-string {
|
|
color: #f3d48f;
|
|
}
|
|
|
|
.rules-test-page .yaml-number {
|
|
color: #b9d7ff;
|
|
}
|
|
|
|
.rules-test-page .yaml-boolean {
|
|
color: #ffa7a7;
|
|
}
|
|
|
|
.rules-test-page .yaml-value {
|
|
color: #d7f2e4;
|
|
}
|
|
|
|
.rules-test-page .empty-state {
|
|
padding: 34px 20px;
|
|
text-align: center;
|
|
color: #64756d;
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.rules-test-page .filter-strip,
|
|
.rules-test-page .section-grid,
|
|
.rules-test-page .rule-detail-grid,
|
|
.rules-test-page .yaml-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.rules-test-page .yaml-layout-single {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.rules-test-page .hero-title {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
}
|