index.module.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. .pageHeader {
  2. @apply px-16 flex justify-between items-center;
  3. position: sticky;
  4. top: 0;
  5. left: 0;
  6. padding-top: 42px;
  7. padding-bottom: 12px;
  8. background-color: #fff;
  9. font-weight: 600;
  10. font-size: 18px;
  11. line-height: 28px;
  12. color: #101828;
  13. z-index: 10;
  14. }
  15. .segmentationItem {
  16. min-height: 68px;
  17. }
  18. .indexItem {
  19. min-height: 126px;
  20. }
  21. .indexItem .disableMask {
  22. position: absolute;
  23. top: 0;
  24. left: 0;
  25. width: 100%;
  26. height: 100%;
  27. background-color: rgba(255, 255, 255, 0.5);
  28. border-radius: 12px;
  29. z-index: 2;
  30. }
  31. .indexItem .warningTip {
  32. position: absolute;
  33. bottom: 0;
  34. left: 0;
  35. width: 100%;
  36. padding: 8px 20px 8px 40px;
  37. background: #FFFAEB;
  38. border-top: 0.5px solid #FEF0C7;
  39. border-radius: 12px;
  40. font-size: 12px;
  41. line-height: 18px;
  42. color: #344054;
  43. z-index: 3;
  44. }
  45. .indexItem .warningTip::before {
  46. content: '';
  47. position: absolute;
  48. top: 11px;
  49. left: 20px;
  50. width: 12px;
  51. height: 12px;
  52. background: center no-repeat url(../assets/alert-triangle.svg);
  53. background-size: 12px;
  54. }
  55. .indexItem .warningTip .click {
  56. color: #155EEF;
  57. cursor: pointer;
  58. }
  59. .disabled {
  60. cursor: not-allowed !important;
  61. }
  62. .indexItem.disabled:hover {
  63. background-color: #fcfcfd;
  64. border-color: #f2f4f7;
  65. box-shadow: none;
  66. cursor: default;
  67. }
  68. .indexItem.disabled:hover .radio {
  69. @apply w-4 h-4 border-[2px] border-gray-200 rounded-full;
  70. }
  71. .radioItem {
  72. @apply relative mb-2 rounded-xl border border-components-option-card-option-border cursor-pointer bg-components-option-card-option-bg;
  73. }
  74. .radioItem.segmentationItem.custom {
  75. height: auto;
  76. }
  77. .radioItem.segmentationItem.custom .typeHeader {
  78. /* height: 65px; */
  79. }
  80. .radioItem.indexItem .typeHeader {
  81. @apply py-4 pr-5;
  82. }
  83. .radioItem.indexItem.active .typeHeader {
  84. padding: 15.5px 19.5px 15.5px 63.5px;
  85. }
  86. .radioItem.indexItem .radio {
  87. top: 16px;
  88. right: 20px;
  89. }
  90. .radioItem.indexItem.active .radio {
  91. top: 16px;
  92. right: 19.5px;
  93. }
  94. .radioItem.indexItem .typeHeader .title {
  95. @apply pb-1;
  96. }
  97. .radioItem .typeIcon {
  98. position: absolute;
  99. top: 18px;
  100. left: 20px;
  101. width: 32px;
  102. height: 32px;
  103. background: #EEF4FF center no-repeat;
  104. border-radius: 8px;
  105. }
  106. .typeIcon.auto {
  107. background-color: #F5F3FF;
  108. background-image: url(../assets/zap-fast.svg);
  109. }
  110. .typeIcon.customize {
  111. background-image: url(../assets/sliders-02.svg);
  112. }
  113. .typeIcon.qualified {
  114. background-color: #FFF6ED;
  115. background-image: url(../assets/star-07.svg);
  116. }
  117. .typeIcon.economical {
  118. background-image: url(../assets/piggy-bank-mod.svg);
  119. }
  120. .radioItem .radio {
  121. @apply w-4 h-4 border-[2px] border-gray-200 rounded-full;
  122. position: absolute;
  123. top: 26px;
  124. right: 20px;
  125. }
  126. .radioItem:hover {
  127. background-color: #ffffff;
  128. border-color: #B2CCFF;
  129. box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
  130. }
  131. .radioItem:hover .radio {
  132. border-color: #155eef;
  133. }
  134. .radioItem.active {
  135. border-width: 1.5px;
  136. border-color: #528BFF;
  137. box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
  138. }
  139. .radioItem.active .radio {
  140. top: 25.5px;
  141. right: 19.5px;
  142. border-width: 5px;
  143. border-color: #155EEF;
  144. }
  145. .radioItem.active:hover {
  146. border-width: 1.5px;
  147. border-color: #528BFF;
  148. box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
  149. }
  150. .radioItem.active .typeIcon {
  151. top: 17.5px;
  152. left: 19.5px;
  153. }
  154. .radioItem.active .typeHeader {
  155. padding: 11.5px 63.5px;
  156. }
  157. .typeHeader {
  158. @apply flex flex-col px-16 py-3 justify-center;
  159. }
  160. .typeHeader .title {
  161. display: flex;
  162. align-items: center;
  163. padding-bottom: 2px;
  164. font-weight: 500;
  165. font-size: 16px;
  166. line-height: 24px;
  167. color: #101828;
  168. }
  169. .typeHeader .tip {
  170. font-weight: 400;
  171. font-size: 13px;
  172. line-height: 18px;
  173. color: #667085;
  174. }
  175. .recommendTag {
  176. display: inline-flex;
  177. justify-content: center;
  178. align-items: center;
  179. padding: 0 6px;
  180. margin-left: 4px;
  181. border: 1px solid #E0EAFF;
  182. border-radius: 6px;
  183. font-weight: 500;
  184. font-size: 12px;
  185. line-height: 20px;
  186. color: #444CE7;
  187. }
  188. .typeFormBody {
  189. @apply px-16;
  190. border-top: 1px solid #F2F4F7;
  191. }
  192. .formRow {
  193. @apply flex justify-between mt-6;
  194. }
  195. .formRow .label {
  196. @apply mb-2 p-0;
  197. font-weight: 500;
  198. font-size: 14px;
  199. line-height: 20px;
  200. color: #101828;
  201. }
  202. .ruleItem {
  203. @apply flex items-center py-1.5;
  204. }
  205. .formFooter {
  206. padding: 16px 0 28px;
  207. }
  208. .formFooter .button {
  209. font-size: 13px;
  210. line-height: 18px;
  211. }
  212. .input {
  213. @apply inline-flex h-9 w-full py-1 px-2 pr-14 rounded-lg text-xs leading-normal;
  214. @apply bg-gray-100 caret-primary-600 hover:bg-gray-100 focus:ring-1 focus:ring-inset focus:ring-gray-200 focus-visible:outline-none focus:bg-white placeholder:text-gray-400;
  215. }
  216. .source {
  217. @apply flex justify-between items-center mt-8 px-6 py-4 rounded-xl bg-gray-50 border border-gray-100;
  218. }
  219. .source .divider {
  220. @apply shrink-0 mx-4 w-px bg-gray-200;
  221. height: 42px;
  222. }
  223. .fileIcon {
  224. @apply inline-flex mr-1 w-6 h-6 bg-center bg-no-repeat;
  225. background-image: url(../assets/pdf.svg);
  226. background-size: 24px;
  227. }
  228. .fileIcon.pdf {
  229. background-image: url(../assets/pdf.svg);
  230. }
  231. .fileIcon.csv {
  232. background-image: url(../assets/csv.svg);
  233. }
  234. .fileIcon.doc {
  235. background-image: url(../assets/doc.svg);
  236. }
  237. .fileIcon.docx {
  238. background-image: url(../assets/docx.svg);
  239. }
  240. .fileIcon.xlsx,
  241. .fileIcon.xls {
  242. background-image: url(../assets/xlsx.svg);
  243. }
  244. .fileIcon.html,
  245. .fileIcon.htm {
  246. background-image: url(../assets/html.svg);
  247. }
  248. .fileIcon.md,
  249. .fileIcon.markdown {
  250. background-image: url(../assets/md.svg);
  251. }
  252. .fileIcon.txt {
  253. background-image: url(../assets/txt.svg);
  254. }
  255. .fileIcon.json {
  256. background-image: url(../assets/json.svg);
  257. }
  258. .sourceContent {
  259. width: 0;
  260. flex: 1 1 auto;
  261. }
  262. .sourceCount {
  263. @apply shrink-0 ml-1;
  264. font-weight: 500;
  265. font-size: 13px;
  266. line-height: 18px;
  267. color: #667085;
  268. }
  269. .segmentCount {
  270. flex: 1 1 30%;
  271. max-width: 120px;
  272. }
  273. .divider {
  274. @apply mx-3 w-px h-4 bg-gray-200;
  275. }
  276. .calculating {
  277. color: #98A2B3;
  278. font-size: 12px;
  279. line-height: 18px;
  280. }
  281. .sideTip {
  282. @apply flex flex-col items-center shrink-0;
  283. padding-top: 108px;
  284. width: 524px;
  285. border-left: 0.5px solid #F2F4F7;
  286. }
  287. .tipCard {
  288. @apply flex flex-col items-start p-6;
  289. width: 320px;
  290. background-color: #F9FAFB;
  291. box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  292. border-radius: 12px;
  293. }
  294. .tipCard .icon {
  295. width: 32px;
  296. height: 32px;
  297. border: 1px solid #EAECF0;
  298. border-radius: 6px;
  299. background: center no-repeat url(../assets/book-open-01.svg);
  300. background-size: 16px;
  301. }
  302. .tipCard .title {
  303. margin: 12px 0;
  304. font-weight: 500;
  305. font-size: 16px;
  306. line-height: 24px;
  307. color: #344054;
  308. }
  309. .tipCard .content {
  310. font-weight: 400;
  311. font-size: 14px;
  312. line-height: 20px;
  313. color: #344054;
  314. }
  315. .previewWrap {
  316. flex-shrink: 0;
  317. width: 524px;
  318. }
  319. .previewWrap.isMobile {
  320. max-width: 524px;
  321. }
  322. /*
  323. * `fixed` must under `previewHeader` because of style override would not work
  324. */
  325. .fixed {
  326. padding-top: 12px;
  327. font-size: 12px;
  328. line-height: 18px;
  329. background: rgba(255, 255, 255, 0.9);
  330. border-bottom: 0.5px solid #EAECF0;
  331. backdrop-filter: blur(4px);
  332. animation: fix 0.5s;
  333. }
  334. @keyframes fix {
  335. from {
  336. padding-top: 42px;
  337. font-size: 18px;
  338. line-height: 28px;
  339. }
  340. to {
  341. padding-top: 12px;
  342. font-size: 12px;
  343. line-height: 18px;
  344. }
  345. }