Skip to content
Open
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
34 changes: 32 additions & 2 deletions website/src/components/AdoptersBanner/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
width: 100%;
max-width: 1200px;
margin: 1rem auto;
padding: 1rem 0;
padding: 1.25rem 0;
mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
-webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
Expand All @@ -14,6 +14,7 @@
gap: 1rem;
width: max-content;
animation: scroll 300s linear infinite;
padding: 0.5rem 0;
}

.bannerTrack:hover {
Expand All @@ -24,25 +25,43 @@
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
white-space: nowrap;
padding: 0.5rem 1.25rem;
border-radius: 6px;
border-radius: 8px;
border: 1px solid #e0e6ef;
background: var(--ifm-background-surface-color);
text-decoration: none;
flex-shrink: 0;
min-height: 48px;
position: relative;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1),
box-shadow 0.2s ease,
border-color 0.2s ease,
background-color 0.2s ease;
}

[data-theme='dark'] .adopter {
border-color: #3a4a6e;
background: #1e222d;
}

.adopter:hover {
border-color: #2a6bc7;
background-color: #f0f6ff;
box-shadow: 0 3px 8px rgba(42, 107, 199, 0.15);
transform: translateY(-1.5px) scale(1.03);
z-index: 10;
text-decoration: none;
}

[data-theme='dark'] .adopter:hover {
border-color: #5b9bf8;
background-color: #252f44;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), 0 0 8px rgba(42, 107, 199, 0.25);
}

.adopterLogo {
height: 28px;
width: auto;
Expand All @@ -54,16 +73,27 @@
font-size: 0.9rem;
font-weight: 500;
color: #2b3a5e;
transition: color 0.2s ease;
}

.adopter:hover .adopterName {
color: #1a56a7;
font-weight: 600;
}

[data-theme='dark'] .adopterName {
color: #c8d0e0;
}

[data-theme='dark'] .adopter:hover .adopterName {
color: #60a5fa;
}

@keyframes scroll {
0% {
transform: translateX(0);
}

100% {
transform: translateX(-50%);
}
Expand Down