shui.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. html * {
  2. border-color: hsl(var(--border));
  3. }
  4. html[data-theme=light] {
  5. --accent: var(--rx-gray-12-hsl);
  6. --accent-foreground: var(--rx-gray-02-hsl);
  7. --input: var(--rx-gray-03-hsl);
  8. --secondary: 240 4.8% 95.9%;
  9. }
  10. html[data-theme=dark] {
  11. --accent: var(--rx-gray-12-hsl);
  12. --accent-foreground: var(--rx-gray-02-hsl);
  13. --primary-foreground: 0 0% 22%;
  14. --background: 0 0% 11%;
  15. --foreground: 0 0% 95%;
  16. --card: 0 0% 11%;
  17. --card-foreground: 0 0% 95%;
  18. --secondary: 0 0% 20%;
  19. --secondary-foreground: 0 0% 98%;
  20. --border: 0 0% 16%;
  21. --muted: 0 0% 15%;
  22. --popover: 0 0% 7%;
  23. --popover-foreground: 0 0 95%;
  24. --input: 0 0% 25%;
  25. }
  26. html {
  27. .ui__dropdown-menu-content,
  28. .ui__context-menu-content,
  29. .ui__select-content {
  30. --accent: var(--rx-gray-04-hsl);
  31. --accent-foreground: var(--rx-gray-12-hsl);
  32. --muted: var(--rx-gray-05-hsl);
  33. }
  34. .ui__calendar {
  35. --accent: var(--rx-gray-04-hsl);
  36. --accent-foreground: var(--rx-gray-12-hsl);
  37. }
  38. &:not([data-color=logseq]) {
  39. .ui__dropdown-menu-item,
  40. div[data-radix-popper-content-wrapper] div[data-radix-collection-item] {
  41. &:focus, &.is-active {
  42. background-color: var(--lx-gray-04, hsl(var(--accent)));
  43. }
  44. }
  45. .ui__dropdown-menu-content.has-search-key {
  46. > .head:focus-within + div[data-radix-collection-item] {
  47. background-color: var(--lx-gray-04, hsl(var(--accent)));
  48. }
  49. }
  50. div[data-radix-popper-content-wrapper] div[role=menu],
  51. .menu-links-wrapper,
  52. .menu-links-outer,
  53. .absolute-modal[data-modal-name] {
  54. background-color: var(--lx-popover-bg, var(--lx-gray-01, hsl(var(--popover))));
  55. }
  56. }
  57. &[data-color=logseq] {
  58. .references-blocks-item {
  59. --lx-bg-override: var(--rx-gray-03-alpha);
  60. }
  61. .block-children-left-border:hover {
  62. --ls-block-left-color: var(--rx-logseq-11);
  63. }
  64. }
  65. &[data-color=none] {
  66. --ls-block-bullet-color: var(--rx-gray-08);
  67. --ls-block-bullet-active-color: var(--rx-gray-12);
  68. ::selection {
  69. @apply bg-primary/20;
  70. }
  71. #ui__ac-inner {
  72. }
  73. .cp__cmdk {
  74. --lx-gray-07: var(--rx-gray-07);
  75. }
  76. .ui__toggle {
  77. &-background-off {
  78. @apply bg-gray-08;
  79. .switcher {
  80. @apply bg-gray-10;
  81. }
  82. }
  83. &-background-on {
  84. .switcher {
  85. @apply bg-gray-03;
  86. }
  87. }
  88. }
  89. .tl-container {
  90. --ls-primary-background-color: hsl(var(--background));
  91. --ls-secondary-background-color: var(--rx-gray-01);
  92. --ls-tertiary-background-color: var(--rx-gray-03);
  93. --ls-quaternary-background-color: var(--rx-gray-05);
  94. }
  95. }
  96. }
  97. html[data-theme=light] {
  98. &[data-color=logseq] {
  99. .references-blocks-item {
  100. --lx-bg-override: var(--rx-gray-03-alpha);
  101. }
  102. }
  103. .extensions__pdf-container {
  104. --lx-pdf-container-dark-bg: var(--lx-gray-11, #042f3c);
  105. }
  106. }
  107. html[data-theme=dark] {
  108. background-color: #161616;
  109. &[data-color=logseq] {
  110. @apply bg-[#002b36];
  111. .ui__modal-panel {
  112. @apply border-accent-01;
  113. }
  114. .tippy-tooltip {
  115. @apply border-accent-02;
  116. }
  117. .references-blocks-item {
  118. background-color: var(--lx-gray-03, var(--ls-secondary-background-color));
  119. }
  120. .cp__right-sidebar-inner {
  121. .references-blocks-item {
  122. background-color: var(--lx-gray-04, var(--ls-tertiary-background-color));
  123. }
  124. }
  125. .cp__themes-installed {
  126. .it.is-active, .it:hover {
  127. @apply bg-accent-01;
  128. }
  129. }
  130. .ui__button {
  131. &.as-outline {
  132. --accent: 192 100% 12%;
  133. }
  134. }
  135. .ui__dropdown-menu-content,
  136. .ui__context-menu-content,
  137. .ui__select-content {
  138. --accent: 190 100% 15%;
  139. --muted: 192 100% 13%;
  140. }
  141. .ui__button {
  142. &.as-ghost {
  143. @apply hover:bg-accent-01;
  144. }
  145. }
  146. .menu-separator {
  147. @apply opacity-20;
  148. }
  149. .ui__calendar {
  150. --accent: 196 100% 15%;
  151. }
  152. .rc-datepicker {
  153. --accent: 200 97% 37%;
  154. }
  155. .cp__cmdk {
  156. .border-gray-06,
  157. .border-gray-07 {
  158. border-color: var(--ls-border-color, var(--lx-gray-06));
  159. opacity: .6;
  160. }
  161. > .hints {
  162. @apply border-accent-01 bg-gray-02;
  163. }
  164. }
  165. .tl-button {
  166. &:hover {
  167. @apply bg-accent-02;
  168. }
  169. }
  170. .cp__header {
  171. > .r > div:not(.ui__dropdown-trigger) a.button, button.button {
  172. @apply opacity-60 hover:opacity-90;
  173. }
  174. }
  175. .form-input {
  176. @apply border-accent-01;
  177. }
  178. }
  179. }
  180. .ui__dialog-overlay, .ui__alert-dialog-overlay,
  181. .ui__dialog-content, .ui__alert-dialog-content,
  182. .ui__dropdown-menu-content {
  183. &.z-50 {
  184. @apply z-[999];
  185. }
  186. }
  187. .ui__dialog-overlay {
  188. &[data-align=start],
  189. &[data-align=top] {
  190. @apply !items-start;
  191. .ui__dialog-content {
  192. @apply top-20;
  193. }
  194. }
  195. }
  196. .ui__button-shortcut-key {
  197. @apply text-xs font-normal h-5 w-5 flex items-center justify-center rounded bg-gray-06-alpha;
  198. &:first-of-type {
  199. @apply ml-2;
  200. }
  201. }
  202. .ui__list-item-highlighted-span {
  203. background-color: or(--lx-accent-06, --color-level-4);
  204. }
  205. .dark .ui__list-item-highlighted-span {
  206. background-color: or(--lx-accent-08-alpha, --color-level-4);
  207. }
  208. .ui__dropdown-menu-content {
  209. max-height: var(--radix-dropdown-menu-content-available-height);
  210. overflow-y: auto;
  211. }
  212. .ui__popover-content {
  213. @apply !pointer-events-auto;
  214. }
  215. .ui__multi-select-content {
  216. @apply relative;
  217. > .head {
  218. @apply sticky top-0 z-10;
  219. }
  220. .search-input {
  221. > .ui__input {
  222. @apply rounded-[1px] h-8;
  223. }
  224. }
  225. &:has([data-radix-collection-item]) {
  226. > .head {
  227. @apply mb-1.5;
  228. }
  229. }
  230. }