shui.css 2.9 KB

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