summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/columns
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:56:49 +0000
commita415c29efee45520ae252d2aa28f1083a521cd7b (patch)
treef4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-includes/blocks/columns
parentInitial commit. (diff)
downloadwordpress-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/columns')
-rw-r--r--wp-includes/blocks/columns/block.json85
-rw-r--r--wp-includes/blocks/columns/editor-rtl.css10
-rw-r--r--wp-includes/blocks/columns/editor-rtl.min.css1
-rw-r--r--wp-includes/blocks/columns/editor.css10
-rw-r--r--wp-includes/blocks/columns/editor.min.css1
-rw-r--r--wp-includes/blocks/columns/style-rtl.css74
-rw-r--r--wp-includes/blocks/columns/style-rtl.min.css1
-rw-r--r--wp-includes/blocks/columns/style.css74
-rw-r--r--wp-includes/blocks/columns/style.min.css1
9 files changed, 257 insertions, 0 deletions
diff --git a/wp-includes/blocks/columns/block.json b/wp-includes/blocks/columns/block.json
new file mode 100644
index 0000000..dff9c45
--- /dev/null
+++ b/wp-includes/blocks/columns/block.json
@@ -0,0 +1,85 @@
+{
+ "$schema": "https://schemas.wp.org/trunk/block.json",
+ "apiVersion": 3,
+ "name": "core/columns",
+ "title": "Columns",
+ "category": "design",
+ "description": "Display content in multiple columns, with blocks added to each column.",
+ "textdomain": "default",
+ "attributes": {
+ "verticalAlignment": {
+ "type": "string"
+ },
+ "isStackedOnMobile": {
+ "type": "boolean",
+ "default": true
+ },
+ "templateLock": {
+ "type": [ "string", "boolean" ],
+ "enum": [ "all", "insert", "contentOnly", false ]
+ }
+ },
+ "supports": {
+ "anchor": true,
+ "align": [ "wide", "full" ],
+ "html": false,
+ "color": {
+ "gradients": true,
+ "link": true,
+ "heading": true,
+ "button": true,
+ "__experimentalDefaultControls": {
+ "background": true,
+ "text": true
+ }
+ },
+ "spacing": {
+ "blockGap": {
+ "__experimentalDefault": "2em",
+ "sides": [ "horizontal", "vertical" ]
+ },
+ "margin": [ "top", "bottom" ],
+ "padding": true,
+ "__experimentalDefaultControls": {
+ "padding": true,
+ "blockGap": true
+ }
+ },
+ "layout": {
+ "allowSwitching": false,
+ "allowInheriting": false,
+ "allowEditing": false,
+ "default": {
+ "type": "flex",
+ "flexWrap": "nowrap"
+ }
+ },
+ "__experimentalBorder": {
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true,
+ "__experimentalDefaultControls": {
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true
+ }
+ },
+ "typography": {
+ "fontSize": true,
+ "lineHeight": true,
+ "__experimentalFontFamily": true,
+ "__experimentalFontWeight": true,
+ "__experimentalFontStyle": true,
+ "__experimentalTextTransform": true,
+ "__experimentalTextDecoration": true,
+ "__experimentalLetterSpacing": true,
+ "__experimentalDefaultControls": {
+ "fontSize": true
+ }
+ }
+ },
+ "editorStyle": "wp-block-columns-editor",
+ "style": "wp-block-columns"
+}
diff --git a/wp-includes/blocks/columns/editor-rtl.css b/wp-includes/blocks/columns/editor-rtl.css
new file mode 100644
index 0000000..567ad48
--- /dev/null
+++ b/wp-includes/blocks/columns/editor-rtl.css
@@ -0,0 +1,10 @@
+.wp-block-columns :where(.wp-block){
+ margin-left:0;
+ margin-right:0;
+ max-width:none;
+}
+
+html :where(.wp-block-column){
+ margin-bottom:0;
+ margin-top:0;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/columns/editor-rtl.min.css b/wp-includes/blocks/columns/editor-rtl.min.css
new file mode 100644
index 0000000..d908174
--- /dev/null
+++ b/wp-includes/blocks/columns/editor-rtl.min.css
@@ -0,0 +1 @@
+.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0} \ No newline at end of file
diff --git a/wp-includes/blocks/columns/editor.css b/wp-includes/blocks/columns/editor.css
new file mode 100644
index 0000000..567ad48
--- /dev/null
+++ b/wp-includes/blocks/columns/editor.css
@@ -0,0 +1,10 @@
+.wp-block-columns :where(.wp-block){
+ margin-left:0;
+ margin-right:0;
+ max-width:none;
+}
+
+html :where(.wp-block-column){
+ margin-bottom:0;
+ margin-top:0;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/columns/editor.min.css b/wp-includes/blocks/columns/editor.min.css
new file mode 100644
index 0000000..d908174
--- /dev/null
+++ b/wp-includes/blocks/columns/editor.min.css
@@ -0,0 +1 @@
+.wp-block-columns :where(.wp-block){margin-left:0;margin-right:0;max-width:none}html :where(.wp-block-column){margin-bottom:0;margin-top:0} \ No newline at end of file
diff --git a/wp-includes/blocks/columns/style-rtl.css b/wp-includes/blocks/columns/style-rtl.css
new file mode 100644
index 0000000..4004dbc
--- /dev/null
+++ b/wp-includes/blocks/columns/style-rtl.css
@@ -0,0 +1,74 @@
+.wp-block-columns{
+ align-items:normal !important;
+ box-sizing:border-box;
+ display:flex;
+ flex-wrap:wrap !important;
+}
+@media (min-width:782px){
+ .wp-block-columns{
+ flex-wrap:nowrap !important;
+ }
+}
+.wp-block-columns.are-vertically-aligned-top{
+ align-items:flex-start;
+}
+.wp-block-columns.are-vertically-aligned-center{
+ align-items:center;
+}
+.wp-block-columns.are-vertically-aligned-bottom{
+ align-items:flex-end;
+}
+@media (max-width:781px){
+ .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{
+ flex-basis:100% !important;
+ }
+}
+@media (min-width:782px){
+ .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{
+ flex-basis:0;
+ flex-grow:1;
+ }
+ .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{
+ flex-grow:0;
+ }
+}
+.wp-block-columns.is-not-stacked-on-mobile{
+ flex-wrap:nowrap !important;
+}
+.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{
+ flex-basis:0;
+ flex-grow:1;
+}
+.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{
+ flex-grow:0;
+}
+
+:where(.wp-block-columns){
+ margin-bottom:1.75em;
+}
+
+:where(.wp-block-columns.has-background){
+ padding:1.25em 2.375em;
+}
+
+.wp-block-column{
+ flex-grow:1;
+ min-width:0;
+ overflow-wrap:break-word;
+ word-break:break-word;
+}
+.wp-block-column.is-vertically-aligned-top{
+ align-self:flex-start;
+}
+.wp-block-column.is-vertically-aligned-center{
+ align-self:center;
+}
+.wp-block-column.is-vertically-aligned-bottom{
+ align-self:flex-end;
+}
+.wp-block-column.is-vertically-aligned-stretch{
+ align-self:stretch;
+}
+.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{
+ width:100%;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/columns/style-rtl.min.css b/wp-includes/blocks/columns/style-rtl.min.css
new file mode 100644
index 0000000..e032de0
--- /dev/null
+++ b/wp-includes/blocks/columns/style-rtl.min.css
@@ -0,0 +1 @@
+.wp-block-columns{align-items:normal!important;box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%} \ No newline at end of file
diff --git a/wp-includes/blocks/columns/style.css b/wp-includes/blocks/columns/style.css
new file mode 100644
index 0000000..4004dbc
--- /dev/null
+++ b/wp-includes/blocks/columns/style.css
@@ -0,0 +1,74 @@
+.wp-block-columns{
+ align-items:normal !important;
+ box-sizing:border-box;
+ display:flex;
+ flex-wrap:wrap !important;
+}
+@media (min-width:782px){
+ .wp-block-columns{
+ flex-wrap:nowrap !important;
+ }
+}
+.wp-block-columns.are-vertically-aligned-top{
+ align-items:flex-start;
+}
+.wp-block-columns.are-vertically-aligned-center{
+ align-items:center;
+}
+.wp-block-columns.are-vertically-aligned-bottom{
+ align-items:flex-end;
+}
+@media (max-width:781px){
+ .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{
+ flex-basis:100% !important;
+ }
+}
+@media (min-width:782px){
+ .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{
+ flex-basis:0;
+ flex-grow:1;
+ }
+ .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{
+ flex-grow:0;
+ }
+}
+.wp-block-columns.is-not-stacked-on-mobile{
+ flex-wrap:nowrap !important;
+}
+.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{
+ flex-basis:0;
+ flex-grow:1;
+}
+.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{
+ flex-grow:0;
+}
+
+:where(.wp-block-columns){
+ margin-bottom:1.75em;
+}
+
+:where(.wp-block-columns.has-background){
+ padding:1.25em 2.375em;
+}
+
+.wp-block-column{
+ flex-grow:1;
+ min-width:0;
+ overflow-wrap:break-word;
+ word-break:break-word;
+}
+.wp-block-column.is-vertically-aligned-top{
+ align-self:flex-start;
+}
+.wp-block-column.is-vertically-aligned-center{
+ align-self:center;
+}
+.wp-block-column.is-vertically-aligned-bottom{
+ align-self:flex-end;
+}
+.wp-block-column.is-vertically-aligned-stretch{
+ align-self:stretch;
+}
+.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{
+ width:100%;
+} \ No newline at end of file
diff --git a/wp-includes/blocks/columns/style.min.css b/wp-includes/blocks/columns/style.min.css
new file mode 100644
index 0000000..e032de0
--- /dev/null
+++ b/wp-includes/blocks/columns/style.min.css
@@ -0,0 +1 @@
+.wp-block-columns{align-items:normal!important;box-sizing:border-box;display:flex;flex-wrap:wrap!important}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap!important}}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}@media (max-width:781px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important}}@media (min-width:782px){.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column[style*=flex-basis]{flex-grow:0}}.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-columns.is-not-stacked-on-mobile>.wp-block-column[style*=flex-basis]{flex-grow:0}:where(.wp-block-columns){margin-bottom:1.75em}:where(.wp-block-columns.has-background){padding:1.25em 2.375em}.wp-block-column{flex-grow:1;min-width:0;overflow-wrap:break-word;word-break:break-word}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-stretch{align-self:stretch}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%} \ No newline at end of file