@wordpress/edit-site 3.0.27 → 4.0.1-next.f435e9e01b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE.md +1 -1
- package/README.md +7 -1
- package/build/components/add-new-template/new-template-part.js +1 -4
- package/build/components/add-new-template/new-template-part.js.map +1 -1
- package/build/components/block-editor/resizable-editor.js +1 -0
- package/build/components/block-editor/resizable-editor.js.map +1 -1
- package/build/components/code-editor/code-editor-text-area.js +95 -0
- package/build/components/code-editor/code-editor-text-area.js.map +1 -0
- package/build/components/code-editor/index.js +79 -0
- package/build/components/code-editor/index.js.map +1 -0
- package/build/components/editor/index.js +28 -8
- package/build/components/editor/index.js.map +1 -1
- package/build/components/error-boundary/index.js +27 -11
- package/build/components/error-boundary/index.js.map +1 -1
- package/build/components/global-styles/border-panel.js +81 -22
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/context-menu.js +4 -6
- package/build/components/global-styles/context-menu.js.map +1 -1
- package/build/components/global-styles/global-styles-provider.js +1 -0
- package/build/components/global-styles/global-styles-provider.js.map +1 -1
- package/build/components/global-styles/header.js +2 -7
- package/build/components/global-styles/header.js.map +1 -1
- package/build/components/global-styles/navigation-button.js +35 -12
- package/build/components/global-styles/navigation-button.js.map +1 -1
- package/build/components/global-styles/palette.js +3 -3
- package/build/components/global-styles/palette.js.map +1 -1
- package/build/components/global-styles/preview.js +46 -15
- package/build/components/global-styles/preview.js.map +1 -1
- package/build/components/global-styles/screen-background-color.js +1 -3
- package/build/components/global-styles/screen-background-color.js.map +1 -1
- package/build/components/global-styles/screen-block-list.js +2 -3
- package/build/components/global-styles/screen-block-list.js.map +1 -1
- package/build/components/global-styles/screen-block.js +0 -1
- package/build/components/global-styles/screen-block.js.map +1 -1
- package/build/components/global-styles/screen-color-palette.js +0 -2
- package/build/components/global-styles/screen-color-palette.js.map +1 -1
- package/build/components/global-styles/screen-colors.js +5 -6
- package/build/components/global-styles/screen-colors.js.map +1 -1
- package/build/components/global-styles/screen-layout.js +0 -2
- package/build/components/global-styles/screen-layout.js.map +1 -1
- package/build/components/global-styles/screen-link-color.js +0 -2
- package/build/components/global-styles/screen-link-color.js.map +1 -1
- package/build/components/global-styles/screen-root.js +22 -3
- package/build/components/global-styles/screen-root.js.map +1 -1
- package/build/components/global-styles/screen-style-variations.js +138 -0
- package/build/components/global-styles/screen-style-variations.js.map +1 -0
- package/build/components/global-styles/screen-text-color.js +0 -2
- package/build/components/global-styles/screen-text-color.js.map +1 -1
- package/build/components/global-styles/screen-typography-element.js +0 -2
- package/build/components/global-styles/screen-typography-element.js.map +1 -1
- package/build/components/global-styles/screen-typography.js +2 -3
- package/build/components/global-styles/screen-typography.js.map +1 -1
- package/build/components/global-styles/ui.js +31 -14
- package/build/components/global-styles/ui.js.map +1 -1
- package/build/components/header/index.js +12 -4
- package/build/components/header/index.js.map +1 -1
- package/build/components/header/mode-switcher/index.js +78 -0
- package/build/components/header/mode-switcher/index.js.map +1 -0
- package/build/components/header/more-menu/copy-content-menu-item.js +74 -0
- package/build/components/header/more-menu/copy-content-menu-item.js.map +1 -0
- package/build/components/header/more-menu/index.js +6 -2
- package/build/components/header/more-menu/index.js.map +1 -1
- package/build/components/keyboard-shortcuts/index.js +17 -1
- package/build/components/keyboard-shortcuts/index.js.map +1 -1
- package/build/components/list/actions/index.js +5 -4
- package/build/components/list/actions/index.js.map +1 -1
- package/build/components/list/actions/rename-menu-item.js +3 -3
- package/build/components/list/actions/rename-menu-item.js.map +1 -1
- package/build/components/routes/redirect-to-homepage.js +3 -22
- package/build/components/routes/redirect-to-homepage.js.map +1 -1
- package/build/components/secondary-sidebar/inserter-sidebar.js +13 -3
- package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
- package/build/components/secondary-sidebar/list-view-sidebar.js +7 -5
- package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build/components/sidebar/default-sidebar.js +4 -2
- package/build/components/sidebar/default-sidebar.js.map +1 -1
- package/build/components/sidebar/global-styles-sidebar.js +1 -0
- package/build/components/sidebar/global-styles-sidebar.js.map +1 -1
- package/build/components/template-part-converter/convert-to-template-part.js +1 -4
- package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/build/index.js +2 -16
- package/build/index.js.map +1 -1
- package/build/store/actions.js +29 -9
- package/build/store/actions.js.map +1 -1
- package/build/store/defaults.js +2 -1
- package/build/store/defaults.js.map +1 -1
- package/build/store/reducer.js +11 -0
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +13 -0
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/add-new-template/new-template-part.js +1 -4
- package/build-module/components/add-new-template/new-template-part.js.map +1 -1
- package/build-module/components/block-editor/resizable-editor.js +1 -0
- package/build-module/components/block-editor/resizable-editor.js.map +1 -1
- package/build-module/components/code-editor/code-editor-text-area.js +83 -0
- package/build-module/components/code-editor/code-editor-text-area.js.map +1 -0
- package/build-module/components/code-editor/index.js +62 -0
- package/build-module/components/code-editor/index.js.map +1 -0
- package/build-module/components/editor/index.js +27 -9
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/error-boundary/index.js +26 -9
- package/build-module/components/error-boundary/index.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +82 -23
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/context-menu.js +1 -1
- package/build-module/components/global-styles/context-menu.js.map +1 -1
- package/build-module/components/global-styles/global-styles-provider.js +1 -1
- package/build-module/components/global-styles/global-styles-provider.js.map +1 -1
- package/build-module/components/global-styles/header.js +2 -5
- package/build-module/components/global-styles/header.js.map +1 -1
- package/build-module/components/global-styles/navigation-button.js +35 -10
- package/build-module/components/global-styles/navigation-button.js.map +1 -1
- package/build-module/components/global-styles/palette.js +2 -2
- package/build-module/components/global-styles/palette.js.map +1 -1
- package/build-module/components/global-styles/preview.js +45 -15
- package/build-module/components/global-styles/preview.js.map +1 -1
- package/build-module/components/global-styles/screen-background-color.js +1 -3
- package/build-module/components/global-styles/screen-background-color.js.map +1 -1
- package/build-module/components/global-styles/screen-block-list.js +1 -2
- package/build-module/components/global-styles/screen-block-list.js.map +1 -1
- package/build-module/components/global-styles/screen-block.js +0 -1
- package/build-module/components/global-styles/screen-block.js.map +1 -1
- package/build-module/components/global-styles/screen-color-palette.js +0 -2
- package/build-module/components/global-styles/screen-color-palette.js.map +1 -1
- package/build-module/components/global-styles/screen-colors.js +2 -3
- package/build-module/components/global-styles/screen-colors.js.map +1 -1
- package/build-module/components/global-styles/screen-layout.js +0 -2
- package/build-module/components/global-styles/screen-layout.js.map +1 -1
- package/build-module/components/global-styles/screen-link-color.js +0 -2
- package/build-module/components/global-styles/screen-link-color.js.map +1 -1
- package/build-module/components/global-styles/screen-root.js +21 -4
- package/build-module/components/global-styles/screen-root.js.map +1 -1
- package/build-module/components/global-styles/screen-style-variations.js +119 -0
- package/build-module/components/global-styles/screen-style-variations.js.map +1 -0
- package/build-module/components/global-styles/screen-text-color.js +0 -2
- package/build-module/components/global-styles/screen-text-color.js.map +1 -1
- package/build-module/components/global-styles/screen-typography-element.js +0 -2
- package/build-module/components/global-styles/screen-typography-element.js.map +1 -1
- package/build-module/components/global-styles/screen-typography.js +1 -2
- package/build-module/components/global-styles/screen-typography.js.map +1 -1
- package/build-module/components/global-styles/ui.js +29 -14
- package/build-module/components/global-styles/ui.js.map +1 -1
- package/build-module/components/header/index.js +13 -5
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/header/mode-switcher/index.js +65 -0
- package/build-module/components/header/mode-switcher/index.js.map +1 -0
- package/build-module/components/header/more-menu/copy-content-menu-item.js +59 -0
- package/build-module/components/header/more-menu/copy-content-menu-item.js.map +1 -0
- package/build-module/components/header/more-menu/index.js +4 -2
- package/build-module/components/header/more-menu/index.js.map +1 -1
- package/build-module/components/keyboard-shortcuts/index.js +17 -1
- package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
- package/build-module/components/list/actions/index.js +5 -4
- package/build-module/components/list/actions/index.js.map +1 -1
- package/build-module/components/list/actions/rename-menu-item.js +3 -3
- package/build-module/components/list/actions/rename-menu-item.js.map +1 -1
- package/build-module/components/routes/redirect-to-homepage.js +3 -22
- package/build-module/components/routes/redirect-to-homepage.js.map +1 -1
- package/build-module/components/secondary-sidebar/inserter-sidebar.js +14 -4
- package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-sidebar.js +7 -5
- package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
- package/build-module/components/sidebar/default-sidebar.js +4 -2
- package/build-module/components/sidebar/default-sidebar.js.map +1 -1
- package/build-module/components/sidebar/global-styles-sidebar.js +1 -0
- package/build-module/components/sidebar/global-styles-sidebar.js.map +1 -1
- package/build-module/components/template-part-converter/convert-to-template-part.js +1 -4
- package/build-module/components/template-part-converter/convert-to-template-part.js.map +1 -1
- package/build-module/index.js +2 -14
- package/build-module/index.js.map +1 -1
- package/build-module/store/actions.js +25 -9
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/defaults.js +2 -1
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/reducer.js +11 -0
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +11 -0
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/style-rtl.css +148 -68
- package/build-style/style.css +148 -68
- package/package.json +28 -30
- package/src/components/add-new-template/new-template-part.js +1 -7
- package/src/components/block-editor/resizable-editor.js +1 -0
- package/src/components/block-editor/style.scss +10 -18
- package/src/components/code-editor/code-editor-text-area.js +79 -0
- package/src/components/code-editor/index.js +65 -0
- package/src/components/code-editor/style.scss +100 -0
- package/src/components/editor/index.js +41 -10
- package/src/components/error-boundary/index.js +28 -11
- package/src/components/global-styles/border-panel.js +106 -42
- package/src/components/global-styles/context-menu.js +1 -1
- package/src/components/global-styles/global-styles-provider.js +1 -2
- package/src/components/global-styles/header.js +3 -5
- package/src/components/global-styles/navigation-button.js +31 -10
- package/src/components/global-styles/palette.js +6 -2
- package/src/components/global-styles/preview.js +46 -18
- package/src/components/global-styles/screen-background-color.js +1 -3
- package/src/components/global-styles/screen-block-list.js +1 -2
- package/src/components/global-styles/screen-block.js +1 -1
- package/src/components/global-styles/screen-color-palette.js +0 -2
- package/src/components/global-styles/screen-colors.js +2 -3
- package/src/components/global-styles/screen-layout.js +1 -5
- package/src/components/global-styles/screen-link-color.js +0 -2
- package/src/components/global-styles/screen-root.js +32 -3
- package/src/components/global-styles/screen-style-variations.js +130 -0
- package/src/components/global-styles/screen-text-color.js +0 -2
- package/src/components/global-styles/screen-typography-element.js +0 -4
- package/src/components/global-styles/screen-typography.js +2 -3
- package/src/components/global-styles/style.scss +24 -25
- package/src/components/global-styles/ui.js +55 -25
- package/src/components/header/document-actions/style.scss +1 -9
- package/src/components/header/index.js +10 -2
- package/src/components/header/mode-switcher/index.js +67 -0
- package/src/components/header/more-menu/copy-content-menu-item.js +53 -0
- package/src/components/header/more-menu/index.js +4 -0
- package/src/components/header/style.scss +2 -1
- package/src/components/keyboard-shortcuts/index.js +17 -1
- package/src/components/list/actions/index.js +5 -4
- package/src/components/list/actions/rename-menu-item.js +3 -3
- package/src/components/routes/redirect-to-homepage.js +4 -27
- package/src/components/secondary-sidebar/inserter-sidebar.js +14 -3
- package/src/components/secondary-sidebar/list-view-sidebar.js +12 -5
- package/src/components/secondary-sidebar/style.scss +0 -4
- package/src/components/sidebar/default-sidebar.js +2 -0
- package/src/components/sidebar/global-styles-sidebar.js +1 -0
- package/src/components/sidebar/style.scss +21 -14
- package/src/components/template-part-converter/convert-to-template-part.js +1 -6
- package/src/index.js +2 -18
- package/src/store/actions.js +25 -10
- package/src/store/defaults.js +1 -0
- package/src/store/reducer.js +6 -0
- package/src/store/selectors.js +11 -0
- package/src/store/test/actions.js +2 -2
- package/src/style.scss +1 -0
- package/build/components/error-boundary/warning.js +0 -70
- package/build/components/error-boundary/warning.js.map +0 -1
- package/build-module/components/error-boundary/warning.js +0 -60
- package/build-module/components/error-boundary/warning.js.map +0 -1
- package/src/components/error-boundary/warning.js +0 -59
|
@@ -475,10 +475,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
475
475
|
overflow: auto;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
-
.edit-site-visual-editor__editor-canvas {
|
|
479
|
-
border-radius: 2px 2px 0 0;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
478
|
.edit-site-visual-editor__back-button {
|
|
483
479
|
position: absolute;
|
|
484
480
|
top: 8px;
|
|
@@ -495,47 +491,138 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
495
491
|
bottom: 0;
|
|
496
492
|
padding: 0;
|
|
497
493
|
margin: auto 0;
|
|
498
|
-
width:
|
|
494
|
+
width: 4px;
|
|
499
495
|
height: 100px;
|
|
500
496
|
-webkit-appearance: none;
|
|
501
497
|
appearance: none;
|
|
502
|
-
cursor:
|
|
498
|
+
cursor: ew-resize;
|
|
503
499
|
outline: none;
|
|
504
|
-
background: #
|
|
505
|
-
border-radius:
|
|
500
|
+
background: #949494;
|
|
501
|
+
border-radius: 2px;
|
|
506
502
|
border: 0;
|
|
507
503
|
}
|
|
508
504
|
.resizable-editor__drag-handle.is-left {
|
|
509
|
-
right: -
|
|
505
|
+
right: -16px;
|
|
510
506
|
}
|
|
511
507
|
.resizable-editor__drag-handle.is-right {
|
|
512
|
-
left: -
|
|
513
|
-
}
|
|
514
|
-
.resizable-editor__drag-handle:hover {
|
|
515
|
-
background: #949494;
|
|
508
|
+
left: -16px;
|
|
516
509
|
}
|
|
517
|
-
.resizable-editor__drag-handle:active {
|
|
518
|
-
|
|
519
|
-
background: #949494;
|
|
510
|
+
.resizable-editor__drag-handle:hover, .resizable-editor__drag-handle:active {
|
|
511
|
+
background: #ccc;
|
|
520
512
|
}
|
|
521
513
|
.resizable-editor__drag-handle:focus {
|
|
522
514
|
box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
|
|
523
515
|
}
|
|
524
516
|
|
|
517
|
+
.edit-site-code-editor {
|
|
518
|
+
position: relative;
|
|
519
|
+
width: 100%;
|
|
520
|
+
background-color: #fff;
|
|
521
|
+
flex-grow: 1;
|
|
522
|
+
}
|
|
523
|
+
.edit-site-code-editor__body {
|
|
524
|
+
width: 100%;
|
|
525
|
+
padding: 0 12px 12px 12px;
|
|
526
|
+
max-width: 1080px;
|
|
527
|
+
margin-right: auto;
|
|
528
|
+
margin-left: auto;
|
|
529
|
+
}
|
|
530
|
+
@media (min-width: 960px) {
|
|
531
|
+
.edit-site-code-editor__body {
|
|
532
|
+
padding: 16px 24px 96px 24px;
|
|
533
|
+
padding: 0 24px 24px 24px;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
.edit-site-code-editor__toolbar {
|
|
537
|
+
position: sticky;
|
|
538
|
+
z-index: 1;
|
|
539
|
+
top: 0;
|
|
540
|
+
right: 0;
|
|
541
|
+
left: 0;
|
|
542
|
+
display: flex;
|
|
543
|
+
background: rgba(255, 255, 255, 0.8);
|
|
544
|
+
padding: 4px 12px;
|
|
545
|
+
}
|
|
546
|
+
@media (min-width: 600px) {
|
|
547
|
+
.edit-site-code-editor__toolbar {
|
|
548
|
+
padding: 12px;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
@media (min-width: 960px) {
|
|
552
|
+
.edit-site-code-editor__toolbar {
|
|
553
|
+
padding: 12px 24px;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
.edit-site-code-editor__toolbar h2 {
|
|
557
|
+
line-height: 36px;
|
|
558
|
+
margin: 0 0 0 auto;
|
|
559
|
+
font-size: 13px;
|
|
560
|
+
color: #1e1e1e;
|
|
561
|
+
}
|
|
562
|
+
.edit-site-code-editor__toolbar .components-button svg {
|
|
563
|
+
order: 1;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
567
|
+
border: 1px solid #949494;
|
|
568
|
+
border-radius: 0;
|
|
569
|
+
display: block;
|
|
570
|
+
margin: 0;
|
|
571
|
+
width: 100%;
|
|
572
|
+
box-shadow: none;
|
|
573
|
+
resize: none;
|
|
574
|
+
overflow: hidden;
|
|
575
|
+
font-family: Menlo, Consolas, monaco, monospace;
|
|
576
|
+
line-height: 2.4;
|
|
577
|
+
min-height: 200px;
|
|
578
|
+
transition: border 0.1s ease-out, box-shadow 0.1s linear;
|
|
579
|
+
padding: 16px;
|
|
580
|
+
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
581
|
+
font-size: 16px !important;
|
|
582
|
+
}
|
|
583
|
+
@media (prefers-reduced-motion: reduce) {
|
|
584
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
585
|
+
transition-duration: 0s;
|
|
586
|
+
transition-delay: 0s;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
@media (min-width: 600px) {
|
|
590
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
591
|
+
padding: 24px;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
@media (min-width: 600px) {
|
|
595
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
596
|
+
font-size: 15px !important;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus {
|
|
600
|
+
border-color: var(--wp-admin-theme-color);
|
|
601
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
602
|
+
position: relative;
|
|
603
|
+
}
|
|
604
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder {
|
|
605
|
+
color: rgba(30, 30, 30, 0.62);
|
|
606
|
+
}
|
|
607
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder {
|
|
608
|
+
color: rgba(30, 30, 30, 0.62);
|
|
609
|
+
opacity: 1;
|
|
610
|
+
}
|
|
611
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder {
|
|
612
|
+
color: rgba(30, 30, 30, 0.62);
|
|
613
|
+
}
|
|
614
|
+
|
|
525
615
|
.edit-site-global-styles-preview {
|
|
526
616
|
display: flex;
|
|
527
617
|
align-items: center;
|
|
528
618
|
justify-content: center;
|
|
529
|
-
min-height: 152px;
|
|
530
619
|
line-height: 1;
|
|
620
|
+
cursor: pointer;
|
|
531
621
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
width: 36px;
|
|
537
|
-
margin-right: 0;
|
|
538
|
-
padding: 0;
|
|
622
|
+
|
|
623
|
+
.edit-site-global-styles-preview__iframe {
|
|
624
|
+
max-width: 100%;
|
|
625
|
+
display: block;
|
|
539
626
|
}
|
|
540
627
|
|
|
541
628
|
.edit-site-typography-panel__preview {
|
|
@@ -566,13 +653,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
566
653
|
margin: 16px;
|
|
567
654
|
}
|
|
568
655
|
.edit-site-global-styles-screen-colors .component-color-indicator {
|
|
569
|
-
margin-right: 0;
|
|
570
|
-
display: block;
|
|
571
|
-
border-radius: 50%;
|
|
572
|
-
height: 24px;
|
|
573
|
-
width: 24px;
|
|
574
|
-
padding: 0;
|
|
575
|
-
border: 1px solid #ddd;
|
|
576
656
|
background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
577
657
|
}
|
|
578
658
|
|
|
@@ -596,20 +676,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
596
676
|
min-height: 32px;
|
|
597
677
|
}
|
|
598
678
|
|
|
599
|
-
h2.edit-site-global-styles-gradient-palette-panel__duotone-heading.components-heading {
|
|
600
|
-
text-transform: uppercase;
|
|
601
|
-
line-height: 24px;
|
|
602
|
-
font-weight: 500;
|
|
603
|
-
font-size: 11px;
|
|
604
|
-
margin-bottom: 8px;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
679
|
.edit-site-screen-text-color__control,
|
|
608
680
|
.edit-site-screen-link-color__control,
|
|
609
681
|
.edit-site-screen-background-color__control {
|
|
610
682
|
padding: 16px;
|
|
611
683
|
}
|
|
612
684
|
|
|
685
|
+
.edit-site-global-styles-variations_item {
|
|
686
|
+
box-sizing: border-box;
|
|
687
|
+
padding: 2px;
|
|
688
|
+
border-radius: 2px;
|
|
689
|
+
border: #e0e0e0 1px solid;
|
|
690
|
+
}
|
|
691
|
+
.edit-site-global-styles-variations_item.is-active {
|
|
692
|
+
border: #1e1e1e 1px solid;
|
|
693
|
+
}
|
|
694
|
+
.edit-site-global-styles-variations_item:hover {
|
|
695
|
+
border: var(--wp-admin-theme-color) 1px solid;
|
|
696
|
+
}
|
|
697
|
+
.edit-site-global-styles-variations_item:focus {
|
|
698
|
+
border: var(--wp-admin-theme-color) 1px solid;
|
|
699
|
+
}
|
|
700
|
+
|
|
613
701
|
.edit-site-header {
|
|
614
702
|
align-items: center;
|
|
615
703
|
background-color: #fff;
|
|
@@ -638,6 +726,8 @@ body.is-fullscreen-mode .edit-site-header {
|
|
|
638
726
|
display: flex;
|
|
639
727
|
align-items: center;
|
|
640
728
|
height: 100%;
|
|
729
|
+
flex-grow: 1;
|
|
730
|
+
justify-content: center;
|
|
641
731
|
min-width: 0;
|
|
642
732
|
}
|
|
643
733
|
.edit-site-header .edit-site-header_end {
|
|
@@ -715,7 +805,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
715
805
|
.edit-site-header__actions {
|
|
716
806
|
display: inline-flex;
|
|
717
807
|
align-items: center;
|
|
718
|
-
flex-wrap: wrap;
|
|
719
808
|
padding-left: 4px;
|
|
720
809
|
}
|
|
721
810
|
.edit-site-header__actions .interface-pinned-items {
|
|
@@ -770,6 +859,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
770
859
|
display: flex;
|
|
771
860
|
flex-direction: column;
|
|
772
861
|
justify-content: center;
|
|
862
|
+
padding: 0 8px;
|
|
773
863
|
height: 100%;
|
|
774
864
|
min-width: 0;
|
|
775
865
|
}
|
|
@@ -796,17 +886,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
796
886
|
white-space: nowrap;
|
|
797
887
|
overflow: hidden;
|
|
798
888
|
text-overflow: ellipsis;
|
|
799
|
-
max-width: 120px;
|
|
800
|
-
}
|
|
801
|
-
@media (min-width: 782px) {
|
|
802
|
-
.edit-site-document-actions .edit-site-document-actions__title {
|
|
803
|
-
max-width: 75px;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
@media (min-width: 1080px) {
|
|
807
|
-
.edit-site-document-actions .edit-site-document-actions__title {
|
|
808
|
-
max-width: 180px;
|
|
809
|
-
}
|
|
810
889
|
}
|
|
811
890
|
.edit-site-document-actions .edit-site-document-actions__secondary-item {
|
|
812
891
|
white-space: nowrap;
|
|
@@ -1301,6 +1380,20 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1301
1380
|
margin: 0;
|
|
1302
1381
|
}
|
|
1303
1382
|
|
|
1383
|
+
.edit-site-global-styles-sidebar {
|
|
1384
|
+
display: flex;
|
|
1385
|
+
flex-direction: column;
|
|
1386
|
+
height: 100%;
|
|
1387
|
+
}
|
|
1388
|
+
.edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
|
|
1389
|
+
display: flex;
|
|
1390
|
+
flex-direction: column;
|
|
1391
|
+
flex: 1;
|
|
1392
|
+
}
|
|
1393
|
+
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1394
|
+
flex: 1;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1304
1397
|
.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
|
|
1305
1398
|
margin-right: 0;
|
|
1306
1399
|
}
|
|
@@ -1309,18 +1402,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1309
1402
|
margin-right: auto;
|
|
1310
1403
|
}
|
|
1311
1404
|
|
|
1312
|
-
.edit-site-global-styles-sidebar__border-controls-row {
|
|
1313
|
-
display: flex;
|
|
1314
|
-
justify-content: space-between;
|
|
1315
|
-
margin-bottom: 12px;
|
|
1316
|
-
}
|
|
1317
|
-
.edit-site-global-styles-sidebar__border-controls-row > * {
|
|
1318
|
-
width: calc(50% - 8px);
|
|
1319
|
-
}
|
|
1320
|
-
.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
|
|
1321
|
-
margin-bottom: 0;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
1405
|
.edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
|
|
1325
1406
|
font-size: 15.6px;
|
|
1326
1407
|
font-weight: 500;
|
|
@@ -1335,6 +1416,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1335
1416
|
border: 0;
|
|
1336
1417
|
}
|
|
1337
1418
|
|
|
1419
|
+
.edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
|
|
1420
|
+
grid-column: span 1;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1338
1423
|
.edit-site-global-styles-sidebar__blocks-group {
|
|
1339
1424
|
padding-top: 24px;
|
|
1340
1425
|
border-top: 1px solid #e0e0e0;
|
|
@@ -1706,11 +1791,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
1706
1791
|
display: flex;
|
|
1707
1792
|
justify-content: flex-end;
|
|
1708
1793
|
}
|
|
1709
|
-
@media (min-width: 782px) {
|
|
1710
|
-
.edit-site-editor__inserter-panel-header {
|
|
1711
|
-
display: none;
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
1794
|
|
|
1715
1795
|
.edit-site-editor__inserter-panel-content,
|
|
1716
1796
|
.edit-site-editor__list-view-panel-content {
|
package/build-style/style.css
CHANGED
|
@@ -475,10 +475,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
475
475
|
overflow: auto;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
-
.edit-site-visual-editor__editor-canvas {
|
|
479
|
-
border-radius: 2px 2px 0 0;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
478
|
.edit-site-visual-editor__back-button {
|
|
483
479
|
position: absolute;
|
|
484
480
|
top: 8px;
|
|
@@ -495,47 +491,138 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
495
491
|
bottom: 0;
|
|
496
492
|
padding: 0;
|
|
497
493
|
margin: auto 0;
|
|
498
|
-
width:
|
|
494
|
+
width: 4px;
|
|
499
495
|
height: 100px;
|
|
500
496
|
-webkit-appearance: none;
|
|
501
497
|
appearance: none;
|
|
502
|
-
cursor:
|
|
498
|
+
cursor: ew-resize;
|
|
503
499
|
outline: none;
|
|
504
|
-
background: #
|
|
505
|
-
border-radius:
|
|
500
|
+
background: #949494;
|
|
501
|
+
border-radius: 2px;
|
|
506
502
|
border: 0;
|
|
507
503
|
}
|
|
508
504
|
.resizable-editor__drag-handle.is-left {
|
|
509
|
-
left: -
|
|
505
|
+
left: -16px;
|
|
510
506
|
}
|
|
511
507
|
.resizable-editor__drag-handle.is-right {
|
|
512
|
-
right: -
|
|
513
|
-
}
|
|
514
|
-
.resizable-editor__drag-handle:hover {
|
|
515
|
-
background: #949494;
|
|
508
|
+
right: -16px;
|
|
516
509
|
}
|
|
517
|
-
.resizable-editor__drag-handle:active {
|
|
518
|
-
|
|
519
|
-
background: #949494;
|
|
510
|
+
.resizable-editor__drag-handle:hover, .resizable-editor__drag-handle:active {
|
|
511
|
+
background: #ccc;
|
|
520
512
|
}
|
|
521
513
|
.resizable-editor__drag-handle:focus {
|
|
522
514
|
box-shadow: 0 0 0 1px #2f2f2f, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
|
|
523
515
|
}
|
|
524
516
|
|
|
517
|
+
.edit-site-code-editor {
|
|
518
|
+
position: relative;
|
|
519
|
+
width: 100%;
|
|
520
|
+
background-color: #fff;
|
|
521
|
+
flex-grow: 1;
|
|
522
|
+
}
|
|
523
|
+
.edit-site-code-editor__body {
|
|
524
|
+
width: 100%;
|
|
525
|
+
padding: 0 12px 12px 12px;
|
|
526
|
+
max-width: 1080px;
|
|
527
|
+
margin-left: auto;
|
|
528
|
+
margin-right: auto;
|
|
529
|
+
}
|
|
530
|
+
@media (min-width: 960px) {
|
|
531
|
+
.edit-site-code-editor__body {
|
|
532
|
+
padding: 16px 24px 96px 24px;
|
|
533
|
+
padding: 0 24px 24px 24px;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
.edit-site-code-editor__toolbar {
|
|
537
|
+
position: sticky;
|
|
538
|
+
z-index: 1;
|
|
539
|
+
top: 0;
|
|
540
|
+
left: 0;
|
|
541
|
+
right: 0;
|
|
542
|
+
display: flex;
|
|
543
|
+
background: rgba(255, 255, 255, 0.8);
|
|
544
|
+
padding: 4px 12px;
|
|
545
|
+
}
|
|
546
|
+
@media (min-width: 600px) {
|
|
547
|
+
.edit-site-code-editor__toolbar {
|
|
548
|
+
padding: 12px;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
@media (min-width: 960px) {
|
|
552
|
+
.edit-site-code-editor__toolbar {
|
|
553
|
+
padding: 12px 24px;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
.edit-site-code-editor__toolbar h2 {
|
|
557
|
+
line-height: 36px;
|
|
558
|
+
margin: 0 auto 0 0;
|
|
559
|
+
font-size: 13px;
|
|
560
|
+
color: #1e1e1e;
|
|
561
|
+
}
|
|
562
|
+
.edit-site-code-editor__toolbar .components-button svg {
|
|
563
|
+
order: 1;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
567
|
+
border: 1px solid #949494;
|
|
568
|
+
border-radius: 0;
|
|
569
|
+
display: block;
|
|
570
|
+
margin: 0;
|
|
571
|
+
width: 100%;
|
|
572
|
+
box-shadow: none;
|
|
573
|
+
resize: none;
|
|
574
|
+
overflow: hidden;
|
|
575
|
+
font-family: Menlo, Consolas, monaco, monospace;
|
|
576
|
+
line-height: 2.4;
|
|
577
|
+
min-height: 200px;
|
|
578
|
+
transition: border 0.1s ease-out, box-shadow 0.1s linear;
|
|
579
|
+
padding: 16px;
|
|
580
|
+
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
581
|
+
font-size: 16px !important;
|
|
582
|
+
}
|
|
583
|
+
@media (prefers-reduced-motion: reduce) {
|
|
584
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
585
|
+
transition-duration: 0s;
|
|
586
|
+
transition-delay: 0s;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
@media (min-width: 600px) {
|
|
590
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
591
|
+
padding: 24px;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
@media (min-width: 600px) {
|
|
595
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area {
|
|
596
|
+
font-size: 15px !important;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus {
|
|
600
|
+
border-color: var(--wp-admin-theme-color);
|
|
601
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
602
|
+
position: relative;
|
|
603
|
+
}
|
|
604
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder {
|
|
605
|
+
color: rgba(30, 30, 30, 0.62);
|
|
606
|
+
}
|
|
607
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder {
|
|
608
|
+
color: rgba(30, 30, 30, 0.62);
|
|
609
|
+
opacity: 1;
|
|
610
|
+
}
|
|
611
|
+
textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder {
|
|
612
|
+
color: rgba(30, 30, 30, 0.62);
|
|
613
|
+
}
|
|
614
|
+
|
|
525
615
|
.edit-site-global-styles-preview {
|
|
526
616
|
display: flex;
|
|
527
617
|
align-items: center;
|
|
528
618
|
justify-content: center;
|
|
529
|
-
min-height: 152px;
|
|
530
619
|
line-height: 1;
|
|
620
|
+
cursor: pointer;
|
|
531
621
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
width: 36px;
|
|
537
|
-
margin-left: 0;
|
|
538
|
-
padding: 0;
|
|
622
|
+
|
|
623
|
+
.edit-site-global-styles-preview__iframe {
|
|
624
|
+
max-width: 100%;
|
|
625
|
+
display: block;
|
|
539
626
|
}
|
|
540
627
|
|
|
541
628
|
.edit-site-typography-panel__preview {
|
|
@@ -566,13 +653,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
566
653
|
margin: 16px;
|
|
567
654
|
}
|
|
568
655
|
.edit-site-global-styles-screen-colors .component-color-indicator {
|
|
569
|
-
margin-left: 0;
|
|
570
|
-
display: block;
|
|
571
|
-
border-radius: 50%;
|
|
572
|
-
height: 24px;
|
|
573
|
-
width: 24px;
|
|
574
|
-
padding: 0;
|
|
575
|
-
border: 1px solid #ddd;
|
|
576
656
|
background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
|
|
577
657
|
}
|
|
578
658
|
|
|
@@ -596,20 +676,28 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
596
676
|
min-height: 32px;
|
|
597
677
|
}
|
|
598
678
|
|
|
599
|
-
h2.edit-site-global-styles-gradient-palette-panel__duotone-heading.components-heading {
|
|
600
|
-
text-transform: uppercase;
|
|
601
|
-
line-height: 24px;
|
|
602
|
-
font-weight: 500;
|
|
603
|
-
font-size: 11px;
|
|
604
|
-
margin-bottom: 8px;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
679
|
.edit-site-screen-text-color__control,
|
|
608
680
|
.edit-site-screen-link-color__control,
|
|
609
681
|
.edit-site-screen-background-color__control {
|
|
610
682
|
padding: 16px;
|
|
611
683
|
}
|
|
612
684
|
|
|
685
|
+
.edit-site-global-styles-variations_item {
|
|
686
|
+
box-sizing: border-box;
|
|
687
|
+
padding: 2px;
|
|
688
|
+
border-radius: 2px;
|
|
689
|
+
border: #e0e0e0 1px solid;
|
|
690
|
+
}
|
|
691
|
+
.edit-site-global-styles-variations_item.is-active {
|
|
692
|
+
border: #1e1e1e 1px solid;
|
|
693
|
+
}
|
|
694
|
+
.edit-site-global-styles-variations_item:hover {
|
|
695
|
+
border: var(--wp-admin-theme-color) 1px solid;
|
|
696
|
+
}
|
|
697
|
+
.edit-site-global-styles-variations_item:focus {
|
|
698
|
+
border: var(--wp-admin-theme-color) 1px solid;
|
|
699
|
+
}
|
|
700
|
+
|
|
613
701
|
.edit-site-header {
|
|
614
702
|
align-items: center;
|
|
615
703
|
background-color: #fff;
|
|
@@ -638,6 +726,8 @@ body.is-fullscreen-mode .edit-site-header {
|
|
|
638
726
|
display: flex;
|
|
639
727
|
align-items: center;
|
|
640
728
|
height: 100%;
|
|
729
|
+
flex-grow: 1;
|
|
730
|
+
justify-content: center;
|
|
641
731
|
min-width: 0;
|
|
642
732
|
}
|
|
643
733
|
.edit-site-header .edit-site-header_end {
|
|
@@ -715,7 +805,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
715
805
|
.edit-site-header__actions {
|
|
716
806
|
display: inline-flex;
|
|
717
807
|
align-items: center;
|
|
718
|
-
flex-wrap: wrap;
|
|
719
808
|
padding-right: 4px;
|
|
720
809
|
}
|
|
721
810
|
.edit-site-header__actions .interface-pinned-items {
|
|
@@ -770,6 +859,7 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
770
859
|
display: flex;
|
|
771
860
|
flex-direction: column;
|
|
772
861
|
justify-content: center;
|
|
862
|
+
padding: 0 8px;
|
|
773
863
|
height: 100%;
|
|
774
864
|
min-width: 0;
|
|
775
865
|
}
|
|
@@ -796,17 +886,6 @@ body.is-navigation-sidebar-open .edit-site-header .edit-site-header_end .compone
|
|
|
796
886
|
white-space: nowrap;
|
|
797
887
|
overflow: hidden;
|
|
798
888
|
text-overflow: ellipsis;
|
|
799
|
-
max-width: 120px;
|
|
800
|
-
}
|
|
801
|
-
@media (min-width: 782px) {
|
|
802
|
-
.edit-site-document-actions .edit-site-document-actions__title {
|
|
803
|
-
max-width: 75px;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
@media (min-width: 1080px) {
|
|
807
|
-
.edit-site-document-actions .edit-site-document-actions__title {
|
|
808
|
-
max-width: 180px;
|
|
809
|
-
}
|
|
810
889
|
}
|
|
811
890
|
.edit-site-document-actions .edit-site-document-actions__secondary-item {
|
|
812
891
|
white-space: nowrap;
|
|
@@ -1301,6 +1380,20 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1301
1380
|
margin: 0;
|
|
1302
1381
|
}
|
|
1303
1382
|
|
|
1383
|
+
.edit-site-global-styles-sidebar {
|
|
1384
|
+
display: flex;
|
|
1385
|
+
flex-direction: column;
|
|
1386
|
+
height: 100%;
|
|
1387
|
+
}
|
|
1388
|
+
.edit-site-global-styles-sidebar__panel, .edit-site-global-styles-sidebar__navigator-provider {
|
|
1389
|
+
display: flex;
|
|
1390
|
+
flex-direction: column;
|
|
1391
|
+
flex: 1;
|
|
1392
|
+
}
|
|
1393
|
+
.edit-site-global-styles-sidebar__navigator-screen {
|
|
1394
|
+
flex: 1;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1304
1397
|
.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon {
|
|
1305
1398
|
margin-left: 0;
|
|
1306
1399
|
}
|
|
@@ -1309,18 +1402,6 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1309
1402
|
margin-left: auto;
|
|
1310
1403
|
}
|
|
1311
1404
|
|
|
1312
|
-
.edit-site-global-styles-sidebar__border-controls-row {
|
|
1313
|
-
display: flex;
|
|
1314
|
-
justify-content: space-between;
|
|
1315
|
-
margin-bottom: 12px;
|
|
1316
|
-
}
|
|
1317
|
-
.edit-site-global-styles-sidebar__border-controls-row > * {
|
|
1318
|
-
width: calc(50% - 8px);
|
|
1319
|
-
}
|
|
1320
|
-
.edit-site-global-styles-sidebar__border-controls-row .components-border-style-control__buttons {
|
|
1321
|
-
margin-bottom: 0;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
1405
|
.edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
|
|
1325
1406
|
font-size: 15.6px;
|
|
1326
1407
|
font-weight: 500;
|
|
@@ -1335,6 +1416,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1335
1416
|
border: 0;
|
|
1336
1417
|
}
|
|
1337
1418
|
|
|
1419
|
+
.edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
|
|
1420
|
+
grid-column: span 1;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1338
1423
|
.edit-site-global-styles-sidebar__blocks-group {
|
|
1339
1424
|
padding-top: 24px;
|
|
1340
1425
|
border-top: 1px solid #e0e0e0;
|
|
@@ -1706,11 +1791,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
1706
1791
|
display: flex;
|
|
1707
1792
|
justify-content: flex-end;
|
|
1708
1793
|
}
|
|
1709
|
-
@media (min-width: 782px) {
|
|
1710
|
-
.edit-site-editor__inserter-panel-header {
|
|
1711
|
-
display: none;
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
1794
|
|
|
1715
1795
|
.edit-site-editor__inserter-panel-content,
|
|
1716
1796
|
.edit-site-editor__list-view-panel-content {
|