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

Fix website redesign hero.svelte #938

Merged
merged 5 commits into from
Oct 21, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fixed multicolor text expanding to entire page width
  • Loading branch information
tomasohCHOM committed Oct 18, 2023
commit 95b9fa3ab0089caa63110c689583f75c521aef91
9 changes: 7 additions & 2 deletions src/routes/(site)/6/hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@
display: block;
}

/* Since we gave a display block to the span elements within the h1,
* each will cover the entire page width, causing issues with the
* multicolor linear-gradient (covering the webpage width rather than
* the actual text ONLY). Giving a display of inline-block to the span
* containing the multicolor text resolved this issue.
*/
section .hero-inner-container .hero-text span.multicolor-text {
display: inline-block;
background: linear-gradient(
to right,
var(--acm-turquoise),
Expand All @@ -56,8 +63,6 @@
background-clip: text;
-webkit-background-clip: text;
color: transparent;
background-size: 50%;
background-position: center;
}

section .hero-inner-container .hero-text .join-button {
Expand Down
Loading