QuestionComposer.module.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. .frame {
  2. display: flex;
  3. justify-content: center;
  4. padding: 6px 24px 10px;
  5. }
  6. .card {
  7. display: flex;
  8. flex-direction: column;
  9. width: 100%;
  10. max-width: 720px;
  11. /* Composer seat sits in a fixed-height conversation column (overflow
  12. hidden): cap the card against the viewport and scroll the option list
  13. so header and footer actions stay reachable on long batches. */
  14. max-height: min(60vh, 520px);
  15. padding: 14px 16px 12px;
  16. border: 1px solid var(--dsw-alias-border-l2-darkmode-thin);
  17. border-radius: 18px;
  18. background: var(--dsw-specific-input-major);
  19. box-shadow: var(--dsw-shadow-lv1-blur);
  20. color: var(--dsw-alias-label-primary);
  21. }
  22. .card,
  23. .card * {
  24. box-sizing: border-box;
  25. }
  26. .header {
  27. display: flex;
  28. align-items: flex-start;
  29. justify-content: space-between;
  30. gap: 16px;
  31. flex-shrink: 0;
  32. margin-bottom: 8px;
  33. }
  34. .headingBlock {
  35. min-width: 0;
  36. padding: 1px 2px;
  37. }
  38. .eyebrow {
  39. margin-bottom: 2px;
  40. color: var(--dsw-alias-label-tertiary);
  41. font-size: 11px;
  42. line-height: 16px;
  43. }
  44. .title {
  45. display: flex;
  46. align-items: baseline;
  47. flex-wrap: wrap;
  48. gap: 6px;
  49. margin: 0;
  50. font-size: 16px;
  51. line-height: 22px;
  52. font-weight: 600;
  53. }
  54. .multiSelectHint {
  55. color: var(--dsw-alias-label-tertiary);
  56. font-size: 14px;
  57. line-height: 20px;
  58. font-weight: 400;
  59. white-space: nowrap;
  60. }
  61. .detail {
  62. margin: 0 2px 8px;
  63. color: var(--dsw-alias-label-tertiary);
  64. font-size: 13px;
  65. line-height: 20px;
  66. font-weight: 400;
  67. }
  68. .headerActions,
  69. .footerActions {
  70. display: flex;
  71. align-items: center;
  72. gap: 4px;
  73. flex-shrink: 0;
  74. }
  75. .progress {
  76. padding: 0 6px;
  77. color: var(--dsw-alias-label-tertiary);
  78. font-size: 12px;
  79. line-height: 24px;
  80. white-space: nowrap;
  81. }
  82. .iconButton {
  83. display: grid;
  84. place-items: center;
  85. width: 24px;
  86. height: 24px;
  87. padding: 0;
  88. border: none;
  89. border-radius: 999px;
  90. background: transparent;
  91. color: var(--dsw-alias-label-tertiary);
  92. cursor: pointer;
  93. }
  94. .iconButton:hover:not(:disabled) {
  95. background: var(--dsw-alias-interactive-bg-hover);
  96. color: var(--dsw-alias-label-primary);
  97. }
  98. .iconButton:disabled {
  99. color: var(--dsw-alias-label-dimmed);
  100. cursor: default;
  101. }
  102. .body {
  103. display: flex;
  104. flex: 1 1 auto;
  105. flex-direction: column;
  106. min-height: 0;
  107. overflow-y: auto;
  108. overscroll-behavior: contain;
  109. }
  110. .options {
  111. display: flex;
  112. flex-direction: column;
  113. gap: 4px;
  114. }
  115. .option {
  116. display: flex;
  117. align-items: center;
  118. gap: 10px;
  119. width: 100%;
  120. min-height: 42px;
  121. padding: 5px 8px;
  122. border: 1px solid transparent;
  123. border-radius: 12px;
  124. background: transparent;
  125. color: inherit;
  126. text-align: left;
  127. cursor: pointer;
  128. transition: background-color 120ms ease, border-color 120ms ease;
  129. }
  130. .option:hover:not(:disabled),
  131. .optionSelected {
  132. background: var(--dsw-alias-interactive-bg-hover);
  133. }
  134. .optionSelected {
  135. border-color: var(--dsw-alias-border-l2);
  136. }
  137. .option:disabled,
  138. .customTrigger:disabled {
  139. cursor: default;
  140. }
  141. .number {
  142. display: grid;
  143. place-items: center;
  144. flex: 0 0 28px;
  145. width: 28px;
  146. height: 28px;
  147. border: 1px solid var(--dsw-alias-border-l2);
  148. border-radius: 999px;
  149. background: var(--dsw-alias-bg-module-platform);
  150. color: var(--dsw-alias-label-tertiary);
  151. font-size: 12px;
  152. line-height: 18px;
  153. }
  154. .optionCopy {
  155. min-width: 0;
  156. flex: 1;
  157. }
  158. .optionLine {
  159. display: flex;
  160. align-items: baseline;
  161. flex-wrap: wrap;
  162. gap: 2px 6px;
  163. }
  164. .optionLabel {
  165. font-size: 14px;
  166. line-height: 20px;
  167. font-weight: 600;
  168. }
  169. .badge {
  170. padding: 0 6px;
  171. border-radius: 999px;
  172. background: var(--dsw-alias-bg-module-platform);
  173. color: var(--dsw-alias-label-secondary);
  174. font-size: 11px;
  175. line-height: 18px;
  176. }
  177. .description {
  178. color: var(--dsw-alias-label-tertiary);
  179. font-size: 13px;
  180. line-height: 20px;
  181. font-weight: 400;
  182. }
  183. .choiceIcon {
  184. display: grid;
  185. place-items: center;
  186. width: 20px;
  187. color: var(--dsw-alias-label-tertiary);
  188. }
  189. .custom {
  190. border: 1px solid transparent;
  191. border-radius: 12px;
  192. }
  193. .customOpen {
  194. border-color: var(--dsw-alias-border-l2);
  195. background: var(--dsw-alias-bg-module-platform);
  196. }
  197. .customOptionless {
  198. border: none;
  199. background: transparent;
  200. }
  201. .customTrigger {
  202. display: flex;
  203. align-items: center;
  204. gap: 10px;
  205. width: 100%;
  206. min-height: 42px;
  207. padding: 5px 8px;
  208. border: none;
  209. background: transparent;
  210. color: var(--dsw-alias-label-tertiary);
  211. font-size: 14px;
  212. line-height: 20px;
  213. text-align: left;
  214. cursor: pointer;
  215. }
  216. .customTrigger:hover:not(:disabled) {
  217. color: var(--dsw-alias-label-primary);
  218. }
  219. .customInput {
  220. display: block;
  221. width: calc(100% - 20px);
  222. min-height: 54px;
  223. max-height: 140px;
  224. margin: 0 10px 10px;
  225. padding: 7px 10px;
  226. resize: vertical;
  227. border: 1px solid var(--dsw-alias-border-l2);
  228. border-radius: 10px;
  229. outline: none;
  230. background: var(--dsw-specific-input-major);
  231. color: var(--dsw-alias-label-primary);
  232. caret-color: var(--dsw-alias-state-business-primary);
  233. font: inherit;
  234. font-size: 13px;
  235. line-height: 20px;
  236. }
  237. .customInput:focus {
  238. border-color: var(--dsw-alias-state-business-primary);
  239. }
  240. .customInput::placeholder {
  241. color: var(--dsw-alias-label-caption);
  242. }
  243. .customOptionless .customInput {
  244. width: 100%;
  245. min-height: 58px;
  246. margin: 0;
  247. background: var(--dsw-alias-bg-module-platform);
  248. }
  249. .footer {
  250. display: flex;
  251. align-items: center;
  252. justify-content: space-between;
  253. gap: 12px;
  254. flex-shrink: 0;
  255. margin-top: 8px;
  256. padding: 0 2px;
  257. }
  258. .feedback {
  259. min-height: 16px;
  260. color: var(--dsw-alias-state-error-primary);
  261. font-size: 11px;
  262. line-height: 16px;
  263. }
  264. @media (max-width: 720px) {
  265. .frame {
  266. padding: 6px 10px 10px;
  267. }
  268. .card {
  269. padding: 12px 10px 10px;
  270. border-radius: 16px;
  271. }
  272. .header {
  273. display: block;
  274. }
  275. .headerActions {
  276. justify-content: flex-end;
  277. margin-top: 8px;
  278. }
  279. .headingBlock {
  280. padding: 0 2px;
  281. }
  282. .title {
  283. font-size: 15px;
  284. line-height: 21px;
  285. }
  286. .option,
  287. .customTrigger {
  288. align-items: flex-start;
  289. gap: 8px;
  290. padding: 6px;
  291. }
  292. .choiceIcon {
  293. margin-top: 3px;
  294. }
  295. .footer {
  296. align-items: flex-end;
  297. }
  298. .footerActions {
  299. flex-shrink: 0;
  300. }
  301. }
  302. @media (prefers-reduced-motion: reduce) {
  303. .option {
  304. transition: none;
  305. }
  306. }