feat: implement AI gateway phase one runtime
This commit is contained in:
@@ -0,0 +1,188 @@
|
||||
.apiDocsShell {
|
||||
display: grid;
|
||||
min-height: calc(100vh - 120px);
|
||||
grid-template-columns: 280px minmax(420px, 1fr) 360px;
|
||||
gap: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.docsSidebar,
|
||||
.docsArticle,
|
||||
.docsRunner {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.docsSidebar {
|
||||
padding: 18px;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.docsBrand,
|
||||
.docsSearch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.docsBrand {
|
||||
margin-bottom: 18px;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.docsSearch {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--muted-foreground);
|
||||
}
|
||||
|
||||
.docsSearch input {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.docsGroup {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.docsGroup h3 {
|
||||
margin-bottom: 4px;
|
||||
color: var(--muted-foreground);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.docsGroup button {
|
||||
display: flex;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 0 10px;
|
||||
border: 0;
|
||||
border-radius: 7px;
|
||||
background: transparent;
|
||||
color: #344054;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.docsGroup button[data-active="true"] {
|
||||
background: #f5f6f8;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.docsArticle {
|
||||
padding: 28px 34px 60px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.docsArticle h1 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.endpointBar,
|
||||
.runnerEndpoint {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.docsLead {
|
||||
margin: 18px 0 24px;
|
||||
color: #475467;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.paramCard {
|
||||
margin-top: 18px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.paramCard header,
|
||||
.docsRunner header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.paramRow {
|
||||
display: grid;
|
||||
grid-template-columns: 150px 110px minmax(0, 1fr) 50px;
|
||||
gap: 12px;
|
||||
padding: 13px 16px;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
color: #475467;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.paramRow em {
|
||||
color: #a16207;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.docsRunner {
|
||||
border-left: 1px solid var(--border);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.docsRunner form {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
padding: 0 16px 16px;
|
||||
}
|
||||
|
||||
.runnerResult {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.runnerResult pre {
|
||||
overflow: auto;
|
||||
max-height: 300px;
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
background: #f7f8fa;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.apiDocsShell {
|
||||
grid-template-columns: 240px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.docsRunner {
|
||||
grid-column: 1 / -1;
|
||||
border-top: 1px solid var(--border);
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.apiDocsShell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.paramRow {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@@ -9,10 +9,10 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px 16px;
|
||||
border: 1px solid #d7eadf;
|
||||
border-radius: 10px;
|
||||
background: #f1fbf5;
|
||||
color: #155e3d;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
color: #202734;
|
||||
}
|
||||
|
||||
.releaseNotice strong {
|
||||
@@ -20,7 +20,7 @@
|
||||
}
|
||||
|
||||
.releaseNotice span {
|
||||
color: #43735b;
|
||||
color: var(--muted-foreground);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -32,10 +32,8 @@
|
||||
align-items: center;
|
||||
padding: 44px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background:
|
||||
linear-gradient(120deg, rgba(245, 250, 255, 0.96), rgba(255, 255, 255, 0.9)),
|
||||
#ffffff;
|
||||
border-radius: 14px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.landingCopy {
|
||||
@@ -66,10 +64,10 @@
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
padding: 18px;
|
||||
border: 1px solid #dbe5ef;
|
||||
border-radius: 10px;
|
||||
background: #f8fafc;
|
||||
box-shadow: 0 18px 45px rgba(16, 24, 40, 0.10);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: #fafbfc;
|
||||
box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
|
||||
}
|
||||
|
||||
.previewHeader,
|
||||
@@ -98,7 +96,7 @@
|
||||
min-height: 92px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
@@ -114,8 +112,8 @@
|
||||
|
||||
.previewFlow {
|
||||
padding: 14px;
|
||||
border-radius: 8px;
|
||||
background: #102033;
|
||||
border-radius: 10px;
|
||||
background: #111827;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
|
||||
+26
-379
@@ -15,7 +15,9 @@
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
}
|
||||
|
||||
.sideTabs .shTab {
|
||||
@@ -58,7 +60,7 @@
|
||||
min-height: 28px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: #344054;
|
||||
font-size: 12px;
|
||||
@@ -66,8 +68,8 @@
|
||||
}
|
||||
|
||||
.filterChip[data-active="true"] {
|
||||
border-color: #2f6fe4;
|
||||
background: #2f6fe4;
|
||||
border-color: #111827;
|
||||
background: #111827;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -109,9 +111,9 @@
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 18px;
|
||||
border: 1px solid #ebe5fb;
|
||||
border-radius: 8px;
|
||||
background: #f6f1ff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.providerHero strong {
|
||||
@@ -130,7 +132,7 @@
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
place-items: center;
|
||||
border-radius: 8px;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
color: #111827;
|
||||
font-weight: 900;
|
||||
@@ -193,9 +195,10 @@
|
||||
|
||||
.modelTags span {
|
||||
padding: 4px 7px;
|
||||
border-radius: 5px;
|
||||
background: #fff5e7;
|
||||
color: #9a5b12;
|
||||
border: 1px solid #eceff3;
|
||||
border-radius: 999px;
|
||||
background: #fafbfc;
|
||||
color: #5d6675;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -208,7 +211,7 @@
|
||||
}
|
||||
|
||||
.modelCardFooter a {
|
||||
color: #2563eb;
|
||||
color: #111827;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
text-decoration: none;
|
||||
@@ -247,7 +250,7 @@
|
||||
align-items: center;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
@@ -257,9 +260,9 @@
|
||||
height: 54px;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
border: 1px solid #edf1f5;
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #eef1f4;
|
||||
border-radius: 10px;
|
||||
background: #fafbfc;
|
||||
color: #111827;
|
||||
font-weight: 900;
|
||||
}
|
||||
@@ -323,7 +326,7 @@
|
||||
min-height: 184px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
@@ -359,9 +362,10 @@
|
||||
|
||||
.modelAbilityChips span {
|
||||
padding: 4px 7px;
|
||||
border-radius: 5px;
|
||||
background: #eef7ff;
|
||||
color: #0f5d8f;
|
||||
border: 1px solid #e8ecf1;
|
||||
border-radius: 999px;
|
||||
background: #fafbfc;
|
||||
color: #4b5563;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
@@ -376,368 +380,17 @@
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.pricingRuleCard {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.pricingRuleCard header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleCard strong,
|
||||
.pricingRuleCard span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.pricingRuleCard header span,
|
||||
.pricingRuleCard p {
|
||||
margin: 0;
|
||||
color: var(--muted-foreground);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleItems {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.pricingRuleItems span {
|
||||
padding: 5px 7px;
|
||||
border-radius: 5px;
|
||||
background: #f1f5f9;
|
||||
color: #334155;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.pricingRuleDialog {
|
||||
width: min(1120px, 100%);
|
||||
}
|
||||
|
||||
.pricingRuleFormBody {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.pricingRuleEditor {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleEditorHeader,
|
||||
.pricingRuleEditorCard header,
|
||||
.pricingRuleSubHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleEditorHeader strong,
|
||||
.pricingRuleEditorCard strong,
|
||||
.pricingRuleSubHeader strong {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.pricingRuleEditorHeader span,
|
||||
.pricingRuleEditorCard header span,
|
||||
.pricingRuleSubHeader span,
|
||||
.pricingRuleEmpty span,
|
||||
.mutedLine {
|
||||
color: var(--muted-foreground);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleQuickActions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricingRuleEditorCard,
|
||||
.pricingRuleSubPanel,
|
||||
.pricingRuleEmpty {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: #fbfcfe;
|
||||
}
|
||||
|
||||
.pricingRuleEditorCard {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.pricingRuleEditorCard header > div {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricingRuleEditorCard header span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pricingRuleFields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.dimensionChips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.dimensionChips button {
|
||||
min-height: 30px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: #475467;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.dimensionChips button.active {
|
||||
border-color: #145388;
|
||||
background: #eaf3fb;
|
||||
color: #145388;
|
||||
}
|
||||
|
||||
.weightGroup {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
border: 1px dashed var(--border);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.keyValueRows {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.keyValueRow {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(120px, 0.55fr) minmax(140px, 1fr) 34px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.apiDocsShell {
|
||||
display: grid;
|
||||
min-height: calc(100vh - 120px);
|
||||
grid-template-columns: 280px minmax(420px, 1fr) 360px;
|
||||
gap: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.docsSidebar,
|
||||
.docsArticle,
|
||||
.docsRunner {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.docsSidebar {
|
||||
padding: 18px;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.docsBrand,
|
||||
.docsSearch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.docsBrand {
|
||||
margin-bottom: 18px;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.docsSearch {
|
||||
min-height: 40px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
color: var(--muted-foreground);
|
||||
}
|
||||
|
||||
.docsSearch input {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.docsGroup {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.docsGroup h3 {
|
||||
margin-bottom: 4px;
|
||||
color: var(--muted-foreground);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.docsGroup button {
|
||||
display: flex;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 0 10px;
|
||||
border: 0;
|
||||
border-radius: 7px;
|
||||
background: transparent;
|
||||
color: #344054;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.docsGroup button[data-active="true"] {
|
||||
background: #f0e9ff;
|
||||
color: #7048e8;
|
||||
}
|
||||
|
||||
.docsArticle {
|
||||
padding: 28px 34px 60px;
|
||||
background: linear-gradient(90deg, #fff 0%, #fbf8ff 100%);
|
||||
}
|
||||
|
||||
.docsArticle h1 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.endpointBar,
|
||||
.runnerEndpoint {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.docsLead {
|
||||
margin: 18px 0 24px;
|
||||
color: #475467;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.paramCard {
|
||||
margin-top: 18px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.paramCard header,
|
||||
.docsRunner header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.paramRow {
|
||||
display: grid;
|
||||
grid-template-columns: 150px 110px minmax(0, 1fr) 50px;
|
||||
gap: 12px;
|
||||
padding: 13px 16px;
|
||||
border-bottom: 1px solid #f0f2f5;
|
||||
color: #475467;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.paramRow em {
|
||||
color: #f97316;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.docsRunner {
|
||||
border-left: 1px solid var(--border);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.docsRunner form {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
padding: 0 16px 16px;
|
||||
}
|
||||
|
||||
.runnerResult {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.runnerResult pre {
|
||||
overflow: auto;
|
||||
max-height: 300px;
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.modelCards,
|
||||
.providerCatalogGrid,
|
||||
.baseModelGrid,
|
||||
.pricingRuleGrid {
|
||||
.baseModelGrid {
|
||||
grid-template-columns: repeat(2, minmax(240px, 1fr));
|
||||
}
|
||||
|
||||
.apiDocsShell {
|
||||
grid-template-columns: 240px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.docsRunner {
|
||||
grid-column: 1 / -1;
|
||||
border-top: 1px solid var(--border);
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.subPageLayout,
|
||||
.modelsPage,
|
||||
.apiDocsShell {
|
||||
.modelsPage {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
@@ -749,9 +402,6 @@
|
||||
.modelCards,
|
||||
.providerCatalogGrid,
|
||||
.baseModelGrid,
|
||||
.pricingRuleGrid,
|
||||
.pricingRuleFields,
|
||||
.pricingRuleFormBody,
|
||||
.modelCatalogFilters {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@@ -770,7 +420,4 @@
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.paramRow {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,302 @@
|
||||
.pricingRuleGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.pricingRuleCard {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.pricingRuleCard header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleCard strong,
|
||||
.pricingRuleCard span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.pricingRuleCard header span,
|
||||
.pricingRuleCard p {
|
||||
margin: 0;
|
||||
color: var(--muted-foreground);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleItems {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricingRuleItems span {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
min-height: 56px;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #e8ecf1;
|
||||
background: #fafbfc;
|
||||
color: #4b5563;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.pricingRuleItems strong {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: #111827;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.pricingRuleItems svg {
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.pricingRuleItems em {
|
||||
color: var(--muted-foreground);
|
||||
font-style: normal;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.pricingRuleDialog {
|
||||
width: min(1120px, 100%);
|
||||
}
|
||||
|
||||
.pricingRuleFormBody {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.pricingModeEditor,
|
||||
.pricingModeRule,
|
||||
.pricingWeightStack {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.pricingModeHeader,
|
||||
.pricingModeRule header,
|
||||
.pricingWeightTable header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.pricingModeHeader strong,
|
||||
.pricingModeRule strong,
|
||||
.pricingWeightTable strong {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.pricingModeHeader span,
|
||||
.pricingModeRule header span {
|
||||
color: var(--muted-foreground);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.pricingModeTabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 18px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.pricingModeTabs button {
|
||||
min-height: 40px;
|
||||
padding: 0 2px;
|
||||
border: 0;
|
||||
border-bottom: 3px solid transparent;
|
||||
background: transparent;
|
||||
color: #475467;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.pricingModeTabs button.active {
|
||||
border-bottom-color: #111827;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.pricingModeRule,
|
||||
.pricingModeEmpty {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.pricingModeEmpty {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.pricingModeRule header > div {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricingModeRule header span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pricingModeBaseRows {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricingModeBaseRows.compact {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.pricingModeInlineRows {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricingTextPriceGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricingModeInlineInput,
|
||||
.pricingInlineField {
|
||||
display: grid;
|
||||
grid-template-columns: 140px minmax(0, 1fr);
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.pricingModeInlineInput span,
|
||||
.pricingInlineField span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 10px;
|
||||
border-right: 1px solid var(--border);
|
||||
background: #fafbfc;
|
||||
color: #344054;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.pricingModeInlineInput input,
|
||||
.pricingModeInlineInput select,
|
||||
.pricingInlineField input,
|
||||
.pricingInlineField select {
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.pricingInlineReadonly strong {
|
||||
display: flex;
|
||||
min-height: 40px;
|
||||
align-items: center;
|
||||
padding: 0 12px;
|
||||
color: #111827;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.pricingFormulaBox {
|
||||
display: grid;
|
||||
grid-template-columns: 20px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
border-radius: 10px;
|
||||
background: #f6f7f9;
|
||||
color: #344054;
|
||||
}
|
||||
|
||||
.pricingFormulaBox p {
|
||||
margin-top: 8px;
|
||||
color: var(--muted-foreground);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.pricingFormulaBox input {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.pricingWeightTable {
|
||||
display: grid;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.pricingWeightTable header {
|
||||
min-height: 36px;
|
||||
padding: 0 12px;
|
||||
background: #f6f7f9;
|
||||
}
|
||||
|
||||
.pricingWeightRows {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 9px;
|
||||
}
|
||||
|
||||
.pricingWeightRow {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(100px, 150px) minmax(82px, 120px) 32px;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.pricingWeightRow.locked {
|
||||
grid-template-columns: minmax(112px, 150px) minmax(82px, 120px);
|
||||
}
|
||||
|
||||
.pricingFactorLabel {
|
||||
display: flex;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
padding: 0 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: #fafbfc;
|
||||
color: #344054;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.pricingInlineAdd {
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.pricingRuleGrid,
|
||||
.pricingModeBaseRows,
|
||||
.pricingRuleFormBody,
|
||||
.pricingModeInlineRows,
|
||||
.pricingModeInlineInput,
|
||||
.pricingInlineField,
|
||||
.pricingTextPriceGrid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
+35
-20
@@ -1,7 +1,7 @@
|
||||
.shCard {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
border-radius: 10px;
|
||||
background: var(--card);
|
||||
color: var(--card-foreground);
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
border-bottom: 1px solid #edf1f5;
|
||||
border-bottom: 1px solid #eef1f4;
|
||||
}
|
||||
|
||||
.shCardTitle {
|
||||
@@ -39,9 +39,10 @@
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 8px;
|
||||
border-radius: 7px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
|
||||
}
|
||||
|
||||
.shButtonDefaultSize {
|
||||
@@ -65,6 +66,10 @@
|
||||
color: var(--primary-foreground);
|
||||
}
|
||||
|
||||
.shButtonDefault:hover {
|
||||
background: #202734;
|
||||
}
|
||||
|
||||
.shButtonSecondary {
|
||||
background: var(--secondary);
|
||||
color: var(--secondary-foreground);
|
||||
@@ -76,11 +81,21 @@
|
||||
color: #344054;
|
||||
}
|
||||
|
||||
.shButtonOutline:hover,
|
||||
.shButtonSecondary:hover {
|
||||
border-color: #d5dbe3;
|
||||
background: #f9fafb;
|
||||
}
|
||||
|
||||
.shButtonGhost {
|
||||
background: transparent;
|
||||
color: #344054;
|
||||
}
|
||||
|
||||
.shButtonGhost:hover {
|
||||
background: #f5f6f8;
|
||||
}
|
||||
|
||||
.shButtonDestructive {
|
||||
background: var(--destructive);
|
||||
color: #fff;
|
||||
@@ -93,7 +108,7 @@
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px;
|
||||
background: rgba(15, 23, 42, 0.42);
|
||||
background: rgba(16, 19, 24, 0.36);
|
||||
}
|
||||
|
||||
.formDialog {
|
||||
@@ -103,9 +118,9 @@
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
|
||||
box-shadow: 0 22px 60px rgba(16, 24, 40, 0.16);
|
||||
}
|
||||
|
||||
.formDialogHeader {
|
||||
@@ -154,14 +169,14 @@
|
||||
padding: 14px 18px;
|
||||
border-top: 1px solid var(--border);
|
||||
background: #fff;
|
||||
box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
|
||||
box-shadow: 0 -1px 0 rgba(16, 24, 40, 0.02);
|
||||
}
|
||||
|
||||
.shInput,
|
||||
.shTextarea {
|
||||
width: 100%;
|
||||
border: 1px solid var(--input);
|
||||
border-radius: 8px;
|
||||
border-radius: 7px;
|
||||
background: #fff;
|
||||
color: var(--foreground);
|
||||
outline: none;
|
||||
@@ -182,7 +197,7 @@
|
||||
.shTextarea:focus,
|
||||
.tokenInline input:focus {
|
||||
border-color: var(--ring);
|
||||
box-shadow: 0 0 0 3px rgba(47, 128, 193, 0.16);
|
||||
box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.14);
|
||||
}
|
||||
|
||||
.shLabel,
|
||||
@@ -212,7 +227,7 @@
|
||||
padding: 4px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
background: #f6f7f9;
|
||||
}
|
||||
|
||||
.shTab {
|
||||
@@ -230,8 +245,8 @@
|
||||
|
||||
.shTab[data-active="true"] {
|
||||
background: #fff;
|
||||
color: #145388;
|
||||
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
|
||||
color: #111827;
|
||||
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
|
||||
}
|
||||
|
||||
.shBadge {
|
||||
@@ -246,12 +261,12 @@
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.shBadgeDefault { background: #eaf2f8; color: #145388; }
|
||||
.shBadgeSecondary { background: #eef2f6; color: #475467; }
|
||||
.shBadgeDefault { background: #eef1f5; color: #202734; }
|
||||
.shBadgeSecondary { background: #f3f5f7; color: #5d6675; }
|
||||
.shBadgeOutline { border-color: var(--border); background: #fff; color: #344054; }
|
||||
.shBadgeSuccess { background: #e8f5ef; color: #14805e; }
|
||||
.shBadgeWarning { background: #fff6df; color: #98690c; }
|
||||
.shBadgeDestructive { background: #fff1f1; color: #b42318; }
|
||||
.shBadgeSuccess { background: #edf7f1; color: #157a57; }
|
||||
.shBadgeWarning { background: #fbf4e8; color: #8a6116; }
|
||||
.shBadgeDestructive { background: #fff3f3; color: #b42318; }
|
||||
|
||||
.shTable {
|
||||
overflow: auto;
|
||||
@@ -261,11 +276,11 @@
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
|
||||
min-width: 520px;
|
||||
border-bottom: 1px solid #edf1f5;
|
||||
border-bottom: 1px solid #eef1f4;
|
||||
}
|
||||
|
||||
.shTableHeader {
|
||||
background: #f8fafc;
|
||||
background: #f7f8fa;
|
||||
}
|
||||
|
||||
.shTableHead,
|
||||
@@ -305,7 +320,7 @@
|
||||
overflow: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
background: #f7f8fa;
|
||||
color: #1f2937;
|
||||
font-family: "SFMono-Regular", Consolas, monospace;
|
||||
font-size: 12px;
|
||||
|
||||
Reference in New Issue
Block a user