Skip to content

Commit

Permalink
Blank Canvas Blocks: Added Block Patterns (#3514)
Browse files Browse the repository at this point in the history
* added block patterns

* Support editor color assignment for separator.
* Refactor separator styles.

Co-authored-by: Ben Dwyer <[email protected]>
Co-authored-by: Jason Crist <[email protected]>
Co-authored-by: Jeff Ong <[email protected]>
  • Loading branch information
4 people authored Mar 25, 2021
1 parent 24666ee commit 46b64a3
Show file tree
Hide file tree
Showing 24 changed files with 588 additions and 21 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 31 additions & 8 deletions blank-canvas-blocks/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 17 additions & 7 deletions blank-canvas-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"selection": "var(--wp--preset--color--almost-white)"
},
"margin": {
"horizontal": "20px",
"vertical": "20px"
"horizontal": "30px",
"vertical": "30px"
},
"alignment": {
"alignedMaxWidth": "50%"
Expand All @@ -108,7 +108,7 @@
"typography": {
"fontWeight": "normal",
"fontFamily": "var(--wp--preset--font-family--base)",
"fontSize": "var(--wp--preset--font-size--small)",
"fontSize": "var(--wp--preset--font-size--normal)",
"lineHeight": 2
},
"border": {
Expand All @@ -117,8 +117,8 @@
"color": {
"text": "var(--wp--custom--color--background)",
"background": "var(--wp--custom--color--secondary)",
"hoverText": "var(--wp--custom--color--secondary)",
"hoverBackground": "var(--wp--custom--color--primary)"
"hoverText": "var(--wp--custom--color--background)",
"hoverBackground": "#006ba1"
}
},
"form": {
Expand Down Expand Up @@ -173,8 +173,8 @@
}
},
"separator": {
"color": "#ccc",
"thickness": "2px",
"margin": "var(--wp--custom--margin--vertical) auto",
"opacity": 1,
"width": "150px"
},
"video": {
Expand Down Expand Up @@ -410,6 +410,16 @@
"bottom": "var(--wp--custom--margin--horizontal)"
}
}
},
"core/separator": {
"color": {
"text": "var(--wp--custom--color--foreground)"
},
"border": {
"color": "currentColor",
"style": "solid",
"width": "0 0 1px 0"
}
}
}
}
5 changes: 5 additions & 0 deletions blank-canvas-blocks/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ function blank_canvas_blocks_fonts_url() {

return esc_url_raw( $fonts_url );
}

/**
* Block Patterns.
*/
require get_template_directory() . '/inc/block-patterns.php';
Loading

0 comments on commit 46b64a3

Please sign in to comment.