Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Make: Quadrat #3648

Merged
merged 54 commits into from
May 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
e8d073e
Scaffolding a universal theme plus basic typography and color palette.
jffng Apr 13, 2021
dc40bdd
fixed do_blocks routes and override index.html from BCB
MaggieCabrera Apr 14, 2021
7c1b27d
added header and footer templates
MaggieCabrera Apr 14, 2021
5f5cf13
changed query to post content block
MaggieCabrera Apr 14, 2021
36c5d92
commented with the GB issue
MaggieCabrera Apr 14, 2021
b0badcf
Quadrat: Add new heading sizes and other small misc changes (#3649)
danieldudzic Apr 15, 2021
48a6024
Fix typo.
jffng Apr 15, 2021
1c9fa8b
Recompile.
jffng Apr 15, 2021
f9f30c8
remove older deploy actions and adding quadrat deploy action (#3655)
pbking Apr 15, 2021
b50476f
Add the hosts block pattern. (#3662)
jffng Apr 16, 2021
cb5aef2
Add text domain.
jffng Apr 16, 2021
1021dc6
Quadrat: override BCB's templates with php ones (#3667)
MaggieCabrera Apr 16, 2021
94d87c3
Revert unrelated changes to Seedlet Blocks that are not in trunk.
jffng Apr 20, 2021
05f786b
Quadrat: Add responsive Paragraph styles and start styling the Code b…
danieldudzic Apr 22, 2021
a49b9d3
Quadrat: Add Latest episodes block pattern (#3665)
MaggieCabrera Apr 22, 2021
08a572c
Add menu locations to quadrat
scruffian Apr 23, 2021
3f67919
Remove disconnected changes
scruffian Apr 23, 2021
12e37e3
Remove footer menu location
scruffian Apr 23, 2021
b2e5ca0
rebuild theme.json
scruffian Apr 26, 2021
d08b9ab
Quadrat: Add Quote block styles
danieldudzic Apr 24, 2021
43db6d2
Tightened up the line-height and lessened the space between quote and…
pbking Apr 26, 2021
4193e93
Remove properties that already exist in the parent theme
scruffian Apr 27, 2021
44649ca
Remove quote sass include and rebuild.
jffng Apr 27, 2021
b900dff
Quadrat: Add list styles
scruffian Apr 27, 2021
640e479
Removed variable usage for list item style
pbking Apr 27, 2021
0876a67
Updated list styles to be more correcter
pbking Apr 27, 2021
e8bb698
Try/header template part wrapped (#3714)
pbking Apr 27, 2021
4c35b6d
Quadrat: Style the Code block
danieldudzic Apr 23, 2021
c4b4c33
Remove unneeded declarations
scruffian Apr 26, 2021
ed9ab62
Removed font-changing settings on code block
pbking Apr 27, 2021
78d3ae5
Quadrat: add cover pattern (#3676)
jffng Apr 28, 2021
b6824ba
removes template hack
MaggieCabrera Apr 29, 2021
61a2c1b
Quadrat: Add Episode block pattern (#3695)
MaggieCabrera Apr 29, 2021
ad08910
Change colors used in theme.json from descreptive to semantic (#3725)
pbking Apr 30, 2021
5a0cddb
Quadrat: Add table styles (#3719)
scruffian Apr 30, 2021
1600d60
Allowing overflow of group-wrapped navigation (#3732)
pbking Apr 30, 2021
c703f37
Update screenshot.png (#3735)
kjellr Apr 30, 2021
69f8969
Quadrat: Add page templates (#3721)
scruffian May 3, 2021
134a328
Make index query inherit query string.
jffng May 3, 2021
65e5db4
Update screenshot.png (#3742)
kjellr May 4, 2021
862c2f5
Quadrat: Add CSS for a featured image
scruffian May 4, 2021
c9f5e6e
Quadrat: Headlines and Buttons Block Pattern (#3744)
MaggieCabrera May 4, 2021
ba073db
Change hover rules for buttons
scruffian May 4, 2021
f8286e9
Add hover styles for buttons and links
scruffian May 4, 2021
c7cb7b9
Remove background color from buttons. (#3752)
jffng May 5, 2021
0916bfe
Quadrat: Add the listen pattern
scruffian May 4, 2021
bf55b2f
refactor patterns to single files
MaggieCabrera May 6, 2021
7bb19d2
move utility classes to BCB
MaggieCabrera May 6, 2021
bd8bf2b
refactor listen to the podcast
MaggieCabrera May 6, 2021
c885dc1
Quadrat: Add a join pattern
scruffian May 4, 2021
8a7945f
Make the pattern wide
scruffian May 6, 2021
bd123cf
Check the class exists before calling it
scruffian May 6, 2021
695e05c
Make sure the plugin is loaded before adding the pattern
scruffian May 6, 2021
72a22e0
Move the block pattern CSS to a new file
scruffian May 6, 2021
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
29 changes: 0 additions & 29 deletions .github/workflows/bcb_demo_deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Seedlet Blocks BCB Demo Deploy
name: Quadrat Demo Deploy

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the trunk branch
push:
branches: [ make/blank-canvas-blocks ]
branches: [ make/quadrat ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -20,15 +20,15 @@ jobs:
uses: SamKirkland/FTP-Deploy-Action@3.1.1
with:
ftp-server: sftp://sftp.pressable.com:22/htdocs/wp-content/themes/
ftp-username: ${{ secrets.SB_DEMO_USERNAME }}
ftp-password: ${{ secrets.SB_DEMO_PASSWORD }}
ftp-username: ${{ secrets.QUADRAT_DEMO_USERNAME }}
ftp-password: ${{ secrets.QUADRAT_DEMO_PASSWORD }}
git-ftp-args: --insecure
local-dir: ./seedlet-blocks/
local-dir: ./quadrat/
- name: Deploy-Parent
uses: SamKirkland/FTP-Deploy-Action@3.1.1
with:
ftp-server: sftp://sftp.pressable.com:22/htdocs/wp-content/themes/
ftp-username: ${{ secrets.SB_DEMO_USERNAME }}
ftp-password: ${{ secrets.SB_DEMO_PASSWORD }}
ftp-username: ${{ secrets.QUADRAT_DEMO_USERNAME }}
ftp-password: ${{ secrets.QUADRAT_DEMO_PASSWORD }}
git-ftp-args: --insecure
local-dir: ./blank-canvas-blocks/
18 changes: 11 additions & 7 deletions blank-canvas-blocks/assets/ponyfill.css

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

3 changes: 3 additions & 0 deletions blank-canvas-blocks/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ function blank_canvas_blocks_support() {
// Add support for editor styles.
add_theme_support( 'editor-styles' );

// Add support for post thumbnails.
add_theme_support( 'post-thumbnails' );

// Enqueue editor styles.
add_editor_style(
array(
Expand Down
6 changes: 3 additions & 3 deletions blank-canvas-blocks/sass/base/_alignment.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.wp-block-post-content > .alignfull {
margin-left: calc(-1 * var(--wp--custom--margin--horizontal));
margin-right: calc(-1 * var(--wp--custom--margin--horizontal));
margin-left: calc(-1 * var(--wp--custom--post-content--padding--left));
margin-right: calc(-1 * var(--wp--custom--post-content--padding--right));
width: unset;
}

Expand All @@ -17,7 +17,7 @@
// When content is aligned left/right (particularly inside of a container) it is floated left/right
// and needs something to ensure that the content follows the block rather than nestling up beside the floated element.
// The issue should be resolved upstream: https://github.com/WordPress/gutenberg/issues/10299
.wp-block-group {
.wp-block-group:not(.site-header) {
overflow: auto;
}

Expand Down
14 changes: 2 additions & 12 deletions blank-canvas-blocks/sass/base/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,8 @@
*/

@import "normalize";

@import "breakpoints";

@import "alignment";
@import "text";

//Colors

// Gutenberg applies a white color to things that are inside of elements that have a background color.
// White might not be what we're interested in so we'll use the background color instead
*[class*="-background-color"]:not(.has-text-color) {
color: var(--wp--custom--color--background);
a {
color: var(--wp--custom--color--background);
}
}
@import "utility";
14 changes: 14 additions & 0 deletions blank-canvas-blocks/sass/base/_utility.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//Utility classes for Block styles/Patterns:

//Apply to Image block when we don't want margin bottom before caption
.image-no-margin {
margin: 0;
& > * { //the first sibling is a div on the editor and an image on the frontend
vertical-align: bottom;
}
}

//Removes padding on Column block when it has a background color
.has-background-no-padding.wp-block-columns.has-background {
padding: 0;
}
2 changes: 1 addition & 1 deletion blank-canvas-blocks/sass/blocks/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ ul,
ol {
font-family: var(--wp--custom--list--font-family);
padding-left: var(--wp--custom--list--padding--left);
}
}
25 changes: 25 additions & 0 deletions quadrat/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* 404 template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Quadrat
* @since 1.0.0
*/
get_header();

// the header
get_template_part( 'template-parts/header' );

echo gutenberg_block_template_part( '404' );

// the footer
echo gutenberg_block_template_part( 'footer' );

get_footer();
3 changes: 3 additions & 0 deletions quadrat/assets/rotated.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
141 changes: 141 additions & 0 deletions quadrat/assets/theme.css

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

14 changes: 14 additions & 0 deletions quadrat/block-template-parts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">

<!-- wp:heading {"textAlign":"center","level":1,"fontSize":"large"} -->
<h1 class="has-text-align-center has-large-font-size">Oops! That page can’t be found.</h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>It looks like nothing was found at this location. Maybe try a search?</p>
<!-- /wp:paragraph -->

<!-- wp:search {"label":"","buttonText":"Search"} /-->
</div>
<!-- /wp:group -->
11 changes: 11 additions & 0 deletions quadrat/block-template-parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:spacer {"height":30} -->
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">Powered by WordPress</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":30} -->
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
11 changes: 11 additions & 0 deletions quadrat/block-template-parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:group {"className":"site-header","style":{"spacing":{"padding":{"right":"35px","left":"35px"}}}} -->
<div class="wp-block-group site-header" style="padding-right:35px;padding-left:35px">
<!-- wp:site-title /-->
<!-- wp:navigation {"orientation":"horizontal","textColor":"foreground-light","itemsJustification":"right","fontSize":"small"} -->
<!-- wp:navigation-link {"label":"Home","url":"#"} /-->
<!-- wp:navigation-link {"label":"Services","url":"#"} /-->
<!-- wp:navigation-link {"label":"Portfolio","url":"#"} /-->
<!-- wp:navigation-link {"label":"Contact","url":"#"} /-->
<!-- /wp:navigation -->
</div>
<!-- /wp:group -->
Loading