shui.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. html * {
  2. border-color: hsl(var(--border));
  3. }
  4. html {
  5. .ui__dropdown-menu-content,
  6. .ui__context-menu-content,
  7. .ui__select-content {
  8. --accent: var(--rx-gray-04-hsl);
  9. --accent-foreground: var(--rx-gray-12-hsl);
  10. --muted: var(--rx-gray-05-hsl);
  11. }
  12. .ui__dropdown-menu-item,
  13. div[data-radix-popper-content-wrapper] div[role=menuitem] {
  14. &:focus, &:hover {
  15. background-color: var(--lx-gray-04, hsl(var(--accent)));
  16. }
  17. }
  18. div[data-radix-popper-content-wrapper] div[role=menu] {
  19. background-color: var(--lx-gray-03, hsl(var(--popover)));
  20. }
  21. &:not([data-color=logseq]) {
  22. }
  23. &[data-color=logseq] {
  24. .references-blocks-item {
  25. --lx-bg-override: var(--rx-gray-03-alpha);
  26. }
  27. .block-children-left-border:hover {
  28. --ls-block-left-color: var(--rx-logseq-11);
  29. }
  30. }
  31. .ui__calendar {
  32. --accent: var(--rx-gray-04-hsl);
  33. --accent-foreground: var(--rx-gray-12-hsl);
  34. }
  35. }
  36. html[data-theme=light] {
  37. --accent: var(--rx-gray-04-hsl);
  38. --accent-foreground: var(--rx-gray-12-hsl);
  39. --input: var(--rx-gray-03-hsl);
  40. &[data-color=logseq] {
  41. --primary: 200 97% 37%;
  42. --primary-foreground: 255 92% 100%;
  43. --accent: 200 97% 37%;
  44. --accent-foreground: 255 92% 100%;
  45. --ring: 200 97% 37%;
  46. .references-blocks-item {
  47. --lx-bg-override: var(--rx-gray-03-alpha);
  48. }
  49. }
  50. .extensions__pdf-container {
  51. --lx-pdf-container-dark-bg: var(--lx-gray-11, #042f3c);
  52. }
  53. }
  54. html[data-theme=dark] {
  55. --primary-foreground: 255 92% 100%;
  56. --background: 0 0% 11%;
  57. --foreground: 0 0% 95%;
  58. --card: 0 0% 11%;
  59. --card-foreground: 0 0% 95%;
  60. --secondary: 0 0% 20%;
  61. --secondary-foreground: 0 0% 98%;
  62. --border: 0 0% 16%;
  63. --muted: 0 0% 15%;
  64. --popover: 0 0% 7%;
  65. --popover-foreground: 0 0 95%;
  66. --input: 0 0% 25%;
  67. &[data-color=logseq] {
  68. --background: 192 100% 11%;
  69. --foreground: 0 0% 95%;
  70. --accent: 192 80% 10%;
  71. --accent-foreground: 255 92% 100%;
  72. --primary: 200 97% 37%;
  73. --primary-foreground: 255 92% 100%;
  74. --ring: 200 97% 37%;
  75. --secondary: 203 50% 20%;
  76. --secondary-foreground: 0 0% 98%;
  77. --muted: 192 100% 13%;
  78. --border: 192 100% 14%;
  79. --card: 192 100% 10%;
  80. --card-foreground: 0 0% 95%;
  81. --popover: 192 100% 11%;
  82. --input: 203 35% 25%;
  83. .ui__button {
  84. &.as-outline {
  85. --accent: 192 100% 12%;
  86. }
  87. }
  88. .ui__dropdown-menu-content,
  89. .ui__context-menu-content,
  90. .ui__select-content {
  91. --accent: 190 100% 15%;
  92. --muted: 192 100% 13%;
  93. }
  94. .menu-separator {
  95. @apply opacity-20;
  96. }
  97. .ui__calendar {
  98. --accent: 196 100% 15%;
  99. }
  100. .rc-datepicker {
  101. --accent: 200 97% 37%;
  102. }
  103. }
  104. }
  105. .ui__button-shortcut-key {
  106. @apply text-xs font-normal h-5 w-5 flex items-center justify-center rounded bg-gray-06-alpha;
  107. &:first-of-type {
  108. @apply ml-2;
  109. }
  110. }
  111. .ui__list-item-highlighted-span {
  112. background-color: or(--lx-accent-06, --color-level-4);
  113. }
  114. .dark .ui__list-item-highlighted-span {
  115. background-color: or(--lx-accent-08-alpha, --color-level-4);
  116. }