Skip to content

Commit

Permalink
Add missing styles to v1 SCSS books. (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ned Zimmerman authored Jul 13, 2017
1 parent 9d9a401 commit 6421d5a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: Named after Martin Luther, this is a traditional book theme, good f
Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.com
Copyright: 2011-2017 Pressbooks (Book Oven Inc. <[email protected]>
Version: 1.9.0
Version: 1.9.1
Text Domain: pressbooks-book
GitHub Theme URI: pressbooks/pressbooks-book
Release Asset: true
Expand Down
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function pb_enqueue_scripts() {
if ( ! is_file( $fullpath ) ) {
\Pressbooks\Container::get( 'Sass' )->updateWebBookStyleSheet();
}
if ( \Pressbooks\Container::get( 'Sass' )->isCurrentThemeCompatible( 1 ) && get_stylesheet() !== 'pressbooks-book' ) {
wp_enqueue_style( 'pressbooks/book', get_template_directory_uri() . '/style.css', false, null, 'screen, print' );
}
wp_enqueue_style( 'pressbooks/theme', \Pressbooks\Container::get( 'Sass' )->urlToUserGeneratedCss() . '/style.css', false, null, 'screen, print' );
} else {
wp_enqueue_style( 'pressbooks/theme', get_stylesheet_directory_uri() . '/style.css', false, null, 'screen, print' );
Expand Down
2 changes: 1 addition & 1 deletion style.css

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

2 changes: 1 addition & 1 deletion style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: Named after Martin Luther, this is a traditional book theme, good f
Author: Pressbooks (Book Oven Inc.)
Author URI: https://pressbooks.com
Copyright: 2011-2017 Pressbooks (Book Oven Inc. <[email protected]>
Version: 1.9.0
Version: 1.9.1
GitHub Theme URI: pressbooks/pressbooks-book
Release Asset: true
*/
Expand Down

0 comments on commit 6421d5a

Please sign in to comment.