okf-pub-theme 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 485705bf9ad5e9ca9e7b04e812d19287085e2691
4
- data.tar.gz: 46521665b10f89e76dbb7d7922f24f559b104db0
3
+ metadata.gz: 22f9f781e57e12912408ad353d17da14f7950815
4
+ data.tar.gz: 9ae9e97e7f4eedecfa754ff7f55572e1f0bd266f
5
5
  SHA512:
6
- metadata.gz: 69fe094db0f62e249260a246bd96bac5d6fe9f156297218e2b281bcfecb930be6e9d20ae51a3a5dd56f5609eda001749d052144d2b10b5f712e82f8fdb220a2f
7
- data.tar.gz: 84eca8921c0250dd27113bd690410c7f1b1f0e9c0262c13764cc38ba8648b1d72da70af4ef3aa39384590631eae07a6123e9d27cffc300c4cacf7b2ede5d4390
6
+ metadata.gz: 60bf96bc7bfc2718882843f2f0bc67268a905008faff9cfa6d2b53f18d8205f1b9565d1138f07c95705ea46e22c27425a61e2ff3e7be3de54973c21e21cf28f2
7
+ data.tar.gz: d87ebb6639c133fe08defd4c8edd60cd8b1a365608b653887cd0302bb9d791bb31cdf3a96e15ad484a24a4208be10276ebd374522f4718bf77eb74293beff37a
@@ -1,18 +1,20 @@
1
1
  {% if page.problem %}
2
2
  <section>
3
+ <ol class="effect-chain">
3
4
  {% for x in site.chapter.effects %}
4
5
  {% if page[x.key] %}
5
- <div class="effect__block">
6
+ <li class="effect-chain__link">
6
7
  <h3 class="is-size-4">{{ x.label }}</h3>
7
8
  {% assign collection = page[x.key] %}
8
- <ol class="effect__chain">
9
+ <ul class="effect-chain__sublink {{ x.key }}">
9
10
  {% for item in collection %}
10
- {% include effect-item.html %}
11
+ {% include effect-item.html %}
11
12
  {% endfor %}
12
- </ol>
13
- </div>
13
+ </ul>
14
+ </li>
14
15
  {% endif %}
15
- {% endfor %}
16
+ {% endfor %}
17
+ </ol>
16
18
  </section>
17
19
  <hr>
18
20
  {% endif %}
@@ -1,5 +1,5 @@
1
- <li {% if item.claim %}class="effect__claim"{% endif %}>
1
+ <li>
2
2
  {% if item.title %}<h4>{{ item.title }}</h4>{% endif %}
3
- {% if item.text %}<p>{{ item.text }}</p>{% endif %}
4
- {% if item.claim %}<p><strong>{{ item.claim }}</strong></p>{% endif %}
3
+ {% if item.text %}<div>{{ item.text | markdownify }}</div>{% endif %}
4
+ {% if item.claim %}<div>{{ item.claim | markdownify }}</div>{% endif %}
5
5
  </li>
data/_sass/_effects.sass CHANGED
@@ -1,44 +1,72 @@
1
- .effect__block
2
- margin-top: 5rem
3
- counter-reset: effects
4
-
5
- .effect__chain
1
+ .effect-chain
6
2
  list-style: none
7
- $spacing: 0.3rem
8
- h4
9
- margin-bottom: $spacing
10
- display: inline-block
11
- &::before
12
- counter-increment: effects
13
- content: counter(effects)
14
- display: inline-block
15
- font-weight: 500
16
- margin-right: 1rem
17
- p
18
- padding-left: 1.2rem
19
- padding-bottom: 2em
20
- margin-left: 0.25em
21
- margin-bottom: $spacing !important
22
-
23
- p:not(.effect__claim)
24
- border-left: 1px solid $okf-grey-2
3
+ counter-reset: effects
25
4
 
26
- li
27
- margin-left: 1rem
28
- &:last-of-type
29
- p
30
- border: none
31
- &:only-child
32
- margin-left: 0
33
- p
34
- padding: 0
35
5
 
36
- .effect__claim
37
- p
38
- padding-bottom: 1rem
39
- border: none
6
+ $spacing: 0.25rem
7
+ .effect-chain__link
8
+ h3
9
+ margin-top: 0.5rem
10
+ margin-bottom: $spacing
11
+ display: inline-block
40
12
  &::before
41
- content: "🔥"
13
+ counter-increment: effects
14
+ content: counter(effects)
15
+ display: inline-block
16
+ font-weight: 500
42
17
  margin-right: 1rem
43
- margin-left: -1.6rem
44
- margin-right: 0.6rem
18
+ h4
19
+ margin-bottom: 0
20
+ color: $okf-font-1
21
+
22
+ .effect-chain__sublink
23
+ margin: 0 0 0 $spacing
24
+ padding: 2.2rem 0 5rem 2rem
25
+ border-left: 2px solid $okf-grey-2
26
+ > li
27
+ position: relative
28
+ margin-bottom: 3rem
29
+ list-style: none
30
+ &::before
31
+ content: ""
32
+ position: absolute
33
+ top: -0.2rem
34
+ left: -2.5rem
35
+ display: block
36
+ width: 2rem
37
+ height: 2rem
38
+ background-color: white
39
+ &::after
40
+ content: ""
41
+ position: absolute
42
+ top: .5rem
43
+ left: -2.4rem
44
+ display: block
45
+ width: .5em
46
+ height: .5em
47
+ background-color: $okf-grey-2
48
+ border-radius: 50%
49
+
50
+ &.problem
51
+ > li::after,
52
+ > li::before
53
+ content: none
54
+ &.causes
55
+ > li:last-of-type::after
56
+ content: "="
57
+ background-color: transparent
58
+ color: $okf-grey-2
59
+ font-size: 2rem
60
+ line-height: 0.5
61
+ text-align: center
62
+ left: -2.6rem
63
+ &.effect
64
+ > li:last-of-type::after
65
+ content: "💪"
66
+ background-color: white
67
+ font-size: 1.2em
68
+ line-height: 0.7
69
+ left: -2.7rem
70
+ width: 1rem
71
+ height: 15rem
72
+ border-radius: 0
data/_sass/_header.sass CHANGED
@@ -44,7 +44,7 @@
44
44
  position: absolute
45
45
  width: 100vh
46
46
  font-size: 1.2rem
47
- line-height: 1
47
+ line-height: 1.5
48
48
  transform: rotate(90deg) translate(10%, -50%)
49
49
  transform-origin: left bottom
50
50
 
data/_sass/_main.sass CHANGED
@@ -57,8 +57,7 @@ main
57
57
  h1, h2, h3, h4
58
58
  font-weight: 500
59
59
  margin-bottom: 0.8em
60
- //& + p
61
- // margin-bottom: 1.8em
60
+ color: $okf-font-1
62
61
 
63
62
  h2
64
63
  font-size: $size-4
@@ -68,8 +67,8 @@ main
68
67
 
69
68
  p, ul, ol
70
69
  color: $okf-font-2
71
- & + p
72
- margin-bottom: 1em
70
+ * + p
71
+ margin-bottom: 1em
73
72
 
74
73
  strong
75
74
  font-weight: 500
@@ -66,8 +66,3 @@ $input-shadow: none
66
66
 
67
67
  .header
68
68
  display: none
69
-
70
- @media print and (color)
71
- *
72
- -webkit-print-color-adjust: exact
73
- print-color-adjust: exact
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okf-pub-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - lislis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-22 00:00:00.000000000 Z
11
+ date: 2019-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll