bookend 0.2.2 → 0.3.0
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.
- checksums.yaml +4 -4
- data/_sass/_bindings.scss +19 -0
- data/_sass/_variables.scss +17 -0
- data/_sass/_words.scss +54 -3
- data/_sass/bookend.scss +3 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab7f2c9632c98cfc5e5d5792b6c11e1b11bfe161
|
4
|
+
data.tar.gz: 978c907d54eb696f00809d188f2dff0e54bf3cbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c309c3b6931cca844bbc6019585d9f47762369e806974ba12d398ecab3b83cd43a64c1f7ff2183238446b84fd85c2b197052f8508e4f8289a86a1ded713e3c7
|
7
|
+
data.tar.gz: 431920d67f6a5373b578742bf5f2a248df06807a3fdc1d80b23a96707dd09bf275c41834906a864789fefb7734b99b6294810927daa531d7963b66e2af617eea
|
@@ -0,0 +1,19 @@
|
|
1
|
+
html {
|
2
|
+
box-sizing: border-box;
|
3
|
+
}
|
4
|
+
|
5
|
+
*,
|
6
|
+
*:before,
|
7
|
+
*:after {
|
8
|
+
box-sizing: inherit;
|
9
|
+
}
|
10
|
+
|
11
|
+
.book {
|
12
|
+
max-width: $book-max-width;
|
13
|
+
margin-right: auto;
|
14
|
+
margin-left: auto;
|
15
|
+
padding: $vertical-rhythm 1.5em;
|
16
|
+
@media (max-width: $breakpoint-medium) {
|
17
|
+
max-width: $book-max-width * $breakpoint-medium-ratio;
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$base-line-height: 1.4;
|
2
|
+
$base-font-size: 1.25rem;
|
3
|
+
$vertical-rhythm: $base-line-height * $base-font-size;
|
4
|
+
|
5
|
+
$type-ratio: 1.1618;
|
6
|
+
|
7
|
+
$l1-font-size: $base-font-size * $type-ratio;
|
8
|
+
$l2-font-size: $l1-font-size * $type-ratio;
|
9
|
+
$l3-font-size: $l2-font-size * $type-ratio;
|
10
|
+
|
11
|
+
$book-max-width: 60em;
|
12
|
+
|
13
|
+
$breakpoint-medium: 75em;
|
14
|
+
$breakpoint-small: 45em;
|
15
|
+
|
16
|
+
$breakpoint-medium-ratio: 0.9;
|
17
|
+
$breakpoint-small-ratio: 0.8;
|
data/_sass/_words.scss
CHANGED
@@ -1,12 +1,63 @@
|
|
1
1
|
html {
|
2
|
-
font-size:
|
2
|
+
font-size: 100%;
|
3
3
|
}
|
4
4
|
|
5
5
|
body {
|
6
|
-
color: #
|
6
|
+
color: #333;
|
7
7
|
font-family: "Libre Baskerville", serif;
|
8
|
+
line-height: $base-line-height;
|
8
9
|
}
|
9
10
|
|
10
|
-
h1, h2, h3
|
11
|
+
p, h1, h2, h3 {
|
12
|
+
margin-top: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
p {
|
16
|
+
font-size: $base-font-size;
|
17
|
+
margin-bottom: $vertical-rhythm;
|
18
|
+
@media (max-width: $breakpoint-medium) {
|
19
|
+
font-size: $base-font-size * .9;
|
20
|
+
}
|
21
|
+
@media (max-width: $breakpoint-small) {
|
22
|
+
font-size: $base-font-size * .8;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
h1, h2, h3 {
|
11
27
|
font-family: "Oxygen", sans-serif;
|
28
|
+
margin-bottom: $vertical-rhythm;
|
29
|
+
}
|
30
|
+
|
31
|
+
h1 {
|
32
|
+
font-size: $l3-font-size;
|
33
|
+
line-height: $base-line-height * .8;
|
34
|
+
margin-bottom: $vertical-rhythm * 1.5;
|
35
|
+
@media (max-width: $breakpoint-medium) {
|
36
|
+
font-size: $l3-font-size * .9;
|
37
|
+
margin-bottom: $vertical-rhythm * 1.25;
|
38
|
+
}
|
39
|
+
@media (max-width: $breakpoint-small) {
|
40
|
+
font-size: $l3-font-size * .8;
|
41
|
+
margin-bottom: $vertical-rhythm;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
h2 {
|
46
|
+
font-size: $l2-font-size;
|
47
|
+
@media (max-width: $breakpoint-medium) {
|
48
|
+
font-size: $l2-font-size * .9;
|
49
|
+
}
|
50
|
+
@media (max-width: $breakpoint-small) {
|
51
|
+
font-size: $l2-font-size * .8;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
h3 {
|
56
|
+
font-size: $l1-font-size;
|
57
|
+
@media (max-width: $breakpoint-medium) {
|
58
|
+
font-size: $l1-font-size * .9;
|
59
|
+
}
|
60
|
+
@media (max-width: $breakpoint-small) {
|
61
|
+
font-size: $l1-font-size * .8;
|
62
|
+
}
|
12
63
|
}
|
data/_sass/bookend.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- drainpip
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -63,6 +63,8 @@ files:
|
|
63
63
|
- README.md
|
64
64
|
- _layouts/chapter.html
|
65
65
|
- _layouts/default.html
|
66
|
+
- _sass/_bindings.scss
|
67
|
+
- _sass/_variables.scss
|
66
68
|
- _sass/_words.scss
|
67
69
|
- _sass/bookend.scss
|
68
70
|
- _sass/normalize.scss
|