Release LaySite 1.4.0 canvas editing and layers
This commit is contained in:
@@ -9,12 +9,14 @@ jQuery(function ($) {
|
||||
$updateStatus.text('正在查询上游仓库…');
|
||||
$.ajax({url: '/admin/about/update', dataType: 'json', timeout: 7500})
|
||||
.done(({current, latest, comparison}) => {
|
||||
if (comparison > 0) {
|
||||
$updateStatus.text('发现新版本 ' + latest + ',当前版本为 ' + current + '。');
|
||||
if (latest === null) {
|
||||
$updateStatus.text('上游仓库暂无已发布版本。');
|
||||
} else if (comparison > 0) {
|
||||
$updateStatus.text('发现已发布的新版本 ' + latest + ',当前版本为 ' + current + '。');
|
||||
} else if (comparison < 0) {
|
||||
$updateStatus.text('当前版本 ' + current + ' 高于上游版本 ' + latest + '。');
|
||||
$updateStatus.text('当前版本 ' + current + ' 高于上游最新已发布版本 ' + latest + '。');
|
||||
} else {
|
||||
$updateStatus.text('当前版本 ' + current + ' 已与上游仓库一致。');
|
||||
$updateStatus.text('当前版本 ' + current + ' 已是上游最新发布版本。');
|
||||
}
|
||||
})
|
||||
.fail(({status, responseJSON}) => {
|
||||
|
||||
+40
-4
@@ -162,7 +162,7 @@
|
||||
.studio-workspace .studio-frame-window { height: max(34rem, calc(100dvh - 16rem)); }
|
||||
.studio-workspace .studio-preview h2 { font-size: 1.2rem; }
|
||||
.studio-presets { display: grid; gap: .4rem; }
|
||||
.studio-library .studio-layers button:not(.button), .studio-pending button {
|
||||
.studio-pending button {
|
||||
width: 100%;
|
||||
min-height: 2.75rem;
|
||||
padding: .55rem .75rem;
|
||||
@@ -181,9 +181,6 @@
|
||||
.studio-layers { border-top: 1px solid var(--line); margin-top: .85rem; padding-top: .55rem; }
|
||||
.studio-layers summary { cursor: pointer; font-weight: 620; }
|
||||
.studio-layers[open] > summary { margin-bottom: .55rem; }
|
||||
.studio-library .studio-layers > button + button { margin-top: .3rem; }
|
||||
.studio-layers .studio-blocks li { display: grid; gap: .4rem; }
|
||||
.studio-layers .studio-block-actions .button { min-height: 2.25rem; padding: .25rem .5rem; font-size: .8rem; }
|
||||
.studio-media-sizing { position: absolute; z-index: 1; inset: auto .6rem .6rem auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .45rem .6rem; max-width: calc(100% - 1.2rem); background: var(--accent-light); border: 1px solid var(--line); border-radius: .45rem; }
|
||||
.studio-element-tools {
|
||||
position: absolute; z-index: 3; display: flex; align-items: center; gap: .12rem; padding: .18rem;
|
||||
@@ -405,3 +402,42 @@
|
||||
border: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Studio source, media controls and layer tree */
|
||||
.media-upload-fields, .media-filters { align-items: start; }
|
||||
.media-upload-fields input[type=file] { padding: .4rem; min-width: 0; font-size: .9rem; }
|
||||
.media-upload-fields input::file-selector-button {
|
||||
margin-inline-end: .6rem; border: 0; border-radius: .35rem; padding: .55rem .75rem;
|
||||
color: var(--accent-deep); background: var(--accent-light); font: inherit; cursor: pointer;
|
||||
}
|
||||
.media-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
|
||||
.media-library [data-library-count] { margin: .65rem 0 1rem; }
|
||||
@media (max-width: 42rem) { .media-filters { grid-template-columns: minmax(0, 1fr); } }
|
||||
|
||||
.canvas-source { width: min(56rem, calc(100% - 2rem)); }
|
||||
.canvas-source textarea { font: .9rem / 1.55 var(--mono); tab-size: 4; }
|
||||
.canvas-image-display { display: flex; align-items: center; gap: .35rem; font-size: .85rem; }
|
||||
.canvas-image-display select, .canvas-format-tools input[type=color] {
|
||||
background: var(--white); border: 1px solid var(--line); border-radius: .35rem;
|
||||
color: var(--ink); min-height: 2rem; font: inherit; padding: .22rem .35rem;
|
||||
}
|
||||
.canvas-format-tools input[type=color] { width: 2.2rem; }
|
||||
.canvas-format-tools [data-clear-color] svg { width: 1rem; height: 1rem; }
|
||||
.admin-system-info dl, .admin-license-project, .admin-license-list { max-width: 52rem; }
|
||||
|
||||
.studio-layers .studio-layer-tree {
|
||||
display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none;
|
||||
}
|
||||
.studio-layers .studio-layer-tree .studio-layer-tree { margin-inline-start: .55rem; padding-inline-start: .35rem; border-inline-start: 1px solid var(--line); }
|
||||
.studio-layer-row { min-width: 0; border: 1px solid transparent; border-radius: .35rem; }
|
||||
.studio-layer-row[data-drop=before] { border-block-start-color: var(--accent); }
|
||||
.studio-layer-row[data-drop=after] { border-block-end-color: var(--accent); }
|
||||
.studio-layer-row[data-drop=inside], .studio-layer-row[aria-current=true] { background: var(--accent-light); }
|
||||
.studio-layer-label { min-width: 0; overflow-wrap: anywhere; }
|
||||
.studio-layer-caption { font-weight: 620; display: flex; align-items: baseline; gap: .3rem; }
|
||||
.studio-layer-caption small { font: .7rem var(--mono); color: var(--muted); }
|
||||
.studio-layer-row[draggable=true] { cursor: grab; }
|
||||
.studio-layers .studio-layer-actions { display: flex; flex-wrap: wrap; gap: .16rem; margin-block-end: .25rem; }
|
||||
.studio-layers .studio-layer-actions .button { min-height: 1.7rem; padding: .18rem .26rem; }
|
||||
.studio-layer-actions .button svg { width: 1rem; height: 1rem; }
|
||||
.studio-layer-details > summary { font-weight: 500; font-size: .8rem; color: var(--muted); }
|
||||
|
||||
+13
-2
@@ -389,7 +389,10 @@ progress { width: 100%; height: .8rem; accent-color: var(--accent); }
|
||||
.hero h1 .hero-heading-primary { color: inherit; }
|
||||
.rich, .section-heading, .hero-copy { overflow-wrap: anywhere; }
|
||||
.button:has(> br, > span[class*="studio-style-"]) { display: inline-block; text-align: center; white-space: normal; }
|
||||
.studio-accent { display: block; }
|
||||
.hero-accent { display: block; }
|
||||
[data-studio-editing] .hero-accent[data-studio-empty] { margin-top: .65rem; min-height: 1.5rem; font: 400 1rem / 1.5 var(--sans); letter-spacing: normal; }
|
||||
[data-studio-editing] .hero:has(> [data-studio-hero-content][hidden]):has(> [data-studio-hero-source]:not([hidden])) { display: block; }
|
||||
[data-studio-editing] :is([data-studio-breadcrumbs], [data-studio-navigation]) a { cursor: pointer; }
|
||||
[data-studio-editing] .hero:has(> [data-studio-hero-content][hidden]):not(:has(> .hero-directory-slot)) { display: none; }
|
||||
[data-studio-editing] [contenteditable], [data-studio-editing] [data-studio-action],
|
||||
[data-studio-editing] [data-studio-navigation] a, [data-studio-editing] [data-studio-hero-image] {
|
||||
@@ -410,7 +413,7 @@ progress { width: 100%; height: .8rem; accent-color: var(--accent); }
|
||||
@media (max-width: 44rem) { .studio-split { grid-template-columns: 1fr; } }
|
||||
|
||||
:where(img, video, audio, .hero-visual)[class*="studio-media-"] { max-width: 100%; }
|
||||
:is(.rich, .hero-inner, .editor-preview) [class*="studio-media-"] { width: var(--studio-media-width, auto); }
|
||||
:is(.rich, .hero-inner, .editor-preview, .studio-layout-block) [class*="studio-media-"] { width: var(--studio-media-width, auto); }
|
||||
.studio-media-10 { --studio-media-width: 10%; }
|
||||
.studio-media-11 { --studio-media-width: 11%; }
|
||||
.studio-media-12 { --studio-media-width: 12%; }
|
||||
@@ -697,3 +700,11 @@ progress { width: 100%; height: .8rem; accent-color: var(--accent); }
|
||||
.layout-thumbnail .masthead .primary-nav { width: auto; order: 0; }
|
||||
.studio-layout-block { margin: 0; }
|
||||
.studio-layout-empty { padding-block: 3rem; text-align: center; }
|
||||
|
||||
.site-brand img[class*="studio-media-"] {
|
||||
width: calc(min(24rem, 55vw) * var(--studio-media-factor, 1)); max-width: 100%; max-height: none;
|
||||
}
|
||||
img.studio-style-display-block, .hero-visual.studio-style-display-block > img { display: block !important; }
|
||||
img.studio-style-display-inline, .hero-visual.studio-style-display-inline > img { display: inline !important; }
|
||||
img.studio-style-display-inline-block, .hero-visual.studio-style-display-inline-block > img { display: inline-block !important; }
|
||||
.studio-style-color-theme { color: var(--ink) !important; }
|
||||
|
||||
+593
-158
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user