shui.css 6.9 KB

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