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/client.css

140 lines
10 KiB
CSS

/* Shared user-shell and cloud-workspace additions. The admin layout never
loads this stylesheet. */
.cloud-sidebar-nav {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #2b4558 transparent;
}
.panel-sidebar-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.sidebar a.sidebar-brand { min-width: 0; max-width: 100%; overflow: hidden; text-decoration: none; }
.sidebar-brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-brand small { overflow: hidden; text-overflow: ellipsis; }
.panel-nav-toggle { display: none; min-height: 36px; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #294255; border-radius: 8px; background: #172c3e; color: #b9ccd8; font-size: 11px; font-weight: 700; }
.cloud-sidebar-nav .sidebar-section-label:not(:first-child) { margin-top: 25px; }
.cloud-sidebar-nav .sidebar-link { width: 100%; text-decoration: none; }
.cloud-sidebar-nav .sidebar-link:hover { background: #1a3445; color: #d0eeee; }
.cloud-sidebar-nav .sidebar-link:focus-visible { outline: 2px solid #57d4d3; outline-offset: -2px; }
.cloud-sidebar-nav .nav-icon,
.panel-sidebar-bottom .nav-icon { display: inline-grid; width: 20px; flex: 0 0 20px; place-items: center; color: #6f899e; font-size: 19px; }
.cloud-sidebar-nav .sidebar-link:hover .nav-icon,
.cloud-sidebar-nav .sidebar-link.active .nav-icon,
.panel-sidebar-bottom .sidebar-link:hover .nav-icon { color: #57d4d3; }
.panel-sidebar-bottom { display: grid; gap: 4px; }
.panel-sidebar-bottom .sidebar-link { width: 100%; text-decoration: none; }
.panel-sidebar-bottom .sidebar-link:hover { background: #1a3445; color: #d0eeee; }
.panel-admin-link { margin-bottom: 2px; }
.panel-logout-link:hover { color: #ffc1c8 !important; background: rgba(208, 66, 80, .1) !important; }
.panel-topbar-logout { text-decoration: none; }
.admin-menu-options { max-height: min(70vh, 520px); overflow-y: auto; }
.admin-menu-options a { min-height: 34px; display: flex; align-items: center; padding: 7px 10px; border-radius: 7px; color: #536b7e; font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-menu-options a:hover { background: #edf6f6; color: #117f88; }
.admin-menu-label { padding: 8px 10px 3px; color: #8ba0af; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cloud-orders { min-height: 0; padding: 0; overflow: hidden; }
.cloud-orders > .muted { margin: 0; padding: 26px 24px; }
.cloud-order { display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 18px 24px; padding: 22px 24px; border-bottom: 1px solid var(--border, #e5edf2); }
.cloud-order-detail { min-width: 0; }
.cloud-order-detail > strong { display: block; color: #25384e; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.cloud-order p { margin: 7px 0 0; line-height: 1.6; }
.cloud-order-message { color: #52677b; font-size: 12px; overflow-wrap: anywhere; }
.cloud-order-progress { font-size: 11px; overflow-wrap: anywhere; }
.cloud-order-progress.form-error { margin-top: 9px; }
.cloud-order-actions .state-pill.failed { background: #fff0f1; color: #bd4654; }
.cloud-order-actions .state-pill.warning { background: #fff4e5; color: #b98129; }
.cloud-order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cloud-order-actions .row-button { min-height: 36px; padding: 8px 12px; border-color: #dce7ec; background: #fff; }
.cloud-order-actions .row-button:not(:disabled):hover { border-color: #bcdadd; background: #edf8f8; }
.cloud-order:last-child { border: 0; }
.cloud-order code { overflow-wrap: anywhere; }
.invoice-balance-card { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 18px 22px; border: 1px solid #e0e9ef; border-radius: 13px; background: #fff; box-shadow: 0 10px 30px rgba(19,42,65,.027); color: #77899a; font-size: 12px; font-weight: 700; }
.invoice-balance-card strong { margin-right: auto; color: #1e354d; font-size: 23px; letter-spacing: -.4px; }
.cloud-invoice { position: relative; }
.cloud-payment-instructions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; margin-top: 2px; padding: 14px 16px; border-radius: 9px; background: #edf8f8; color: #3e596b; font-size: 11px; line-height: 1.6; }
.cloud-payment-instructions strong { color: #20394e; }
.cloud-payment-instructions code { max-width: 100%; padding: 5px 8px; border-radius: 5px; background: #fff; color: #25465b; font-size: 11px; }
.cloud-payment-instructions small { flex: 1 1 100%; color: #738798; }
.cloud-payment-instructions .row-button,.cloud-payment-instructions .button { min-height: 34px; padding: 7px 11px; }
.cloud-payment-qr { display: flex; width: 212px; min-height: 212px; align-items: center; justify-content: center; padding: 8px; border: 1px solid #d7e3e9; border-radius: 10px; background: #fff; }
.cloud-payment-qr img,.cloud-payment-qr canvas { display: block; max-width: 196px; height: auto; }
.cloud-plan-summary { display: flex; flex-wrap: wrap; gap: 12px; }
.cloud-page-progress { margin: 16px 0; }
.vm-detail-secret { max-width: 100%; overflow-wrap: anywhere; }
.inventory-panel.vm-service-panel { min-height: 0; margin-top: 0; }
.vm-service-panel .panel-heading { align-items: center; }
.vm-service-panel .panel-heading > div { min-width: 0; }
.vm-service-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 0; margin: 0; padding: 5px 24px 13px; }
.vm-service-facts > div { min-width: 0; padding: 15px 12px 15px 0; border-bottom: 1px solid #edf1f5; }
.vm-service-facts dt { margin: 0 0 8px; color: #91a0af; font-size: 11px; font-weight: 700; }
.vm-service-facts dd { margin: 0; color: #273c52; font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.service-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 6px; background: #f1f3f6; color: #758499; font-size: 11px; font-weight: 800; white-space: nowrap; }
.service-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.service-pill.active { background: #e7f8ef; color: #20966a; }
.service-pill.warning { background: #fff4e5; color: #a87120; }
.service-pill.stopped { background: #fff0f1; color: #bd4654; }
.service-pill.unknown { background: #f1f3f6; color: #758499; }
.vm-traffic-progress { height: 8px; margin: 0 24px 16px; overflow: hidden; border-radius: 999px; background: #e7eef2; }
.vm-traffic-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1bb6b0, #0f9eaa); transition: width .25s ease; }
.vm-traffic-progress.is-exhausted > span { background: #d94350; }
.vm-traffic-daily { margin-top: 18px; overflow: hidden; }
.vm-traffic-daily-status { margin: 0 24px 4px; padding: 9px 12px; border-radius: 8px; background: #eaf7f7; color: #277b82; font-size: 11px; line-height: 1.5; }
.vm-traffic-daily-status.warning { background: #fff6e9; color: #946620; }
.vm-traffic-daily-plot { display: flex; align-items: center; justify-content: center; height: 300px; margin: 4px 20px 2px; overflow: hidden; }
.vm-traffic-daily-plot svg { display: block; width: 100%; height: 100%; font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; }
.vm-traffic-daily-bar.download { fill: #17a685; }
.vm-traffic-daily-bar.upload { fill: #926ed0; }
.vm-traffic-daily-bar { transition: opacity .15s ease; }
.vm-traffic-daily-bar:hover { opacity: .72; }
.vm-traffic-daily-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 0 24px 21px; color: #728297; font-size: 10px; font-weight: 700; }
.vm-traffic-daily-legend span { display: inline-flex; align-items: center; gap: 7px; }
.vm-traffic-daily-legend i { width: 13px; height: 8px; border-radius: 2px; }
.vm-traffic-daily-legend i.download { background: #17a685; }
.vm-traffic-daily-legend i.upload { background: #926ed0; }
.ssh-key-choice-label { align-self: center; }
#vm-plan-summary { display: block; padding: 16px; }
#cloud-page-error { margin-bottom: 20px; }
@media (max-width: 960px) {
.panel-sidebar { height: auto; min-height: 65px; padding: 12px 24px; }
.panel-sidebar-header { width: 100%; align-items: center; }
.panel-sidebar .sidebar-brand { flex: 1 1 auto; }
.panel-nav-toggle { display: inline-flex; flex: none; }
.panel-sidebar .panel-sidebar-nav,
.panel-sidebar .panel-sidebar-bottom { display: none; }
.panel-sidebar.is-open { max-height: 100vh; overflow-y: auto; }
.panel-sidebar.is-open .panel-sidebar-nav { display: block; width: 100%; padding: 9px 0 4px; }
.panel-sidebar.is-open .panel-sidebar-nav .sidebar-section-label { display: block; margin: 13px 14px 7px; }
.panel-sidebar.is-open .panel-sidebar-nav .sidebar-link,
.panel-sidebar.is-open .panel-sidebar-bottom .sidebar-link { display: flex; }
.panel-sidebar.is-open .panel-sidebar-bottom { display: grid; width: 100%; margin-top: 3px; }
.panel-sidebar.is-open .sidebar-caption { display: block; }
.admin-menu-options { min-width: 190px; }
}
@media (max-width: 740px) {
.cloud-order { grid-template-columns: 1fr; gap: 13px; }
.cloud-order-actions { justify-content: flex-start; }
.vm-service-panel .panel-heading { align-items: flex-start; }
.vm-traffic-daily-plot { height: 250px; margin-inline: 12px; }
}
@media (max-width: 520px) {
.topbar-right { gap: 6px; }
.topbar-user > span:last-child,
.topbar-user #current-username { display: none; }
#logout-button,
.panel-topbar-logout { padding-inline: 9px; }
.cloud-order { padding: 19px 17px; }
.cloud-order-actions { width: 100%; }
.cloud-order-actions .row-button { flex: 1 1 145px; }
.invoice-balance-card { align-items: flex-start; flex-wrap: wrap; }
.invoice-balance-card strong { flex: 1 1 calc(100% - 130px); }
.vm-detail-tabs { width: 100%; }
.vm-detail-tab { flex: 1 0 auto; padding-inline: 12px; }
.vm-service-facts { grid-template-columns: 1fr 1fr; padding: 4px 17px 12px; }
.vm-service-facts > div { padding: 12px 8px 12px 0; }
.vm-traffic-progress { margin: 0 17px 14px; }
.vm-traffic-daily-status { margin-inline: 17px; }
.vm-traffic-daily-legend { padding-inline: 17px; }
}