diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
commit | a415c29efee45520ae252d2aa28f1083a521cd7b (patch) | |
tree | f4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-includes/blocks/paragraph | |
parent | Initial commit. (diff) | |
download | wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip |
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/blocks/paragraph')
-rw-r--r-- | wp-includes/blocks/paragraph/block.json | 73 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/editor-rtl.css | 15 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/editor-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/editor.css | 15 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/editor.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/style-rtl.css | 46 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/style-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/style.css | 46 | ||||
-rw-r--r-- | wp-includes/blocks/paragraph/style.min.css | 1 |
9 files changed, 199 insertions, 0 deletions
diff --git a/wp-includes/blocks/paragraph/block.json b/wp-includes/blocks/paragraph/block.json new file mode 100644 index 0000000..85f56f4 --- /dev/null +++ b/wp-includes/blocks/paragraph/block.json @@ -0,0 +1,73 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "core/paragraph", + "title": "Paragraph", + "category": "text", + "description": "Start with the basic building block of all narrative.", + "keywords": [ "text" ], + "textdomain": "default", + "usesContext": [ "postId" ], + "attributes": { + "align": { + "type": "string" + }, + "content": { + "type": "string", + "source": "html", + "selector": "p", + "default": "", + "__experimentalRole": "content" + }, + "dropCap": { + "type": "boolean", + "default": false + }, + "placeholder": { + "type": "string" + }, + "direction": { + "type": "string", + "enum": [ "ltr", "rtl" ] + } + }, + "supports": { + "anchor": true, + "className": false, + "color": { + "gradients": true, + "link": true, + "__experimentalDefaultControls": { + "background": true, + "text": true + } + }, + "__experimentalConnections": true, + "spacing": { + "margin": true, + "padding": true, + "__experimentalDefaultControls": { + "margin": false, + "padding": false + } + }, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalTextDecoration": true, + "__experimentalFontStyle": true, + "__experimentalFontWeight": true, + "__experimentalLetterSpacing": true, + "__experimentalTextTransform": true, + "__experimentalWritingMode": true, + "__experimentalDefaultControls": { + "fontSize": true + } + }, + "__experimentalSelector": "p", + "__unstablePasteTextInline": true + }, + "editorStyle": "wp-block-paragraph-editor", + "style": "wp-block-paragraph" +} diff --git a/wp-includes/blocks/paragraph/editor-rtl.css b/wp-includes/blocks/paragraph/editor-rtl.css new file mode 100644 index 0000000..335deb0 --- /dev/null +++ b/wp-includes/blocks/paragraph/editor-rtl.css @@ -0,0 +1,15 @@ +.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{ + min-height:auto !important; +} + +.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{ + opacity:1; +} + +.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{ + opacity:0; +} + +.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{ + rotate:180deg; +}
\ No newline at end of file diff --git a/wp-includes/blocks/paragraph/editor-rtl.min.css b/wp-includes/blocks/paragraph/editor-rtl.min.css new file mode 100644 index 0000000..97cee94 --- /dev/null +++ b/wp-includes/blocks/paragraph/editor-rtl.min.css @@ -0,0 +1 @@ +.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}
\ No newline at end of file diff --git a/wp-includes/blocks/paragraph/editor.css b/wp-includes/blocks/paragraph/editor.css new file mode 100644 index 0000000..335deb0 --- /dev/null +++ b/wp-includes/blocks/paragraph/editor.css @@ -0,0 +1,15 @@ +.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{ + min-height:auto !important; +} + +.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{ + opacity:1; +} + +.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{ + opacity:0; +} + +.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{ + rotate:180deg; +}
\ No newline at end of file diff --git a/wp-includes/blocks/paragraph/editor.min.css b/wp-includes/blocks/paragraph/editor.min.css new file mode 100644 index 0000000..97cee94 --- /dev/null +++ b/wp-includes/blocks/paragraph/editor.min.css @@ -0,0 +1 @@ +.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.block-editor-block-list__block[data-empty=true] [data-rich-text-placeholder]{opacity:1}.block-editor-block-list__block[data-empty=true]+.block-editor-block-list__block[data-empty=true]:not([data-custom-placeholder=true]) [data-rich-text-placeholder]{opacity:0}.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-left[style*="writing-mode: vertical-lr"],.block-editor-block-list__block[data-type="core/paragraph"].has-text-align-right[style*="writing-mode: vertical-rl"]{rotate:180deg}
\ No newline at end of file diff --git a/wp-includes/blocks/paragraph/style-rtl.css b/wp-includes/blocks/paragraph/style-rtl.css new file mode 100644 index 0000000..b420b54 --- /dev/null +++ b/wp-includes/blocks/paragraph/style-rtl.css @@ -0,0 +1,46 @@ +.is-small-text{ + font-size:.875em; +} + +.is-regular-text{ + font-size:1em; +} + +.is-large-text{ + font-size:2.25em; +} + +.is-larger-text{ + font-size:3em; +} + +.has-drop-cap:not(:focus):first-letter{ + float:right; + font-size:8.4em; + font-style:normal; + font-weight:100; + line-height:.68; + margin:.05em 0 0 .1em; + text-transform:uppercase; +} + +body.rtl .has-drop-cap:not(:focus):first-letter{ + float:none; + margin-right:.1em; +} + +p.has-drop-cap.has-background{ + overflow:hidden; +} + +p.has-background{ + padding:1.25em 2.375em; +} + +:where(p.has-text-color:not(.has-link-color)) a{ + color:inherit; +} + +p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{ + rotate:180deg; +}
\ No newline at end of file diff --git a/wp-includes/blocks/paragraph/style-rtl.min.css b/wp-includes/blocks/paragraph/style-rtl.min.css new file mode 100644 index 0000000..d48810f --- /dev/null +++ b/wp-includes/blocks/paragraph/style-rtl.min.css @@ -0,0 +1 @@ +.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em 0 0 .1em;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-right:.1em}p.has-drop-cap.has-background{overflow:hidden}p.has-background{padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}
\ No newline at end of file diff --git a/wp-includes/blocks/paragraph/style.css b/wp-includes/blocks/paragraph/style.css new file mode 100644 index 0000000..849c89a --- /dev/null +++ b/wp-includes/blocks/paragraph/style.css @@ -0,0 +1,46 @@ +.is-small-text{ + font-size:.875em; +} + +.is-regular-text{ + font-size:1em; +} + +.is-large-text{ + font-size:2.25em; +} + +.is-larger-text{ + font-size:3em; +} + +.has-drop-cap:not(:focus):first-letter{ + float:left; + font-size:8.4em; + font-style:normal; + font-weight:100; + line-height:.68; + margin:.05em .1em 0 0; + text-transform:uppercase; +} + +body.rtl .has-drop-cap:not(:focus):first-letter{ + float:none; + margin-left:.1em; +} + +p.has-drop-cap.has-background{ + overflow:hidden; +} + +p.has-background{ + padding:1.25em 2.375em; +} + +:where(p.has-text-color:not(.has-link-color)) a{ + color:inherit; +} + +p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{ + rotate:180deg; +}
\ No newline at end of file diff --git a/wp-includes/blocks/paragraph/style.min.css b/wp-includes/blocks/paragraph/style.min.css new file mode 100644 index 0000000..5a0f9cb --- /dev/null +++ b/wp-includes/blocks/paragraph/style.min.css @@ -0,0 +1 @@ +.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}p.has-background{padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}
\ No newline at end of file |