Permalink
Browse files

Initial commit.

`wp scaffold book-theme pressbooks-demo`
  • Loading branch information...
greatislander committed Oct 26, 2016
0 parents commit 15875fb8c7d4ea8a026190c60e48ae4b4971cef3
@@ -0,0 +1,21 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{.jshintrc,*.json,*.yml,*.scss}]
indent_style = space
indent_size = 2

[{*.txt}]
end_of_line = crlf
@@ -0,0 +1 @@
.DS_Store
@@ -0,0 +1,17 @@
linters:
PropertySortOrder:
order: recess
PlaceholderInExtend:
enabled: false
IdSelector:
enabled: false
MergeableSelector:
enabled: false
QualifyingElement:
enabled: false
PropertySpelling:
enabled: true
extra_properties: ['prince-page-group', 'prince-footnote-policy', 'prince-image-resolution', 'footnote-style-position']
NestingDepth:
enabled: true
max_depth: 4
@@ -0,0 +1,7 @@
// Accessibility

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/accessibility';

// Add custom SCSS below these imports and includes.
@import 'components/accessibility';
@@ -0,0 +1,7 @@
// Colors

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/colors';

// Add custom SCSS below these imports and includes.
@import 'components/colors';
@@ -0,0 +1,14 @@
// Elements

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/elements';

// Add custom SCSS below these imports and includes.
@import 'components/elements/links';
@import 'components/elements/blockquotes';
@import 'components/elements/body';
@import 'components/elements/headings';
@import 'components/elements/lists';
@import 'components/elements/miscellaneous';
@import 'components/elements/paragraphs';
@import 'components/elements/tables';
@@ -0,0 +1,9 @@
// Media

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/media';

// Add custom SCSS below these imports and includes.
@import 'components/media/images';
@import 'components/media/audio';
@import 'components/media/video';
@@ -0,0 +1,14 @@
// Special Elements

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/specials';

// Add custom SCSS below these imports and includes.
@import 'components/specials/columns';
@import 'components/specials/dropcaps';
@import 'components/specials/floats';
@import 'components/specials/footnotes';
@import 'components/specials/miscellaneous';
@import 'components/specials/pullquotes';
@import 'components/specials/separators';
@import 'components/specials/textboxes';
@@ -0,0 +1,29 @@
// Structure

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/structure';

// Add custom SCSS below these imports and includes.
@import 'components/structure/general';
@import 'components/structure/recto-verso';
@import 'components/structure/numbering';
@import 'components/structure/content-strings';
@import 'components/structure/runninghead-both-center';
// @import 'components/structure/runninghead-both-outside';
// @import 'components/structure/runninghead-content-center';
// @import 'components/structure/runninghead-content-outside';
// @import 'components/structure/runninghead-number-center';
// @import 'components/structure/runninghead-number-corner-content-outside';
// @import 'components/structure/runninghead-number-outside-content-center';
// @import 'components/structure/runninghead-number-outside-content-inside';
// @import 'components/structure/runninghead-number-outside';
// @import 'components/structure/runningfoot-both-center';
// @import 'components/structure/runningfoot-both-outside';
// @import 'components/structure/runningfoot-content-center';
// @import 'components/structure/runningfoot-content-outside';
// @import 'components/structure/runningfoot-number-center';
@import 'components/structure/runningfoot-number-center-first';
// @import 'components/structure/runningfoot-number-corner-content-outside';
// @import 'components/structure/runningfoot-number-outside';
// @import 'components/structure/runningfoot-number-outside-first';
@import 'components/structure/index';
@@ -0,0 +1,11 @@
// Titles

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/titles';

// Add custom SCSS below these imports and includes.
@import 'components/titles/titles';
@import 'components/titles/parts';
@import 'components/titles/front-matter';
@import 'components/titles/chapters';
@import 'components/titles/back-matter';
@@ -0,0 +1,8 @@
// Table of Contents

// Override variables above this line, using the !default flag to allow further overrides.
@import 'variables/toc';

// Add custom SCSS below these imports and includes.
// @import 'components/toc/center';
@import 'components/toc/left';
@@ -0,0 +1,16 @@
@import 'font-stack-epub'; // Dynamically generated

$serif-epub: serif !default;
$sans-serif-epub: sans-serif !default;

// Insert custom fonts for your theme into the font stacks below. Always end the
// stack with $serif-epub or $sans-serif-epub, as appropriate—this allows custom
// language support to be added dynamically.
$font-1: $serif-epub;
$font-2: $sans-serif-epub;
$font-3: $font-2;

// Add import rules for any fonts you referenced below. Available font partials
// are found in /pressbooks/assets/scss/fonts and follow the naming pattern:
// _FontNameInCamelCaseFont.scss. For example, to import Alegreya Sans, use:
// @import 'AlegreyaSansFont';
@@ -0,0 +1,10 @@
// Pressbooks-demo (EPUB)
$type: 'epub';

@import 'fonts';
@import '../components/colors';
@import '../components/elements';
@import '../components/specials';
@import '../components/media';
@import '../components/titles';
@import '../components/toc';
@@ -0,0 +1,16 @@
@import 'font-stack-prince'; // Dynamically generated

$serif-prince: serif !default;
$sans-serif-prince: sans-serif !default;

// Insert custom fonts for your theme into the font stacks below. Always end the
// stack with $serif-prince or $sans-serif-prince, as appropriate—this allows
// custom language support to be added dynamically.
$font-1: $serif-prince;
$font-2: $sans-serif-prince;
$font-3: $font-2;

// Add import rules for any fonts you referenced below. Available font partials
// are found in /pressbooks/assets/scss/fonts and follow the naming pattern:
// _FontNameInCamelCaseFont.scss. For example, to import Alegreya Sans, use:
// @import 'AlegreyaSansFont';
@@ -0,0 +1,11 @@
// Pressbooks-demo (Prince)
$type: 'prince';

@import 'fonts';
@import '../components/colors';
@import '../components/elements';
@import '../components/specials';
@import '../components/media';
@import '../components/titles';
@import '../components/structure';
@import '../components/toc';
@@ -0,0 +1,15 @@
@import 'font-stack-web'; // Dynamically generated

$serif-web: serif !default;
$sans-serif-web: sans-serif !default;

// Insert custom fonts for your theme into the font stacks below. Always end the
// stack with $serif-web or $sans-serif-web, as appropriate—this allows custom
// language support to be added dynamically.
$font-1: $serif-web;
$font-2: $sans-serif-web;
$font-3: $font-2;

// Add import rules for any referenced fonts you below. You must use Google
// Fonts or an equivalent over https. For example, to import Alegreya Sans, use:
// @import 'https://fonts.googleapis.com/css?family=Alegreya+Sans';
@@ -0,0 +1,9 @@
// Pressbooks-demo (Web)
$type: 'web';

@import 'fonts';
@import '../components/colors';
@import '../components/elements';
@import '../components/specials';
@import '../components/media';
@import '../components/titles';
@@ -0,0 +1,10 @@
<?php
/**
* @license GPL 2.0+
*/
function pressbooks_demo_theme_setup() {
// Add theme support for special features here.
}
add_action( 'after_setup_theme', 'pressbooks_demo_theme_setup' );
@@ -0,0 +1,9 @@
/*
Theme Name: Pressbooks-demo
License: GPL 2.0+
Version: 1.0
Text Domain: pressbooks-demo
Template: pressbooks-book
*/

/* This doesn't do anything. */

0 comments on commit 15875fb

Please sign in to comment.