index.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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;
  23. border: 1px solid currentColor;
  24. }
  25. p {
  26. @apply mb-2;
  27. }
  28. /* TODO: fix markdown table */
  29. }
  30. .show-on-hover {
  31. @apply md:opacity-0 md:group-hover:opacity-100;
  32. }
  33. .btn-mini {
  34. @apply cursor-pointer hover:shadow-md;
  35. }
  36. .chat-screen {
  37. max-width: 900px;
  38. }
  39. .chat-bubble-base-300 {
  40. --tw-bg-opacity: 1;
  41. --tw-text-opacity: 1;
  42. @apply bg-base-300 text-base-content;
  43. }
  44. /* Highlight.js */
  45. [data-color-scheme='light'] {
  46. @include meta.load-css('highlight.js/styles/stackoverflow-light');
  47. .dark-color {
  48. @apply bg-base-content text-base-100;
  49. }
  50. }
  51. [data-color-scheme='dark'] {
  52. @include meta.load-css('highlight.js/styles/stackoverflow-dark');
  53. }
  54. [data-color-scheme='auto'] {
  55. @media (prefers-color-scheme: light) {
  56. @include meta.load-css('highlight.js/styles/stackoverflow-light');
  57. .dark-color {
  58. @apply bg-base-content text-base-100;
  59. }
  60. }
  61. @media (prefers-color-scheme: dark) {
  62. @include meta.load-css('highlight.js/styles/stackoverflow-dark');
  63. }
  64. }
  65. .hljs {
  66. background: transparent !important;
  67. padding: 0.5em !important;
  68. }
  69. .katex-display {
  70. margin: 0 0 !important;
  71. }