Registration collects name and phone, verifies SMS, then asks for a password only for new Meshkee accounts. Product add/edit supports an optional catalog PDF. Co-authored-by: Cursor <cursoragent@cursor.com>
537 lines
9.9 KiB
CSS
537 lines
9.9 KiB
CSS
.form {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--glass-shadow);
|
|
padding: 24px;
|
|
}
|
|
|
|
.formGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, 1fr);
|
|
gap: 12px 16px;
|
|
}
|
|
|
|
.col2 { grid-column: span 2; }
|
|
.col3 { grid-column: span 3; }
|
|
.col4 { grid-column: span 4; }
|
|
.col5 { grid-column: span 5; }
|
|
.col6 { grid-column: 1 / span 6; }
|
|
.col8 { grid-column: span 8; }
|
|
.col7 { grid-column: span 7; }
|
|
.col6Span { grid-column: span 6; }
|
|
.col10 { grid-column: span 10; }
|
|
.col4Start { grid-column: 1 / span 4; }
|
|
.col9 { grid-column: span 9; }
|
|
.col12 { grid-column: span 12; }
|
|
|
|
.formColumn {
|
|
grid-column: span 9;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.titleRow {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px 16px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.scheduleRow {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px 16px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.thumbnailField {
|
|
align-self: start;
|
|
align-items: center;
|
|
}
|
|
|
|
.thumbnailField label {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.topFields {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, 1fr);
|
|
gap: 12px 16px;
|
|
height: 100%;
|
|
}
|
|
|
|
.fieldFull {
|
|
grid-column: span 12;
|
|
}
|
|
|
|
.fieldHalf {
|
|
grid-column: span 6;
|
|
}
|
|
|
|
.fieldCategory {
|
|
grid-column: span 7;
|
|
}
|
|
|
|
.fieldBrand {
|
|
grid-column: span 5;
|
|
}
|
|
|
|
.optional {
|
|
font-weight: 400;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.catalogHint {
|
|
margin: 0 0 8px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.catalogRow {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.catalogInput {
|
|
max-width: 100%;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.catalogSelected {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(148, 163, 184, 0.12);
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
min-width: 0;
|
|
}
|
|
|
|
.catalogSelected span,
|
|
.catalogLink {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.catalogLink {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.catalogClear {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2px;
|
|
border-radius: 4px;
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.catalogClear:hover {
|
|
color: var(--text);
|
|
background: rgba(148, 163, 184, 0.2);
|
|
}
|
|
|
|
.summaryField textarea {
|
|
min-height: calc((var(--field-height) + 8px) * 2);
|
|
padding-inline-end: 12px;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
.fieldWithAi {
|
|
position: relative;
|
|
min-width: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.aiFillAnchor {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
inset-inline-end: 8px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.aiFillAnchorInline {
|
|
position: absolute;
|
|
top: 50%;
|
|
inset-inline-end: 6px;
|
|
transform: translateY(-50%);
|
|
z-index: 2;
|
|
}
|
|
|
|
.nameEnField input {
|
|
padding-inline-end: 44px;
|
|
}
|
|
|
|
.aiFillBtn {
|
|
width: 30px;
|
|
height: 30px;
|
|
min-height: 30px;
|
|
padding: 0;
|
|
gap: 0;
|
|
border-radius: 50%;
|
|
box-shadow:
|
|
0 4px 12px rgba(67, 56, 202, 0.28),
|
|
0 0 16px rgba(236, 72, 153, 0.14);
|
|
}
|
|
|
|
.aiFillBtn:disabled {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.rowSpan3 { grid-row: span 3; }
|
|
.rowSpan4 { grid-row: span 4; }
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.field label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.field input,
|
|
.field textarea,
|
|
.field select {
|
|
width: 100%;
|
|
padding: var(--field-padding-y) var(--field-padding-x);
|
|
font-size: var(--field-font-size);
|
|
line-height: 1.4;
|
|
color: var(--text-primary);
|
|
background-color: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
outline: none;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.field input,
|
|
.field select {
|
|
min-height: var(--field-height);
|
|
}
|
|
|
|
.field select {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
padding-right: var(--select-padding-end);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right var(--select-arrow-offset) center;
|
|
background-size: var(--select-arrow-size);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.field textarea {
|
|
min-height: calc(var(--field-height) + 8px);
|
|
}
|
|
|
|
.field input:focus,
|
|
.field textarea:focus,
|
|
.field select:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid rgba(148, 163, 184, 0.2);
|
|
/* Main/submit button (last child) stays on the physical left */
|
|
direction: rtl;
|
|
}
|
|
|
|
.cancelBtn {
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-sm);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.cancelBtn:hover {
|
|
background: rgba(148, 163, 184, 0.15);
|
|
}
|
|
|
|
.submitBtn {
|
|
padding: 8px 18px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: white;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: 0 4px 12px rgba(var(--primary-rgb) / 0.3);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.submitBtn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(var(--primary-rgb) / 0.35);
|
|
}
|
|
|
|
.submitBtn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.error {
|
|
margin-bottom: 16px;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
color: #b91c1c;
|
|
background: rgba(239, 68, 68, 0.08);
|
|
border: 1px solid rgba(239, 68, 68, 0.25);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.aspectOptions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.aspectChip {
|
|
padding: 5px 10px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1.2;
|
|
color: var(--text-secondary);
|
|
background: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: 50px;
|
|
transition: border-color 0.15s, color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.aspectChip:hover:not(:disabled) {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.aspectChip:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.aspectChipSelected {
|
|
background: rgba(var(--primary-rgb) / 0.12);
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.aspectSwitch {
|
|
display: inline-flex;
|
|
align-self: center;
|
|
margin-top: 4px;
|
|
padding: 3px;
|
|
gap: 2px;
|
|
background: transparent;
|
|
border: 1px solid var(--primary);
|
|
border-radius: 50px;
|
|
}
|
|
|
|
.aspectSwitchBtn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 52px;
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
font-family: var(--font-en), var(--font-ui);
|
|
color: var(--primary);
|
|
background: transparent;
|
|
border-radius: 50px;
|
|
text-align: center;
|
|
direction: ltr;
|
|
transition: background 0.15s, color 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
.aspectSwitchBtn:hover:not(:disabled) {
|
|
color: var(--primary);
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
}
|
|
|
|
.aspectSwitchBtn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.aspectSwitchBtnSelected {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
box-shadow: 0 1px 3px rgba(var(--primary-rgb) / 0.35);
|
|
}
|
|
|
|
.aspectSwitchBtnSelected:hover:not(:disabled) {
|
|
color: #fff;
|
|
background: var(--primary);
|
|
}
|
|
|
|
.videoEmbedRow {
|
|
grid-column: span 12;
|
|
display: grid;
|
|
grid-template-columns: minmax(148px, 180px) minmax(0, 1fr);
|
|
gap: 16px;
|
|
align-items: start;
|
|
}
|
|
|
|
.providerPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.providerLabel {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.providerRadioGroup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.providerRadioOption {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: var(--field-height);
|
|
padding: var(--field-padding-y) var(--field-padding-x);
|
|
font-size: var(--field-font-size);
|
|
line-height: 1.4;
|
|
color: var(--text-primary);
|
|
background-color: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.providerRadioOption:has(input:checked) {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
|
|
}
|
|
|
|
.providerRadioOption:has(input:disabled) {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.providerRadioOption input {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 0;
|
|
accent-color: var(--primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.embedPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.embedPanel label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.embedPanel textarea {
|
|
width: 100%;
|
|
min-height: calc(var(--field-height) * 2 + 24px);
|
|
padding: var(--field-padding-y) var(--field-padding-x);
|
|
font-size: var(--field-font-size);
|
|
line-height: 1.4;
|
|
color: var(--text-primary);
|
|
background-color: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
outline: none;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.embedPanel textarea:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.form {
|
|
padding: 20px 16px;
|
|
}
|
|
|
|
.col2,
|
|
.col3,
|
|
.col4,
|
|
.col5,
|
|
.col6,
|
|
.col6Span,
|
|
.col7,
|
|
.col8,
|
|
.col9,
|
|
.col10,
|
|
.col4Start,
|
|
.col9,
|
|
.col12,
|
|
.formColumn {
|
|
grid-column: span 12;
|
|
}
|
|
|
|
.topFields {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.titleRow {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.videoEmbedRow {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.fieldFull,
|
|
.fieldHalf,
|
|
.fieldCategory,
|
|
.fieldBrand {
|
|
grid-column: span 1;
|
|
}
|
|
|
|
.rowSpan3,
|
|
.rowSpan4 {
|
|
grid-row: auto;
|
|
}
|
|
}
|