at main 179 lines 3.1 kB view raw
1@import "$css/variables.css"; 2 3/* Linkat Directory - Core CSS Styles */ 4@tailwind base; 5@tailwind components; 6@tailwind utilities; 7 8@layer base { 9 10 /* Custom scrollbar styling for webkit browsers */ 11 ::-webkit-scrollbar { 12 width: 10px; 13 height: 10px; 14 } 15 16 ::-webkit-scrollbar-track { 17 background: var(--header-footer-bg); 18 } 19 20 ::-webkit-scrollbar-thumb { 21 background: var(--button-bg); 22 border-radius: 0px; 23 } 24 25 ::-webkit-scrollbar-thumb:hover { 26 background: var(--button-hover-bg); 27 } 28 29 * { 30 color: var(--text-color); 31 } 32 33 body { 34 background-color: var(--background-color); 35 color: var(--text-color); 36 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 37 } 38 39 h1 { 40 @apply text-4xl font-bold; 41 } 42 43 h2 { 44 @apply text-3xl font-bold; 45 } 46 47 h3 { 48 @apply text-2xl font-bold; 49 } 50 51 h4 { 52 @apply text-xl font-semibold; 53 } 54 55 h5 { 56 @apply text-lg font-semibold; 57 } 58 59 h6 { 60 @apply text-sm font-semibold; 61 } 62 63 a { 64 @apply text-[var(--link-color)] hover:text-[var(--link-hover-color)] no-underline; 65 /* Simplified hover transitions */ 66 transition: color 0.2s ease; 67 } 68 69 a:hover { 70 @apply font-semibold; 71 } 72 73 a, 74 a:visited, 75 a:hover, 76 a:active, 77 a:focus { 78 text-decoration: none !important; 79 } 80 81 /* Header links - simplified transitions */ 82 header a, 83 a.font-medium { 84 @apply no-underline hover:no-underline inline-block; 85 /* Only animate on hover, not constantly */ 86 transition: transform 0.2s ease; 87 } 88 89 header a:hover, 90 a.font-medium:hover { 91 transform: scale(1.1); 92 } 93 94 /* Typography styles for blog/prose content using Tailwind Typography plugin */ 95 .prose { 96 @apply max-w-none; 97 } 98 99 /* Left-align headings in blog posts */ 100 .prose h1, 101 .prose h2, 102 .prose h3, 103 .prose h4, 104 .prose h5, 105 .prose h6 { 106 @apply text-left; 107 } 108 109 /* Left-align paragraphs and lists */ 110 .prose p, 111 .prose ul, 112 .prose ol { 113 @apply text-left; 114 } 115 116 .prose img { 117 @apply border-0 rounded-lg mx-auto; 118 } 119 120 a { 121 color: var(--link-color); 122 text-decoration: none; 123 } 124 125 a:hover { 126 color: var(--link-hover-color); 127 text-decoration: none; 128 } 129 130 /* Prose element styling with CSS variables for theme consistency */ 131 .prose a { 132 color: var(--link-color); 133 text-decoration: none; 134 } 135 136 .prose a:hover { 137 color: var(--link-hover-color); 138 } 139 140 .prose blockquote { 141 @apply border-l-2 pl-4 rounded-none mx-auto; 142 border-color: var(--button-bg); 143 background-color: var(--card-bg); 144 } 145 146 .prose code { 147 background-color: var(--card-bg); 148 @apply rounded px-1 font-mono; 149 } 150 151 .prose pre { 152 background-color: var(--card-bg); 153 @apply rounded-md mx-auto text-left font-mono p-4 overflow-x-auto; 154 box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3); 155 line-height: 1.5; 156 } 157 158 .prose pre code { 159 @apply bg-transparent p-0; 160 } 161} 162 163.text-link { 164 color: var(--link-color); 165} 166 167.text-link-hover, 168.text-link:hover { 169 color: var(--link-hover-color); 170} 171 172.text-primary { 173 color: var(--text-color); 174} 175 176.text-muted { 177 color: var(--link-color); 178 opacity: 0.8; 179}