1@import "tailwindcss"; 2 3/* 4 Remove latte classes 5 They're not being used right now, so no reason to ship them 6*/ 7/* .latte { 8 --ctp-rosewater: rgb(220 138 120); 9 --ctp-flamingo: rgb(221 120 120); 10 --ctp-pink: rgb(234 118 203); 11 --ctp-mauve: rgb(136 57 239); 12 --ctp-red: rgb(210 15 57); 13 --ctp-maroon: rgb(230 69 83); 14 --ctp-peach: rgb(254 100 11); 15 --ctp-yellow: rgb(223 142 29); 16 --ctp-green: rgb(64 160 43); 17 --ctp-teal: rgb(23 146 153); 18 --ctp-sky: rgb(4 165 229); 19 --ctp-sapphire: rgb(32 159 181); 20 --ctp-blue: rgb(30 102 245); 21 --ctp-lavender: rgb(114 135 253); 22 --ctp-text: rgb(76 79 105); 23 --ctp-subtext1: rgb(92 95 119); 24 --ctp-subtext0: rgb(108 111 133); 25 --ctp-overlay2: rgb(124 127 147); 26 --ctp-overlay1: rgb(140 143 161); 27 --ctp-overlay0: rgb(156 160 176); 28 --ctp-surface2: rgb(172 176 190); 29 --ctp-surface1: rgb(188 192 204); 30 --ctp-surface0: rgb(204 208 218); 31 --ctp-base: rgb(239 241 245); 32 --ctp-mantle: rgb(230 233 239); 33 --ctp-crust: rgb(220 224 232); 34 --callout-blend-mode: darken; 35} */ 36.mocha { 37 --ctp-rosewater: rgb(245 224 220); 38 --ctp-flamingo: rgb(242 205 205); 39 --ctp-pink: rgb(245 194 231); 40 --ctp-mauve: rgb(203 166 247); 41 --ctp-red: rgb(243 139 168); 42 --ctp-maroon: rgb(235 160 172); 43 --ctp-peach: rgb(250 179 135); 44 --ctp-yellow: rgb(249 226 175); 45 --ctp-green: rgb(166 227 161); 46 --ctp-teal: rgb(148 226 213); 47 --ctp-sky: rgb(137 220 235); 48 --ctp-sapphire: rgb(116 199 236); 49 --ctp-blue: rgb(137 180 250); 50 --ctp-lavender: rgb(180 190 254); 51 --ctp-text: rgb(205 214 244); 52 --ctp-subtext1: rgb(186 194 222); 53 --ctp-subtext0: rgb(166 173 200); 54 --ctp-overlay2: rgb(147 153 178); 55 --ctp-overlay1: rgb(127 132 156); 56 --ctp-overlay0: rgb(108 112 134); 57 --ctp-surface2: rgb(88 91 112); 58 --ctp-surface1: rgb(69 71 90); 59 --ctp-surface0: rgb(49 50 68); 60 --ctp-base: rgb(30 30 46); 61 --ctp-mantle: rgb(24 24 37); 62 --ctp-crust: rgb(17 17 27); 63 --callout-blend-mode: lighten; 64} 65 66@theme { 67 /* Remove initial variables we don't need */ 68 --color-*: initial; 69 --blur-*: initial; 70 --perspective-*: initial; 71 --drop-shadow-*: initial; 72 --shadow-*: initial; 73 --inset-shadow-*: initial; 74 --ease-*: initial; 75 --animate-*: initial; 76 --font-sans: "Inter", "ui-sans-serif", "system-ui", "sans-serif"; 77 --font-serif: "IBM Plex Serif", "ui-serif", "serif"; 78 /* CTP overrides --text-base, so we need this custom class for the base text size */ 79 --text-default: 1rem; 80 --text-default--line-height: calc(1.5 / 1); 81 82 /* Flag Colors */ 83 --color-trans-blue: #5bcffa; 84 --color-trans-pink: #f5abb9; 85 --color-lesbian-orange1: #d62900; 86 --color-lesbian-orange2: #ff790d; 87 --color-lesbian-orange3: #ff9b55; 88 --color-lesbian-pink1: #d462a6; 89 --color-lesbian-pink2: #ef5496; 90 --color-lesbian-pink3: #a50062; 91} 92 93@theme inline { 94 --color-rosewater: var(--ctp-rosewater); 95 --color-flamingo: var(--ctp-flamingo); 96 --color-pink: var(--ctp-pink); 97 --color-mauve: var(--ctp-mauve); 98 --color-red: var(--ctp-red); 99 --color-maroon: var(--ctp-maroon); 100 --color-peach: var(--ctp-peach); 101 --color-yellow: var(--ctp-yellow); 102 --color-green: var(--ctp-green); 103 --color-teal: var(--ctp-teal); 104 --color-sky: var(--ctp-sky); 105 --color-sapphire: var(--ctp-sapphire); 106 --color-blue: var(--ctp-blue); 107 --color-lavender: var(--ctp-lavender); 108 --color-text: var(--ctp-text); 109 --color-subtext1: var(--ctp-subtext1); 110 --color-subtext0: var(--ctp-subtext0); 111 --color-overlay2: var(--ctp-overlay2); 112 --color-overlay1: var(--ctp-overlay1); 113 --color-overlay0: var(--ctp-overlay0); 114 --color-surface2: var(--ctp-surface2); 115 --color-surface1: var(--ctp-surface1); 116 --color-surface0: var(--ctp-surface0); 117 --color-base: var(--ctp-base); 118 --color-mantle: var(--ctp-mantle); 119 --color-crust: var(--ctp-crust); 120} 121 122@layer components { 123 [data-editor-file] { 124 @apply transition-all rounded-md; 125 } 126 [data-editor-file]:hover { 127 @apply transition-all outline-blue outline-2 outline-offset-4 128 bg-blue/10 pl-1; 129 } 130} 131 132@utility h-entry { 133 a { 134 @apply text-blue underline; 135 } 136 137 h2 { 138 @apply text-2xl font-sans; 139 } 140 141 p { 142 @apply mb-6; 143 } 144 145 blockquote { 146 @apply border-l-2 pl-6 relative border-overlay0 italic; 147 left: -0.5rem; 148 } 149 150 div.callout-content > p { 151 @apply mb-0; 152 } 153 154 h2:has(a.header-anchor) { 155 @apply text-3xl text-mauve relative mb-8; 156 left: -1.75rem; 157 } 158 159 h3:has(a.header-anchor) { 160 @apply text-2xl text-mauve relative mb-6; 161 left: -1.75rem; 162 } 163 164 a.header-anchor::before { 165 @apply relative mr-1 inline-block; 166 font-family: "bootstrap-icons"; 167 content: "\F40A"; 168 top: 0.225rem; 169 } 170} 171 172@utility header-anchor { 173 @apply text-mauve!; 174} 175 176/* Disable <detail> folding on non-folding admonitions */ 177@utility no-fold { 178 pointer-events: none; 179} 180 181/* Callouts/Admonitions */ 182@utility callout { 183 @apply outline-1 rounded-sm py-2 pl-2 pr-4 outline-solid overflow-hidden; 184 outline-color: --alpha(var(--callout-color) / 50%); 185 margin: 1em 0; 186 mix-blend-mode: var(--callout-blend-mode); 187 background-color: --alpha(var(--callout-color) / 15%); 188 189 .callout-title { 190 @apply text-lg mb-2 flex gap-2 items-start font-semibold w-full; 191 color: rgb(var(--callout-color)); 192 193 &::before { 194 @apply flex items-center text-xl leading-7 mr-1; 195 flex: 0 0 auto; 196 font-family: "bootstrap-icons"; 197 content: var(--callout-icon); 198 } 199 200 .no-fold &::after { 201 content: "" !important; 202 } 203 204 &::after { 205 margin-left: auto; 206 font-family: "bootstrap-icons"; 207 background-color: rgb(var(--callout-color)); 208 content: "\F285"; 209 } 210 211 [open] &::after { 212 margin-left: auto; 213 font-family: "bootstrap-icons"; 214 background-color: rgb(var(--callout-color)); 215 content: "\F282"; 216 } 217 } 218 219 .callout-content { 220 @apply overflow-x-auto pl-2; 221 222 [data-editor-file]:hover { 223 @apply relative top-2 mr-2; 224 } 225 } 226 &[data-callout="note"] { 227 --callout-color: var(--ctp-blue); 228 --callout-icon: "\F4CB"; 229 } 230 231 &[data-callout="todo"] { 232 --callout-color: var(--ctp-blue); 233 --callout-icon: "\F26B"; 234 } 235 236 &[data-callout="info"] { 237 --callout-color: var(--ctp-blue); 238 --callout-icon: "\F431"; 239 } 240 241 &[data-callout="success"], 242 &[data-callout="check"], 243 &[data-callout="done"] { 244 --callout-color: var(--ctp-green); 245 --callout-icon: "\F272"; 246 } 247 248 &[data-callout="warning"], 249 &[data-callout="caution"], 250 &[data-callout="attention"] { 251 --callout-color: var(--ctp-yellow); 252 --callout-icon: "\F33B"; 253 } 254 255 &[data-callout="question"] { 256 --callout-color: var(--ctp-yellow); 257 --callout-icon: "\F505"; 258 } 259 260 &[data-callout="danger"], 261 &[data-callout="error"] { 262 --callout-color: var(--ctp-red); 263 --callout-icon: "\F46F"; 264 } 265 266 &[data-callout="failure"] { 267 --callout-color: var(--ctp-red); 268 --callout-icon: "\F659"; 269 } 270 271 &[data-callout="bug"] { 272 --callout-color: var(--ctp-red); 273 --callout-icon: "\F1DC"; 274 } 275 276 &[data-callout="tip"], 277 &[data-callout="hint"] { 278 --callout-color: var(--ctp-teal); 279 --callout-icon: "\F7F6"; 280 } 281 282 &[data-callout="example"] { 283 --callout-color: var(--ctp-mauve); 284 --callout-icon: "\F478"; 285 } 286 287 &[data-callout="abstract"], 288 &[data-callout="summary"], 289 &[data-callout="tldr"] { 290 --callout-color: var(--ctp-sky); 291 --callout-icon: "\F727"; 292 } 293 294 &[data-callout="quote"], 295 &[data-callout="cite"] { 296 --callout-color: var(--ctp-overlay0); 297 --callout-icon: "\F6B0"; 298 } 299} 300 301/* Start Footnotes */ 302 303@utility fn { 304 @apply mb-2; 305 p { 306 @apply inline; 307 } 308 [data-editor-file] { 309 @apply inline; 310 } 311} 312 313@utility fn-backref { 314 &::before { 315 @apply inline-block text-blue align-bottom; 316 content: "\F131"; 317 font-family: "bootstrap-icons"; 318 } 319} 320 321/* End Footnotes */ 322 323/* Start ToC */ 324 325@utility toc { 326 @apply mt-3 mb-8; 327} 328 329@utility toc-l1 { 330 @apply border-l-2 border-overlay0 pl-2 ml-1 text-xl; 331} 332 333@utility toc-l2 { 334 @apply text-default border-l-2 pl-2 border-surface2 first-of-type:mt-1 last-of-type:mb-1; 335} 336 337/* End ToC */ 338 339/* Extra arbitrary styles */ 340details.callout .callout-title { 341 margin: 0; 342 cursor: pointer; 343} 344 345details.callout > .callout-title > .callout-fold::after { 346 content: "\F285"; 347} 348 349details[open].callout > .callout-title > .callout-fold::after { 350 content: "\F282"; 351}