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/button | |
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 '')
-rw-r--r-- | wp-includes/blocks/button/block.json | 129 | ||||
-rw-r--r-- | wp-includes/blocks/button/editor-rtl.css | 92 | ||||
-rw-r--r-- | wp-includes/blocks/button/editor-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/button/editor.css | 92 | ||||
-rw-r--r-- | wp-includes/blocks/button/editor.min.css | 2 | ||||
-rw-r--r-- | wp-includes/blocks/button/style-rtl.css | 110 | ||||
-rw-r--r-- | wp-includes/blocks/button/style-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/button/style.css | 110 | ||||
-rw-r--r-- | wp-includes/blocks/button/style.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/block.json | 45 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/editor-rtl.css | 34 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/editor-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/editor.css | 34 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/editor.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/style-rtl.css | 49 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/style-rtl.min.css | 1 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/style.css | 49 | ||||
-rw-r--r-- | wp-includes/blocks/buttons/style.min.css | 1 |
18 files changed, 753 insertions, 0 deletions
diff --git a/wp-includes/blocks/button/block.json b/wp-includes/blocks/button/block.json new file mode 100644 index 0000000..eec327b --- /dev/null +++ b/wp-includes/blocks/button/block.json @@ -0,0 +1,129 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "core/button", + "title": "Button", + "category": "design", + "parent": [ "core/buttons" ], + "description": "Prompt visitors to take action with a button-style link.", + "keywords": [ "link" ], + "textdomain": "default", + "attributes": { + "tagName": { + "type": "string", + "enum": [ "a", "button" ], + "default": "a" + }, + "type": { + "type": "string", + "default": "button" + }, + "textAlign": { + "type": "string" + }, + "url": { + "type": "string", + "source": "attribute", + "selector": "a", + "attribute": "href", + "__experimentalRole": "content" + }, + "title": { + "type": "string", + "source": "attribute", + "selector": "a,button", + "attribute": "title", + "__experimentalRole": "content" + }, + "text": { + "type": "string", + "source": "html", + "selector": "a,button", + "__experimentalRole": "content" + }, + "linkTarget": { + "type": "string", + "source": "attribute", + "selector": "a", + "attribute": "target", + "__experimentalRole": "content" + }, + "rel": { + "type": "string", + "source": "attribute", + "selector": "a", + "attribute": "rel", + "__experimentalRole": "content" + }, + "placeholder": { + "type": "string" + }, + "backgroundColor": { + "type": "string" + }, + "textColor": { + "type": "string" + }, + "gradient": { + "type": "string" + }, + "width": { + "type": "number" + } + }, + "supports": { + "anchor": true, + "align": false, + "alignWide": false, + "color": { + "__experimentalSkipSerialization": true, + "gradients": true, + "__experimentalDefaultControls": { + "background": true, + "text": true + } + }, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalTextDecoration": true, + "__experimentalLetterSpacing": true, + "__experimentalDefaultControls": { + "fontSize": true + } + }, + "reusable": false, + "shadow": true, + "spacing": { + "__experimentalSkipSerialization": true, + "padding": [ "horizontal", "vertical" ], + "__experimentalDefaultControls": { + "padding": true + } + }, + "__experimentalBorder": { + "color": true, + "radius": true, + "style": true, + "width": true, + "__experimentalSkipSerialization": true, + "__experimentalDefaultControls": { + "color": true, + "radius": true, + "style": true, + "width": true + } + }, + "__experimentalSelector": ".wp-block-button .wp-block-button__link" + }, + "styles": [ + { "name": "fill", "label": "Fill", "isDefault": true }, + { "name": "outline", "label": "Outline" } + ], + "editorStyle": "wp-block-button-editor", + "style": "wp-block-button" +} diff --git a/wp-includes/blocks/button/editor-rtl.css b/wp-includes/blocks/button/editor-rtl.css new file mode 100644 index 0000000..b44770c --- /dev/null +++ b/wp-includes/blocks/button/editor-rtl.css @@ -0,0 +1,92 @@ +.wp-block[data-align=center]>.wp-block-button{ + margin-left:auto; + margin-right:auto; + text-align:center; +} + +.wp-block[data-align=right]>.wp-block-button{ + text-align:right; +} + +.wp-block-button{ + cursor:text; + position:relative; +} +.wp-block-button:focus{ + box-shadow:0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); + outline:2px solid transparent; + outline-offset:-2px; +} +.wp-block-button[data-rich-text-placeholder]:after{ + opacity:.8; +} + +.wp-block-button__inline-link{ + color:#757575; + height:0; + max-width:290px; + overflow:hidden; +} +.wp-block-button__inline-link-input__suggestions{ + max-width:290px; +} +@media (min-width:782px){ + .wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{ + max-width:260px; + } +} +@media (min-width:960px){ + .wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{ + max-width:290px; + } +} +.is-selected .wp-block-button__inline-link{ + height:auto; + overflow:visible; +} + +.wp-button-label__width .components-button-group{ + display:block; +} +.wp-button-label__width .components-base-control__field{ + margin-bottom:12px; +} + +div[data-type="core/button"]{ + display:table; +} + +.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{ + text-decoration:inherit; +} + +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){ + border-width:initial; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){ + border-top-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){ + border-left-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){ + border-bottom-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){ + border-right-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){ + border-width:initial; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){ + border-top-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){ + border-left-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){ + border-bottom-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){ + border-right-width:medium; +}
\ No newline at end of file diff --git a/wp-includes/blocks/button/editor-rtl.min.css b/wp-includes/blocks/button/editor-rtl.min.css new file mode 100644 index 0000000..70b3555 --- /dev/null +++ b/wp-includes/blocks/button/editor-rtl.min.css @@ -0,0 +1 @@ +.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;max-width:290px;overflow:hidden}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible}.wp-button-label__width .components-button-group{display:block}.wp-button-label__width .components-base-control__field{margin-bottom:12px}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-right-width:medium}
\ No newline at end of file diff --git a/wp-includes/blocks/button/editor.css b/wp-includes/blocks/button/editor.css new file mode 100644 index 0000000..39d3b86 --- /dev/null +++ b/wp-includes/blocks/button/editor.css @@ -0,0 +1,92 @@ +.wp-block[data-align=center]>.wp-block-button{ + margin-left:auto; + margin-right:auto; + text-align:center; +} + +.wp-block[data-align=right]>.wp-block-button{ + text-align:right; +} + +.wp-block-button{ + cursor:text; + position:relative; +} +.wp-block-button:focus{ + box-shadow:0 0 0 1px #fff, 0 0 0 3px var(--wp-admin-theme-color); + outline:2px solid transparent; + outline-offset:-2px; +} +.wp-block-button[data-rich-text-placeholder]:after{ + opacity:.8; +} + +.wp-block-button__inline-link{ + color:#757575; + height:0; + max-width:290px; + overflow:hidden; +} +.wp-block-button__inline-link-input__suggestions{ + max-width:290px; +} +@media (min-width:782px){ + .wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{ + max-width:260px; + } +} +@media (min-width:960px){ + .wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{ + max-width:290px; + } +} +.is-selected .wp-block-button__inline-link{ + height:auto; + overflow:visible; +} + +.wp-button-label__width .components-button-group{ + display:block; +} +.wp-button-label__width .components-base-control__field{ + margin-bottom:12px; +} + +div[data-type="core/button"]{ + display:table; +} + +.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{ + text-decoration:inherit; +} + +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){ + border-width:initial; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){ + border-top-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){ + border-right-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){ + border-bottom-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){ + border-left-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){ + border-width:initial; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){ + border-top-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){ + border-right-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){ + border-bottom-width:medium; +} +.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){ + border-left-width:medium; +}
\ No newline at end of file diff --git a/wp-includes/blocks/button/editor.min.css b/wp-includes/blocks/button/editor.min.css new file mode 100644 index 0000000..32721ec --- /dev/null +++ b/wp-includes/blocks/button/editor.min.css @@ -0,0 +1,2 @@ +.wp-block[data-align=center]>.wp-block-button{margin-left:auto;margin-right:auto;text-align:center}.wp-block[data-align=right]>.wp-block-button{ + /*!rtl:ignore*/text-align:right}.wp-block-button{cursor:text;position:relative}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;max-width:290px;overflow:hidden}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible}.wp-button-label__width .components-button-group{display:block}.wp-button-label__width .components-base-control__field{margin-bottom:12px}div[data-type="core/button"]{display:table}.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-left-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-right-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.editor-styles-wrapper .wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-left-width:medium}
\ No newline at end of file diff --git a/wp-includes/blocks/button/style-rtl.css b/wp-includes/blocks/button/style-rtl.css new file mode 100644 index 0000000..5e0c72e --- /dev/null +++ b/wp-includes/blocks/button/style-rtl.css @@ -0,0 +1,110 @@ +.wp-block-button__link{ + box-sizing:border-box; + cursor:pointer; + display:inline-block; + text-align:center; + word-break:break-word; +} +.wp-block-button__link.aligncenter{ + text-align:center; +} +.wp-block-button__link.alignright{ + text-align:right; +} + +:where(.wp-block-button__link){ + border-radius:9999px; + box-shadow:none; + padding:calc(.667em + 2px) calc(1.333em + 2px); + text-decoration:none; +} + +.wp-block-button[style*=text-decoration] .wp-block-button__link{ + text-decoration:inherit; +} + +.wp-block-buttons>.wp-block-button.has-custom-width{ + max-width:none; +} +.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{ + width:100%; +} +.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{ + font-size:inherit; +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-25{ + width:calc(25% - var(--wp--style--block-gap, .5em)*.75); +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-50{ + width:calc(50% - var(--wp--style--block-gap, .5em)*.5); +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-75{ + width:calc(75% - var(--wp--style--block-gap, .5em)*.25); +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-100{ + flex-basis:100%; + width:100%; +} + +.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{ + width:25%; +} +.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{ + width:50%; +} +.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{ + width:75%; +} + +.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{ + border-radius:0; +} + +.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{ + border-radius:0 !important; +} + +.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{ + border:2px solid; + padding:.667em 1.333em; +} + +.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){ + color:currentColor; +} + +.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){ + background-color:transparent; + background-image:none; +} + +.wp-block-button .wp-block-button__link:where(.has-border-color){ + border-width:initial; +} +.wp-block-button .wp-block-button__link:where([style*=border-top-color]){ + border-top-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-right-color]){ + border-left-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){ + border-bottom-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-left-color]){ + border-right-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-style]){ + border-width:initial; +} +.wp-block-button .wp-block-button__link:where([style*=border-top-style]){ + border-top-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-right-style]){ + border-left-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){ + border-bottom-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-left-style]){ + border-right-width:medium; +}
\ No newline at end of file diff --git a/wp-includes/blocks/button/style-rtl.min.css b/wp-includes/blocks/button/style-rtl.min.css new file mode 100644 index 0000000..307c048 --- /dev/null +++ b/wp-includes/blocks/button/style-rtl.min.css @@ -0,0 +1 @@ +.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){background-color:transparent;background-image:none}.wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-right-width:medium}
\ No newline at end of file diff --git a/wp-includes/blocks/button/style.css b/wp-includes/blocks/button/style.css new file mode 100644 index 0000000..09a46ed --- /dev/null +++ b/wp-includes/blocks/button/style.css @@ -0,0 +1,110 @@ +.wp-block-button__link{ + box-sizing:border-box; + cursor:pointer; + display:inline-block; + text-align:center; + word-break:break-word; +} +.wp-block-button__link.aligncenter{ + text-align:center; +} +.wp-block-button__link.alignright{ + text-align:right; +} + +:where(.wp-block-button__link){ + border-radius:9999px; + box-shadow:none; + padding:calc(.667em + 2px) calc(1.333em + 2px); + text-decoration:none; +} + +.wp-block-button[style*=text-decoration] .wp-block-button__link{ + text-decoration:inherit; +} + +.wp-block-buttons>.wp-block-button.has-custom-width{ + max-width:none; +} +.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{ + width:100%; +} +.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{ + font-size:inherit; +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-25{ + width:calc(25% - var(--wp--style--block-gap, .5em)*.75); +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-50{ + width:calc(50% - var(--wp--style--block-gap, .5em)*.5); +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-75{ + width:calc(75% - var(--wp--style--block-gap, .5em)*.25); +} +.wp-block-buttons>.wp-block-button.wp-block-button__width-100{ + flex-basis:100%; + width:100%; +} + +.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{ + width:25%; +} +.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{ + width:50%; +} +.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{ + width:75%; +} + +.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{ + border-radius:0; +} + +.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{ + border-radius:0 !important; +} + +.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{ + border:2px solid; + padding:.667em 1.333em; +} + +.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){ + color:currentColor; +} + +.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){ + background-color:transparent; + background-image:none; +} + +.wp-block-button .wp-block-button__link:where(.has-border-color){ + border-width:initial; +} +.wp-block-button .wp-block-button__link:where([style*=border-top-color]){ + border-top-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-right-color]){ + border-right-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){ + border-bottom-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-left-color]){ + border-left-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-style]){ + border-width:initial; +} +.wp-block-button .wp-block-button__link:where([style*=border-top-style]){ + border-top-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-right-style]){ + border-right-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){ + border-bottom-width:medium; +} +.wp-block-button .wp-block-button__link:where([style*=border-left-style]){ + border-left-width:medium; +}
\ No newline at end of file diff --git a/wp-includes/blocks/button/style.min.css b/wp-includes/blocks/button/style.min.css new file mode 100644 index 0000000..cd8f86b --- /dev/null +++ b/wp-includes/blocks/button/style.min.css @@ -0,0 +1 @@ +.wp-block-button__link{box-sizing:border-box;cursor:pointer;display:inline-block;text-align:center;word-break:break-word}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}:where(.wp-block-button__link){border-radius:9999px;box-shadow:none;padding:calc(.667em + 2px) calc(1.333em + 2px);text-decoration:none}.wp-block-button[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons>.wp-block-button.has-custom-width{max-width:none}.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-buttons>.wp-block-button.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-buttons>.wp-block-button.wp-block-button__width-25{width:calc(25% - var(--wp--style--block-gap, .5em)*.75)}.wp-block-buttons>.wp-block-button.wp-block-button__width-50{width:calc(50% - var(--wp--style--block-gap, .5em)*.5)}.wp-block-buttons>.wp-block-button.wp-block-button__width-75{width:calc(75% - var(--wp--style--block-gap, .5em)*.25)}.wp-block-buttons>.wp-block-button.wp-block-button__width-100{flex-basis:100%;width:100%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-25{width:25%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-50{width:50%}.wp-block-buttons.is-vertical>.wp-block-button.wp-block-button__width-75{width:75%}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.wp-block-button .wp-block-button__link.is-style-outline,.wp-block-button.is-style-outline>.wp-block-button__link{border:2px solid;padding:.667em 1.333em}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-text-color),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){color:currentColor}.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background),.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){background-color:transparent;background-image:none}.wp-block-button .wp-block-button__link:where(.has-border-color){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-color]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-color]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-color]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-color]){border-left-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-style]){border-width:initial}.wp-block-button .wp-block-button__link:where([style*=border-top-style]){border-top-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-right-style]){border-right-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-bottom-style]){border-bottom-width:medium}.wp-block-button .wp-block-button__link:where([style*=border-left-style]){border-left-width:medium}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/block.json b/wp-includes/blocks/buttons/block.json new file mode 100644 index 0000000..4dc420b --- /dev/null +++ b/wp-includes/blocks/buttons/block.json @@ -0,0 +1,45 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "core/buttons", + "title": "Buttons", + "category": "design", + "description": "Prompt visitors to take action with a group of button-style links.", + "keywords": [ "link" ], + "textdomain": "default", + "supports": { + "anchor": true, + "align": [ "wide", "full" ], + "html": false, + "__experimentalExposeControlsToChildren": true, + "spacing": { + "blockGap": true, + "margin": [ "top", "bottom" ], + "__experimentalDefaultControls": { + "blockGap": true + } + }, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalTextDecoration": true, + "__experimentalLetterSpacing": true, + "__experimentalDefaultControls": { + "fontSize": true + } + }, + "layout": { + "allowSwitching": false, + "allowInheriting": false, + "default": { + "type": "flex" + } + } + }, + "editorStyle": "wp-block-buttons-editor", + "style": "wp-block-buttons" +} diff --git a/wp-includes/blocks/buttons/editor-rtl.css b/wp-includes/blocks/buttons/editor-rtl.css new file mode 100644 index 0000000..af2ce7b --- /dev/null +++ b/wp-includes/blocks/buttons/editor-rtl.css @@ -0,0 +1,34 @@ +.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{ + margin:0; +} +.wp-block-buttons>.block-list-appender{ + align-items:center; + display:inline-flex; +} +.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{ + justify-content:flex-start; +} +.wp-block-buttons>.wp-block-button:focus{ + box-shadow:none; +} +.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{ + margin-left:auto; + margin-right:auto; + margin-top:0; + width:100%; +} +.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{ + margin-bottom:0; +} +.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{ + font-size:inherit; +} + +.wp-block[data-align=center]>.wp-block-buttons{ + align-items:center; + justify-content:center; +} + +.wp-block[data-align=right]>.wp-block-buttons{ + justify-content:flex-end; +}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/editor-rtl.min.css b/wp-includes/blocks/buttons/editor-rtl.min.css new file mode 100644 index 0000000..65396cd --- /dev/null +++ b/wp-includes/blocks/buttons/editor-rtl.min.css @@ -0,0 +1 @@ +.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/editor.css b/wp-includes/blocks/buttons/editor.css new file mode 100644 index 0000000..af2ce7b --- /dev/null +++ b/wp-includes/blocks/buttons/editor.css @@ -0,0 +1,34 @@ +.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{ + margin:0; +} +.wp-block-buttons>.block-list-appender{ + align-items:center; + display:inline-flex; +} +.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{ + justify-content:flex-start; +} +.wp-block-buttons>.wp-block-button:focus{ + box-shadow:none; +} +.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{ + margin-left:auto; + margin-right:auto; + margin-top:0; + width:100%; +} +.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{ + margin-bottom:0; +} +.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{ + font-size:inherit; +} + +.wp-block[data-align=center]>.wp-block-buttons{ + align-items:center; + justify-content:center; +} + +.wp-block[data-align=right]>.wp-block-buttons{ + justify-content:flex-end; +}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/editor.min.css b/wp-includes/blocks/buttons/editor.min.css new file mode 100644 index 0000000..65396cd --- /dev/null +++ b/wp-includes/blocks/buttons/editor.min.css @@ -0,0 +1 @@ +.wp-block-buttons>.wp-block,.wp-block-buttons>.wp-block-button.wp-block-button.wp-block-button.wp-block-button.wp-block-button{margin:0}.wp-block-buttons>.block-list-appender{align-items:center;display:inline-flex}.wp-block-buttons.is-vertical>.block-list-appender .block-list-appender__toggle{justify-content:flex-start}.wp-block-buttons>.wp-block-button:focus{box-shadow:none}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center]{margin-left:auto;margin-right:auto;margin-top:0;width:100%}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block[data-align=center] .wp-block-button{margin-bottom:0}.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block[data-align=center]>.wp-block-buttons{align-items:center;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{justify-content:flex-end}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/style-rtl.css b/wp-includes/blocks/buttons/style-rtl.css new file mode 100644 index 0000000..8ece307 --- /dev/null +++ b/wp-includes/blocks/buttons/style-rtl.css @@ -0,0 +1,49 @@ +.wp-block-buttons.is-vertical{ + flex-direction:column; +} +.wp-block-buttons.is-vertical>.wp-block-button:last-child{ + margin-bottom:0; +} +.wp-block-buttons>.wp-block-button{ + display:inline-block; + margin:0; +} +.wp-block-buttons.is-content-justification-left{ + justify-content:flex-start; +} +.wp-block-buttons.is-content-justification-left.is-vertical{ + align-items:flex-start; +} +.wp-block-buttons.is-content-justification-center{ + justify-content:center; +} +.wp-block-buttons.is-content-justification-center.is-vertical{ + align-items:center; +} +.wp-block-buttons.is-content-justification-right{ + justify-content:flex-end; +} +.wp-block-buttons.is-content-justification-right.is-vertical{ + align-items:flex-end; +} +.wp-block-buttons.is-content-justification-space-between{ + justify-content:space-between; +} +.wp-block-buttons.aligncenter{ + text-align:center; +} +.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{ + margin-left:auto; + margin-right:auto; + width:100%; +} +.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{ + text-decoration:inherit; +} +.wp-block-buttons.has-custom-font-size .wp-block-button__link{ + font-size:inherit; +} + +.wp-block-button.aligncenter{ + text-align:center; +}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/style-rtl.min.css b/wp-includes/blocks/buttons/style-rtl.min.css new file mode 100644 index 0000000..6816481 --- /dev/null +++ b/wp-includes/blocks/buttons/style-rtl.min.css @@ -0,0 +1 @@ +.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter{text-align:center}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/style.css b/wp-includes/blocks/buttons/style.css new file mode 100644 index 0000000..8ece307 --- /dev/null +++ b/wp-includes/blocks/buttons/style.css @@ -0,0 +1,49 @@ +.wp-block-buttons.is-vertical{ + flex-direction:column; +} +.wp-block-buttons.is-vertical>.wp-block-button:last-child{ + margin-bottom:0; +} +.wp-block-buttons>.wp-block-button{ + display:inline-block; + margin:0; +} +.wp-block-buttons.is-content-justification-left{ + justify-content:flex-start; +} +.wp-block-buttons.is-content-justification-left.is-vertical{ + align-items:flex-start; +} +.wp-block-buttons.is-content-justification-center{ + justify-content:center; +} +.wp-block-buttons.is-content-justification-center.is-vertical{ + align-items:center; +} +.wp-block-buttons.is-content-justification-right{ + justify-content:flex-end; +} +.wp-block-buttons.is-content-justification-right.is-vertical{ + align-items:flex-end; +} +.wp-block-buttons.is-content-justification-space-between{ + justify-content:space-between; +} +.wp-block-buttons.aligncenter{ + text-align:center; +} +.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{ + margin-left:auto; + margin-right:auto; + width:100%; +} +.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{ + text-decoration:inherit; +} +.wp-block-buttons.has-custom-font-size .wp-block-button__link{ + font-size:inherit; +} + +.wp-block-button.aligncenter{ + text-align:center; +}
\ No newline at end of file diff --git a/wp-includes/blocks/buttons/style.min.css b/wp-includes/blocks/buttons/style.min.css new file mode 100644 index 0000000..6816481 --- /dev/null +++ b/wp-includes/blocks/buttons/style.min.css @@ -0,0 +1 @@ +.wp-block-buttons.is-vertical{flex-direction:column}.wp-block-buttons.is-vertical>.wp-block-button:last-child{margin-bottom:0}.wp-block-buttons>.wp-block-button{display:inline-block;margin:0}.wp-block-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-buttons.is-content-justification-center{justify-content:center}.wp-block-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-buttons.aligncenter{text-align:center}.wp-block-buttons:not(.is-content-justification-space-between,.is-content-justification-right,.is-content-justification-left,.is-content-justification-center) .wp-block-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-buttons[style*=text-decoration] .wp-block-button,.wp-block-buttons[style*=text-decoration] .wp-block-button__link{text-decoration:inherit}.wp-block-buttons.has-custom-font-size .wp-block-button__link{font-size:inherit}.wp-block-button.aligncenter{text-align:center}
\ No newline at end of file |