boot-page.module.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /* The framework-free boot page cannot depend on theme delivery succeeding. */
  2. .boot {
  3. --dsh-boot-bg: #fff;
  4. --dsh-boot-label-primary: #0f1115;
  5. --dsh-boot-label-secondary: #61666b;
  6. --dsh-boot-label-tertiary: #81858c;
  7. --dsh-boot-border: rgb(0 0 0 / 10%);
  8. --dsh-boot-brand: #0f1115;
  9. height: 100%;
  10. display: grid;
  11. place-items: center;
  12. background: var(--dsw-alias-bg-base, var(--dsh-boot-bg));
  13. }
  14. :global(body[data-ds-dark-theme]) .boot {
  15. --dsh-boot-bg: #151517;
  16. --dsh-boot-label-primary: #f9fafb;
  17. --dsh-boot-label-secondary: #cfd3d6;
  18. --dsh-boot-label-tertiary: #adb2b8;
  19. --dsh-boot-border: rgb(255 255 255 / 12%);
  20. --dsh-boot-brand: #f9fafb;
  21. }
  22. .card {
  23. display: flex;
  24. flex-direction: column;
  25. align-items: center;
  26. gap: 16px;
  27. }
  28. .wordmark {
  29. font-size: 16px;
  30. line-height: 24px;
  31. font-weight: 600;
  32. letter-spacing: 0.08em;
  33. color: var(--dsw-alias-label-primary, var(--dsh-boot-label-primary));
  34. }
  35. .hint {
  36. font-size: 12px;
  37. line-height: 18px;
  38. color: var(--dsw-alias-label-tertiary, var(--dsh-boot-label-tertiary));
  39. }
  40. .spinner {
  41. position: relative;
  42. width: 20px;
  43. height: 20px;
  44. border-radius: 50%;
  45. corner-shape: round;
  46. border: 2px solid var(--dsw-alias-border-l2, var(--dsh-boot-border));
  47. animation: spin 0.8s linear infinite;
  48. }
  49. .spinner::after {
  50. content: '';
  51. position: absolute;
  52. inset: -2px;
  53. border-radius: inherit;
  54. background: conic-gradient(
  55. var(--dsw-alias-brand-primary, var(--dsh-boot-brand)) var(--dsh-boot-arc, 72deg),
  56. transparent 0
  57. );
  58. -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  59. mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  60. }
  61. @keyframes spin {
  62. to { transform: rotate(360deg); }
  63. }
  64. .failed {
  65. max-width: 480px;
  66. display: flex;
  67. flex-direction: column;
  68. gap: 8px;
  69. }
  70. .failedTitle {
  71. font-size: 14px;
  72. line-height: 22px;
  73. font-weight: 600;
  74. color: var(--dsw-alias-label-primary, var(--dsh-boot-label-primary));
  75. }
  76. .failedItem {
  77. font-family: var(
  78. --ds-font-family-code,
  79. 'SF Mono',
  80. 'JetBrains Mono',
  81. 'Fira Code',
  82. Consolas,
  83. 'Liberation Mono',
  84. Menlo,
  85. Courier,
  86. 'PingFang SC',
  87. 'Microsoft YaHei'
  88. );
  89. font-size: 12px;
  90. line-height: 18px;
  91. color: var(--dsw-alias-label-secondary, var(--dsh-boot-label-secondary));
  92. white-space: pre-wrap;
  93. }