palico-bot/public/style/styles.css
Shinuwa 3544d89ceb
All checks were successful
Deploy Palico Bot / check (push) Successful in 10s
Deploy Palico Bot / deploy (push) Successful in 7s
Make the Discord login button look like Discord's
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>
2026-11-29 19:21:23 +01:00

629 lines
10 KiB
CSS

:root {
color-scheme: dark;
--bg: #06030d;
--bg-card: rgba(22, 14, 36, 0.9);
--bg-glass: rgba(42, 25, 66, 0.65);
--border: rgba(255, 255, 255, 0.08);
--accent: #b259ff;
--accent-strong: #d66bff;
--muted: #cbc4d5;
--muted-dark: #8c7ea7;
--danger: #ff4d6d;
--success: #59ffa7;
--gradient: radial-gradient(circle at 20% 20%, #2d1a49, transparent 45%),
radial-gradient(circle at 80% 0%, #551e8c, transparent 40%),
radial-gradient(circle at 50% 80%, #150b28, transparent 30%);
}
* {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
code {
background: rgba(255, 255, 255, 0.08);
border-radius: 6px;
padding: 0.1rem 0.35rem;
}
body {
margin: 0;
min-height: 100vh;
font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--gradient), #050109;
color: #f7f1ff;
}
main {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem 4rem;
}
h1,
h2,
h3,
h4 {
margin: 0;
}
p {
margin-top: 0;
}
.text--muted {
color: var(--muted);
text-align: center;
}
.hero {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 2rem;
padding: 3rem 1.5rem;
max-width: 1200px;
margin: 0 auto;
}
.hero--home {
flex-direction: row;
align-items: center;
text-align: left;
gap: 2.75rem;
}
.hero--home .hero__visual img {
max-width: 320px;
}
.hero__content {
flex: 1;
min-width: 280px;
}
.hero__content h1 {
font-size: 2.2rem;
line-height: 1.1;
margin-top: 1rem;
margin-bottom: 1rem;
}
.hero__content p {
color: var(--muted);
font-size: 1.05rem;
max-width: 500px;
}
.hero__actions {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
.hero__actions--centered {
justify-content: center;
margin: 2rem auto 3rem;
}
.hero__visual {
min-width: 200px;
display: flex;
justify-content: center;
}
.hero__visual img {
max-width: 200px;
width: 100%;
height: auto;
filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.45));
}
.hero__visual--large img {
max-width: 270px;
}
.hero__auth {
max-width: 330px;
}
.pill {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-size: 0.9rem;
padding: 0.35rem 0.85rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: var(--muted);
letter-spacing: 0.05em;
text-transform: uppercase;
}
.panel {
border-radius: 18px;
padding: 1.75rem;
margin-bottom: 1.75rem;
border: 1px solid var(--border);
}
.panel--glass {
background: var(--bg-glass);
box-shadow: 0 20px 38px rgba(2, 0, 8, 0.45);
backdrop-filter: blur(18px);
}
.panel--dragover {
border-color: var(--accent);
border-style: dashed;
}
.panel__subtitle {
color: var(--muted);
margin-top: 0.35rem;
margin-bottom: 1.5rem;
}
.panel__header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
margin-bottom: 1.25rem;
}
.badge {
padding: 0.35rem 0.9rem;
background: rgba(178, 89, 255, 0.2);
color: var(--accent);
border-radius: 12px;
font-size: 0.85rem;
}
label {
display: block;
font-size: 0.95rem;
color: var(--muted);
margin-bottom: 0.35rem;
}
input[type="text"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="file"],
select,
textarea {
width: 100%;
padding: 0.7rem 0.9rem;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.05);
color: #fff;
font-size: 1rem;
}
input[type="file"] {
padding: 0.5rem;
}
input:focus,
textarea:focus,
select:focus {
outline: 2px solid rgba(178, 89, 255, 0.5);
border-color: rgba(178, 89, 255, 0.6);
}
.form-checkbox {
display: flex;
align-items: flex-start;
gap: 0.5rem;
color: var(--muted);
}
.form-checkbox__input {
margin-top: 0.25rem;
}
.btn {
border: none;
border-radius: 999px;
padding: 0.65rem 1.55rem;
font-weight: 600;
cursor: pointer;
background: linear-gradient(120deg, var(--accent), var(--accent-strong));
color: #08010f;
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 10px 25px rgba(178, 89, 255, 0.35);
}
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.btn--secondary {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}
.btn--danger {
background: linear-gradient(120deg, #ff4d6d, #ff89a5);
color: #fff;
}
.btn--ghost {
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.35);
color: #fff;
}
.btn--small {
padding: 0.4rem 1rem;
font-size: 0.9rem;
}
a.btn {
display: inline-block;
text-decoration: none;
text-align: center;
}
/* 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.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"] {
background: linear-gradient(120deg, var(--accent), var(--accent-strong));
color: #08010f;
}
.btn:focus-visible {
outline: 2px solid #fff;
outline-offset: 2px;
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.key-login summary {
cursor: pointer;
color: var(--muted);
margin: 1rem 0 0.75rem;
}
.live-indicator {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-size: 0.85rem;
color: var(--muted-dark);
white-space: nowrap;
}
.live-indicator::before {
content: "";
width: 0.55rem;
height: 0.55rem;
border-radius: 50%;
background: var(--muted-dark);
}
.live-indicator[data-live="true"] {
color: var(--success);
}
.live-indicator[data-live="true"]::before {
background: var(--success);
box-shadow: 0 0 0 4px rgba(89, 255, 167, 0.15);
}
.progress {
margin-top: 0.9rem;
}
.progress__track {
height: 6px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
}
.progress__bar {
height: 100%;
width: 0;
background: linear-gradient(120deg, var(--accent), var(--accent-strong));
transition: width 0.9s linear;
}
.progress__times {
display: flex;
justify-content: space-between;
color: var(--muted);
font-size: 0.85rem;
margin-top: 0.35rem;
font-variant-numeric: tabular-nums;
}
.upload-list {
margin-top: 1rem;
}
.upload-list__item {
display: grid;
grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
align-items: center;
gap: 0.75rem;
padding: 0.4rem 0;
font-size: 0.9rem;
}
.upload-list__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.upload-list__item progress {
width: 100%;
accent-color: var(--accent);
}
.upload-list__state {
color: var(--muted);
}
.upload-list__item[data-state="ok"] .upload-list__state {
color: var(--success);
}
.upload-list__item[data-state="error"] .upload-list__state {
color: var(--danger);
}
.url-form {
border-top: 1px solid var(--border);
padding-top: 1.25rem;
margin-top: 1.5rem;
}
.url-form__row {
display: flex;
gap: 0.75rem;
}
.hint {
color: var(--muted-dark);
font-size: 0.85rem;
margin: 0.5rem 0 0;
}
.control-group {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1.25rem;
}
.grid {
display: grid;
gap: 1rem;
}
.grid--two {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.u-mt-1 {
margin-top: 1rem;
}
.form-actions {
margin-top: 1.25rem;
display: flex;
justify-content: flex-end;
}
.status {
padding: 0.85rem 1.25rem;
border-radius: 999px;
font-size: 0.95rem;
margin: 1rem 0 2rem;
max-width: 600px;
}
.status--info {
background: rgba(178, 89, 255, 0.2);
color: var(--accent);
}
.status--error {
background: rgba(255, 77, 109, 0.15);
color: var(--danger);
}
.status--success {
background: rgba(89, 255, 167, 0.15);
color: var(--success);
}
.list {
list-style: none;
padding: 0;
margin: 0;
}
.list--stack > li {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.media-item {
display: flex;
gap: 1rem;
justify-content: space-between;
align-items: center;
padding: 0.9rem 0;
}
.media-item__info {
flex: 1;
}
.media-item__title {
font-weight: 600;
font-size: 1rem;
}
.media-item__meta {
color: var(--muted);
font-size: 0.9rem;
}
.media-item__actions {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.player-current {
background: rgba(0, 0, 0, 0.25);
border-radius: 16px;
padding: 1.2rem;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.player-current--empty {
color: var(--muted);
text-align: center;
}
.feature-grid {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-grid__card {
text-decoration: none;
color: inherit;
display: block;
border: 1px solid var(--border);
border-radius: 18px;
padding: 1.25rem 1.5rem;
background: var(--bg-card);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-grid__card:hover {
transform: translateY(-3px);
box-shadow: 0 15px 30px rgba(2, 0, 8, 0.45);
}
.feature-grid__card .pill {
margin-bottom: 0.5rem;
}
@media (max-width: 900px) {
.hero,
.hero--home {
flex-direction: column;
text-align: center;
}
.hero__content p {
margin: 0 auto;
}
.hero__actions {
justify-content: center;
}
.panel__header {
flex-direction: column;
align-items: flex-start;
}
}
@media (max-width: 600px) {
.btn,
input[type="text"],
input[type="file"],
select,
textarea {
width: 100%;
}
.control-group {
flex-direction: column;
}
.url-form__row {
flex-direction: column;
}
.upload-list__item {
grid-template-columns: 1fr;
gap: 0.25rem;
}
.media-item {
flex-direction: column;
align-items: stretch;
}
.media-item__actions .btn {
width: auto;
flex: 1;
}
}