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

110 lines
7.2 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 { 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; }
.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; }
.vm-service-panel { margin-top: 18px; }
.vm-service-panel .panel-heading { align-items: center; }
.vm-service-panel .panel-heading > div { min-width: 0; }
.vm-renew-button { flex: none; }
.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 22px; 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; }
.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-service-panel .vm-renew-button { width: 100%; }
}
@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; }
.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 18px; }
}