list.module.css 4.8 KB

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