shui.css 19 KB

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