index.scss 1.3 KB

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