shui.css 19 KB

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