list.module.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. .listItem {
  2. @apply col-span-1 bg-white border-2 border-solid border-transparent rounded-lg shadow-xs min-h-[160px] flex flex-col transition-all duration-200 ease-in-out cursor-pointer hover:shadow-lg;
  3. }
  4. .listItem.newItemCard {
  5. @apply outline outline-1 outline-gray-200 -outline-offset-1 hover:shadow-sm hover:bg-white;
  6. background-color: rgba(229, 231, 235, 0.5);
  7. }
  8. .listItem.selectable {
  9. @apply relative bg-gray-50 outline outline-1 outline-gray-200 -outline-offset-1 shadow-none hover:bg-none hover:shadow-none hover:outline-primary-200 transition-colors;
  10. }
  11. .listItem.selectable * {
  12. @apply relative;
  13. }
  14. .listItem.selectable::before {
  15. content: "";
  16. @apply absolute top-0 left-0 block w-full h-full rounded-lg pointer-events-none opacity-0 transition-opacity duration-200 ease-in-out hover:opacity-100;
  17. background: linear-gradient(
  18. 0deg,
  19. rgba(235, 245, 255, 0.5),
  20. rgba(235, 245, 255, 0.5)
  21. ),
  22. #ffffff;
  23. }
  24. .listItem.selectable:hover::before {
  25. @apply opacity-100;
  26. }
  27. .listItem.selected {
  28. @apply border-primary-600 hover:border-primary-600 border-2;
  29. }
  30. .listItem.selected::before {
  31. @apply opacity-100;
  32. }
  33. .appIcon {
  34. @apply flex items-center justify-center w-8 h-8 bg-pink-100 rounded-lg grow-0 shrink-0;
  35. }
  36. .appIcon.medium {
  37. @apply w-9 h-9;
  38. }
  39. .appIcon.large {
  40. @apply w-10 h-10;
  41. }
  42. .newItemIcon {
  43. @apply flex items-center justify-center w-8 h-8 transition-colors duration-200 ease-in-out border border-gray-200 rounded-lg hover:bg-white grow-0 shrink-0;
  44. }
  45. .listItem:hover .newItemIcon {
  46. @apply bg-gray-50 border-primary-100;
  47. }
  48. .newItemCard .newItemIcon {
  49. @apply bg-gray-100;
  50. }
  51. .newItemCard:hover .newItemIcon {
  52. @apply bg-white;
  53. }
  54. .selectable .newItemIcon {
  55. @apply bg-gray-50;
  56. }
  57. .selectable:hover .newItemIcon {
  58. @apply bg-primary-50;
  59. }
  60. .newItemIconImage {
  61. @apply grow-0 shrink-0 block w-4 h-4 bg-center bg-contain transition-colors duration-200 ease-in-out;
  62. color: #1f2a37;
  63. }
  64. .listItem:hover .newIconImage {
  65. @apply text-primary-600;
  66. }
  67. .newItemIconAdd {
  68. background-image: url("./apps/assets/add.svg");
  69. }
  70. .newItemIconChat {
  71. background-image: url("./apps/assets/chat.svg");
  72. }
  73. .newItemIconComplete {
  74. background-image: url("./apps/assets/completion.svg");
  75. }
  76. .listItemTitle {
  77. @apply flex pt-[14px] px-[14px] pb-3 h-[66px] items-center gap-3 grow-0 shrink-0;
  78. }
  79. .listItemHeading {
  80. @apply relative h-8 text-sm font-medium leading-8 grow;
  81. }
  82. .listItemHeadingContent {
  83. @apply absolute top-0 left-0 w-full h-full overflow-hidden text-ellipsis whitespace-nowrap;
  84. }
  85. .actionIconWrapper {
  86. @apply hidden h-8 w-8 p-2 rounded-md border-none hover:bg-gray-100 !important;
  87. }
  88. .listItem:hover .actionIconWrapper {
  89. @apply !inline-flex;
  90. }
  91. .deleteDatasetIcon {
  92. @apply hidden grow-0 shrink-0 basis-8 w-8 h-8 rounded-lg transition-colors duration-200 ease-in-out bg-white border border-gray-200 hover:bg-gray-100 bg-center bg-no-repeat;
  93. background-size: 16px;
  94. background-image: url('~@/assets/delete.svg');
  95. }
  96. .listItem:hover .deleteDatasetIcon {
  97. @apply block;
  98. }
  99. .listItemDescription {
  100. @apply mb-3 px-[14px] h-9 text-xs leading-normal text-gray-500 line-clamp-2;
  101. }
  102. .listItemFooter {
  103. @apply flex items-center flex-wrap min-h-[42px] px-[14px] pt-2 pb-[10px];
  104. }
  105. .listItemFooter.datasetCardFooter {
  106. @apply flex items-center gap-4 text-xs text-gray-500;
  107. }
  108. .listItemStats {
  109. @apply flex items-center gap-1;
  110. }
  111. .listItemFooterIcon {
  112. @apply block w-3 h-3 bg-center bg-contain;
  113. }
  114. .solidChatIcon {
  115. background-image: url("./apps/assets/chat-solid.svg");
  116. }
  117. .solidCompletionIcon {
  118. background-image: url("./apps/assets/completion-solid.svg");
  119. }
  120. .docIcon {
  121. background-image: url("./datasets/assets/doc.svg");
  122. }
  123. .textIcon {
  124. background-image: url("./datasets/assets/text.svg");
  125. }
  126. .applicationIcon {
  127. background-image: url("./datasets/assets/application.svg");
  128. }
  129. .newItemCardHeading {
  130. @apply transition-colors duration-200 ease-in-out;
  131. }
  132. .listItem:hover .newItemCardHeading {
  133. @apply text-primary-600;
  134. }
  135. .listItemLink {
  136. @apply inline-flex items-center gap-1 text-xs text-gray-400 transition-colors duration-200 ease-in-out;
  137. }
  138. .listItem:hover .listItemLink {
  139. @apply text-primary-600;
  140. }
  141. .linkIcon {
  142. @apply block w-[13px] h-[13px] bg-center bg-contain;
  143. background-image: url("./apps/assets/link.svg");
  144. }
  145. .linkIcon.grayLinkIcon {
  146. background-image: url("./apps/assets/link-gray.svg");
  147. }
  148. .listItem:hover .grayLinkIcon {
  149. background-image: url("./apps/assets/link.svg");
  150. }
  151. .rightIcon {
  152. @apply block w-[13px] h-[13px] bg-center bg-contain;
  153. background-image: url("./apps/assets/right-arrow.svg");
  154. }
  155. .socialMediaLink {
  156. @apply flex items-center justify-center w-8 h-8 cursor-pointer hover:opacity-80 transition-opacity duration-200 ease-in-out;
  157. }
  158. .socialMediaIcon {
  159. @apply block w-6 h-6 bg-center bg-contain;
  160. }
  161. .githubIcon {
  162. background-image: url("./apps/assets/github.svg");
  163. }
  164. .discordIcon {
  165. background-image: url("./apps/assets/discord.svg");
  166. }
  167. /* #region new app dialog */
  168. .newItemCaption {
  169. @apply inline-flex items-center mb-2 text-sm font-medium;
  170. }
  171. /* #endregion new app dialog */
  172. .unavailable {
  173. @apply opacity-50;
  174. }
  175. .listItem:hover .unavailable {
  176. @apply opacity-100;
  177. }