Skip to content

Commit

Permalink
Merge branch 'release/1.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Sep 6, 2020
2 parents 2382259 + 07c3f7f commit 1fc7471
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 12 deletions.
7 changes: 7 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ function polestar_setup() {
*/
add_theme_support( 'title-tag' );

/*
* Enable support for Block Editor Wide Alignment.
*
* @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#wide-alignment
*/
add_theme_support( 'align-wide' );

/*
* Enable support for Post Thumbnails on posts and pages.
*
Expand Down
8 changes: 0 additions & 8 deletions inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,3 @@ function polestar_post_class_filter( $classes ) {
}
endif;
add_filter( 'post_class', 'polestar_post_class_filter' );

/**
* Add our SiteOrigin Premium affiliate ID.
*/
function polestar_siteorigin_premium( $id ) {
return 1;
}
add_filter( 'siteorigin_premium_affiliate_id', 'polestar_siteorigin_premium' );
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ Released under [GPL version 2](https://www.gnu.org/licenses/old-licenses/gpl-2.0

== Changelog ==

= 1.4.2 - 06 September 2020 =
* Added Block Editor support for Wide Alignment.

= 1.4.1 - 26 July 2020 =
* WooCommerce: Adjusted spacing for `No Products` notification.
* Minor code formatting enhancements.
Expand Down
24 changes: 24 additions & 0 deletions sass/site/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

.site-content {
@include clearfix;
overflow: hidden;
}

// Content area without sidebar.
Expand Down Expand Up @@ -81,3 +82,26 @@
width: 100%;
}
}

// Block Editor Wide and Full widths.
.page-layout-no-sidebar {

.alignfull {
margin-left: calc(50% - 50vw);
width: 100vw;
}

@media (min-width: calc(1140px + 200px)) {

.alignwide {
left: -100px;
position: relative;
width: calc(100% + 20vw);
}
}

.alignfull .wp-block-group__inner-container {
margin: auto;
max-width: 1140px;
}
}
20 changes: 20 additions & 0 deletions sass/site/primary/_posts-and-pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,26 @@
}
}

/*--------------------------------------------------------------
## - Block Styles
--------------------------------------------------------------*/
// Apply 50px bottom margin to top level blocks.
.entry-content > div[class^='wp-block-'] {
margin-bottom: 50px;
}

.wp-block-group {

&.has-background {
padding: 30px;

&.alignfull {
padding-right: 0;
padding-left: 0;
}
}
}

/*--------------------------------------------------------------
## - Search Form
--------------------------------------------------------------*/
Expand Down
1 change: 1 addition & 0 deletions sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ or a child theme.
## - Posts and pages
## - Posts
## - Archives, Search Results & 404
## - Block Styles
## - Search Form
## - Related Posts
## - Author Box
Expand Down
37 changes: 33 additions & 4 deletions style.css

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

0 comments on commit 1fc7471

Please sign in to comment.