diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index d0588ec..9e117d9 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -184,6 +184,18 @@ .prose a:hover { background-size: 100% 1px; } + + /* Initial Letter (Drop Cap) Effect */ + .post-content > p:first-of-type::first-letter { + -webkit-initial-letter: 3 2; + initial-letter: 3 2; + color: var(--brand-primary); + @apply font-serif font-bold mr-4 float-left transition-colors duration-300; + /* Fallback for browsers that don't support initial-letter */ + @supports not (initial-letter: 3) { + @apply text-7xl leading-[0.8] mt-2; + } + } } .site-logo {