Files
wp-asciiplayer/src/editor.css
T
LamGC 85e5ffa0ec
Build and WordPress integration / PHP 7.4 syntax and regression tests (push) Canceled after 0s
Build and WordPress integration / PHP 8.3 syntax and regression tests (push) Canceled after 0s
Build and WordPress integration / WordPress 6.3 / PHP 7.4 (push) Canceled after 0s
Build and WordPress integration / WordPress latest / PHP 8.2 (push) Canceled after 0s
Refresh wp-asciiplayer with native block editor playback (#36)
* Refresh player with native block editor preview and local assets

Preserve shortcode rendering, normalize options, bundle the player locally,
and add reproducible packaging and WordPress integration tests.

* Fix emitted frontend boot and verify bundled runtime initialization

* Record verified WordPress 7.1.3 compatibility

* Use WordPress readme major-version compatibility format

* Add responsive player layout, captions and native terminal sizing

* Keep editor caption geometry stable during block selection

* Respect WordPress editor gutters with border-box sizing

* Improve automatic previews and toolbar terminal sizing (1.2.1)

* Show native cast dimensions and add Media Library recordings (1.2.2)

* Fix Media Library test storage and scope sidebar selectors

* Document bounded temporary-upload stream exceptions

* Move block explanations into collapsed sidebar help (1.2.3)

* Add bundled English and Simplified Chinese UI translations (1.1.0-dev)

* Use native RichText labels and supported Chinese HTML language tags in locale tests
2026-10-14 15:56:05 +08:00

76 lines
2.3 KiB
CSS

.asciiplayer-editor {
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 4px;
padding: 16px;
}
.asciiplayer-editor__source form {
display: flex;
align-items: flex-end;
gap: 12px;
}
.asciiplayer-editor__source .components-base-control {
flex: 1;
margin-bottom: 0;
}
.asciiplayer-editor__source .components-base-control__field {
margin-bottom: 0;
}
.asciiplayer-editor__privacy,
.asciiplayer-editor__hint {
font-size: 12px;
line-height: 1.5;
color: #50575e;
}
.asciiplayer-editor__preview {
margin-top: 16px;
}
/*! rtl:begin:ignore */
.asciiplayer-editor__player {
min-width: 0;
text-align: left;
}
/*! rtl:end:ignore */
.asciiplayer-editor__status {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
}
@media (max-width: 480px) {
.asciiplayer-editor__source form {
align-items: stretch;
flex-direction: column;
}
}
.asciiplayer-editor > .asciiplayer-figure { margin-top: 16px; }
.asciiplayer-editor .asciiplayer-editor__preview { margin-top: 0; }
.asciiplayer-example { margin: 0; background: #121314; color: #eee; border-radius: 5px; overflow: hidden; }
.asciiplayer-example__terminal { padding: 24px 16px; font: 14px/1.7 monospace; white-space: pre; }
.asciiplayer-example__terminal > span:first-child { color: #a9da76; }
.asciiplayer-example__controls { padding: 8px 16px; background: #222; font: 12px/1.5 monospace; }
.asciiplayer-example figcaption { padding: 8px; background: #fff; color: #333; text-align: center; font-size: 12px; }
/* Keep an empty caption's footprint stable when another block is selected.
* Removing it on pointerdown can move the next block's button before pointerup. */
.asciiplayer-editor .asciiplayer-figure > figcaption { min-height: 1.5em; }
.asciiplayer-editor .asciiplayer-caption-empty { visibility: hidden; }
.asciiplayer-editor__dimension-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.asciiplayer-editor__dimension-fields input { max-width: 100%; }
.asciiplayer-terminal-popover__content { box-sizing: border-box; width: 300px; max-width: calc(100vw - 32px); padding: 16px; }
.asciiplayer-terminal-popover__content > p:first-child { margin-top: 0; }
.asciiplayer-terminal-popover__content > .components-button { margin-top: 8px; margin-right: 8px; }
.asciiplayer-editor__source .asciiplayer-editor__media { margin-top: 12px; }