modified: README.md
This commit is contained in:
272
support-provisioning-portal/assets/portal.css
Normal file
272
support-provisioning-portal/assets/portal.css
Normal file
@@ -0,0 +1,272 @@
|
||||
.spp-portal,
|
||||
.spp-admin-wrap {
|
||||
--spp-ink: var(--wp--preset--color--contrast, currentColor);
|
||||
--spp-muted: color-mix(in srgb, currentColor 68%, transparent);
|
||||
--spp-line: color-mix(in srgb, currentColor 22%, transparent);
|
||||
--spp-field: color-mix(in srgb, currentColor 5%, transparent);
|
||||
--spp-surface: var(--wp--preset--color--base, Canvas);
|
||||
--spp-accent: var(--wp--preset--color--primary, #2271b1);
|
||||
color: var(--spp-ink);
|
||||
}
|
||||
|
||||
.spp-admin-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 340px;
|
||||
gap: 20px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.spp-settings,
|
||||
.spp-panel,
|
||||
.spp-card {
|
||||
background: var(--spp-surface);
|
||||
border: 1px solid var(--spp-line);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.spp-settings {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.spp-settings label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 0 0 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.spp-settings input,
|
||||
.spp-settings select,
|
||||
.spp-input,
|
||||
.spp-select {
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--spp-line);
|
||||
border-radius: 6px;
|
||||
background: var(--spp-surface);
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
padding: 7px 10px;
|
||||
}
|
||||
|
||||
.spp-header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.spp-title {
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.spp-subtitle {
|
||||
margin: 4px 0 0;
|
||||
color: var(--spp-muted);
|
||||
}
|
||||
|
||||
.spp-tabs,
|
||||
.spp-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.spp-button {
|
||||
display: inline-flex;
|
||||
min-height: 36px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
border: 1px solid var(--spp-line);
|
||||
border-radius: 6px;
|
||||
background: var(--spp-surface);
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
padding: 7px 12px;
|
||||
}
|
||||
|
||||
.spp-button-primary {
|
||||
background: var(--spp-accent);
|
||||
border-color: var(--spp-accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.spp-button-danger {
|
||||
border-color: #fecaca;
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.spp-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.spp-panel {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.spp-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.spp-table th {
|
||||
background: var(--spp-field);
|
||||
color: var(--spp-muted);
|
||||
font-size: 12px;
|
||||
letter-spacing: 0;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spp-table th,
|
||||
.spp-table td {
|
||||
border-bottom: 1px solid var(--spp-line);
|
||||
padding: 12px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.spp-table tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.spp-badge {
|
||||
display: inline-flex;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
padding: 4px 9px;
|
||||
}
|
||||
|
||||
.spp-badge.RUNNING {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
.spp-badge.STOPPED,
|
||||
.spp-badge.DELETED {
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.spp-badge.EXPIRED {
|
||||
background: #ffedd5;
|
||||
color: #9a3412;
|
||||
}
|
||||
|
||||
.spp-badge.PROVISIONING,
|
||||
.spp-badge.DELETING {
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.spp-badge.FAILED,
|
||||
.spp-error {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
.spp-warning {
|
||||
background: #fff7ed;
|
||||
border: 1px solid #fed7aa;
|
||||
border-radius: 6px;
|
||||
color: #9a3412;
|
||||
margin-bottom: 16px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.spp-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.spp-card {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.spp-card h3 {
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.spp-card p {
|
||||
color: var(--spp-muted);
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
|
||||
.spp-quota {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 16px;
|
||||
margin-top: 8px;
|
||||
color: var(--spp-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.spp-meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
color: var(--spp-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.spp-meta strong {
|
||||
color: var(--spp-ink);
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.spp-form {
|
||||
display: grid;
|
||||
max-width: 640px;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.spp-prolong-form {
|
||||
border-top: 1px solid var(--spp-line);
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin-top: 18px;
|
||||
max-width: 520px;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
.spp-prolong-form h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.spp-form label,
|
||||
.spp-prolong-form label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.spp-check {
|
||||
align-items: center;
|
||||
display: flex !important;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.spp-check input {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.spp-error {
|
||||
border-radius: 6px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.spp-admin-grid,
|
||||
.spp-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user