@canopycanopycanopy/b-ber-theme-sans 3.0.5 → 3.0.7-canary.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_overrides.scss CHANGED
@@ -1,6 +1,5 @@
1
- // base
2
1
  body {
3
- font-family: $sans;
2
+ font-family: $font-sans;
4
3
  }
5
4
 
6
5
  p {
package/_settings.scss CHANGED
@@ -1,43 +1,51 @@
1
1
  // Colors
2
+ // `$black` is automatically set to #000 for e-ink readers
2
3
  $white: #fff !default;
4
+ $grey-0: #eee !default;
5
+ $grey-1: #696969 !default;
3
6
  $black: #222 !default;
4
- $grey: #eee !default;
5
- $light-grey: #f2f2f2 !default;
6
- $info: #26a4b7 !default;
7
- $warning: #da4539 !default;
8
- $danger: #cd8d59 !default;
9
- $success: #5050c5 !default;
10
-
11
- // Set `$grey` in case of e-ink readers
12
- @if $build == 'mobi' {
13
- $grey: $black;
14
- }
15
7
 
16
8
  // General text Layout
17
9
  // If new paragraphs should be indented, and if so, by how much. The text indent size
18
10
  // can be set to a simple relative unit (not calculated based on font size) because
19
11
  // it's only applied to paragraph elements, so will remain consistent throughout
20
12
  // the document
21
- $text-indent: true !default;
22
- $text-indent-size: two-ems(0) !default;
13
+ $text-indent: false !default;
14
+
15
+ // Must be hard-coded since mixins aren't available here. Can be overridden in
16
+ // project files
17
+ $text-indent-size: 2em !default;
23
18
 
24
19
  // If paragraphs and header elements should have a margin bottom. Margin bottom size
25
20
  // is calculated automatically to retain vertial rhythm
26
- $vertical-space: false !default;
21
+ $vertical-space: true !default;
27
22
 
28
23
  // Vertical rhythm settings
29
- $font-size-base: 1.6em !default; // 16px
30
- $line-height-base: 1.44222 !default; // 20.8px
24
+ $font-size-base: 1em !default;
25
+ $line-height-base: 1.5 !default;
26
+
27
+ // Fonts
28
+ $font-sans: Helvetica, Arial, sans-serif !default;
29
+ $font-serif: 'Iowan Old Style', Georgia, Times, serif !default;
30
+ $font-mono: Menlo, Osaka, Monaco, monospace !default;
31
+
32
+ // Reader font is set in _reader.scss
33
+ $font-family-base: $font-serif !default;
34
+
35
+ @if $build == 'reader' {
36
+ $font-family-base: $font-sans;
37
+ }
38
+
39
+ // Reader UI elements
40
+ $reader-header-height: 0;
41
+ $reader-footer-height: 0;
31
42
 
32
- // Font stacks
33
- $sans: Helvetica, Arial, sans-serif !default;
34
- $serif: Iowan, Georgia, Times, serif !default;
35
- $mono: Menlo, Osaka, Monaco, monospace !default;
43
+ // Values for the `fullbleed-vimeo-titlepage` mixin
44
+ // Titlepage color scheme.
45
+ $titlepage-background-color: $black !default;
46
+ $titlepage-text-color: $white !default;
36
47
 
37
- $font-family-base: $serif !default;
48
+ // Height of spread-contents used for vertical alignment in pixels
49
+ $spread-height: 600px !default;
38
50
 
39
- // Inline image element dimensions as int, interpreted as ems
40
- $landscape-image-height: 4 !default;
41
- $square-image-height: 4 !default;
42
- $portrait-image-height: 5 !default;
43
- $portrait-image--high-height: 5 !default;
51
+ $titlepage-text-aligment: left !default;
package/application.scss CHANGED
@@ -11,7 +11,7 @@
11
11
  $build: 'epub' !default;
12
12
 
13
13
  @import 'settings';
14
- @import '~@canopycanopycanopy/b-ber-theme-serif/mixins';
14
+ @import '~@canopycanopycanopy/b-ber-theme-mixins/application';
15
15
 
16
16
  // for validation while building on CLI, not an actual setting
17
17
  $build: 'epub' !default;
@@ -25,8 +25,8 @@ $modularscale: (
25
25
  ratio: $minor-second,
26
26
  );
27
27
 
28
- @import 'typography';
29
- @import 'layout';
28
+ @import '~@canopycanopycanopy/b-ber-theme-serif/typography';
29
+ @import '~@canopycanopycanopy/b-ber-theme-serif/layout';
30
30
 
31
31
  // Set `$grey-0` in case of e-ink readers
32
32
  @if $build == 'mobi' {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopycanopycanopy/b-ber-theme-sans",
3
- "version": "3.0.5",
3
+ "version": "3.0.7-canary.9+327cd6d2",
4
4
  "description": "A sans theme for b-ber projects",
5
5
  "main": "index.js",
6
6
  "author": "Triple Canopy <b-ber@canopycanopycanopy.com> (https://triplecanopy.github.io/)",
@@ -20,9 +20,9 @@
20
20
  "clean": "echo OK"
21
21
  },
22
22
  "dependencies": {
23
- "@canopycanopycanopy/b-ber-theme-serif": "3.0.5",
24
- "lodash": "^4.17.21",
25
- "modularscale-sass": "^3.0.10"
23
+ "@canopycanopycanopy/b-ber-theme-mixins": "^3",
24
+ "@canopycanopycanopy/b-ber-theme-serif": "3.0.7-canary.9+327cd6d2",
25
+ "modularscale-sass": "^3.0.8"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/cli": "^7.10.5",
@@ -30,5 +30,5 @@
30
30
  "@babel/preset-env": "^7.10.4",
31
31
  "browserslist": "^4.17.4"
32
32
  },
33
- "gitHead": "363739d31854f3a6f08abefdf311ddac25988ab7"
33
+ "gitHead": "327cd6d23093ed174f7cced283d3c670e000c183"
34
34
  }