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

Wide gutenberg settings support #261

Open
wants to merge 5 commits into
base: develop
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
3 changes: 2 additions & 1 deletion admin/admin.css

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion admin/admin.css.map

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

24 changes: 24 additions & 0 deletions css-dev/_blocks.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Basic styles for Gutenberg blocks.

.alignfull {
position: relative;
left: 50%;
transform: translateX( -50% );
width: 100vw;
}

.wp-block-group.alignfull {
padding: 5vw;
}

.wp-block-group__inner-container {
margin: 0 auto;
max-width: 1170px;
}

.wp-block-image {
img {
display: block;
margin: 0 auto;
}
}
2 changes: 2 additions & 0 deletions css-dev/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,5 @@ $color-grayscale-0: #000;
margin-top: 32px;
}
}

@import "blocks";
5 changes: 3 additions & 2 deletions css-dev/style.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
Theme Name: Responsive Framework 2.x (BETA)
Theme Name: Responsive Framework 2.x
Author: Boston University Interactive Design
Website: http://www.bu.edu/interactive-design/
Version: 2.4.1
Description: THIS IS A BETA THEME. Do not activate this version of Responsive Framework unless you are sure that you want to use version 2.x.
Description: A framework for websites at Boston University. This version of Responsive supports BU Banners and BU Landing Pages, and deprecates support for Content Banner.
Theme Groups: Responsive Framework
*/

Expand All @@ -13,3 +13,4 @@ $print-icon-classes: true;
// Import from responsive-foundation

@import "burf-theme";
@import "blocks";
7 changes: 7 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,13 @@ function responsive_branding_copyright() {

add_action( 'r_after_footer_menus', 'responsive_branding_copyright' );

/**
* Adds support for wide and full alignments in Gutenberg.
*
* @see https://developer.wordpress.org/block-editor/developers/themes/theme-support/#wide-alignment
*/
add_theme_support( 'align-wide' );

// add_filter( 'theme_page_templates', 'r_remove_news_template', 10, 3 );
/**
* Admin.
Expand Down
25 changes: 23 additions & 2 deletions ie.css

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

5 changes: 3 additions & 2 deletions ie.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ie.min.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions ie.min.css.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions languages/responsive-framework.pot
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# <!=Copyright (C) 2020
# <!=Copyright (C) 2021
# This file is distributed under the same license as the package.=!>
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: "
"https://wordpress.org/support/theme/responsive-framework-2-x\n"
"POT-Creation-Date: 2020-11-03 19:28:58+00:00\n"
"https://wordpress.org/support/theme/responsive-framework\n"
"POT-Creation-Date: 2021-04-12 15:19:29+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: en\n"
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

Loading