@ckeditor/ckeditor5-show-blocks 0.0.0-nightly-20230629.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 ADDED
@@ -0,0 +1,4 @@
1
+ Changelog
2
+ =========
3
+
4
+ All changes in the package are documented in the CKEditor 5 repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
package/LICENSE.md ADDED
@@ -0,0 +1,17 @@
1
+ Software License Agreement
2
+ ==========================
3
+
4
+ **CKEditor 5 show blocks feature** – https://github.com/ckeditor/packages/ckeditor5-show-blocks <br>
5
+ Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
+
7
+ Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
8
+
9
+ Sources of Intellectual Property Included in CKEditor
10
+ -----------------------------------------------------
11
+
12
+ Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
13
+
14
+ Trademarks
15
+ ----------
16
+
17
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ CKEditor 5 show blocks feature
2
+ ================================
3
+
4
+ [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-show-blocks.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-show-blocks)
5
+ [![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
6
+ [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
7
+ ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-show-blocks)
8
+
9
+ This package contains the show blocks feature for CKEditor 5. It allows to visualize all block-level elements by surrounding them with an outline and displaying their element name at the top-left.
10
+
11
+ ## Demo
12
+
13
+ Check out the [demo in the show blocks feature](https://ckeditor.com/docs/ckeditor5/latest/features/show-blocks.html#demo) guide.
14
+
15
+ ## Documentation
16
+
17
+ See the [`@ckeditor/ckeditor5-show-blocks` package](https://ckeditor.com/docs/ckeditor5/latest/api/show-blocks.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Show blocks](https://ckeditor.com/docs/ckeditor5/latest/features/show-blocks.html) feature guide.
18
+
19
+ ## License
20
+
21
+ Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license).
@@ -0,0 +1,18 @@
1
+ {
2
+ "plugins": [
3
+ {
4
+ "name": "Show blocks",
5
+ "className": "ShowBlocks",
6
+ "description": "Allows to display the HTML element names of content blocks.",
7
+ "docs": "features/show-blocks.html",
8
+ "path": "src/showblocks.js",
9
+ "uiComponents": [
10
+ {
11
+ "type": "Button",
12
+ "name": "showBlocks",
13
+ "iconPath": "theme/icons/show-blocks.svg"
14
+ }
15
+ ]
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "Show blocks": "The label of the show blocks toolbar button."
3
+ }
@@ -0,0 +1,21 @@
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language: \n"
16
+ "Language-Team: \n"
17
+ "Plural-Forms: \n"
18
+
19
+ msgctxt "The label of the show blocks toolbar button."
20
+ msgid "Show blocks"
21
+ msgstr "Show blocks"
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@ckeditor/ckeditor5-show-blocks",
3
+ "version": "0.0.0-nightly-20230629.0",
4
+ "description": "Show blocks feature for CKEditor 5.",
5
+ "keywords": [
6
+ "ckeditor",
7
+ "ckeditor5",
8
+ "ckeditor 5",
9
+ "ckeditor5-feature",
10
+ "ckeditor5-plugin",
11
+ "WYSIWYG",
12
+ "text",
13
+ "rich-text",
14
+ "richtext",
15
+ "ckeditor",
16
+ "editor",
17
+ "editing",
18
+ "html",
19
+ "contentEditable",
20
+ "blocks",
21
+ "content-blocks",
22
+ "show-blocks"
23
+ ],
24
+ "main": "src/index.js",
25
+ "dependencies": {
26
+ "ckeditor5": "0.0.0-nightly-20230629.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230629.0"
28
+ },
29
+ "engines": {
30
+ "node": ">=16.0.0",
31
+ "npm": ">=5.7.1"
32
+ },
33
+ "author": "CKSource (http://cksource.com/)",
34
+ "license": "GPL-2.0-or-later",
35
+ "homepage": "https://ckeditor.com/ckeditor-5",
36
+ "bugs": "https://github.com/ckeditor/ckeditor5/issues",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/ckeditor/ckeditor5.git",
40
+ "directory": "packages/ckeditor5-show-blocks"
41
+ },
42
+ "files": [
43
+ "lang",
44
+ "src/**/*.js",
45
+ "src/**/*.d.ts",
46
+ "theme",
47
+ "ckeditor5-metadata.json",
48
+ "CHANGELOG.md"
49
+ ],
50
+ "types": "src/index.d.ts"
51
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { ShowBlocks, ShowBlocksCommand, ShowBlocksEditing, ShowBlocksUI } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [ShowBlocks.pluginName]: ShowBlocks;
9
+ [ShowBlocksEditing.pluginName]: ShowBlocksEditing;
10
+ [ShowBlocksUI.pluginName]: ShowBlocksUI;
11
+ }
12
+ interface CommandsMap {
13
+ showBlocks: ShowBlocksCommand;
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ export {};
package/src/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks
7
+ */
8
+ export { default as ShowBlocks } from './showblocks';
9
+ export { default as ShowBlocksCommand } from './showblockscommand';
10
+ export { default as ShowBlocksEditing } from './showblocksediting';
11
+ export { default as ShowBlocksUI } from './showblocksui';
12
+ import './augmentation';
package/src/index.js ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks
7
+ */
8
+ export { default as ShowBlocks } from './showblocks';
9
+ export { default as ShowBlocksCommand } from './showblockscommand';
10
+ export { default as ShowBlocksEditing } from './showblocksediting';
11
+ export { default as ShowBlocksUI } from './showblocksui';
12
+ import './augmentation';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblocks
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import ShowBlocksEditing from './showblocksediting';
10
+ import ShowBlocksUI from './showblocksui';
11
+ /**
12
+ * The show blocks feature.
13
+ *
14
+ * For a detailed overview, check the {@glink features/show-blocks Show blocks} feature guide.
15
+ */
16
+ export default class ShowBlocks extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "ShowBlocks";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly [typeof ShowBlocksEditing, typeof ShowBlocksUI];
25
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblocks
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import ShowBlocksEditing from './showblocksediting';
10
+ import ShowBlocksUI from './showblocksui';
11
+ /**
12
+ * The show blocks feature.
13
+ *
14
+ * For a detailed overview, check the {@glink features/show-blocks Show blocks} feature guide.
15
+ */
16
+ export default class ShowBlocks extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName() {
21
+ return 'ShowBlocks';
22
+ }
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get requires() {
27
+ return [ShowBlocksEditing, ShowBlocksUI];
28
+ }
29
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblockscommand
7
+ */
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * The show blocks command.
11
+ *
12
+ * Displays the HTML element names for content blocks.
13
+ */
14
+ export default class ShowBlocksCommand extends Command {
15
+ /**
16
+ * Flag indicating whether the command is active, i.e. content blocks are displayed.
17
+ */
18
+ value: boolean;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ constructor(editor: Editor);
23
+ /**
24
+ * Toggles the visibility of content blocks.
25
+ */
26
+ execute(): void;
27
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblockscommand
7
+ */
8
+ import { Command } from 'ckeditor5/src/core';
9
+ /**
10
+ * The show blocks command.
11
+ *
12
+ * Displays the HTML element names for content blocks.
13
+ */
14
+ export default class ShowBlocksCommand extends Command {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ constructor(editor) {
19
+ super(editor);
20
+ // It does not affect data so should be enabled in read-only mode.
21
+ this.affectsData = false;
22
+ this.value = false;
23
+ }
24
+ /**
25
+ * Toggles the visibility of content blocks.
26
+ */
27
+ execute() {
28
+ const CLASS_NAME = 'ck-show-blocks';
29
+ const view = this.editor.editing.view;
30
+ view.change(writer => {
31
+ // Multiroot support.
32
+ for (const root of view.document.roots) {
33
+ if (!root.hasClass(CLASS_NAME)) {
34
+ writer.addClass(CLASS_NAME, root);
35
+ this.value = true;
36
+ }
37
+ else {
38
+ writer.removeClass(CLASS_NAME, root);
39
+ this.value = false;
40
+ }
41
+ }
42
+ });
43
+ }
44
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblocksediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * The show blocks editing plugin.
11
+ */
12
+ export default class ShowBlocksEditing extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): "ShowBlocksEditing";
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ init(): void;
21
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblocksediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import ShowBlocksCommand from './showblockscommand';
10
+ /**
11
+ * The show blocks editing plugin.
12
+ */
13
+ export default class ShowBlocksEditing extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName() {
18
+ return 'ShowBlocksEditing';
19
+ }
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ init() {
24
+ const { editor } = this;
25
+ editor.commands.add('showBlocks', new ShowBlocksCommand(editor));
26
+ }
27
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblocksui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import '../theme/showblocks.css';
10
+ /**
11
+ * The UI plugin of the show blocks feature.
12
+ *
13
+ * It registers the `'showBlocks'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
14
+ * that toggles the visibility of the HTML element names of content blocks.
15
+ */
16
+ export default class ShowBlocksUI extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "ShowBlocksUI";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ init(): void;
25
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module show-blocks/showblocksui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { ButtonView } from 'ckeditor5/src/ui';
10
+ import showBlocksIcon from '../theme/icons/show-blocks.svg';
11
+ import '../theme/showblocks.css';
12
+ /**
13
+ * The UI plugin of the show blocks feature.
14
+ *
15
+ * It registers the `'showBlocks'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
16
+ * that toggles the visibility of the HTML element names of content blocks.
17
+ */
18
+ export default class ShowBlocksUI extends Plugin {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get pluginName() {
23
+ return 'ShowBlocksUI';
24
+ }
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ init() {
29
+ const editor = this.editor;
30
+ editor.ui.componentFactory.add('showBlocks', locale => {
31
+ const command = editor.commands.get('showBlocks');
32
+ const view = new ButtonView(locale);
33
+ const t = locale.t;
34
+ view.set({
35
+ label: t('Show blocks'),
36
+ icon: showBlocksIcon,
37
+ tooltip: true
38
+ });
39
+ view.bind('isOn').to(command, 'value', command, 'isEnabled', (value, isEnabled) => value && isEnabled);
40
+ view.bind('isEnabled').to(command);
41
+ // Execute the command.
42
+ this.listenTo(view, 'execute', () => {
43
+ editor.execute('showBlocks');
44
+ editor.editing.view.focus();
45
+ });
46
+ return view;
47
+ });
48
+ }
49
+ }
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m6.395 9.196 2.545-.007V6.498a.598.598 0 0 1 .598-.598h.299a.598.598 0 0 1 .598.598v6.877a.598.598 0 0 1-.598.598h-.299a.598.598 0 0 1-.598-.598v-2.691l-2.545.007v2.691a.598.598 0 0 1-.598.598h-.299a.598.598 0 0 1-.598-.598V6.505a.598.598 0 0 1 .598-.598h.299a.598.598 0 0 1 .598.598v2.691Z"/><path d="M15.094 13.417V6.462a.562.562 0 0 0-.562-.562h-.782a1 1 0 0 0-.39.08l-1.017.43a.562.562 0 0 0-.343.517v.197c0 .4.406.67.775.519l.819-.337v6.111c0 .31.251.562.561.562h.377c.31 0 .562-.251.562-.562Z"/><path d="M0 15.417v1.5h1.5v-1.5H0Z"/><path d="M18.5 15.417v1.5H20v-1.5h-1.5Z"/><path d="M18.5 12.333v1.5H20v-1.5h-1.5Z"/><path d="M18.5 9.25v1.5H20v-1.5h-1.5Z"/><path d="M18.5 6.167v1.5H20v-1.5h-1.5Z"/><path d="M0 18.5v.5a1 1 0 0 0 1 1h.5v-1.5H0Z"/><path d="M3.083 18.5V20h1.5v-1.5h-1.5Z"/><path d="M6.167 18.5V20h1.5v-1.5h-1.5Z"/><path d="M9.25 18.5V20h1.5v-1.5h-1.5Z"/><path d="M12.333 18.5V20h1.5v-1.5h-1.5Z"/><path d="M15.417 18.5V20h1.5v-1.5h-1.5Z"/><path d="M18.5 18.5V20h.5a1 1 0 0 0 1-1v-.5h-1.5Z"/><path clip-rule="evenodd" d="M0 1a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v3.583h-1.5V1.5h-17v12.333H0V1Z"/></svg>
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
7
+
8
+ :root {
9
+ --ck-show-blocks-border-color: hsl(0, 0%, 46%);
10
+ }
11
+
12
+ @define-mixin block-name-background $text {
13
+ &:not(.ck-widget_selected):not(.ck-widget:hover) {
14
+ outline: 1px dashed var(--ck-show-blocks-border-color);
15
+ }
16
+
17
+ /* Some props are duplicated for both 'ltr' and 'rtl' directions for their higher specificity.
18
+ See https://github.com/ckeditor/ckeditor5/issues/14435 for details. */
19
+ @mixin ck-dir ltr {
20
+ background-image: url("data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='3' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>$(text)</text></svg>");
21
+ background-position: 1px 1px;
22
+ background-repeat: no-repeat;
23
+ padding-top: 15px;
24
+ }
25
+
26
+ @mixin ck-dir rtl {
27
+ background-image: url("data:image/svg+xml;utf8,<svg width='120' height='12' xmlns='http://www.w3.org/2000/svg' ><text style='paint-order:stroke fill; clip-path: inset(-3px); transform:translate(-2px, 0);' stroke='%23EAEAEA' stroke-width='13' dominant-baseline='middle' fill='black' x='100%' text-anchor='end' y='7' font-size='9px' font-family='Consolas, %22Lucida Console%22, %22Lucida Sans Typewriter%22, %22DejaVu Sans Mono%22, %22Bitstream Vera Sans Mono%22, %22Liberation Mono%22, Monaco, %22Courier New%22, Courier, monospace'>$(text)</text></svg>");
28
+ background-position: calc(100% - 1px) 1px;
29
+ background-repeat: no-repeat;
30
+ padding-top: 15px;
31
+ }
32
+ }
33
+
34
+ .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) {
35
+ & address {
36
+ @mixin block-name-background ADDRESS;
37
+ }
38
+
39
+ & aside {
40
+ @mixin block-name-background ASIDE;
41
+ }
42
+
43
+ & blockquote {
44
+ @mixin block-name-background BLOCKQUOTE;
45
+ }
46
+
47
+ & details {
48
+ @mixin block-name-background DETAILS;
49
+ }
50
+
51
+ & div:not(.ck-widget, .ck-widget *) {
52
+ @mixin block-name-background DIV;
53
+ }
54
+
55
+ & footer {
56
+ @mixin block-name-background FOOTER;
57
+ }
58
+
59
+ & h1 {
60
+ @mixin block-name-background H1;
61
+ }
62
+
63
+ & h2 {
64
+ @mixin block-name-background H2;
65
+ }
66
+
67
+ & h3 {
68
+ @mixin block-name-background H3;
69
+ }
70
+
71
+ & h4 {
72
+ @mixin block-name-background H4;
73
+ }
74
+
75
+ & h5 {
76
+ @mixin block-name-background H5;
77
+ }
78
+
79
+ & h6 {
80
+ @mixin block-name-background H6;
81
+ }
82
+
83
+ & header {
84
+ @mixin block-name-background HEADER;
85
+ }
86
+
87
+ & main {
88
+ @mixin block-name-background MAIN;
89
+ }
90
+
91
+ & nav {
92
+ @mixin block-name-background NAV;
93
+ }
94
+
95
+ & pre {
96
+ @mixin block-name-background PRE;
97
+ }
98
+
99
+ & ol {
100
+ @mixin block-name-background OL;
101
+ }
102
+
103
+ & ul {
104
+ @mixin block-name-background UL;
105
+ }
106
+
107
+ & p {
108
+ @mixin block-name-background P;
109
+ }
110
+
111
+ & section {
112
+ @mixin block-name-background SECTION;
113
+ }
114
+
115
+ & :where(figure.image, figure.table) figcaption {
116
+ @mixin block-name-background FIGCAPTION;
117
+ }
118
+ }