main.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @tailwind variants;
  5. @layer components {
  6. .nav {
  7. @apply text-lg text-blue-500 dark:text-gray-300 font-semibold;
  8. }
  9. .nav > a {
  10. @apply hover:text-blue-700;
  11. }
  12. .panel {
  13. max-height: 0;
  14. transition: 0.3s ease-out;
  15. }
  16. h2.accordion {
  17. @apply text-blue-600 dark:text-yellow-500;
  18. }
  19. a {
  20. @apply text-blue-500 hover:text-blue-700 hover:underline dark:text-yellow-300 dark:hover:text-yellow-500;
  21. }
  22. .active {
  23. @apply overflow-visible;
  24. }
  25. h1 {
  26. @apply text-4xl mb-5 mt-1;
  27. }
  28. h2 {
  29. @apply text-3xl mb-4 mt-1;
  30. }
  31. h3 {
  32. @apply text-2xl mb-3 mt-1;
  33. }
  34. h4 {
  35. @apply text-xl mb-2 mt-1;
  36. }
  37. h5 {
  38. @apply text-lg mb-2 mt-1;
  39. }
  40. .prose ul,
  41. .prose ol {
  42. li::marker {
  43. @apply text-gray-700 dark:text-gray-200;
  44. }
  45. }
  46. body {
  47. @apply text-base bg-stone-50 dark:text-stone-50 dark:bg-darkest;
  48. }
  49. html {
  50. touch-action: manipulation;
  51. scroll-behavior: smooth;
  52. }
  53. p {
  54. @apply mt-2 mb-2;
  55. }
  56. summary {
  57. @apply block text-sm;
  58. }
  59. blockquote {
  60. @apply bg-gray-100 dark:bg-dark rounded;
  61. }
  62. .tags,
  63. .categories {
  64. @apply p-1 mr-2 mb-2 text-sm rounded hover:shadow;
  65. }
  66. .categories {
  67. @apply text-green-800 bg-green-100 hover:bg-green-200 border border-green-600 dark:border-green-100 !important;
  68. }
  69. .tags {
  70. @apply text-gray-800 bg-gray-200 hover:bg-gray-300 border border-gray-600 dark:border-gray-100 !important;
  71. }
  72. .pagination {
  73. @apply flex flex-row justify-center;
  74. }
  75. .page-link {
  76. @apply px-2 sm:px-4 py-2 border border-gray-200 flex justify-center items-center text-gray-500 hover:text-gray-800 hover:bg-gray-200;
  77. }
  78. .page-item.disabled > .page-link {
  79. @apply text-gray-300 bg-white;
  80. }
  81. .page-item.active > .page-link {
  82. @apply bg-gray-300 pointer-events-none text-gray-800;
  83. }
  84. }
  85. .pagefind-ui__search-input {
  86. color: black;
  87. width: 100%;
  88. padding: 0.5em;
  89. border-radius: 0.25em;
  90. border: 1px solid gray;
  91. }
  92. .pagefind-ui__search-clear {
  93. display: none;
  94. }
  95. .dark .pagefind-ui__search-input {
  96. color: white;
  97. background-color: #322d2d;
  98. width: 100%;
  99. padding: 0.5em;
  100. border-radius: 0.25em;
  101. border: 1px solid gray;
  102. }
  103. .dark .pagefind-ui__search-input::placeholder {
  104. color: #8f8f8f;
  105. }
  106. .chevron {
  107. transition: 300ms linear rotate;
  108. }
  109. .active > .chevron {
  110. transform: rotate(90deg);
  111. }