Oloka-Video-Dev / apps /web /src /styles.css
phucsd's picture
Deploy GitHub commit cf61358f7d8603b9bb93c3aa54d5b408797f6770
146ca6d verified
Raw History Blame Contribute Delete
12.4 kB
* {
box-sizing: border-box;
}
html {
background: var(--color-canvas);
color: var(--color-ink);
font-family: var(--font-sans);
}
body {
margin: 0;
min-width: 320px;
}
button,
input,
textarea {
font: inherit;
}
button,
.primary-action,
.secondary-action {
border-radius: 10px;
cursor: pointer;
display: inline-flex;
font-weight: 750;
justify-content: center;
padding: 0.78rem 1rem;
text-decoration: none;
}
.primary-action {
background: var(--color-brand);
border: 1px solid var(--color-brand);
color: white;
}
.secondary-action {
background: white;
border: 1px solid var(--color-line);
color: var(--color-ink);
}
.page-shell {
min-height: 100vh;
position: relative;
}
.page-shell::before {
background: linear-gradient(135deg, rgba(11, 104, 91, 0.08), transparent 55%);
border-radius: 50%;
content: "";
height: 32rem;
position: fixed;
right: -14rem;
top: -17rem;
width: 32rem;
z-index: -1;
}
.topbar,
footer {
align-items: center;
display: flex;
justify-content: space-between;
margin: 0 auto;
max-width: 1180px;
padding: 1.4rem 2rem;
}
.topbar {
border-bottom: 1px solid var(--color-line);
}
.brand {
align-items: center;
color: var(--color-ink);
display: flex;
font-weight: 750;
gap: 0.72rem;
text-decoration: none;
}
.brand-mark {
align-items: center;
background: var(--color-brand);
border-radius: 10px;
color: white;
display: inline-flex;
height: 2rem;
justify-content: center;
width: 2rem;
}
.environment-label {
color: var(--color-muted);
font-size: 0.82rem;
font-weight: 650;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.content {
margin: 0 auto;
max-width: 1180px;
padding: 6.5rem 2rem 5rem;
}
.hero {
align-items: flex-end;
display: flex;
gap: 2rem;
justify-content: space-between;
margin-bottom: 3.2rem;
}
.eyebrow {
color: var(--color-brand);
font-size: 0.76rem;
font-weight: 800;
letter-spacing: 0.13em;
margin: 0 0 0.7rem;
text-transform: uppercase;
}
h1 {
font-size: clamp(2.55rem, 6vw, 5.2rem);
letter-spacing: -0.055em;
line-height: 0.98;
margin: 0;
max-width: 820px;
}
.hero-copy {
color: var(--color-muted);
font-size: 1.05rem;
line-height: 1.7;
margin: 1.4rem 0 0;
max-width: 590px;
}
.auth-hero {
min-height: 52vh;
}
.auth-hero .primary-action,
.account-panel .secondary-action {
margin-top: 1.5rem;
}
.compact-hero h1,
.account-panel h1 {
font-size: clamp(2.2rem, 5vw, 4.2rem);
}
.account-panel,
.admin-panel {
box-shadow: var(--shadow-card);
padding: 2rem;
}
.admin-user-row {
align-items: center;
border-top: 1px solid var(--color-line);
display: flex;
gap: 1rem;
justify-content: space-between;
padding: 1rem 0;
}
.admin-user-row span {
color: var(--color-muted);
display: block;
font-size: 0.9rem;
margin-top: 0.25rem;
}
.project-workspace {
display: grid;
gap: 1.25rem;
}
.job-activity {
margin-top: 1.5rem;
padding: 1.5rem;
}
.job-list {
display: grid;
gap: 0.75rem;
}
.job-row {
display: grid;
grid-template-columns: minmax(11rem, 1fr) minmax(8rem, 2fr) auto auto auto;
align-items: center;
gap: 0.75rem;
padding: 0.9rem;
border: 1px solid var(--color-line);
border-radius: 0.9rem;
}
.job-row > div:first-child {
display: grid;
gap: 0.15rem;
}
.job-progress {
height: 0.55rem;
overflow: hidden;
border-radius: 999px;
background: var(--color-canvas);
}
.job-progress span {
display: block;
height: 100%;
background: var(--color-brand);
}
.job-history {
grid-column: 1 / -1;
margin: 0;
padding-left: 1.4rem;
color: var(--color-muted);
}
@media (max-width: 760px) {
.job-row {
grid-template-columns: 1fr auto;
}
.job-progress,
.job-history {
grid-column: 1 / -1;
}
}
.project-create-panel {
background:
linear-gradient(120deg, rgba(11, 104, 91, 0.08), transparent 45%), white;
box-shadow: var(--shadow-card);
padding: 2rem;
}
.project-create-form,
.project-edit-form {
display: grid;
gap: 1rem;
}
.project-create-form {
align-items: end;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
}
.project-create-form label,
.project-edit-form label {
color: var(--color-muted);
display: grid;
font-size: 0.82rem;
font-weight: 750;
gap: 0.45rem;
}
.project-create-form label span {
font-weight: 500;
}
.project-create-form input,
.project-create-form textarea,
.project-edit-form input,
.project-edit-form textarea {
background: rgba(255, 255, 255, 0.88);
border: 1px solid var(--color-line);
border-radius: 10px;
color: var(--color-ink);
min-height: 3rem;
padding: 0.72rem 0.82rem;
resize: vertical;
}
.project-create-form textarea {
max-height: 8rem;
min-height: 3rem;
}
.project-create-form input:focus-visible,
.project-create-form textarea:focus-visible,
.project-edit-form input:focus-visible,
.project-edit-form textarea:focus-visible,
.project-actions button:focus-visible {
outline: 3px solid rgba(11, 104, 91, 0.28);
outline-offset: 2px;
}
.project-list {
display: grid;
gap: 0.85rem;
}
.project-with-assets {
display: grid;
gap: 0.75rem;
}
.asset-workspace {
margin: -0.25rem 0 1.25rem;
padding: 1rem;
border-left: 3px solid var(--color-accent, #d8682f);
background:
linear-gradient(120deg, rgba(216, 104, 47, 0.08), transparent 48%),
var(--color-surface, #fffdf8);
}
.asset-toolbar,
.asset-search-row,
.asset-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
}
.asset-toolbar h4 {
margin: 0;
font-size: 1.1rem;
}
.upload-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2.5rem;
padding: 0.6rem 0.9rem;
border-radius: 999px;
background: #1f563e;
color: #fff;
cursor: pointer;
font-weight: 700;
}
.upload-button input {
position: absolute;
inline-size: 1px;
block-size: 1px;
opacity: 0;
}
.asset-search-row {
margin: 0.8rem 0;
}
.asset-search-row input {
flex: 1;
}
.upload-progress {
position: relative;
overflow: hidden;
min-height: 1.75rem;
border-radius: 999px;
background: #ebe5da;
}
.upload-progress span {
position: absolute;
inset: 0 auto 0 0;
background: linear-gradient(90deg, #1f563e, #d8682f);
transition: width 180ms ease;
}
.upload-progress small {
position: relative;
z-index: 1;
display: block;
padding: 0.25rem 0.65rem;
color: #151713;
text-align: center;
font-weight: 700;
}
.asset-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 0.8rem;
}
.asset-card {
display: grid;
gap: 0.5rem;
min-width: 0;
padding: 0.7rem;
border: 1px solid #d8d0c2;
border-radius: 0.9rem;
background: rgba(255, 255, 255, 0.76);
}
.asset-card > strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.asset-preview {
display: grid;
place-items: center;
overflow: hidden;
min-height: 7rem;
border-radius: 0.65rem;
background: #e7e0d3;
color: #455147;
}
.asset-preview img,
.asset-preview video {
width: 100%;
height: 9rem;
object-fit: cover;
}
.asset-preview audio {
width: calc(100% - 1rem);
}
.asset-actions {
justify-content: flex-start;
flex-wrap: wrap;
}
.composition-workspace {
margin: -0.25rem 0 1.25rem;
padding: 1rem;
border-left: 3px solid #1f563e;
background:
linear-gradient(120deg, rgba(31, 86, 62, 0.08), transparent 48%),
var(--color-surface, #fffdf8);
}
.composition-editor-grid {
display: grid;
gap: 0.8rem;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
margin: 1rem 0;
}
.composition-editor-grid label,
.composition-workspace > label {
display: grid;
gap: 0.35rem;
font-size: 0.82rem;
font-weight: 700;
}
.composition-editor-grid input,
.composition-editor-grid select,
.composition-workspace > label textarea {
border: 1px solid var(--color-line);
border-radius: 8px;
min-height: 2.4rem;
padding: 0.55rem 0.65rem;
}
.composition-workspace > label textarea {
min-height: 6rem;
resize: vertical;
}
.checkbox-label {
align-content: end;
display: flex !important;
gap: 0.45rem;
}
.preview-host {
aspect-ratio: 16 / 9;
background: #101820;
border-radius: 12px;
margin-top: 1rem;
max-width: 100%;
overflow: hidden;
}
.preview-limit-note {
margin: 0 0 8px;
color: var(--muted-text, #667085);
font-size: 0.8rem;
}
.preview-host iframe {
border: 0;
height: 100%;
width: 100%;
}
@media (max-width: 640px) {
.asset-toolbar,
.asset-search-row {
align-items: stretch;
flex-direction: column;
}
.upload-button {
width: 100%;
}
}
.project-card {
align-items: center;
box-shadow: var(--shadow-card);
display: flex;
gap: 1.5rem;
justify-content: space-between;
padding: 1.35rem 1.5rem;
}
.project-card h3,
.trash-heading h2 {
letter-spacing: -0.025em;
margin: 0.25rem 0 0;
}
.project-card p {
color: var(--color-muted);
margin: 0.45rem 0;
}
.project-card small {
color: var(--color-muted);
}
.project-status {
color: var(--color-brand);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.project-actions {
display: flex;
flex-wrap: wrap;
gap: 0.55rem;
}
.danger-action {
background: var(--color-danger-soft);
border: 1px solid #e9c7c1;
border-radius: 10px;
color: var(--color-danger);
cursor: pointer;
font-weight: 750;
padding: 0.78rem 1rem;
}
.project-empty-state {
border-style: dashed;
padding: 1.5rem;
text-align: center;
}
.project-empty-state p,
.trash-empty {
color: var(--color-muted);
}
.trash-heading {
align-items: end;
display: flex;
justify-content: space-between;
margin-top: 2rem;
}
.inline-notice,
.inline-error {
border-radius: 10px;
margin: 0;
padding: 0.9rem 1rem;
}
.inline-notice {
background: var(--color-neutral-soft);
color: var(--color-ink);
}
.inline-error {
background: var(--color-danger-soft);
color: var(--color-danger);
}
.dashboard-grid {
display: grid;
gap: 1.25rem;
grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.status-card {
box-shadow: var(--shadow-card);
padding: 1.7rem 1.8rem 0.5rem;
}
.card-heading {
align-items: flex-start;
display: flex;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.card-heading h2 {
font-size: 1.45rem;
letter-spacing: -0.025em;
margin: 0;
}
.card-heading .eyebrow {
margin-bottom: 0.35rem;
}
.status-card dl {
margin: 0;
}
.version-chip {
background: var(--color-brand-deep);
border-radius: var(--radius-sm);
color: white;
font-family: ui-monospace, monospace;
font-size: 0.82rem;
padding: 0.5rem 0.65rem;
}
code {
background: var(--color-neutral-soft);
border-radius: 6px;
font-size: 0.8rem;
padding: 0.3rem 0.45rem;
word-break: break-all;
}
.state-panel {
align-items: center;
box-shadow: var(--shadow-card);
display: flex;
gap: 1rem;
min-height: 190px;
padding: 2rem;
}
.state-panel p {
color: var(--color-muted);
margin: 0.45rem 0 0;
}
.loading-line {
animation: pulse 1.2s ease-in-out infinite;
background: var(--color-brand);
border-radius: 999px;
height: 3rem;
opacity: 0.5;
width: 0.3rem;
}
.error-panel {
border-color: #e9c7c1;
}
.state-symbol {
align-items: center;
background: var(--color-danger-soft);
border-radius: 50%;
color: var(--color-danger);
display: flex;
font-weight: 800;
height: 2.5rem;
justify-content: center;
width: 2.5rem;
}
footer {
border-top: 1px solid var(--color-line);
color: var(--color-muted);
font-size: 0.8rem;
}
footer span:first-child {
color: var(--color-ink);
font-weight: 750;
}
@keyframes pulse {
50% {
opacity: 1;
transform: scaleY(1.15);
}
}
@media (prefers-reduced-motion: reduce) {
.loading-line {
animation: none;
}
}
@media (max-width: 760px) {
.content {
padding-top: 4.2rem;
}
.hero {
align-items: flex-start;
flex-direction: column;
}
.dashboard-grid {
grid-template-columns: 1fr;
}
.project-create-form {
grid-template-columns: 1fr;
}
.project-card {
align-items: stretch;
flex-direction: column;
}
.environment-label,
footer span:last-child {
display: none;
}
.topbar,
footer,
.content {
padding-left: 1.15rem;
padding-right: 1.15rem;
}
.status-card {
padding-left: 1.2rem;
padding-right: 1.2rem;
}
.card-heading {
gap: 1rem;
}
}