Spaces:
Running
Running
Download web/src/styles.css from saim256/swipe-tts-preview: direct link, hf CLI and curl.
- Browser
- Download file 17.9 kB
-
https://huggingface.co/spaces/saim256/swipe-tts-preview/resolve/main/web/src/styles.css
- Command line
-
hf download hf://spaces/saim256/swipe-tts-preview/web/src/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/saim256/swipe-tts-preview/resolve/main/web/src/styles.css
17.9 kB
* {
box-sizing: border-box;
}
html,
body,
#root {
min-height: 100%;
}
body {
margin: 0;
background: #0d0e12;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-thumb {
background: rgba(128, 128, 128, 0.35);
border: 2px solid transparent;
border-radius: 10px;
background-clip: content-box;
}
::-webkit-scrollbar-track {
background: transparent;
}
.sw-root {
--sw-bg: #0d0e12;
--sw-surface: #15171d;
--sw-surface2: #1b1e26;
--sw-border: #272b34;
--sw-border-strong: #363b46;
--sw-text: #eef0f3;
--sw-dim: #a0a8b4;
--sw-faint: #6c7480;
--sw-brand: #ff2e2e;
--sw-brand-hover: #ff4d4d;
--sw-input-bg: #101218;
--sw-hover: #1f232c;
--sw-track: #2a2f39;
--sw-ring: rgba(255, 46, 46, 0.24);
min-height: 100vh;
background: var(--sw-bg);
color: var(--sw-text);
font-family: "Plus Jakarta Sans", system-ui, sans-serif;
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.sw-root.light {
--sw-bg: #f4f5f7;
--sw-surface: #ffffff;
--sw-surface2: #f7f8fa;
--sw-border: #e5e8ec;
--sw-border-strong: #cfd4dc;
--sw-text: #181b20;
--sw-dim: #5b6471;
--sw-faint: #8b94a1;
--sw-brand: #ed1c24;
--sw-brand-hover: #c9151c;
--sw-input-bg: #ffffff;
--sw-hover: #f2f4f7;
--sw-track: #e9ecf1;
--sw-ring: rgba(237, 28, 36, 0.16);
}
.sw-root,
.sw-root *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline) {
transition:
background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
color 0.4s ease,
box-shadow 0.35s ease;
}
.sw-root button {
transition:
background-color 0.2s ease,
transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.35s ease,
color 0.25s ease,
border-color 0.35s ease;
}
.sw-root button:active {
transform: scale(0.975);
}
.sw-cta {
transition:
transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
background-color 0.2s ease !important;
}
.sw-cta:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 16px 34px -12px var(--sw-ring);
}
.sw-cta:active:not(:disabled) {
transform: translateY(0) scale(0.99);
}
.sw-root input,
.sw-root textarea,
.sw-root select {
transition:
border-color 0.3s ease,
box-shadow 0.35s ease,
background-color 0.5s ease;
}
.sw-root input:focus,
.sw-root textarea:focus,
.sw-root select:focus {
border-color: var(--sw-brand) !important;
box-shadow: 0 0 0 3px var(--sw-ring);
}
.sw-stats > div {
transition:
transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.4s ease,
background-color 0.5s ease,
border-color 0.5s ease;
will-change: transform;
}
.sw-stats > div:hover {
transform: translateY(-4px);
box-shadow: 0 20px 38px -20px rgba(0, 0, 0, 0.6);
}
.sw-stagger > * {
animation: swReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sw-stagger > *:nth-child(1) {
animation-delay: 0.05s;
}
.sw-stagger > *:nth-child(2) {
animation-delay: 0.13s;
}
.sw-stagger > *:nth-child(3) {
animation-delay: 0.21s;
}
.sw-stagger > *:nth-child(4) {
animation-delay: 0.29s;
}
.sw-stagger > *:nth-child(5) {
animation-delay: 0.37s;
}
.sw-stagger > *:nth-child(6) {
animation-delay: 0.45s;
}
@keyframes swReveal {
from {
opacity: 0;
transform: translateY(18px);
filter: blur(9px);
}
to {
opacity: 1;
transform: translateY(0);
filter: blur(0);
}
}
@keyframes swPulse {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.35;
transform: scale(0.82);
}
}
@keyframes swToast {
from {
opacity: 0;
transform: translateY(-12px) scale(0.97);
filter: blur(4px);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
filter: blur(0);
}
}
@keyframes swShimmerBar {
0% {
transform: translateX(-120%);
}
100% {
transform: translateX(260%);
}
}
@keyframes swEq {
0%,
100% {
transform: scaleY(0.55);
}
50% {
transform: scaleY(1.06);
}
}
.sw-login {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background: var(--sw-bg);
}
.sw-login-glow {
position: absolute;
inset: 0 0 auto;
height: 42%;
pointer-events: none;
background: radial-gradient(ellipse at 50% 0%, rgba(255, 46, 46, 0.14), transparent 70%);
}
.light .sw-login-glow {
background: radial-gradient(ellipse at 50% 0%, rgba(237, 28, 36, 0.08), transparent 70%);
}
.sw-login-card {
position: relative;
width: 100%;
max-width: 392px;
}
.sw-brand-row {
display: flex;
align-items: center;
justify-content: center;
gap: 11px;
margin-bottom: 26px;
}
.sw-brand-word {
font-size: 25px;
font-weight: 800;
letter-spacing: -0.02em;
}
.sw-panel {
background: var(--sw-surface);
border: 1px solid var(--sw-border);
border-radius: 14px;
}
.sw-input,
.sw-select,
.sw-textarea {
width: 100%;
background: var(--sw-input-bg);
border: 1px solid var(--sw-border);
border-radius: 9px;
color: var(--sw-text);
font: inherit;
outline: none;
}
.sw-input,
.sw-select {
padding: 10px 13px;
font-size: 14px;
}
.sw-textarea {
min-height: 84px;
padding: 11px 12px;
font-size: 13.5px;
line-height: 1.55;
resize: vertical;
}
.sw-label {
display: block;
margin-bottom: 7px;
color: var(--sw-faint);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.sw-app {
display: flex;
min-height: 100vh;
}
.sw-sidebar {
position: sticky;
top: 0;
display: flex;
flex: none;
flex-direction: column;
width: 248px;
height: 100vh;
background: var(--sw-surface);
border-right: 1px solid var(--sw-border);
}
.sw-sidebar-head {
display: flex;
align-items: center;
gap: 10px;
padding: 20px 20px 16px;
border-bottom: 1px solid var(--sw-border);
}
.sw-nav {
display: flex;
flex: 1;
flex-direction: column;
gap: 3px;
padding: 14px 12px;
}
.sw-nav-kicker {
padding: 8px 12px 6px;
color: var(--sw-faint);
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.09em;
text-transform: uppercase;
}
.sw-nav-button {
display: flex;
align-items: center;
gap: 11px;
width: 100%;
padding: 10px 12px;
background: transparent;
border: none;
border-left: 3px solid transparent;
border-radius: 9px;
color: var(--sw-dim);
cursor: pointer;
font: inherit;
font-size: 13.5px;
font-weight: 600;
}
.sw-nav-button:hover {
background: var(--sw-hover);
}
.sw-nav-button.active {
background: color-mix(in srgb, var(--sw-brand) 14%, transparent);
border-left-color: var(--sw-brand);
color: var(--sw-brand);
}
.light .sw-nav-button.active {
background: color-mix(in srgb, var(--sw-brand) 9%, transparent);
}
.sw-nav-label {
flex: 1;
text-align: left;
}
.sw-badge-muted,
.sw-nav-badge {
padding: 1px 7px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
}
.sw-nav-badge {
background: var(--sw-brand);
color: #fff;
}
.sw-badge-muted {
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
color: var(--sw-dim);
}
.sw-worker-card {
display: flex;
align-items: center;
gap: 9px;
margin: 14px;
padding: 10px 12px;
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
border-radius: 10px;
}
.sw-worker-dot {
width: 9px;
height: 9px;
flex: none;
border-radius: 50%;
}
.sw-main-wrap {
display: flex;
flex: 1;
min-width: 0;
flex-direction: column;
}
.sw-topbar {
position: sticky;
top: 0;
z-index: 30;
display: flex;
align-items: center;
gap: 18px;
padding: 14px 28px;
background: rgba(13, 14, 18, 0.8);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--sw-border);
}
.light .sw-topbar {
background: rgba(244, 245, 247, 0.8);
}
.sw-page {
width: 100%;
max-width: 1320px;
flex: 1;
padding: 26px 28px 48px;
}
.sw-icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
border-radius: 10px;
color: var(--sw-dim);
cursor: pointer;
}
.sw-icon-button:hover {
color: var(--sw-text);
}
.sw-live-pill {
display: flex;
align-items: center;
gap: 7px;
padding: 6px 13px;
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
border-radius: 999px;
}
.sw-live-dot {
width: 8px;
height: 8px;
background: #22c55e;
border-radius: 50%;
animation: swPulse 1.8s ease infinite;
}
.sw-grid-stats {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 14px;
margin-bottom: 22px;
}
.sw-stat {
padding: 16px 18px;
background: var(--sw-surface);
border: 1px solid var(--sw-border);
border-radius: 13px;
}
.sw-stat-label {
margin-bottom: 8px;
color: var(--sw-dim);
font-size: 11.5px;
font-weight: 600;
}
.sw-stat-value {
font-size: 28px;
font-weight: 800;
font-variant-numeric: tabular-nums;
letter-spacing: -0.02em;
}
.sw-active-panel {
padding: 20px 22px;
margin-bottom: 22px;
border: 1px solid rgba(251, 191, 36, 0.3);
border-radius: 14px;
background: rgba(251, 191, 36, 0.08);
}
.light .sw-active-panel {
background: rgba(180, 83, 9, 0.05);
}
.sw-progress-track {
height: 10px;
overflow: hidden;
background: var(--sw-track);
border-radius: 999px;
}
.sw-progress-bar {
position: relative;
height: 100%;
overflow: hidden;
border-radius: 999px;
transition: width 0.4s ease;
}
.sw-progress-bar::after {
position: absolute;
top: 0;
bottom: 0;
width: 40%;
content: "";
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
animation: swShimmerBar 1.7s ease-in-out infinite;
}
.sw-dashboard-grid {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 18px;
align-items: start;
}
.sw-table-wrap {
overflow: hidden;
background: var(--sw-surface);
border: 1px solid var(--sw-border);
border-radius: 14px;
}
.sw-panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 15px 18px;
border-bottom: 1px solid var(--sw-border);
}
.sw-scroll-x {
overflow-x: auto;
}
.sw-table {
width: 100%;
border-collapse: collapse;
font-size: 12.5px;
white-space: nowrap;
}
.sw-table th {
padding: 9px 12px;
color: var(--sw-faint);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-align: left;
text-transform: uppercase;
}
.sw-table th:first-child,
.sw-table td:first-child {
padding-left: 18px;
}
.sw-table td {
padding: 11px 12px;
border-top: 1px solid var(--sw-border);
}
.sw-table tr[data-clickable="true"] {
cursor: pointer;
}
.sw-table tr[data-clickable="true"]:hover {
background: var(--sw-hover);
}
.sw-selected-row {
background: color-mix(in srgb, var(--sw-brand) 10%, transparent);
box-shadow: inset 3px 0 0 var(--sw-brand);
}
.light .sw-selected-row {
background: color-mix(in srgb, var(--sw-brand) 6%, transparent);
}
.sw-status-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
font-size: 11.5px;
font-weight: 600;
white-space: nowrap;
}
.sw-status-dot {
width: 6px;
height: 6px;
flex: none;
border-radius: 50%;
}
.sw-detail-panel {
position: sticky;
top: 90px;
background: var(--sw-surface);
border: 1px solid var(--sw-border);
border-radius: 14px;
}
.sw-script-box {
max-height: 184px;
padding: 13px;
overflow-y: auto;
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
border-radius: 10px;
color: var(--sw-dim);
font-size: 12.5px;
line-height: 1.6;
white-space: pre-wrap;
}
.sw-audio-box {
padding: 13px 14px;
margin-bottom: 14px;
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
border-radius: 11px;
}
.sw-play-button {
display: inline-flex;
flex: none;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
color: #fff;
cursor: pointer;
background: var(--sw-brand);
border: none;
border-radius: 50%;
}
.sw-wave {
display: flex;
flex: 1;
align-items: flex-end;
gap: 2px;
height: 34px;
}
.sw-wave span {
flex: 1;
border-radius: 2px;
transform-origin: bottom;
}
.sw-primary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
color: #fff;
cursor: pointer;
background: var(--sw-brand);
border: none;
border-radius: 10px;
font: inherit;
font-size: 13.5px;
font-weight: 700;
text-decoration: none;
}
.sw-primary:hover {
background: var(--sw-brand-hover);
}
.sw-primary:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.sw-form-grid {
display: grid;
grid-template-columns: 1.35fr 1fr;
gap: 18px;
align-items: start;
}
.sw-form-stack {
display: flex;
flex-direction: column;
gap: 16px;
}
.sw-form-card {
padding: 20px;
}
.sw-two-col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
.sw-segment-row {
display: flex;
gap: 8px;
}
.sw-segment {
padding: 9px 16px;
color: var(--sw-dim);
cursor: pointer;
background: var(--sw-input-bg);
border: 1px solid var(--sw-border);
border-radius: 8px;
font: inherit;
font-size: 13.5px;
font-weight: 600;
}
.sw-segment.active {
color: #fff;
background: var(--sw-brand);
border-color: var(--sw-brand);
}
.sw-advanced-toggle {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 16px 20px;
color: var(--sw-text);
cursor: pointer;
background: none;
border: none;
font: inherit;
}
.sw-side-stack {
position: sticky;
top: 90px;
display: flex;
flex-direction: column;
gap: 16px;
}
.sw-progress-card {
padding: 18px;
background: var(--sw-surface);
border: 1px solid var(--sw-border);
border-radius: 14px;
}
.sw-timing-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-top: 16px;
font-size: 12.5px;
}
.sw-mono {
font-family: "JetBrains Mono", monospace;
font-variant-numeric: tabular-nums;
}
.sw-bulk-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
margin-bottom: 18px;
}
.sw-secondary {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 10px 15px;
color: var(--sw-text);
cursor: pointer;
background: var(--sw-surface);
border: 1px solid var(--sw-border);
border-radius: 10px;
font: inherit;
font-size: 13.5px;
font-weight: 600;
}
.sw-secondary:hover {
border-color: var(--sw-brand);
}
.sw-bulk-card {
padding: 16px 18px;
background: var(--sw-surface);
border: 1px solid var(--sw-border);
border-radius: 13px;
}
.sw-bulk-head {
display: flex;
align-items: center;
gap: 11px;
margin-bottom: 13px;
}
.sw-bulk-number {
display: inline-flex;
flex: none;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
border-radius: 7px;
font-family: "JetBrains Mono", monospace;
font-size: 12.5px;
font-weight: 700;
}
.sw-studio-tabs {
display: inline-flex;
gap: 3px;
padding: 4px;
margin-bottom: 20px;
background: var(--sw-surface2);
border: 1px solid var(--sw-border);
border-radius: 11px;
}
.sw-studio-tab {
padding: 8px 16px;
color: var(--sw-dim);
cursor: pointer;
background: transparent;
border: 1px solid transparent;
border-radius: 8px;
font: inherit;
font-size: 13.5px;
font-weight: 600;
}
.sw-studio-tab.active {
color: var(--sw-text);
background: var(--sw-surface);
border-color: var(--sw-border);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.sw-drop {
padding: 22px;
margin-bottom: 14px;
text-align: center;
background: var(--sw-surface2);
border: 1.5px dashed var(--sw-border-strong);
border-radius: 11px;
}
.sw-saved-grid,
.sw-studio-design-grid {
display: grid;
grid-template-columns: 1.6fr 1fr;
gap: 18px;
align-items: start;
}
.sw-toast-wrap {
position: fixed;
top: 18px;
left: 50%;
z-index: 90;
transform: translateX(-50%);
animation: swToast 0.3s ease;
}
.sw-toast {
display: inline-flex;
align-items: center;
gap: 9px;
padding: 11px 16px;
border-radius: 10px;
box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4);
font-size: 13.5px;
}
.sw-toast.ok {
color: #86efac;
background: #10241a;
border: 1px solid rgba(34, 197, 94, 0.4);
}
.light .sw-toast.ok {
color: #15803d;
background: #f0fdf4;
}
.sw-toast.err {
color: #fca5a5;
background: #2a1416;
border: 1px solid rgba(239, 68, 68, 0.4);
}
.light .sw-toast.err {
color: #dc2626;
background: #fef2f2;
}
.sw-mobile-tabs {
display: none;
}
@media (max-width: 1120px) {
.sw-grid-stats {
grid-template-columns: repeat(3, 1fr);
}
.sw-dashboard-grid,
.sw-form-grid,
.sw-saved-grid,
.sw-studio-design-grid {
grid-template-columns: 1fr;
}
.sw-detail-panel,
.sw-side-stack {
position: static;
}
}
@media (max-width: 820px) {
.sw-app {
display: block;
}
.sw-sidebar {
display: none;
}
.sw-topbar {
flex-wrap: wrap;
padding: 14px 16px;
}
.sw-mobile-tabs {
display: flex;
width: 100%;
gap: 6px;
overflow-x: auto;
padding-top: 8px;
}
.sw-mobile-tabs .sw-nav-button {
width: auto;
flex: none;
border-left: none;
}
.sw-page {
padding: 18px 16px 36px;
}
.sw-grid-stats {
grid-template-columns: repeat(2, 1fr);
}
.sw-two-col {
grid-template-columns: 1fr;
}
}
@media (max-width: 520px) {
.sw-grid-stats {
grid-template-columns: 1fr;
}
.sw-live-pill {
display: none;
}
.sw-brand-word {
font-size: 22px;
}
}
@media (prefers-reduced-motion: reduce) {
.sw-root,
.sw-root *,
.sw-stagger > * {
animation: none !important;
transition: none !important;
filter: none !important;
}
}
* {
box-sizing: border-box;
}
html,
body,
#root {
min-height: 100%;
}
body {
margin: 0;
background: #0d0e12;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-thumb {
background: rgba(128, 128, 128, 0.35);
border: 2px solid transparent;
border-radius: 10px;
background-clip: content-box;
}
::-webkit-scrollbar-track {
background: transparent;
}
.sw-root {
--sw-bg: #0d0e12;
--sw-surface: #15171d;
--sw-surface2: #1b1e26;
--sw-border: #272b34;
--sw-border-strong: #363b46;
--sw-text: #eef0f3;
--sw-dim: #a0a8b4;
--sw-faint: #6c7480;
--sw-brand: #ff2e2e;
--sw-brand-hover: #ff4d4d;
--sw-input-bg: #101218;
--sw-hover: #1f232c;
--sw-track: #2a2f39;
--sw-ring: rgba(255, 46, 46, 0.24);
min-height: 100vh;
background: var(--sw-bg);
color: var(--sw-text);
font-family: "Plus Jakarta Sans", system-ui, sans-serif;
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.sw-root.light {
--sw-bg: #f4f5f7;
--sw-surface: #ffffff;
--sw-surface2: #f7f8fa;
--sw-border: #e5e8ec;
--sw-border-strong: #cfd4dc;
--sw-text: #181b20;
--sw-dim: #5b6471;
--sw-faint: #8b94a1;
--sw-brand: #ed1c24;
--sw-brand-hover: #c9151c;
--sw-input-bg: #ffffff;
--sw-hover: #f2f4f7;
--sw-track: #e9ecf1;
--sw-ring: rgba(237, 28, 36, 0.16);
}
.sw-root,
.sw-root *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline) {
transition:
background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
color 0.4s ease,
box-shadow 0.35s ease;
}
.sw-root button {
transition:
background-color 0.2s ease,
transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.35s ease,
color 0.25s ease,
border-color 0.35s ease;
}
.sw-root button:active {
transform: scale(0.975);
}
.sw-cta {
transition:
transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
background-color 0.2s ease ;
}