2026-07-10 13:43:53 +04:00
|
|
|
:host {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-15 10:42:23 +04:00
|
|
|
.media-field-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
.media-field-row app-input { flex: 1; }
|
|
|
|
|
|
2026-07-10 13:43:53 +04:00
|
|
|
.editor-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-grid.two {
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-grid.three {
|
|
|
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-grid.four {
|
|
|
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-grid.compact {
|
|
|
|
|
align-items: end;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
color: var(--text-primary, #1e3c38);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
feat(project-editor): adopt Design System primitives across editor sections
Applied app-input/app-form-field/app-button to 9 of 11 Project Editor
sections: general, branding, theme, footer, homepage, widgets, languages,
navigation, preview. header and features sections were left unchanged -
they contain only checkboxes and selects, and no Checkbox/Select primitive
exists yet.
Theme section's 8 color pickers stay native <input type=color> (app-input's
type union doesn't include 'color') but are now wrapped in app-form-field
for consistent label/hint treatment. Added app-form-field.full grid-column
rule to section.shared.scss (shared by all 11 sections) alongside the
existing label.full rule, since the custom element doesn't match that
selector.
Production build green, arch:check passes.
2026-07-15 07:55:38 +04:00
|
|
|
label.full,
|
|
|
|
|
app-form-field.full {
|
2026-07-10 13:43:53 +04:00
|
|
|
grid-column: 1 / -1;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-14 16:05:09 +04:00
|
|
|
.field-desc {
|
|
|
|
|
display: block;
|
|
|
|
|
font-weight: 400;
|
2026-07-20 03:26:17 +04:00
|
|
|
font-size: var(--font-size-xs, 0.75rem);
|
2026-07-14 16:05:09 +04:00
|
|
|
line-height: 1.4;
|
|
|
|
|
color: var(--text-secondary, #5f6e6a);
|
|
|
|
|
margin: -2px 0 2px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-10 13:43:53 +04:00
|
|
|
input,
|
|
|
|
|
textarea,
|
|
|
|
|
select {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
border: 1px solid var(--border-color, #d3dad9);
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
font: inherit;
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type='checkbox'] {
|
|
|
|
|
width: auto;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type='color'] {
|
|
|
|
|
min-height: 44px;
|
|
|
|
|
padding: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toggle-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toggles {
|
|
|
|
|
align-items: start;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sortable-list,
|
|
|
|
|
.stack-list {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sortable-item,
|
|
|
|
|
.sub-card {
|
|
|
|
|
border: 1px solid var(--border-color, #d3dad9);
|
2026-07-20 03:27:25 +04:00
|
|
|
border-radius: var(--radius-md, 12px);
|
2026-07-10 13:43:53 +04:00
|
|
|
padding: 12px;
|
|
|
|
|
background: #fbfcfc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
min-height: 42px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
border: 1px solid #497671;
|
|
|
|
|
background: #497671;
|
|
|
|
|
color: #fff;
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
cursor: pointer;
|
2026-07-16 23:32:31 +04:00
|
|
|
transition: background-color var(--transition-fast, 120ms ease),
|
|
|
|
|
border-color var(--transition-fast, 120ms ease),
|
|
|
|
|
transform var(--transition-fast, 120ms ease),
|
|
|
|
|
box-shadow var(--transition-fast, 120ms ease);
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: var(--primary-hover, #3d635f);
|
|
|
|
|
border-color: var(--primary-hover, #3d635f);
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.1));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
|
outline: 2px solid #497671;
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
transform: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
2026-07-10 13:43:53 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button.secondary {
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: #1e3c38;
|
|
|
|
|
border-color: var(--border-color, #d3dad9);
|
2026-07-16 23:32:31 +04:00
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: var(--bg-secondary, #f5f5f5);
|
|
|
|
|
border-color: #497671;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
|
outline-color: #497671;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
button {
|
|
|
|
|
transition: none;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
transform: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-10 13:43:53 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-error {
|
|
|
|
|
margin: 0;
|
|
|
|
|
color: #991b1b;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-17 09:00:47 +04:00
|
|
|
.preview-validation {
|
|
|
|
|
margin: 0 0 12px;
|
|
|
|
|
padding-left: 1.25rem;
|
|
|
|
|
color: var(--warning-color, #b45309);
|
|
|
|
|
|
|
|
|
|
&.has-errors {
|
|
|
|
|
color: var(--error-color, #991b1b);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li.is-warning {
|
|
|
|
|
color: var(--warning-color, #b45309);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li.is-error {
|
|
|
|
|
color: var(--error-color, #991b1b);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-validation-ok {
|
|
|
|
|
margin: 0 0 12px;
|
|
|
|
|
color: var(--text-secondary, #5f6e6a);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-changes {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
2026-07-20 03:26:17 +04:00
|
|
|
font-size: var(--font-size-base, 0.875rem);
|
2026-07-17 09:00:47 +04:00
|
|
|
|
|
|
|
|
th,
|
|
|
|
|
td {
|
|
|
|
|
text-align: left;
|
|
|
|
|
padding: 8px 10px;
|
|
|
|
|
border-bottom: 1px solid var(--border-color, #d3dad9);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
th {
|
|
|
|
|
color: var(--text-secondary, #5f6e6a);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-before {
|
|
|
|
|
color: var(--text-secondary, #5f6e6a);
|
|
|
|
|
text-decoration: line-through;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-after {
|
|
|
|
|
color: var(--text-primary, #1e3c38);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-10 13:43:53 +04:00
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
.editor-grid.two,
|
|
|
|
|
.editor-grid.three,
|
|
|
|
|
.editor-grid.four {
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-19 08:53:10 +04:00
|
|
|
|
|
|
|
|
.languages-summary { display: grid; gap: 6px; }
|
|
|
|
|
.languages-summary__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
|
|
|
.languages-summary__chip {
|
|
|
|
|
display: inline-flex; align-items: center; gap: 6px;
|
2026-07-20 03:27:25 +04:00
|
|
|
padding: 4px 10px; border-radius: var(--radius-full, 999px);
|
2026-07-19 08:53:10 +04:00
|
|
|
border: 1px solid var(--border-color, #d3dad9);
|
2026-07-20 03:26:17 +04:00
|
|
|
font-size: var(--font-size-sm, 0.8125rem); font-weight: 600;
|
|
|
|
|
em { font-style: normal; font-weight: 400; font-size: var(--font-size-xs, 0.75rem); color: var(--text-secondary, #6b7280); }
|
2026-07-19 08:53:10 +04:00
|
|
|
}
|
|
|
|
|
.languages-summary__chip--default { border-color: var(--color-primary, #2f8f5b); }
|
2026-07-20 03:26:17 +04:00
|
|
|
.languages-summary__manage { font-size: var(--font-size-sm, 0.8125rem); text-decoration: underline; color: var(--text-primary, #1e3c38); }
|
2026-07-19 08:53:10 +04:00
|
|
|
.languages-summary__manage:focus-visible { outline: 2px solid var(--color-primary, #2f8f5b); outline-offset: 2px; }
|