HostList.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .hosts-card {
  2. width: 100%;
  3. }
  4. .host-remark-cell {
  5. display: flex;
  6. flex-direction: column;
  7. line-height: 1.3;
  8. }
  9. .host-remark {
  10. font-weight: 500;
  11. }
  12. .host-desc {
  13. font-size: 0.82em;
  14. color: var(--ant-color-text-secondary);
  15. }
  16. .host-endpoint {
  17. font-family: var(--font-mono, monospace);
  18. font-size: 0.92em;
  19. }
  20. .host-muted {
  21. color: var(--ant-color-text-quaternary);
  22. }
  23. /* card-toolbar is shared with the Clients/Inbounds list cards, but its rules
  24. live in a lazily-loaded page stylesheet — re-declare here so the Hosts page
  25. renders correctly when opened directly. */
  26. .hosts-card .card-toolbar {
  27. display: flex;
  28. align-items: center;
  29. gap: 8px;
  30. flex-wrap: wrap;
  31. padding: 6px 0;
  32. }
  33. @media (min-width: 769px) and (max-width: 920px) {
  34. .hosts-card .card-toolbar {
  35. gap: 6px;
  36. }
  37. }
  38. /* Empty-table state. The shared .card-empty rule otherwise lives only in the
  39. lazily-loaded Clients/Inbounds/Nodes stylesheets, so a direct /hosts refresh
  40. would render it unstyled (faint + uncentered) until another page is visited.
  41. Re-declare it here so it's correct on first load. */
  42. .card-empty {
  43. text-align: center;
  44. color: var(--ant-color-text-secondary);
  45. padding: 24px 12px;
  46. display: flex;
  47. flex-direction: column;
  48. align-items: center;
  49. gap: 8px;
  50. }