list.module.css 5.1 KB

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