shui.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. .ui__button {
  2. @apply font-medium relative flex items-center justify-center gap-1;
  3. border-radius: 0.25rem;
  4. /* box-shadow: inset 0 2px 0 0px rgba(255, 255, 255, 0.2), */
  5. /* inset 0 -2px 0 0px rgba(0, 0, 0, 0.1); */
  6. /* background-image: linear-gradient(white, white), */
  7. /* linear-gradient(to bottom, green, gold); */
  8. /* background-origin: border-box; */
  9. /* background-clip: content-box, border-box; */
  10. }
  11. .ui__button-size-sm {
  12. @apply text-xs py-1 px-2;
  13. }
  14. .ui__button-size-md {
  15. @apply text-sm py-1 px-3;
  16. }
  17. .ui__button-tiled {
  18. padding: 0 !important;
  19. gap: 0 !important;
  20. }
  21. .ui__button-tiled .ui__button__tile {
  22. @apply flex items-center justify-center text-center px-1;
  23. }
  24. .ui__button-tiled.ui__button-size-md .ui__button__tile {
  25. @apply h-6;
  26. min-width: 1.5rem;
  27. }
  28. .ui__button-tiled.ui__button-size-sm .ui__button__tile {
  29. @apply h-4;
  30. min-width: 1rem;
  31. }
  32. .ui__button__tile-separator {
  33. @apply w-px h-full bg-gray-08-alpha;
  34. min-height: 14px;
  35. }
  36. .ui__button-theme-text {
  37. background: none;
  38. box-shadow: none;
  39. }
  40. .ui__button-theme-gray {
  41. background: or(--lx-gray-06, --ls-quaternary-background);
  42. }
  43. .ui__button-theme-gray:hover {
  44. background: or(--lx-gray-05, --ls-quaternary-background);
  45. }
  46. .ui__button-theme-gray:active {
  47. background: or(--lx-gray-04, --ls-quaternary-background);
  48. }
  49. .dark .ui__button-theme,
  50. .dark .ui__button-theme-color {
  51. background: or(--lx-accent-09, --rx-blue-09);
  52. }
  53. .dark .ui__button-theme:hover,
  54. .dark .ui__button-theme-color:hover {
  55. background: or(--lx-accent-10, --rx-blue-10);
  56. }
  57. .dark .ui__button-theme:active,
  58. .dark .ui__button-theme-color:active {
  59. background: or(--lx-accent-08, --rx-blue-08);
  60. }
  61. .dark .ui__button-theme-gray {
  62. background: or(--lx-gray-05, --ls-quaternary-background);
  63. }
  64. .dark .ui__button-theme-gray:hover {
  65. background: or(--lx-gray-06, --ls-quaternary-background);
  66. }
  67. .dark .ui__button-theme-gray:active {
  68. background: or(--lx-gray-04, --ls-quaternary-background);
  69. }
  70. .ui__button-theme-gradient {
  71. --depth-shadow-from: rgba(2, 23, 53, 0.70);
  72. --depth-shadow-to: rgba(2, 23, 53, 0.00);
  73. }
  74. .ui__button-theme-gradient:hover {
  75. --depth-shadow-from: rgba(2, 23, 53, 0.30);
  76. --depth-shadow-to: rgba(2, 23, 53, 0.00);
  77. }
  78. .ui__button-theme-gradient:active {
  79. --depth-shadow-from: rgba(0, 0, 0, 0);
  80. --depth-shadow-to: rgba(0, 0, 0, 0);
  81. }
  82. .ui__button-theme-gradient.ui__button-,
  83. .ui__button-theme-gradient.ui__button-custom,
  84. .ui__button-theme-gradient.ui__button-indigo,
  85. .ui__button-theme-gradient.ui__button-blue,
  86. .ui__button-theme-gradient.ui__button-sky,
  87. .ui__button-theme-gradient.ui__button-cyan {
  88. background: linear-gradient(37deg, var(--depth-shadow-from) 0%, var(--depth-shadow-to) 100%),
  89. linear-gradient(135deg, var(--rx-indigo-09) 0%, var(--rx-blue-09) 33.85%, var(--rx-sky-09) 64.06%, var(--rx-cyan-09) 100%);
  90. }
  91. .ui__button-theme-gradient.ui__button-tomato,
  92. .ui__button-theme-gradient.ui__button-red,
  93. .ui__button-theme-gradient.ui__button-crimson,
  94. .ui__button-theme-gradient.ui__button-pink,
  95. .ui__button-theme-gradient.ui__button-plum,
  96. .ui__button-theme-gradient.ui__button-purple,
  97. .ui__button-theme-gradient.ui__button-violet {
  98. background: linear-gradient(37deg, var(--depth-shadow-from) 0%, var(--depth-shadow-to) 100%),
  99. linear-gradient(135deg, var(--rx-tomato-09) 0%, var(--rx-red-09) 16.66%, var(--rx-crimson-09) 33.33%, var(--rx-pink-09) 50%, var(--rx-plum-09) 66.66%, var(--rx-purple-09) 83.33%, var(--rx-violet-09) 100%);
  100. }
  101. .ui__button-theme-gradient.ui__button-green,
  102. .ui__button-theme-gradient.ui__button-mint,
  103. .ui__button-theme-gradient.ui__button-teal {
  104. background: linear-gradient(37deg, var(--depth-shadow-from) 0%, var(--depth-shadow-to) 100%),
  105. linear-gradient(135deg, var(--rx-teal-09) 0%, var(--rx-mint-09) 50%, var(--rx-green-09) 100%);
  106. }
  107. .ui__button-theme-gradient.ui__button-grass,
  108. .ui__button-theme-gradient.ui__button-lime {
  109. background: linear-gradient(37deg, var(--depth-shadow-from) 0%, var(--depth-shadow-to) 100%),
  110. linear-gradient(135deg, var(--rx-grass-09) 0%, var(--rx-lime-09) 100%);
  111. }
  112. .ui__button-theme-gradient.ui__button-yellow,
  113. .ui__button-theme-gradient.ui__button-amber,
  114. .ui__button-theme-gradient.ui__button-orange,
  115. .ui__button-theme-gradient.ui__button-brown {
  116. background: linear-gradient(37deg, var(--depth-shadow-from) 0%, var(--depth-shadow-to) 100%),
  117. linear-gradient(135deg, var(--rx-yellow-09) 0%, var(--rx-amber-09) 33.33%, var(--rx-orange-09) 66.66%, var(--rx-brown-09) 100%);
  118. }
  119. /* .ui__button-theme-gradient:hover { */
  120. /* background: linear-gradient(37deg, rgba(2, 23, 53, 0.30) 0%, rgba(2, 23, 53, 0.00) 100%), linear-gradient(135deg, #8AE8FF 0%, #5373E7 33.85%, #369EFF 64.06%, #00B1CC 100%); */
  121. /* } */
  122. /* Shadow/xs */
  123. /* box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05); */
  124. /* } */
  125. .ui__button-depth-1 {
  126. box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
  127. inset 0 -1px 0 0 rgba(0, 0, 0, 0.15);
  128. }
  129. .ui__button-depth-1:hover {
  130. box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
  131. inset 0 -2px 0 0 rgba(0, 0, 0, 0.15);
  132. }
  133. .ui__button-depth-2 {
  134. box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
  135. inset 0 -1px 0 0 rgba(0, 0, 0, 0.2);
  136. }
  137. /* .ui__button-depth-1:before { */
  138. /* @apply absolute inset-0; */
  139. /* border-radius: 0.25rem; */
  140. /* content: ""; */
  141. /* padding: 1px; */
  142. /* background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); */
  143. /* -webkit-mask: linear-gradient(#fff 0 0) content-box, */
  144. /* linear-gradient(#fff 0 0); */
  145. /* -webkit-mask-composite: xor; */
  146. /* mask-composite: exclude; */
  147. /* } */
  148. /* .ui__button-depth-1:after { */
  149. /* @apply absolute inset-0; */
  150. /* border-radius: 0.25rem; */
  151. /* content: ""; */
  152. /* padding: 1px; */
  153. /* background: linear-gradient(to top, rgba(0,0,0,0.2), transparent); */
  154. /* -webkit-mask: linear-gradient(#fff 0 0) content-box, */
  155. /* linear-gradient(#fff 0 0); */
  156. /* -webkit-mask-composite: xor; */
  157. /* mask-composite: exclude; */
  158. /* } */
  159. /* .ui__button-depth-2:before { */
  160. /* @apply absolute inset-0; */
  161. /* border-radius: 0.25rem; */
  162. /* content: ""; */
  163. /* padding: 1px; */
  164. /* background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent); */
  165. /* -webkit-mask: linear-gradient(#fff 0 0) content-box, */
  166. /* linear-gradient(#fff 0 0); */
  167. /* -webkit-mask-composite: xor; */
  168. /* mask-composite: exclude; */
  169. /* } */
  170. /* .ui__button-depth-2:after { */
  171. /* @apply absolute inset-0; */
  172. /* border-radius: 0.25rem; */
  173. /* content: ""; */
  174. /* padding: 1px; */
  175. /* background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); */
  176. /* -webkit-mask: linear-gradient(#fff 0 0) content-box, */
  177. /* linear-gradient(#fff 0 0); */
  178. /* -webkit-mask-composite: xor; */
  179. /* mask-composite: exclude; */
  180. /* } */
  181. .ui__button-shortcut-key:first-of-type {
  182. @apply ml-2;
  183. }
  184. .ui__button-shortcut-key {
  185. @apply text-xs font-normal h-5 w-5 flex items-center justify-center rounded bg-gray-06-alpha;
  186. }
  187. .ui__cmdk-quick-capture-glow::before {
  188. @apply absolute inset-0;
  189. pointer-events: none;
  190. border-radius: 0.25rem;
  191. content: "";
  192. padding: 1px;
  193. background: linear-gradient(to bottom, var(--lx-accent-10), transparent);
  194. -webkit-mask: linear-gradient(#fff 0 0) content-box,
  195. linear-gradient(#fff 0 0);
  196. -webkit-mask-composite: xor;
  197. mask-composite: exclude;
  198. }
  199. .ui__button-muted {
  200. transition: opacity 200 ease-in;
  201. opacity: 0.4;
  202. }
  203. .ui__button-muted:hover {
  204. opacity: 1;
  205. }
  206. .ui__button-theme-gray.ui__button-color-custom { background-color: var(--ls-tertiary-background-color);
  207. color: var(--ls-secondary-text-color, white); }
  208. .ui__button-theme-color.ui__button-color-custom { background-color: hsl(var(--ls-button-background-hsl) / 0.9);
  209. color: white; }
  210. .ui__button-theme-color.ui__button-color-custom:hover {
  211. background: var(--ls-button-background);
  212. }
  213. .ui__button-theme-color.ui__button-color-lime { color: white; background-color: var(--rx-lime-09); &:hover { background-color: var(--rx-lime-10); } &:active { background-color: var(--rx-lime-08); }}
  214. .ui__button-theme-color.ui__button-color-orange { color: white; background-color: var(--rx-orange-09); &:hover { background-color: var(--rx-orange-10); } &:active { background-color: var(--rx-orange-08); }}
  215. .ui__button-theme-color.ui__button-color-gray { color: white; background-color: var(--rx-gray-09); &:hover { background-color: var(--rx-gray-10); } &:active { background-color: var(--rx-gray-08); }}
  216. .ui__button-theme-color.ui__button-color-sand { color: white; background-color: var(--rx-sand-09); &:hover { background-color: var(--rx-sand-10); } &:active { background-color: var(--rx-sand-08); }}
  217. .ui__button-theme-color.ui__button-color-crimson { color: white; background-color: var(--rx-crimson-09); &:hover { background-color: var(--rx-crimson-10); } &:active { background-color: var(--rx-crimson-08); }}
  218. .ui__button-theme-color.ui__button-color-yellow { color: white; background-color: var(--rx-yellow-09); &:hover { background-color: var(--rx-yellow-10); } &:active { background-color: var(--rx-yellow-08); }}
  219. .ui__button-theme-color.ui__button-color-green { color: white; background-color: var(--rx-green-09); &:hover { background-color: var(--rx-green-10); } &:active { background-color: var(--rx-green-08); }}
  220. .ui__button-theme-color.ui__button-color-indigo { color: white; background-color: var(--rx-indigo-09); &:hover { background-color: var(--rx-indigo-10); } &:active { background-color: var(--rx-indigo-08); }}
  221. .ui__button-theme-color.ui__button-color-cyan { color: white; background-color: var(--rx-cyan-09); &:hover { background-color: var(--rx-cyan-10); } &:active { background-color: var(--rx-cyan-08); }}
  222. .ui__button-theme-color.ui__button-color-violet { color: white; background-color: var(--rx-violet-09); &:hover { background-color: var(--rx-violet-10); } &:active { background-color: var(--rx-violet-08); }}
  223. .ui__button-theme-color.ui__button-color-bronze { color: white; background-color: var(--rx-bronze-09); &:hover { background-color: var(--rx-bronze-10); } &:active { background-color: var(--rx-bronze-08); }}
  224. .ui__button-theme-color.ui__button-color-slate { color: white; background-color: var(--rx-slate-09); &:hover { background-color: var(--rx-slate-10); } &:active { background-color: var(--rx-slate-08); }}
  225. .ui__button-theme-color.ui__button-color-gold { color: white; background-color: var(--rx-gold-09); &:hover { background-color: var(--rx-gold-10); } &:active { background-color: var(--rx-gold-08); }}
  226. .ui__button-theme-color.ui__button-color-sage { color: white; background-color: var(--rx-sage-09); &:hover { background-color: var(--rx-sage-10); } &:active { background-color: var(--rx-sage-08); }}
  227. .ui__button-theme-color.ui__button-color-mauve { color: white; background-color: var(--rx-mauve-09); &:hover { background-color: var(--rx-mauve-10); } &:active { background-color: var(--rx-mauve-08); }}
  228. .ui__button-theme-color.ui__button-color-mint { color: white; background-color: var(--rx-mint-09); &:hover { background-color: var(--rx-mint-10); } &:active { background-color: var(--rx-mint-08); }}
  229. .ui__button-theme-color.ui__button-color-red { color: white; background-color: var(--rx-red-09); &:hover { background-color: var(--rx-red-10); } &:active { background-color: var(--rx-red-08); }}
  230. .ui__button-theme-color.ui__button-color-blue { color: white; background-color: var(--rx-blue-09); &:hover { background-color: var(--rx-blue-10); } &:active { background-color: var(--rx-blue-08); }}
  231. .ui__button-theme-color.ui__button-color-grass { color: white; background-color: var(--rx-grass-09); &:hover { background-color: var(--rx-grass-10); } &:active { background-color: var(--rx-grass-08); }}
  232. .ui__button-theme-color.ui__button-color-plum { color: white; background-color: var(--rx-plum-09); &:hover { background-color: var(--rx-plum-10); } &:active { background-color: var(--rx-plum-08); }}
  233. .ui__button-theme-color.ui__button-color-pink { color: white; background-color: var(--rx-pink-09); &:hover { background-color: var(--rx-pink-10); } &:active { background-color: var(--rx-pink-08); }}
  234. .ui__button-theme-color.ui__button-color-teal { color: white; background-color: var(--rx-teal-09); &:hover { background-color: var(--rx-teal-10); } &:active { background-color: var(--rx-teal-08); }}
  235. .ui__button-theme-color.ui__button-color-amber { color: white; background-color: var(--rx-amber-09); &:hover { background-color: var(--rx-amber-10); } &:active { background-color: var(--rx-amber-08); }}
  236. .ui__button-theme-color.ui__button-color-purple { color: white; background-color: var(--rx-purple-09); &:hover { background-color: var(--rx-purple-10); } &:active { background-color: var(--rx-purple-08); }}
  237. .ui__button-theme-color.ui__button-color-brown { color: white; background-color: var(--rx-brown-09); &:hover { background-color: var(--rx-brown-10); } &:active { background-color: var(--rx-brown-08); }}
  238. .ui__button-theme-color.ui__button-color-sky { color: white; background-color: var(--rx-sky-09); &:hover { background-color: var(--rx-sky-10); } &:active { background-color: var(--rx-sky-08); }}
  239. .ui__button-theme-color.ui__button-color-olive { color: white; background-color: var(--rx-olive-09); &:hover { background-color: var(--rx-olive-10); } &:active { background-color: var(--rx-olive-08); }}
  240. .ui__button-theme-color.ui__button-color-tomato { color: white; background-color: var(--rx-tomato-09); &:hover { background-color: var(--rx-tomato-10); } &:active { background-color: var(--rx-tomato-08); }}
  241. .dark .ui__button-theme-color.ui__button-color-lime { background-color: var(--rx-lime-09); &:hover { background-color: var(--rx-lime-08); } &:active { background-color: var(--rx-lime-07); }}
  242. .dark .ui__button-theme-color.ui__button-color-orange { background-color: var(--rx-orange-09); &:hover { background-color: var(--rx-orange-08); } &:active { background-color: var(--rx-orange-07); }}
  243. .dark .ui__button-theme-color.ui__button-color-gray { background-color: var(--rx-gray-09); &:hover { background-color: var(--rx-gray-08); } &:active { background-color: var(--rx-gray-07); }}
  244. .dark .ui__button-theme-color.ui__button-color-sand { background-color: var(--rx-sand-09); &:hover { background-color: var(--rx-sand-08); } &:active { background-color: var(--rx-sand-07); }}
  245. .dark .ui__button-theme-color.ui__button-color-crimson { background-color: var(--rx-crimson-09); &:hover { background-color: var(--rx-crimson-08); } &:active { background-color: var(--rx-crimson-07); }}
  246. .dark .ui__button-theme-color.ui__button-color-yellow { background-color: var(--rx-yellow-09); &:hover { background-color: var(--rx-yellow-08); } &:active { background-color: var(--rx-yellow-07); }}
  247. .dark .ui__button-theme-color.ui__button-color-green { background-color: var(--rx-green-09); &:hover { background-color: var(--rx-green-08); } &:active { background-color: var(--rx-green-07); }}
  248. .dark .ui__button-theme-color.ui__button-color-indigo { background-color: var(--rx-indigo-09); &:hover { background-color: var(--rx-indigo-08); } &:active { background-color: var(--rx-indigo-07); }}
  249. .dark .ui__button-theme-color.ui__button-color-cyan { background-color: var(--rx-cyan-09); &:hover { background-color: var(--rx-cyan-08); } &:active { background-color: var(--rx-cyan-07); }}
  250. .dark .ui__button-theme-color.ui__button-color-violet { background-color: var(--rx-violet-09); &:hover { background-color: var(--rx-violet-08); } &:active { background-color: var(--rx-violet-07); }}
  251. .dark .ui__button-theme-color.ui__button-color-bronze { background-color: var(--rx-bronze-09); &:hover { background-color: var(--rx-bronze-08); } &:active { background-color: var(--rx-bronze-07); }}
  252. .dark .ui__button-theme-color.ui__button-color-slate { background-color: var(--rx-slate-09); &:hover { background-color: var(--rx-slate-08); } &:active { background-color: var(--rx-slate-07); }}
  253. .dark .ui__button-theme-color.ui__button-color-gold { background-color: var(--rx-gold-09); &:hover { background-color: var(--rx-gold-08); } &:active { background-color: var(--rx-gold-07); }}
  254. .dark .ui__button-theme-color.ui__button-color-sage { background-color: var(--rx-sage-09); &:hover { background-color: var(--rx-sage-08); } &:active { background-color: var(--rx-sage-07); }}
  255. .dark .ui__button-theme-color.ui__button-color-mauve { background-color: var(--rx-mauve-09); &:hover { background-color: var(--rx-mauve-08); } &:active { background-color: var(--rx-mauve-07); }}
  256. .dark .ui__button-theme-color.ui__button-color-mint { background-color: var(--rx-mint-09); &:hover { background-color: var(--rx-mint-08); } &:active { background-color: var(--rx-mint-07); }}
  257. .dark .ui__button-theme-color.ui__button-color-red { background-color: var(--rx-red-09); &:hover { background-color: var(--rx-red-08); } &:active { background-color: var(--rx-red-07); }}
  258. .dark .ui__button-theme-color.ui__button-color-blue { background-color: var(--rx-blue-09); &:hover { background-color: var(--rx-blue-08); } &:active { background-color: var(--rx-blue-07); }}
  259. .dark .ui__button-theme-color.ui__button-color-grass { background-color: var(--rx-grass-09); &:hover { background-color: var(--rx-grass-08); } &:active { background-color: var(--rx-grass-07); }}
  260. .dark .ui__button-theme-color.ui__button-color-plum { background-color: var(--rx-plum-09); &:hover { background-color: var(--rx-plum-08); } &:active { background-color: var(--rx-plum-07); }}
  261. .dark .ui__button-theme-color.ui__button-color-pink { background-color: var(--rx-pink-09); &:hover { background-color: var(--rx-pink-08); } &:active { background-color: var(--rx-pink-07); }}
  262. .dark .ui__button-theme-color.ui__button-color-teal { background-color: var(--rx-teal-09); &:hover { background-color: var(--rx-teal-08); } &:active { background-color: var(--rx-teal-07); }}
  263. .dark .ui__button-theme-color.ui__button-color-amber { background-color: var(--rx-amber-09); &:hover { background-color: var(--rx-amber-08); } &:active { background-color: var(--rx-amber-07); }}
  264. .dark .ui__button-theme-color.ui__button-color-purple { background-color: var(--rx-purple-09); &:hover { background-color: var(--rx-purple-08); } &:active { background-color: var(--rx-purple-07); }}
  265. .dark .ui__button-theme-color.ui__button-color-brown { background-color: var(--rx-brown-09); &:hover { background-color: var(--rx-brown-08); } &:active { background-color: var(--rx-brown-07); }}
  266. .dark .ui__button-theme-color.ui__button-color-sky { background-color: var(--rx-sky-09); &:hover { background-color: var(--rx-sky-08); } &:active { background-color: var(--rx-sky-07); }}
  267. .dark .ui__button-theme-color.ui__button-color-olive { background-color: var(--rx-olive-09); &:hover { background-color: var(--rx-olive-08); } &:active { background-color: var(--rx-olive-07); }}
  268. .dark .ui__button-theme-color.ui__button-color-tomato { background-color: var(--rx-tomato-09); &:hover { background-color: var(--rx-tomato-08); } &:active { background-color: var(--rx-tomato-07); }}
  269. .ui__list-item-highlighted-span {
  270. background-color: or(--lx-accent-06, --color-level-4);
  271. }
  272. .dark .ui__list-item-highlighted-span {
  273. background-color: or(--lx-accent-08-alpha, --color-level-4);
  274. }