Add click handler on iframe to close Coloris color picker when user clicks in the preview area. Also improve editor panel spacing and styling consistency. Coloris Close Fix: - Import Coloris in App.vue - Add click listener on iframe document to call Coloris.close() - Fixes issue where Coloris remained open when clicking in preview iframe (clicks in iframes don't bubble to parent document) Editor Styling Improvements: - Increase EditorPanel width from 30rem to 35rem for better readability - Add CSS variable --space-xs (0.5rem) for consistent spacing - Improve form field spacing with gaps and better padding - Add row-gap to margins subsection - Fix input-with-color width and button height (1.1rem) - Add gap to unit-toggle buttons - Better visual hierarchy with margins on h2 and h3 CSS Changes: - _forms.scss: Consistent spacing, better input padding, gap utilities - _variables.scss: Add --space-xs variable - Compiled CSS updated with new styles 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
164 lines
No EOL
3 KiB
CSS
164 lines
No EOL
3 KiB
CSS
body,
|
|
html {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
margin: 0;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
border: none;
|
|
outline: none;
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
button {
|
|
background-color: transparent;
|
|
border: none;
|
|
}
|
|
|
|
:root {
|
|
--color-panel-bg: #e8e6e5;
|
|
--color-browngray-050: #f5f3f0;
|
|
--color-browngray-200: #d0c4ba;
|
|
--color-browngray-300: #b5a9a1;
|
|
--border-radius: 0.2rem;
|
|
--space-xs: 0.5rem;
|
|
}
|
|
|
|
body,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p,
|
|
a,
|
|
input,
|
|
select,
|
|
figcaption,
|
|
label {
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
/* PagedJS print styles */
|
|
@page {
|
|
size: A4;
|
|
margin: 20mm 15mm 26mm 15mm;
|
|
}
|
|
h2 {
|
|
-moz-column-break-before: page;
|
|
break-before: page;
|
|
}
|
|
|
|
@page {
|
|
@bottom-center {
|
|
content: string(title);
|
|
}
|
|
}
|
|
.chapter > h2 {
|
|
string-set: title content(text);
|
|
}
|
|
|
|
select,
|
|
input[type=text],
|
|
input[type=number] {
|
|
background-color: var(--color-browngray-300);
|
|
}
|
|
|
|
.field--view-only {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.settings-section h2 {
|
|
border-bottom: 1px solid #000;
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
.settings-section .settings-subsection:not(:last-child) {
|
|
border-bottom: 1px solid var(--color-browngray-050);
|
|
}
|
|
.settings-section .settings-subsection {
|
|
padding: var(--space-xs) 0;
|
|
}
|
|
.settings-section .settings-subsection h3 {
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
.settings-section .settings-subsection .field {
|
|
display: flex;
|
|
}
|
|
.settings-section .settings-subsection .field label,
|
|
.settings-section .settings-subsection .field select {
|
|
width: 50%;
|
|
}
|
|
.settings-section .settings-subsection .field input {
|
|
padding: 0.1rem 0.1rem 0.1rem 0.3rem;
|
|
}
|
|
.settings-section .settings-subsection .field .input-with-unit {
|
|
display: flex;
|
|
gap: 0.3rem;
|
|
}
|
|
.settings-section .settings-subsection .field .input-with-unit .unit-toggle {
|
|
display: flex;
|
|
gap: 0.3rem;
|
|
}
|
|
.settings-section .settings-subsection .field .input-with-color {
|
|
width: 50%;
|
|
}
|
|
.settings-section .settings-subsection .field .input-with-color .clr-field {
|
|
display: flex;
|
|
}
|
|
.settings-section .settings-subsection .field .input-with-color .clr-field button {
|
|
position: absolute;
|
|
transform: none;
|
|
height: 1.1rem;
|
|
top: auto;
|
|
right: auto;
|
|
cursor: pointer;
|
|
}
|
|
.settings-section .settings-subsection .field .input-with-color .clr-field input {
|
|
padding-left: 2.5rem;
|
|
width: 100%;
|
|
}
|
|
.settings-section .settings-subsection.margins {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
row-gap: var(--space-xs);
|
|
}
|
|
.settings-section .settings-subsection.margins h3 {
|
|
width: 100%;
|
|
}
|
|
.settings-section .settings-subsection.margins .field {
|
|
width: 50%;
|
|
}
|
|
.settings-section .settings-subsection.margins .field label {
|
|
width: 50%;
|
|
}
|
|
.settings-section .settings-subsection.margins .field .input-with-unit input {
|
|
width: 50%;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
border: 1px solid var(--color-browngray-300);
|
|
color: var(--color-browngray-300);
|
|
border-radius: var(--border-radius);
|
|
padding: 0.1rem 0.3rem;
|
|
}
|
|
button.active {
|
|
border: 1px solid #000;
|
|
color: #000;
|
|
}
|
|
button.tab.active {
|
|
background-color: #000;
|
|
color: #fff;
|
|
border: none;
|
|
}/*# sourceMappingURL=style.css.map */ |