Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadrat: add custom logo support #3761

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
150513b
Scaffolding a universal theme plus basic typography and color palette.
jffng Apr 13, 2021
91021aa
fixed do_blocks routes and override index.html from BCB
MaggieCabrera Apr 14, 2021
2373fd6
added header and footer templates
MaggieCabrera Apr 14, 2021
7da8710
changed query to post content block
MaggieCabrera Apr 14, 2021
d6236a3
commented with the GB issue
MaggieCabrera Apr 14, 2021
1727c3f
Quadrat: Add new heading sizes and other small misc changes (#3649)
danieldudzic Apr 15, 2021
1afa9b3
Fix typo.
jffng Apr 15, 2021
eb8c744
Recompile.
jffng Apr 15, 2021
64921a0
remove older deploy actions and adding quadrat deploy action (#3655)
pbking Apr 15, 2021
d7bab0b
Add the hosts block pattern. (#3662)
jffng Apr 16, 2021
b7a70ba
Add text domain.
jffng Apr 16, 2021
0a14343
Quadrat: override BCB's templates with php ones (#3667)
MaggieCabrera Apr 16, 2021
2914fc8
Revert unrelated changes to Seedlet Blocks that are not in trunk.
jffng Apr 20, 2021
2e7e7fe
Quadrat: Add responsive Paragraph styles and start styling the Code b…
danieldudzic Apr 22, 2021
4f1690c
Quadrat: Add Latest episodes block pattern (#3665)
MaggieCabrera Apr 22, 2021
7869bf4
Add menu locations to quadrat
scruffian Apr 23, 2021
74948fc
Remove disconnected changes
scruffian Apr 23, 2021
92343c5
Remove footer menu location
scruffian Apr 23, 2021
18f6ecb
rebuild theme.json
scruffian Apr 26, 2021
3f3b292
Quadrat: Add Quote block styles
danieldudzic Apr 24, 2021
af08953
Tightened up the line-height and lessened the space between quote and…
pbking Apr 26, 2021
411a24c
Remove properties that already exist in the parent theme
scruffian Apr 27, 2021
acc19eb
Remove quote sass include and rebuild.
jffng Apr 27, 2021
88c669d
Quadrat: Add list styles
scruffian Apr 27, 2021
16e67b4
Removed variable usage for list item style
pbking Apr 27, 2021
fd0fe9a
Updated list styles to be more correcter
pbking Apr 27, 2021
8372cd2
Try/header template part wrapped (#3714)
pbking Apr 27, 2021
111f762
Quadrat: Style the Code block
danieldudzic Apr 23, 2021
dc27e7b
Remove unneeded declarations
scruffian Apr 26, 2021
1f10d1c
Removed font-changing settings on code block
pbking Apr 27, 2021
baa7deb
Quadrat: add cover pattern (#3676)
jffng Apr 28, 2021
3cc4c0b
removes template hack
MaggieCabrera Apr 29, 2021
39b5663
Quadrat: Add Episode block pattern (#3695)
MaggieCabrera Apr 29, 2021
aefd342
Change colors used in theme.json from descreptive to semantic (#3725)
pbking Apr 30, 2021
2bb5940
Quadrat: Add table styles (#3719)
scruffian Apr 30, 2021
b5ea8f6
Allowing overflow of group-wrapped navigation (#3732)
pbking Apr 30, 2021
38e2660
Update screenshot.png (#3735)
kjellr Apr 30, 2021
e7d3362
Quadrat: Add page templates (#3721)
scruffian May 3, 2021
321a9f2
Make index query inherit query string.
jffng May 3, 2021
621fd79
Update screenshot.png (#3742)
kjellr May 4, 2021
0f56d95
Quadrat: Add CSS for a featured image
scruffian May 4, 2021
b343426
Quadrat: Headlines and Buttons Block Pattern (#3744)
MaggieCabrera May 4, 2021
fe2a929
Change hover rules for buttons
scruffian May 4, 2021
a1b830e
Add hover styles for buttons and links
scruffian May 4, 2021
523a02c
Merge pull request #3756 from Automattic/add/quadrat-button-hover-2
scruffian May 5, 2021
6f50b1d
Add support for basic site logo.
jffng May 5, 2021
3e0947c
Move site logo above site title.
jffng May 5, 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/[email protected]
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/[email protected]
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/
14 changes: 3 additions & 11 deletions blank-canvas-blocks/assets/ponyfill.css

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

10 changes: 8 additions & 2 deletions blank-canvas-blocks/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@
}
}
},
"post-content": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
"right": "var(--wp--custom--margin--horizontal)"
}
},
"gallery": {
"caption": {
"fontSize": "var(--wp--preset--font-size--small)"
Expand Down Expand Up @@ -298,8 +304,8 @@
"core/post-content": {
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
"right": "var(--wp--custom--margin--horizontal)"
"left": "var(--wp--custom--post-content--padding--left)",
"right": "var(--wp--custom--post-content--padding--right)"
}
}
},
Expand Down
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
11 changes: 0 additions & 11 deletions blank-canvas-blocks/sass/base/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,3 @@
@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);
}
}
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.
156 changes: 156 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 -->
Loading