You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/public/cloud/admin-object-storage.css

1282 lines
20 KiB
CSS

.os-page {
display: grid;
gap: 20px;
min-width: 0;
max-width: 1320px;
padding-bottom: 30px;
}
.os-hero {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 24px;
padding: 8px 2px 2px;
}
.os-hero-copy {
max-width: 760px;
}
.os-eyebrow,
.os-section-kicker {
margin: 0 0 7px;
color: #0f9fa8;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.13em;
text-transform: uppercase;
}
.os-hero h1 {
margin: 0 0 8px;
color: #10243d;
font-size: clamp(26px, 3vw, 34px);
line-height: 1.2;
}
.os-hero-copy > p:last-child {
margin: 0;
color: #6b7f95;
font-size: 14px;
line-height: 1.7;
}
.os-hero-state {
display: inline-flex;
align-items: center;
gap: 9px;
flex: 0 0 auto;
min-height: 42px;
padding: 0 16px;
border: 1px solid #dce7ed;
border-radius: 999px;
color: #30465d;
background: #fff;
box-shadow: 0 8px 24px rgba(35, 61, 82, 0.06);
font-weight: 750;
}
.os-hero-actions {
display: flex;
align-items: center;
gap: 10px;
flex: 0 0 auto;
}
.os-state-dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: #94a3b8;
box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.13);
}
.os-state-dot.is-success {
background: #10b981;
box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}
.os-state-dot.is-danger {
background: #ef4444;
box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.11);
}
.os-summary {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
}
.os-summary-card {
display: flex;
align-items: flex-start;
gap: 13px;
min-width: 0;
padding: 18px;
border: 1px solid #e0e9ee;
border-radius: 14px;
background: #fff;
box-shadow: 0 10px 28px rgba(35, 61, 82, 0.045);
}
.os-summary-card.has-attention {
border-color: #fed7aa;
background: #fffaf4;
}
.os-summary-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 38px;
width: 38px;
height: 38px;
border-radius: 11px;
color: #0f9fa8;
background: #e9f8f8;
font-size: 20px;
}
.os-summary-card > div {
min-width: 0;
}
.os-summary-card span:not(.os-summary-icon),
.os-summary-card small {
display: block;
color: #8293a6;
font-size: 11px;
line-height: 1.45;
}
.os-summary-card strong {
display: block;
margin: 4px 0;
overflow: hidden;
color: #1e334a;
font-size: 15px;
text-overflow: ellipsis;
white-space: nowrap;
}
.os-tabs {
display: flex;
align-items: center;
gap: 5px;
width: fit-content;
padding: 5px;
border: 1px solid #dfe8ed;
border-radius: 12px;
background: #eef4f6;
}
.os-tab {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 40px;
padding: 0 15px;
border: 0;
border-radius: 9px;
color: #63788e;
background: transparent;
font-weight: 750;
}
.os-tab:hover,
.os-tab:focus-visible {
color: #17324b;
}
.os-tab.is-active {
color: #0b7f87;
background: #fff;
box-shadow: 0 5px 14px rgba(44, 75, 98, 0.09);
}
.os-tab b {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 6px;
border-radius: 999px;
color: #a84422;
background: #fff0e9;
font-size: 11px;
}
.os-panel {
display: grid;
gap: 20px;
}
.os-panel[hidden] {
display: none;
}
.os-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
}
.os-card-head p {
margin: 0;
color: #64748b;
line-height: 1.7;
}
.os-card {
min-width: 0;
padding: 22px;
border: 1px solid #e2e8f0;
border-radius: 14px;
background: #fff;
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.os-card-head {
gap: 14px;
margin-bottom: 20px;
}
.os-card-head h2 {
margin: 0 0 5px;
color: #172033;
font-size: 20px;
}
.os-card-head .os-section-kicker {
margin-bottom: 5px;
}
.os-connection-details {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 0;
margin: 0;
overflow: hidden;
border: 1px solid #e3ebef;
border-radius: 12px;
background: #f9fbfc;
}
.os-connection-details > div {
min-width: 0;
padding: 15px 17px;
border-right: 1px solid #e3ebef;
border-bottom: 1px solid #e3ebef;
}
.os-connection-details > div:nth-child(4n),
.os-connection-details > div:last-child {
border-right: 0;
}
.os-connection-details > div:nth-last-child(-n + 4) {
border-bottom: 0;
}
.os-connection-details > div.is-wide {
grid-column: span 2;
}
.os-connection-details dt {
margin-bottom: 6px;
color: #8293a6;
font-size: 11px;
font-weight: 700;
}
.os-connection-details dd {
margin: 0;
overflow-wrap: anywhere;
color: #283f56;
font-size: 13px;
font-weight: 750;
}
.os-inline-ready {
display: inline-flex;
align-items: center;
gap: 5px;
color: #078464;
}
.os-connection-actions {
margin-top: 18px;
}
.os-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 17px;
}
.os-field {
display: grid;
gap: 7px;
min-width: 0;
}
.os-field.is-wide {
grid-column: 1 / -1;
}
.os-field label {
color: #334155;
font-weight: 700;
}
.os-help {
color: #64748b;
font-size: 12px;
line-height: 1.55;
}
.os-mono {
font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.os-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-top: 22px;
}
.os-notice {
display: none;
flex: 1 1 300px;
padding: 11px 13px;
border-radius: 7px;
font-size: 13px;
line-height: 1.55;
}
.os-notice.is-show {
display: block;
}
.os-notice.is-ok {
color: #047857;
background: #ecfdf5;
}
.os-notice.is-error {
color: #b91c1c;
background: #fef2f2;
}
.os-alert {
padding: 13px 15px;
border-radius: 8px;
line-height: 1.65;
}
.os-alert.is-error {
color: #b91c1c;
background: #fef2f2;
}
.os-inline-alert {
margin-top: 14px;
}
.os-status {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin-top: 18px;
}
.os-status-item {
padding: 14px;
border: 1px solid #e2e8f0;
border-radius: 8px;
background: #f8fafc;
}
.os-status-item span {
display: block;
margin-bottom: 5px;
color: #64748b;
font-size: 12px;
}
.os-status-item strong {
display: block;
overflow-wrap: anywhere;
color: #1e293b;
}
.os-readonly {
margin-bottom: 16px;
padding: 11px 13px;
border-radius: 7px;
color: #9a3412;
background: #fff7ed;
}
.os-scope {
display: grid;
gap: 11px;
margin: 0;
padding: 0;
list-style: none;
}
.os-scope li {
display: flex;
align-items: flex-start;
gap: 10px;
color: #475569;
line-height: 1.6;
}
.os-scope i {
margin-top: 2px;
color: #0ea5a4;
font-size: 18px;
}
.os-scope li.is-muted i {
color: #94a3b8;
}
.os-check-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.os-check {
display: flex;
align-items: flex-start;
gap: 11px;
padding: 15px;
border: 1px solid #e5ebef;
border-radius: 11px;
color: #8191a3;
background: #f9fbfc;
}
.os-check > i {
margin-top: 1px;
font-size: 20px;
}
.os-check > div {
display: grid;
gap: 4px;
}
.os-check strong {
color: #3d5268;
}
.os-check span {
font-size: 12px;
line-height: 1.5;
}
.os-check.is-ready > i {
color: #10a87e;
}
.os-boundaries {
padding: 0;
overflow: hidden;
}
.os-boundaries summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
padding: 19px 22px;
color: #30465d;
cursor: pointer;
list-style: none;
}
.os-boundaries summary::-webkit-details-marker {
display: none;
}
.os-boundaries summary > span {
display: inline-flex;
align-items: center;
gap: 9px;
}
.os-boundaries summary > span > i {
color: #0f9fa8;
font-size: 20px;
}
.os-boundaries[open] .os-summary-chevron {
transform: rotate(180deg);
}
.os-boundaries .os-scope {
padding: 0 22px 22px;
}
.os-debt-summary {
margin: 0 0 18px;
}
.os-pagination {
justify-content: flex-end;
margin-top: 16px;
}
.os-empty {
display: grid;
justify-items: center;
gap: 6px;
}
.os-empty > i {
color: #1fb58a;
font-size: 30px;
}
.os-empty > strong {
color: #324a61;
}
.os-empty > span {
font-size: 12px;
}
.os-drawer-layer {
position: fixed;
z-index: 1080;
inset: 0;
display: flex;
justify-content: flex-end;
}
.os-drawer-layer[hidden] {
display: none;
}
.os-drawer-backdrop {
position: absolute;
inset: 0;
width: 100%;
border: 0;
background: rgba(15, 32, 49, 0.5);
backdrop-filter: blur(2px);
}
.os-drawer {
position: relative;
display: flex;
flex-direction: column;
width: min(720px, calc(100vw - 42px));
height: 100%;
overflow: hidden;
background: #fff;
box-shadow: -22px 0 56px rgba(16, 36, 61, 0.2);
}
.os-drawer-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
padding: 25px 26px 21px;
border-bottom: 1px solid #e3ebef;
}
.os-drawer-head h2 {
margin: 0 0 6px;
color: #17324b;
font-size: 22px;
}
.os-drawer-head p:last-child {
margin: 0;
color: #708499;
font-size: 13px;
line-height: 1.55;
}
.os-icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 38px;
width: 38px;
height: 38px;
padding: 0;
border: 0;
border-radius: 10px;
color: #60758b;
background: #f0f5f7;
font-size: 21px;
}
.os-icon-button:hover,
.os-icon-button:focus-visible {
color: #17324b;
background: #e5eef2;
}
.os-drawer form {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
}
.os-drawer fieldset {
flex: 1 1 auto;
min-width: 0;
margin: 0;
padding: 23px 26px;
overflow-y: auto;
border: 0;
}
.os-credential-box {
display: grid;
gap: 15px;
margin-top: 20px;
padding: 17px;
border: 1px solid #dfe9ed;
border-radius: 12px;
background: #f8fbfc;
}
.os-credential-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
}
.os-credential-head > div {
display: grid;
gap: 4px;
}
.os-credential-head strong {
color: #324a61;
}
.os-credential-head > div > span {
color: #7890a5;
font-size: 12px;
}
.os-switch {
display: inline-flex;
align-items: center;
gap: 8px;
flex: 0 0 auto;
margin: 0;
color: #486077;
cursor: pointer;
font-size: 12px;
}
.os-switch input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.os-switch > span {
position: relative;
width: 38px;
height: 22px;
border-radius: 999px;
background: #cbd7df;
transition: background 0.18s ease;
}
.os-switch > span::after {
position: absolute;
top: 3px;
left: 3px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
box-shadow: 0 2px 5px rgba(30, 51, 73, 0.2);
content: "";
transition: transform 0.18s ease;
}
.os-switch input:checked + span {
background: #12a4ad;
}
.os-switch input:checked + span::after {
transform: translateX(16px);
}
.os-switch input:focus-visible + span {
outline: 3px solid rgba(18, 164, 173, 0.18);
outline-offset: 2px;
}
.os-save-warning {
display: flex;
align-items: flex-start;
gap: 9px;
margin-top: 18px;
padding: 12px 13px;
border-radius: 10px;
color: #885a18;
background: #fff8e8;
font-size: 12px;
line-height: 1.55;
}
.os-save-warning > i {
margin-top: 1px;
font-size: 18px;
}
.os-drawer-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 17px 26px;
border-top: 1px solid #e3ebef;
background: #fff;
}
body.os-drawer-open {
overflow: hidden;
}
@media (max-width: 1100px) {
.os-summary,
.os-connection-details {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.os-connection-details > div,
.os-connection-details > div:nth-child(4n),
.os-connection-details > div:nth-last-child(-n + 4) {
border-right: 1px solid #e3ebef;
border-bottom: 1px solid #e3ebef;
}
.os-connection-details > div:nth-child(2n) {
border-right: 0;
}
.os-connection-details > div:nth-last-child(-n + 2) {
border-bottom: 0;
}
}
.os-cleanup-legend {
display: flex;
flex-wrap: wrap;
gap: 10px 24px;
margin-bottom: 16px;
padding: 12px 14px;
border-radius: 10px;
color: #60758b;
background: #f4f8fa;
font-size: 12px;
line-height: 1.55;
}
.os-cleanup-legend > span {
display: inline-flex;
align-items: center;
gap: 6px;
}
.os-cleanup-legend i {
color: #0f9fa8;
font-size: 17px;
}
.os-cleanup-legend b {
color: #334b62;
}
.os-debt-list {
overflow: hidden;
border: 1px solid #e0e9ee;
border-radius: 12px;
}
.os-debt-list-head,
.os-debt-row {
display: grid;
grid-template-columns: minmax(210px, 1.6fr) minmax(125px, 0.8fr) minmax(210px, 1.35fr) minmax(150px, 0.9fr) minmax(110px, 0.65fr);
gap: 14px;
align-items: center;
}
.os-debt-list-head {
padding: 11px 16px;
color: #7b8da0;
background: #f3f7f9;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.02em;
}
.os-debt-row {
padding: 15px 16px;
border-top: 1px solid #e5ecef;
background: #fff;
}
.os-debt-cell {
display: grid;
gap: 5px;
min-width: 0;
}
.os-debt-cell strong {
overflow-wrap: anywhere;
color: #31495f;
font-size: 13px;
}
.os-debt-cell small {
overflow-wrap: anywhere;
color: #8192a4;
font-size: 11px;
line-height: 1.45;
}
.os-cell-label {
display: none;
color: #8495a7;
font-size: 10px;
font-weight: 800;
letter-spacing: 0.05em;
}
.os-debt-action {
justify-items: start;
}
.os-waiting-action {
display: inline-flex;
align-items: center;
gap: 5px;
color: #8293a5;
font-size: 12px;
}
.os-debt-state {
display: inline-flex;
padding: 4px 8px;
border-radius: 999px;
color: #9a3412;
background: #fff7ed;
font-size: 12px;
font-weight: 700;
}
.os-debt-state.is-attention {
color: #b91c1c;
background: #fef2f2;
}
.os-empty {
padding: 20px;
color: #64748b;
text-align: center;
}
.os-capacity {
display: inline-flex;
align-items: center;
min-height: 38px;
padding: 0 13px;
border: 1px solid #dce7eb;
border-radius: 999px;
color: #64748b;
background: #fff;
font-size: 12px;
font-weight: 800;
}
.os-backend-list {
display: grid;
gap: 16px;
}
.os-backend-card {
overflow: hidden;
border: 1px solid #dfe8ed;
border-radius: 15px;
background: #fff;
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}
.os-backend-card.is-busy {
border-color: #99d7da;
}
.os-backend-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 18px;
padding: 20px 22px 17px;
}
.os-backend-title {
display: flex;
align-items: flex-start;
gap: 13px;
min-width: 0;
}
.os-backend-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 42px;
width: 42px;
height: 42px;
border-radius: 12px;
color: #0f8e97;
background: #e8f8f8;
font-size: 21px;
}
.os-backend-title > div {
min-width: 0;
}
.os-backend-title p,
.os-backend-title h2,
.os-backend-title span {
margin: 0;
}
.os-backend-title p {
color: #8293a6;
font-size: 10px;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.os-backend-title h2 {
margin: 3px 0;
color: #1d344b;
font-size: 18px;
}
.os-backend-title span {
display: block;
overflow: hidden;
max-width: 620px;
color: #718398;
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.os-backend-badges {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 7px;
}
.os-state-badge {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
color: #556b80;
background: #eef3f6;
font-size: 11px;
font-weight: 800;
}
.os-state-badge i {
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
}
.os-state-badge.is-admin-active,
.os-state-badge.is-health-healthy {
color: #047857;
background: #eafaf3;
}
.os-state-badge.is-admin-draining,
.os-state-badge.is-admin-read_only,
.os-state-badge.is-health-degraded {
color: #a16207;
background: #fff8df;
}
.os-state-badge.is-health-unreachable,
.os-state-badge.is-admin-disabled,
.os-state-badge.is-admin-retired {
color: #b91c1c;
background: #fff0f1;
}
.os-backend-details {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
margin: 0;
border-top: 1px solid #e7eef1;
border-bottom: 1px solid #e7eef1;
background: #f8fafb;
}
.os-backend-details > div {
min-width: 0;
padding: 15px 20px;
border-right: 1px solid #e7eef1;
}
.os-backend-details > div:last-child {
border-right: 0;
}
.os-backend-details dt {
margin-bottom: 6px;
color: #8797a8;
font-size: 10px;
font-weight: 800;
}
.os-backend-details dd {
margin: 0;
overflow-wrap: anywhere;
color: #2e465d;
font-size: 13px;
font-weight: 750;
}
.os-backend-details small {
display: block;
margin-top: 4px;
color: #8595a6;
font-size: 10px;
font-weight: 600;
}
.os-backend-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 9px;
padding: 16px 22px;
}
.os-row-notice {
display: none;
flex: 1 1 260px;
padding: 8px 10px;
border-radius: 7px;
font-size: 12px;
}
.os-row-notice.is-show {
display: block;
}
.os-row-notice.is-ok {
color: #047857;
background: #ecfdf5;
}
.os-row-notice.is-error {
color: #b91c1c;
background: #fef2f2;
}
.os-alert.is-info {
margin-top: 18px;
color: #075985;
background: #eff8ff;
}
.os-empty > i,
.os-empty > strong,
.os-empty > span {
display: block;
}
.os-empty > i {
margin-bottom: 8px;
color: #0f9fa8;
font-size: 28px;
}
.os-empty > strong {
margin-bottom: 4px;
color: #31495f;
}
@media (max-width: 760px) {
.os-page {
gap: 16px;
}
.os-hero {
display: grid;
}
.os-hero-state {
justify-self: start;
}
.os-hero-actions {
align-items: stretch;
justify-self: stretch;
}
.os-hero-actions .btn {
margin-left: auto;
}
.os-card {
padding: 17px;
}
.os-grid,
.os-status,
.os-summary,
.os-check-grid,
.os-connection-details,
.os-backend-details {
grid-template-columns: 1fr;
}
.os-backend-head {
display: grid;
padding: 17px;
}
.os-backend-badges {
justify-content: flex-start;
}
.os-backend-details > div {
border-right: 0;
border-bottom: 1px solid #e7eef1;
}
.os-backend-details > div:last-child {
border-bottom: 0;
}
.os-backend-actions {
padding: 15px 17px;
}
.os-backend-actions .btn {
flex: 1 1 calc(50% - 9px);
}
.os-row-notice {
flex-basis: 100%;
}
.os-connection-details > div,
.os-connection-details > div:nth-child(2n),
.os-connection-details > div:nth-last-child(-n + 2) {
grid-column: auto;
border-right: 0;
border-bottom: 1px solid #e3ebef;
}
.os-connection-details > div:last-child {
border-bottom: 0;
}
.os-tabs {
width: 100%;
}
.os-tab {
justify-content: center;
flex: 1 1 0;
}
.os-field.is-wide {
grid-column: auto;
}
.os-actions .btn {
width: 100%;
}
.os-notice {
flex-basis: 100%;
}
.os-drawer {
width: 100%;
}
.os-drawer-head,
.os-drawer fieldset,
.os-drawer-footer {
padding-right: 18px;
padding-left: 18px;
}
.os-credential-head {
align-items: flex-start;
flex-direction: column;
}
.os-drawer-footer .btn {
flex: 1 1 0;
}
.os-cleanup-legend {
display: grid;
}
.os-debt-list {
overflow: visible;
border: 0;
}
.os-debt-list-head {
display: none;
}
.os-debt-row {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px 16px;
margin-bottom: 12px;
padding: 16px;
border: 1px solid #e0e9ee;
border-radius: 12px;
box-shadow: 0 7px 20px rgba(35, 61, 82, 0.04);
}
.os-debt-identity,
.os-debt-action {
grid-column: 1 / -1;
}
.os-cell-label {
display: block;
}
.os-debt-action .btn {
width: 100%;
}
}
@media (max-width: 480px) {
.os-debt-row {
grid-template-columns: 1fr;
}
.os-debt-identity,
.os-debt-action {
grid-column: auto;
}
}