Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/block-library/src/accordion-item/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.wp-block-accordion-item {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

&.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
transform: rotate(45deg);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/accordion-panel/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.wp-block-accordion-panel {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

// Prevent blockGap, borders, box-shadows, and padding from adding extra spacing or rendering when the panel is closed.
&[hidden] {
border: none !important;
Expand Down
2 changes: 2 additions & 0 deletions packages/block-library/src/columns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@

.wp-block-column {
flex-grow: 1;
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

// Prevent the columns from growing wider than their distributed sizes.
min-width: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@
"width": true,
"style": true
}
}
},
"style": "wp-block-comments-pagination-numbers"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-comments-pagination-numbers {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
3 changes: 2 additions & 1 deletion packages/block-library/src/comments-title/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@
"interactivity": {
"clientNavigation": true
}
}
},
"style": "wp-block-comments-title"
}
4 changes: 4 additions & 0 deletions packages/block-library/src/comments-title/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-comments-title {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
2 changes: 2 additions & 0 deletions packages/block-library/src/embed/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

.wp-block-embed {
overflow-wrap: break-word; // Break long strings of text without spaces so they don't overflow the block.
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

// Supply caption styles to embeds, even if the theme hasn't opted in.
// Reason being: the new markup, figcaptions, are not likely to be styled in the majority of existing themes,
Expand Down
5 changes: 5 additions & 0 deletions packages/block-library/src/footnotes/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.wp-block-footnotes {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}

// These styles are for backwards compatibility with the old footnotes anchors.
// Can be removed in the future.
.editor-styles-wrapper,
Expand Down
5 changes: 5 additions & 0 deletions packages/block-library/src/heading/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ h3,
h4,
h5,
h6 {
&:where(.wp-block-heading) {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}

&:where(.wp-block-heading).has-background {
padding: $block-bg-padding;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/block-library/src/math/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.wp-block-math {
overflow-x: auto;
overflow-y: hidden;
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
2 changes: 2 additions & 0 deletions packages/block-library/src/post-content/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.wp-block-post-content {
display: flow-root;
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
2 changes: 2 additions & 0 deletions packages/block-library/src/read-more/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.wp-block-read-more {
display: block;
width: fit-content;
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
&:where(:not([style*="text-decoration"])) {
text-decoration: none;

Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
@use "./comments-pagination/style.scss" as *;
@use "./comments-pagination-previous/style.scss" as *;
@use "./comments-pagination-next/style.scss" as *;
@use "./comments-pagination-numbers/style.scss" as *;
@use "./comments-title/style.scss" as *;
@use "./comment-template/style.scss" as *;
@use "./comment-date/style.scss" as *;
@use "./comment-content/style.scss" as *;
Expand Down Expand Up @@ -79,13 +81,15 @@
@use "./tag-cloud/style.scss" as *;
@use "./tab-list/style.scss" as *;
@use "./tab-panel/style.scss" as *;
@use "./tab-panels/style.scss" as *;
@use "./table/style.scss" as *;
@use "./table-of-contents/style.scss" as *;
@use "./tabs/style.scss" as *;
@use "./term-count/style.scss" as *;
@use "./term-description/style.scss" as *;
@use "./term-name/style.scss" as *;
@use "./term-template/style.scss" as *;
@use "./terms-query/style.scss" as *;
@use "./text-columns/style.scss" as *;
@use "./verse/style.scss" as *;
@use "./video/style.scss" as *;
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/tab-panel/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.wp-block-tab-panel {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

&:empty {
display: none !important;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/tab-panels/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@
"width": true,
"style": true
}
}
},
"style": "wp-block-tab-panels"
}
4 changes: 4 additions & 0 deletions packages/block-library/src/tab-panels/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-tab-panels {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
3 changes: 2 additions & 1 deletion packages/block-library/src/terms-query/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"blockGap": true
},
"interactivity": true
}
},
"style": "wp-block-terms-query"
}
4 changes: 4 additions & 0 deletions packages/block-library/src/terms-query/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-terms-query {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
Loading