Release v2.18.0: template default content
This commit is contained in:
1 parent
48e8f3eb4b
commit
24f1603b43
54 files changed
+1421
-151
No files matched your search
@@ -2626,7 +2626,8 @@ html[data-bs-theme='dark'] .template-field-card .tox .tox-collection {
|
||||
}
|
||||
|
||||
#slide-layout-modal,
|
||||
#slide-animation-modal {
|
||||
#slide-animation-modal,
|
||||
#region-default-content-modal {
|
||||
left: var(--slide-layout-left, 0px);
|
||||
width: calc(100% - var(--slide-layout-left, 0px));
|
||||
}
|
||||
@@ -2640,6 +2641,189 @@ html[data-bs-theme='dark'] .template-field-card .tox .tox-collection {
|
||||
margin: 2rem auto;
|
||||
}
|
||||
|
||||
.template-picker-current {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: .5rem;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.template-picker-current strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.template-picker-toolbar {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 20rem);
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.template-picker-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.template-picker-option {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
text-align: left;
|
||||
color: var(--bs-body-color);
|
||||
background: var(--bs-body-bg);
|
||||
border: 1px solid var(--bs-border-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.template-picker-option:hover,
|
||||
.template-picker-option:focus-visible {
|
||||
border-color: var(--bs-primary);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.template-picker-option[aria-pressed="true"] {
|
||||
border: 2px solid var(--bs-primary);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--bs-primary) 22%, transparent);
|
||||
}
|
||||
|
||||
.template-picker-preview {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
background-color: #111;
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
||||
|
||||
.template-picker-preview-none {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--bs-secondary-color);
|
||||
background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(128, 128, 128, .12) 12px 13px);
|
||||
}
|
||||
|
||||
.template-picker-preview-background,
|
||||
.template-picker-region-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.template-picker-preview-background {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.template-picker-region-layer {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.template-picker-region {
|
||||
position: absolute;
|
||||
border: 1px solid rgba(255, 255, 255, .82);
|
||||
background: rgba(50, 150, 170, .16);
|
||||
}
|
||||
|
||||
.template-picker-details {
|
||||
display: grid;
|
||||
gap: .2rem;
|
||||
padding: .65rem .75rem;
|
||||
}
|
||||
|
||||
.template-picker-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.template-default-content-dialog {
|
||||
width: calc(100% - 2rem);
|
||||
max-width: none;
|
||||
height: calc(100dvh - 4rem);
|
||||
max-height: 860px;
|
||||
min-height: 0;
|
||||
margin: 2rem auto;
|
||||
}
|
||||
|
||||
.template-default-content-dialog .modal-content {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.slide-animation-body.template-default-content-body {
|
||||
grid-template-columns: minmax(0, 1fr) 21rem;
|
||||
}
|
||||
|
||||
.template-default-content-workspace {
|
||||
container-type: size;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.template-default-content-preview-stage {
|
||||
position: relative;
|
||||
width: min(100%, calc(100cqh * var(--template-preview-ratio, 1.777778)));
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
outline: 1px solid var(--bs-border-color);
|
||||
background: #111;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.template-default-content-preview-frame {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.template-default-content-preview-background,
|
||||
.template-default-content-preview-canvas {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
transform-origin: top left;
|
||||
}
|
||||
|
||||
.template-default-content-preview-background {
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.template-default-content-preview-label {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
max-width: calc(100% - 8px);
|
||||
overflow: hidden;
|
||||
padding: 2px 4px;
|
||||
color: #fff;
|
||||
background: rgba(0, 0, 0, .65);
|
||||
font-size: 14px;
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.template-default-content-properties {
|
||||
min-width: 0;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.template-default-content-properties .template-field-card {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.slide-layout-dialog .modal-content {
|
||||
height: 100%;
|
||||
}
|
||||
@@ -2831,12 +3015,26 @@ html[data-bs-theme='dark'] .template-field-card .tox .tox-collection {
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.template-picker-toolbar {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.template-picker-grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
||||
}
|
||||
|
||||
.slide-layout-dialog {
|
||||
width: calc(100% - 1rem);
|
||||
height: calc(100dvh - 2rem);
|
||||
margin: 1rem auto;
|
||||
}
|
||||
|
||||
.template-default-content-dialog {
|
||||
width: calc(100% - 1rem);
|
||||
height: calc(100dvh - 2rem);
|
||||
margin: 1rem auto;
|
||||
}
|
||||
|
||||
.slide-layout-body {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: minmax(14rem, 1fr) auto;
|
||||
@@ -2846,6 +3044,16 @@ html[data-bs-theme='dark'] .template-field-card .tox .tox-collection {
|
||||
.slide-layout-properties {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.slide-animation-body.template-default-content-body {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: auto minmax(14rem, 1fr);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.template-default-content-properties {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
/* Slide preview canvas and popup */
|
||||
@@ -4199,6 +4407,10 @@ html[data-bs-theme='dark'] .template-field-card .tox .tox-collection {
|
||||
scrollbar-gutter: stable both-edges;
|
||||
}
|
||||
|
||||
.slide-schedule-card > form > .card-footer::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.slide-schedule-content .schedule-rule-card .card-header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user