Spaces:
Running

sdex / src /index.css
vip
Update Shengda frontend
77f0e7b
Raw History Blame Contribute Delete
2.75 kB
@import "tailwindcss";
@theme {
--color-surface: #001428;
--color-surface-dim: #001428;
--color-surface-bright: #F1F2F3;
--color-surface-container-lowest: #000f20;
--color-surface-container-low: #071d31;
--color-surface-container: #0b2135;
--color-surface-container-high: #172b40;
--color-surface-container-highest: #22364c;
--color-on-surface: #d1e4ff;
--color-on-surface-variant: #c1c6d7;
--color-inverse-surface: #d1e4ff;
--color-inverse-on-surface: #1e3247;
--color-outline: #8b90a0;
--color-outline-variant: #414755;
--color-surface-tint: #afc6ff;
--color-primary: #afc6ff;
--color-on-primary: #002d6c;
--color-primary-container: #528dff;
--color-on-primary-container: #00275f;
--color-inverse-primary: #0059c7;
--color-secondary: #a8caf1;
--color-on-secondary: #093252;
--color-secondary-container: #294b6d;
--color-on-secondary-container: #9abbe2;
--color-tertiary: #ffb695;
--color-on-tertiary: #571e00;
--color-tertiary-container: #ee681b;
--color-on-tertiary-container: #4c1a00;
--color-error: #ffb4ab;
--color-on-error: #690005;
--color-error-container: #93000a;
--color-on-error-container: #ffdad6;
--color-background: #001428;
--color-on-background: #d1e4ff;
--animate-scroll-left: scroll-left 25s linear infinite;
@keyframes scroll-left {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
}
/* Custom scrollbar hider */
.scrollbar-none::-webkit-scrollbar {
display: none;
}
.scrollbar-none {
-ms-overflow-style: none;
scrollbar-width: none;
}
.mobile-shell {
width: min(100vw, 393px);
min-height: 100vh;
margin-inline: auto;
overflow-x: hidden;
background: #000B14;
box-shadow: 0 0 0 1px rgba(175, 198, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.45);
}
.mobile-shell [class~="fixed"][class~="w-full"],
.mobile-shell [class~="fixed"][class~="inset-0"] {
width: min(100vw, 393px);
left: 50% !important;
right: auto !important;
transform: translateX(-50%);
}
.category-tab-scroll {
width: 100%;
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
-webkit-overflow-scrolling: touch;
touch-action: pan-x;
cursor: grab;
user-select: none;
}
.category-tab-scroll:active {
cursor: grabbing;
}
.cert-badge-pulse {
animation: cert-badge-pulse 3.8s ease-in-out infinite;
}
@keyframes cert-badge-pulse {
0%,
100% {
border-color: rgba(255, 215, 0, 0.48);
box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.08), 0 0 12px rgba(255, 190, 0, 0.16);
}
50% {
border-color: rgba(255, 215, 0, 0.92);
box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 0 20px rgba(255, 190, 0, 0.36);
}
}
body {
background-color: #000B14;
}