shui.css 9.8 KB

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