SettingsRoot.module.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /* Settings shell (figma 501:29904 mask context / 501:29947 panel): sidebar
  2. foot trigger row + centered 1080x700 modal panel. The trigger reproduces
  3. the former sidebar foot geometry (49px wide row / 36px rail circle); the
  4. panel is a two-column layout — 188px nav rail + content column with a
  5. 54px header and the 24px-padded options area. */
  6. /* Trigger row (former sidebar foot, figma 133:7668): 49px hover pill. */
  7. .trigger {
  8. flex: none;
  9. display: flex;
  10. align-items: center;
  11. gap: 8px;
  12. width: 100%;
  13. height: 49px;
  14. margin: 8px 0 0;
  15. padding: 0 2px 0 6px;
  16. border: none;
  17. border-radius: 12px;
  18. background: transparent;
  19. cursor: pointer;
  20. overflow: hidden;
  21. color: var(--dsw-alias-label-primary);
  22. font-family: inherit;
  23. font-size: 14px;
  24. }
  25. .trigger:hover {
  26. background: var(--dsw-alias-interactive-bg-hover);
  27. }
  28. /* Rail trigger: the same 36x36 circle box as the other rail controls. */
  29. .trigger.rail {
  30. width: 36px;
  31. height: 36px;
  32. margin: 18px 0 10px;
  33. justify-content: center;
  34. gap: 0;
  35. padding: 0;
  36. border-radius: 50%;
  37. }
  38. .triggerLabel {
  39. overflow: hidden;
  40. white-space: nowrap;
  41. }
  42. /* Full-viewport layer (figma Mask 501:29946 #000@24%): mask tokens match the
  43. Modal primitive (--dsw-alias-bg-mask-1 + --dsw-mask-blur). */
  44. .overlay {
  45. position: fixed;
  46. inset: 0;
  47. z-index: 1000;
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. }
  52. .mask {
  53. position: absolute;
  54. inset: 0;
  55. background: var(--dsw-alias-bg-mask-1);
  56. backdrop-filter: var(--dsw-mask-blur);
  57. }
  58. /* Panel (figma Settings 501:29947): r24, white, lv3 shadow (figma effects
  59. match --dsw-shadow-lv3 exactly); figma's 1080x700 is shrunk to 800x600. */
  60. .panel {
  61. position: relative;
  62. z-index: 1;
  63. display: flex;
  64. width: 800px;
  65. height: 600px;
  66. max-width: calc(100vw - 48px);
  67. max-height: calc(100vh - 48px);
  68. border-radius: 24px;
  69. overflow: hidden;
  70. background: var(--dsw-alias-bg-layer-2);
  71. box-shadow: var(--dsw-shadow-lv3);
  72. }
  73. /* Nav rail (figma .Setting-nav 501:29958): 188 wide, pad (12,22,12,0),
  74. gap 18, no own fill — the panel white shows through. */
  75. .nav {
  76. flex: none;
  77. display: flex;
  78. flex-direction: column;
  79. gap: 18px;
  80. width: 188px;
  81. padding: 22px 12px 0;
  82. box-sizing: border-box;
  83. }
  84. /* Title row (figma 501:29959): 16/500 lh24, 12px side padding. */
  85. .navTitle {
  86. padding: 0 12px;
  87. font-size: 16px;
  88. line-height: 24px;
  89. font-weight: 500;
  90. color: var(--dsw-alias-label-primary);
  91. }
  92. /* Cell stack (figma 501:29961): gap 4. */
  93. .navList {
  94. display: flex;
  95. flex-direction: column;
  96. gap: 4px;
  97. }
  98. /* Nav cell (figma .Setting-nav-cell 501:29962): 164x40, r12, pad
  99. (12,9,16,9), gap 8; label 14/400 lh22; selected fill #EBEEF2. */
  100. .navCell {
  101. display: flex;
  102. align-items: center;
  103. gap: 8px;
  104. height: 40px;
  105. padding: 9px 16px 9px 12px;
  106. box-sizing: border-box;
  107. border: none;
  108. border-radius: 12px;
  109. background: transparent;
  110. cursor: pointer;
  111. font-family: inherit;
  112. font-size: 14px;
  113. line-height: 22px;
  114. font-weight: 400;
  115. color: var(--dsw-alias-label-primary);
  116. text-align: left;
  117. }
  118. .navCell:hover {
  119. background: var(--dsw-specific-sidebar-nav-item-hover);
  120. }
  121. .navCell.active {
  122. background: var(--dsw-specific-sidebar-nav-item-active);
  123. }
  124. .navIcon {
  125. flex: none;
  126. }
  127. .navLabel {
  128. flex: 1;
  129. min-width: 0;
  130. overflow: hidden;
  131. white-space: nowrap;
  132. text-overflow: ellipsis;
  133. }
  134. /* Content column (figma Content 501:29980): header + options. */
  135. .content {
  136. flex: 1;
  137. min-width: 0;
  138. display: flex;
  139. flex-direction: column;
  140. }
  141. /* Header (figma .Header 501:29981): h54, pad (10,20,14,8), close right. */
  142. .header {
  143. flex: none;
  144. display: flex;
  145. align-items: flex-start;
  146. justify-content: flex-end;
  147. height: 54px;
  148. padding: 20px 14px 8px 10px;
  149. box-sizing: border-box;
  150. }
  151. /* Close button (figma .Icon_container 501:29982): 28x28, r28, 14px glyph. */
  152. .close {
  153. display: inline-flex;
  154. align-items: center;
  155. justify-content: center;
  156. width: 28px;
  157. height: 28px;
  158. padding: 0;
  159. border: none;
  160. border-radius: 28px;
  161. background: transparent;
  162. cursor: pointer;
  163. color: var(--dsw-alias-label-primary);
  164. }
  165. .close:hover {
  166. background: var(--dsw-alias-interactive-bg-hover);
  167. }
  168. /* Options area (figma Options 501:29983): pad (24,0,24,8), scrolls. */
  169. .options {
  170. flex: 1;
  171. min-height: 0;
  172. padding: 0 24px 8px;
  173. overflow-y: auto;
  174. }
  175. /* Visually-hidden text seat (close button accessible name from slot content). */
  176. .hiddenLabel {
  177. position: absolute;
  178. width: 1px;
  179. height: 1px;
  180. overflow: hidden;
  181. clip: rect(0 0 0 0);
  182. white-space: nowrap;
  183. }