Merge issue-41 (Refs #41)
This commit is contained in:
commit
817028df89
6 files changed
+422
-61
No files matched your search
@@ -1348,11 +1348,43 @@ body {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.empty-canvas-hint i {
|
||||
.empty-canvas-hint i.fa-cubes {
|
||||
font-size: 32px;
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.empty-canvas-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.empty-canvas-btn {
|
||||
pointer-events: auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
font-size: 13px;
|
||||
color: var(--color-text);
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border-light);
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.empty-canvas-btn:hover {
|
||||
border-color: var(--color-accent);
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.empty-canvas-actions {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Settings Tabs (General / Style / Advanced)
|
||||
-------------------------------------------------------------------------- */
|
||||
@@ -2284,3 +2316,58 @@ body {
|
||||
}
|
||||
.canvas-device-frame[data-device="tablet"]::before { content: "Tablet \00b7 768px"; }
|
||||
.canvas-device-frame[data-device="mobile"]::before { content: "Mobile \00b7 375px"; }
|
||||
/* #41 empty container add */
|
||||
.empty-container-add {
|
||||
position: fixed;
|
||||
z-index: 45;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin: -14px 0 0 -14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
font-size: 13px;
|
||||
color: #fff;
|
||||
background: var(--color-accent);
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
|
||||
cursor: pointer;
|
||||
/* Only the button is interactive; it never sits in Craft's drop path. */
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.empty-container-add-pop {
|
||||
position: fixed;
|
||||
z-index: 46;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 4px;
|
||||
padding: 6px;
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border-light);
|
||||
border-radius: var(--radius-sm);
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.empty-container-add-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
min-width: 64px;
|
||||
padding: 8px 6px;
|
||||
font-size: 11px;
|
||||
color: var(--color-text);
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.empty-container-add-item:hover,
|
||||
.empty-container-add-item:focus-visible {
|
||||
border-color: var(--color-accent);
|
||||
outline: none;
|
||||
}
|
||||
Reference in new issue
Block a user