Make the Discord login button look like Discord's
All checks were successful
Deploy Palico Bot / check (push) Successful in 10s
Deploy Palico Bot / deploy (push) Successful in 7s

Blurple button with the Discord logo, styled after the one in sokko-g.
The rule now beats `a.btn`, which forced inline-block and broke the
flex layout, and the login panel is a bit wider so the label fits on
one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-29 19:21:23 +01:00
parent 8cf0a8eb5b
commit 3544d89ceb
2 changed files with 37 additions and 5 deletions

View file

@ -137,7 +137,7 @@ p {
}
.hero__auth {
max-width: 300px;
max-width: 330px;
}
.pill {
@ -288,13 +288,37 @@ a.btn {
text-align: center;
}
.btn--discord {
/* Bouton aux couleurs de Discord (blurple), avec son logo. */
.btn.btn--discord {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.55rem;
width: 100%;
min-height: 46px;
padding: 0.6rem 0.9rem;
font-size: 0.95rem;
line-height: 1.2;
text-align: center;
border: 1px solid #6f7bff;
border-radius: 10px;
background: #5865f2;
box-shadow: 0 6px 16px rgba(35, 39, 96, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
color: #fff;
font-weight: 700;
text-decoration: none;
}
.btn--discord:hover {
box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
.btn.btn--discord svg {
flex: 0 0 24px;
width: 24px;
height: 24px;
}
.btn.btn--discord:hover {
border-color: #7c86ff;
background: #4752c4;
box-shadow: 0 8px 20px rgba(35, 39, 96, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn[aria-pressed="true"] {