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

Added wide and full align support for center column layouts. #358

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
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
26 changes: 26 additions & 0 deletions lib/assets/less/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

.tm-main {
word-wrap: break-word;
overflow-x: hidden;
}


Expand Down Expand Up @@ -233,3 +234,28 @@ article header > .tm-article-image:first-child {
color: #333;
outline: 1px #ccc solid;
}


/* Gutenberg
========================================================================== */

.wp-block-cover-image.alignfull,
.wp-block-gallery.alignfull,
.wp-block-image.alignfull img ,
.wp-block-cover-image.alignfull,
.wp-block-gallery.alignfull,
.wp-block-image.alignfull img {
clear: both;
margin-left: ~"calc(50% - 50vw)";
margin-right: ~"calc(50% - 50vw)";
width: 100vw;
}

@media only screen and (min-width: 1062px) {

.alignwide {
margin-left: -10%;
margin-right: -10%;
}

}
4 changes: 4 additions & 0 deletions lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ function beans_add_theme_support() {
)
);

if ( in_array( beans_get_layout(), array( 'c', 'sp_c_ss' ), true ) ) {
add_theme_support( 'align-wide' );
}

// Beans specific.
add_theme_support( 'offcanvas-menu' );
add_theme_support( 'beans-default-styling' );
Expand Down