Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Text Clipping of Descenders in bg-clip-text by Adjusting Padding and Margins #148

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/routes/(marketing)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
<div class="hero-content text-center py-12">
<div class="max-w-xl">
<div
class="text-xl md:text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-accent mb-4 md:mb-8"
class="text-xl md:text-3xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-accent mb-3 md:mb-7 pb-1"
>
SaaS Starter Demo
</div>
Expand Down Expand Up @@ -300,11 +300,11 @@
<div class="pt-20 pb-8 px-7">
<div class="max-w-lg mx-auto text-center">
<div
class="text-3xl md:text-5xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-accent"
class="text-3xl md:text-5xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-accent pb-2"
>
Explore the Features
</div>
<div class="mt-6 text-xl font-bold">
<div class="mt-4 text-xl font-bold">
And try them on this
<span
class="underline decoration-secondary decoration-[3px] md:decoration-[4px]"
Expand Down Expand Up @@ -361,12 +361,12 @@
<div class="hero-content text-center pb-16 pt-4 px-4">
<div class="max-w-lg">
<div
class="text-3xl md:text-5xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-accent mt-4"
class="text-3xl md:text-5xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-accent mt-4 pb-2"
>
See it in Action
</div>
<div
class="flex flex-col lg:flex-row mt-8 gap-6 place-content-center content-center"
class="flex flex-col lg:flex-row mt-6 gap-6 place-content-center content-center"
>
<div class="hidden md:block">
<a href="https://criticalmoments.io" target="_blank" class="link">
Expand Down
Loading