index.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @use 'sass:meta';
  2. @use 'tailwindcss';
  3. @plugin 'daisyui' {
  4. themes: all;
  5. }
  6. html {
  7. scrollbar-gutter: auto;
  8. }
  9. .markdown {
  10. h1,
  11. h2,
  12. h3,
  13. h4,
  14. h5,
  15. h6,
  16. ul,
  17. ol,
  18. li {
  19. all: revert;
  20. }
  21. pre {
  22. @apply whitespace-pre-wrap rounded-lg p-2 mb-3;
  23. border: 1px solid currentColor;
  24. }
  25. p {
  26. @apply mb-2;
  27. }
  28. hr {
  29. @apply my-4 border-base-content/20 border-1;
  30. }
  31. /* TODO: fix markdown table */
  32. }
  33. .show-on-hover {
  34. @apply md:opacity-0 md:group-hover:opacity-100;
  35. }
  36. .btn-mini {
  37. @apply cursor-pointer;
  38. }
  39. .chat-screen {
  40. max-width: 900px;
  41. }
  42. .chat-bubble-base-300 {
  43. --tw-bg-opacity: 1;
  44. --tw-text-opacity: 1;
  45. @apply bg-base-300 text-base-content;
  46. }
  47. /* Highlight.js */
  48. [data-color-scheme='light'] {
  49. @include meta.load-css('highlight.js/styles/stackoverflow-light');
  50. .dark-color {
  51. @apply bg-base-content text-base-100;
  52. }
  53. }
  54. [data-color-scheme='dark'] {
  55. @include meta.load-css('highlight.js/styles/stackoverflow-dark');
  56. }
  57. [data-color-scheme='auto'] {
  58. @media (prefers-color-scheme: light) {
  59. @include meta.load-css('highlight.js/styles/stackoverflow-light');
  60. .dark-color {
  61. @apply bg-base-content text-base-100;
  62. }
  63. }
  64. @media (prefers-color-scheme: dark) {
  65. @include meta.load-css('highlight.js/styles/stackoverflow-dark');
  66. }
  67. }
  68. .hljs {
  69. background: transparent !important;
  70. padding: 0.5em !important;
  71. }
  72. .katex-display {
  73. margin: 0 0 !important;
  74. }