summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/code
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/code')
-rw-r--r--wp-includes/blocks/code/block.json62
-rw-r--r--wp-includes/blocks/code/editor-rtl.css3
-rw-r--r--wp-includes/blocks/code/editor-rtl.min.css1
-rw-r--r--wp-includes/blocks/code/editor.css3
-rw-r--r--wp-includes/blocks/code/editor.min.css1
-rw-r--r--wp-includes/blocks/code/style-rtl.css9
-rw-r--r--wp-includes/blocks/code/style-rtl.min.css1
-rw-r--r--wp-includes/blocks/code/style.css9
-rw-r--r--wp-includes/blocks/code/style.min.css1
-rw-r--r--wp-includes/blocks/code/theme-rtl.css6
-rw-r--r--wp-includes/blocks/code/theme-rtl.min.css1
-rw-r--r--wp-includes/blocks/code/theme.css6
-rw-r--r--wp-includes/blocks/code/theme.min.css1
13 files changed, 104 insertions, 0 deletions
diff --git a/wp-includes/blocks/code/block.json b/wp-includes/blocks/code/block.json
new file mode 100644
index 0000000..80df74b
--- /dev/null
+++ b/wp-includes/blocks/code/block.json
@@ -0,0 +1,62 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 3,
+ "name": "core/code",
+ "title": "Code",
+ "category": "text",
+ "description": "Display code snippets that respect your spacing and tabs.",
+ "textdomain": "default",
+ "attributes": {
+ "content": {
+ "type": "string",
+ "source": "html",
+ "selector": "code",
+ "__unstablePreserveWhiteSpace": true
+ }
+ },
+ "supports": {
+ "align": [ "wide" ],
+ "anchor": true,
+ "typography": {
+ "fontSize": true,
+ "lineHeight": true,
+ "__experimentalFontFamily": true,
+ "__experimentalFontWeight": true,
+ "__experimentalFontStyle": true,
+ "__experimentalTextTransform": true,
+ "__experimentalTextDecoration": true,
+ "__experimentalLetterSpacing": true,
+ "__experimentalDefaultControls": {
+ "fontSize": true
+ }
+ },
+ "spacing": {
+ "margin": [ "top", "bottom" ],
+ "padding": true,
+ "__experimentalDefaultControls": {
+ "margin": false,
+ "padding": false
+ }
+ },
+ "__experimentalBorder": {
+ "radius": true,
+ "color": true,
+ "width": true,
+ "style": true,
+ "__experimentalDefaultControls": {
+ "width": true,
+ "color": true
+ }
+ },
+ "color": {
+ "text": true,
+ "background": true,
+ "gradients": true,
+ "__experimentalDefaultControls": {
+ "background": true,
+ "text": true
+ }
+ }
+ },
+ "style": "wp-block-code"
+}
diff --git a/wp-includes/blocks/code/editor-rtl.css b/wp-includes/blocks/code/editor-rtl.css
new file mode 100644
index 0000000..4f771c6
--- /dev/null
+++ b/wp-includes/blocks/code/editor-rtl.css
@@ -0,0 +1,3 @@
+.wp-block-code code{
+ background:none;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/code/editor-rtl.min.css b/wp-includes/blocks/code/editor-rtl.min.css
new file mode 100644
index 0000000..83ce9e1
--- /dev/null
+++ b/wp-includes/blocks/code/editor-rtl.min.css
@@ -0,0 +1 @@
+.wp-block-code code{background:none} \ No newline at end of file
diff --git a/wp-includes/blocks/code/editor.css b/wp-includes/blocks/code/editor.css
new file mode 100644
index 0000000..4f771c6
--- /dev/null
+++ b/wp-includes/blocks/code/editor.css
@@ -0,0 +1,3 @@
+.wp-block-code code{
+ background:none;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/code/editor.min.css b/wp-includes/blocks/code/editor.min.css
new file mode 100644
index 0000000..83ce9e1
--- /dev/null
+++ b/wp-includes/blocks/code/editor.min.css
@@ -0,0 +1 @@
+.wp-block-code code{background:none} \ No newline at end of file
diff --git a/wp-includes/blocks/code/style-rtl.css b/wp-includes/blocks/code/style-rtl.css
new file mode 100644
index 0000000..bfb5909
--- /dev/null
+++ b/wp-includes/blocks/code/style-rtl.css
@@ -0,0 +1,9 @@
+.wp-block-code{
+ box-sizing:border-box;
+}
+.wp-block-code code{
+ display:block;
+ font-family:inherit;
+ overflow-wrap:break-word;
+ white-space:pre-wrap;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/code/style-rtl.min.css b/wp-includes/blocks/code/style-rtl.min.css
new file mode 100644
index 0000000..3ef3f33
--- /dev/null
+++ b/wp-includes/blocks/code/style-rtl.min.css
@@ -0,0 +1 @@
+.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap} \ No newline at end of file
diff --git a/wp-includes/blocks/code/style.css b/wp-includes/blocks/code/style.css
new file mode 100644
index 0000000..bfb5909
--- /dev/null
+++ b/wp-includes/blocks/code/style.css
@@ -0,0 +1,9 @@
+.wp-block-code{
+ box-sizing:border-box;
+}
+.wp-block-code code{
+ display:block;
+ font-family:inherit;
+ overflow-wrap:break-word;
+ white-space:pre-wrap;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/code/style.min.css b/wp-includes/blocks/code/style.min.css
new file mode 100644
index 0000000..3ef3f33
--- /dev/null
+++ b/wp-includes/blocks/code/style.min.css
@@ -0,0 +1 @@
+.wp-block-code{box-sizing:border-box}.wp-block-code code{display:block;font-family:inherit;overflow-wrap:break-word;white-space:pre-wrap} \ No newline at end of file
diff --git a/wp-includes/blocks/code/theme-rtl.css b/wp-includes/blocks/code/theme-rtl.css
new file mode 100644
index 0000000..623f424
--- /dev/null
+++ b/wp-includes/blocks/code/theme-rtl.css
@@ -0,0 +1,6 @@
+.wp-block-code{
+ border:1px solid #ccc;
+ border-radius:4px;
+ font-family:Menlo,Consolas,monaco,monospace;
+ padding:.8em 1em;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/code/theme-rtl.min.css b/wp-includes/blocks/code/theme-rtl.min.css
new file mode 100644
index 0000000..4d73f70
--- /dev/null
+++ b/wp-includes/blocks/code/theme-rtl.min.css
@@ -0,0 +1 @@
+.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em} \ No newline at end of file
diff --git a/wp-includes/blocks/code/theme.css b/wp-includes/blocks/code/theme.css
new file mode 100644
index 0000000..623f424
--- /dev/null
+++ b/wp-includes/blocks/code/theme.css
@@ -0,0 +1,6 @@
+.wp-block-code{
+ border:1px solid #ccc;
+ border-radius:4px;
+ font-family:Menlo,Consolas,monaco,monospace;
+ padding:.8em 1em;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/code/theme.min.css b/wp-includes/blocks/code/theme.min.css
new file mode 100644
index 0000000..4d73f70
--- /dev/null
+++ b/wp-includes/blocks/code/theme.min.css
@@ -0,0 +1 @@
+.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em} \ No newline at end of file