fixed implementation of UGC content uploader
This commit is contained in:
@@ -1840,7 +1840,6 @@ a.deletelink {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
.profile-bio {
|
||||
white-space: pre-wrap;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
}
|
||||
@@ -1848,6 +1847,110 @@ a.deletelink {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ========== Markdown ========== */
|
||||
.markdown-body {
|
||||
line-height: 1.6;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
.markdown-body > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.markdown-body > *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.markdown-body h1,
|
||||
.markdown-body h2,
|
||||
.markdown-body h3,
|
||||
.markdown-body h4,
|
||||
.markdown-body h5,
|
||||
.markdown-body h6 {
|
||||
margin: 1em 0 0.4em;
|
||||
line-height: 1.3;
|
||||
}
|
||||
.markdown-body h1 { font-size: 1.6rem; }
|
||||
.markdown-body h2 { font-size: 1.35rem; }
|
||||
.markdown-body h3 { font-size: 1.15rem; }
|
||||
.markdown-body h4 { font-size: 1rem; }
|
||||
.markdown-body p {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
.markdown-body ul,
|
||||
.markdown-body ol {
|
||||
margin: 0.5em 0;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
.markdown-body li {
|
||||
margin: 0.15em 0;
|
||||
}
|
||||
.markdown-body a {
|
||||
color: var(--md-sys-color-primary);
|
||||
text-decoration: underline;
|
||||
}
|
||||
.markdown-body code {
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
padding: 2px 5px;
|
||||
border-radius: 4px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
.markdown-body pre {
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
.markdown-body pre code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.markdown-body blockquote {
|
||||
border-left: 3px solid var(--md-sys-color-primary);
|
||||
margin: 0.6em 0;
|
||||
padding: 0.2em 1em;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.markdown-body table {
|
||||
border-collapse: collapse;
|
||||
margin: 0.6em 0;
|
||||
width: 100%;
|
||||
}
|
||||
.markdown-body th,
|
||||
.markdown-body td {
|
||||
border: 1px solid var(--md-sys-color-outline);
|
||||
padding: 6px 10px;
|
||||
text-align: left;
|
||||
}
|
||||
.markdown-body th {
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
}
|
||||
.markdown-body img {
|
||||
max-width: 100%;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.markdown-body hr {
|
||||
border: none;
|
||||
border-top: 1px solid var(--md-sys-color-outline);
|
||||
margin: 1em 0;
|
||||
}
|
||||
.bio-help {
|
||||
font-size: 0.8rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
margin: 4px 0 8px;
|
||||
}
|
||||
.bio-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.markdown-preview {
|
||||
margin-top: 12px;
|
||||
padding: 16px;
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
border-radius: 12px;
|
||||
}
|
||||
.pack-card-empty {
|
||||
opacity: 0.75;
|
||||
pointer-events: none;
|
||||
@@ -1860,3 +1963,671 @@ a.deletelink {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
}
|
||||
|
||||
/* ========== UGC / Browse ========== */
|
||||
.pack-card-thumb-icon {
|
||||
font-size: 3rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.pack-card-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.tag-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
border: 1px solid var(--md-sys-color-outline);
|
||||
border-radius: 999px;
|
||||
padding: 1px 8px;
|
||||
font-size: 0.75rem;
|
||||
text-decoration: none;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.tag-chip.active {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.tag-chip-remove {
|
||||
background: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
padding: 0 2px;
|
||||
}
|
||||
.tag-dot {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.tag-count {
|
||||
opacity: 0.7;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
/* Browse layout */
|
||||
.browse-header h1 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.browse-search-form {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.browse-search-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
max-width: 560px;
|
||||
}
|
||||
.browse-search-input {
|
||||
flex: 1;
|
||||
}
|
||||
.browse-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 260px 1fr;
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
.browse-filters {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
position: sticky;
|
||||
top: 16px;
|
||||
}
|
||||
.filter-card h3 {
|
||||
margin-top: 0;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.filter-category {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.filter-link {
|
||||
padding: 6px 10px;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.filter-link:hover {
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
}
|
||||
.filter-link.active {
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
color: var(--md-sys-color-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
.filter-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.filter-empty {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.browse-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.browse-count {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.browse-empty {
|
||||
grid-column: 1 / -1;
|
||||
text-align: center;
|
||||
padding: 48px 16px;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.browse-empty i {
|
||||
font-size: 3rem;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
.page-info {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Project detail */
|
||||
.project-header {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.project-avatar img {
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
border-radius: 12px;
|
||||
object-fit: cover;
|
||||
border: 2px solid var(--md-sys-color-outline);
|
||||
}
|
||||
.project-avatar .default-avatar {
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
font-size: 3rem;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.project-header-main {
|
||||
flex: 1;
|
||||
}
|
||||
.project-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.project-title-row h1 {
|
||||
margin: 0;
|
||||
}
|
||||
.category-badge {
|
||||
background: var(--md-sys-color-primary);
|
||||
color: var(--md-sys-color-on-primary);
|
||||
border-radius: 999px;
|
||||
padding: 2px 12px;
|
||||
font-size: 0.8rem;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.project-summary {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
margin: 8px 0;
|
||||
}
|
||||
.project-meta {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
font-size: 0.9rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.project-owner a {
|
||||
color: var(--md-sys-color-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.project-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.project-tags {
|
||||
margin-bottom: 16px;
|
||||
padding: 12px 16px;
|
||||
}
|
||||
.tag-group {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 4px 0;
|
||||
}
|
||||
.tag-group-label {
|
||||
font-size: 0.8rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-weight: 500;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
/* Tabs */
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.tab-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
padding: 10px 16px;
|
||||
font-size: 0.95rem;
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
.tab-btn:hover {
|
||||
color: var(--md-sys-color-on-surface);
|
||||
}
|
||||
.tab-btn.active {
|
||||
color: var(--md-sys-color-primary);
|
||||
border-bottom-color: var(--md-sys-color-primary);
|
||||
}
|
||||
.tab-panel {
|
||||
display: none;
|
||||
}
|
||||
.tab-panel.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Versions */
|
||||
.version-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
.version-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.version-info {
|
||||
min-width: 120px;
|
||||
}
|
||||
.version-name-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.version-name {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.latest-badge {
|
||||
background: var(--md-sys-color-primary);
|
||||
color: var(--md-sys-color-on-primary);
|
||||
border-radius: 999px;
|
||||
padding: 1px 8px;
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.version-date {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.version-changelog {
|
||||
flex: 1;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.version-changelog > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.version-changelog > *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
.gallery-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
.gallery-item {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.gallery-item img,
|
||||
.gallery-item video {
|
||||
width: 100%;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
max-height: 260px;
|
||||
}
|
||||
.gallery-item figcaption {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.85rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.gallery-delete {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
color: #fff;
|
||||
border-radius: 50%;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
.gallery-delete:hover {
|
||||
background: var(--md-sys-color-error);
|
||||
}
|
||||
.empty-hint {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
.project-form {
|
||||
padding: 24px;
|
||||
max-width: 720px;
|
||||
}
|
||||
.form-section-title {
|
||||
margin: 24px 0 8px;
|
||||
}
|
||||
.form-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
.btn-sm {
|
||||
padding: 4px 10px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.btn-danger {
|
||||
background: var(--md-sys-color-error-container);
|
||||
color: var(--md-sys-color-on-error-container);
|
||||
}
|
||||
|
||||
/* Tag editor */
|
||||
.tag-editor {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.tag-chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.tag-suggestions {
|
||||
position: absolute;
|
||||
z-index: 50;
|
||||
background: var(--md-sys-color-surface);
|
||||
border: 1px solid var(--md-sys-color-outline);
|
||||
border-radius: 8px;
|
||||
max-height: 240px;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
||||
min-width: 220px;
|
||||
}
|
||||
.tag-suggestion {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
}
|
||||
.tag-suggestion:hover {
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
}
|
||||
.tag-suggestion small {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* Contributors */
|
||||
.contributor-form {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: flex-end;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.contributor-input-group {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-width: 220px;
|
||||
}
|
||||
.contributor-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.contributor-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
.contributor-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.contributor-name i {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.inline-form {
|
||||
margin: 0;
|
||||
}
|
||||
.user-suggestions {
|
||||
position: absolute;
|
||||
z-index: 50;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: var(--md-sys-color-surface);
|
||||
border: 1px solid var(--md-sys-color-outline);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
||||
max-height: 240px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.browse-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.browse-filters {
|
||||
position: static;
|
||||
}
|
||||
.project-header {
|
||||
flex-direction: column;
|
||||
}
|
||||
.version-row {
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========== Horizontal project form ========== */
|
||||
.project-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 24px;
|
||||
}
|
||||
.project-form-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.project-form-side {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
align-self: start;
|
||||
}
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.project-form-grid {
|
||||
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
|
||||
align-items: start;
|
||||
}
|
||||
.project-form-side {
|
||||
position: sticky;
|
||||
top: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========== Multi-upload drop zone ========== */
|
||||
.drop-zone {
|
||||
border: 2px dashed var(--md-sys-color-outline);
|
||||
border-radius: 12px;
|
||||
padding: 40px 24px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s, background 0.2s;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.drop-zone:hover,
|
||||
.drop-zone.dragover {
|
||||
border-color: var(--md-sys-color-primary);
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
}
|
||||
.drop-zone-icon {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 8px;
|
||||
color: var(--md-sys-color-primary);
|
||||
}
|
||||
.drop-zone-text {
|
||||
margin: 0 0 4px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.drop-zone-sub {
|
||||
margin: 0;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.file-preview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
.file-preview-card {
|
||||
position: relative;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
.file-preview-card img,
|
||||
.file-preview-card video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.file-preview-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.file-preview-name {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
color: #fff;
|
||||
font-size: 0.7rem;
|
||||
padding: 3px 6px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.file-preview-remove {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.file-preview-remove:hover {
|
||||
background: var(--md-sys-color-error);
|
||||
}
|
||||
|
||||
/* ========== Horizontal create form ========== */
|
||||
.create-form {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
}
|
||||
.create-form input:not([type='hidden']):not([type='file']),
|
||||
.create-form select,
|
||||
.create-form textarea {
|
||||
width: 100%;
|
||||
}
|
||||
.create-form .form-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.create-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 20px;
|
||||
min-width: 0;
|
||||
}
|
||||
.create-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
background: var(--md-sys-color-surface-container-low);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
align-self: start;
|
||||
min-width: 0;
|
||||
}
|
||||
.create-panel .form-section-title {
|
||||
margin: 0 0 4px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.create-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
|
||||
.create-panel-main { grid-row: span 2; }
|
||||
}
|
||||
@media (min-width: 1280px) {
|
||||
.create-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); }
|
||||
}
|
||||
|
||||
/* ========== Upload zones ========== */
|
||||
.upload-zone .drop-zone { padding: 24px 16px; }
|
||||
.upload-zone .drop-zone-icon { font-size: 1.8rem; margin-bottom: 4px; }
|
||||
.upload-preview { margin-top: 12px; }
|
||||
.upload-preview .file-preview-card { max-width: 200px; }
|
||||
|
||||
.upload-batch[hidden] {
|
||||
display: none;
|
||||
}
|
||||
.upload-batch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
background: var(--md-sys-color-surface-variant);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* ========== Autosave status ========== */
|
||||
.autosave-status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.85rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.autosave-status.saved { color: var(--md-sys-color-primary); }
|
||||
.autosave-status.error { color: var(--md-sys-color-error); }
|
||||
.autosave-status.idle { color: var(--md-sys-color-on-surface-variant); }
|
||||
|
||||
Reference in New Issue
Block a user