okf-pub-theme 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/effect-chains.html +8 -6
- data/_includes/effect-item.html +3 -3
- data/_sass/_effects.sass +67 -39
- data/_sass/_header.sass +1 -1
- data/_sass/_main.sass +3 -4
- data/assets/css/style.sass +0 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22f9f781e57e12912408ad353d17da14f7950815
|
4
|
+
data.tar.gz: 9ae9e97e7f4eedecfa754ff7f55572e1f0bd266f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
<
|
6
|
+
<li class="effect-chain__link">
|
6
7
|
<h3 class="is-size-4">{{ x.label }}</h3>
|
7
8
|
{% assign collection = page[x.key] %}
|
8
|
-
<
|
9
|
+
<ul class="effect-chain__sublink {{ x.key }}">
|
9
10
|
{% for item in collection %}
|
10
|
-
|
11
|
+
{% include effect-item.html %}
|
11
12
|
{% endfor %}
|
12
|
-
</
|
13
|
-
</
|
13
|
+
</ul>
|
14
|
+
</li>
|
14
15
|
{% endif %}
|
15
|
-
{% endfor %}
|
16
|
+
{% endfor %}
|
17
|
+
</ol>
|
16
18
|
</section>
|
17
19
|
<hr>
|
18
20
|
{% endif %}
|
data/_includes/effect-item.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<li
|
1
|
+
<li>
|
2
2
|
{% if item.title %}<h4>{{ item.title }}</h4>{% endif %}
|
3
|
-
{% if item.text %}<
|
4
|
-
{% if item.claim %}<
|
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
|
-
.
|
2
|
-
margin-top: 5rem
|
3
|
-
counter-reset: effects
|
4
|
-
|
5
|
-
.effect__chain
|
1
|
+
.effect-chain
|
6
2
|
list-style: none
|
7
|
-
|
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
|
-
.
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
-
|
13
|
+
counter-increment: effects
|
14
|
+
content: counter(effects)
|
15
|
+
display: inline-block
|
16
|
+
font-weight: 500
|
42
17
|
margin-right: 1rem
|
43
|
-
|
44
|
-
|
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
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
|
-
|
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
|
-
|
72
|
-
|
70
|
+
* + p
|
71
|
+
margin-bottom: 1em
|
73
72
|
|
74
73
|
strong
|
75
74
|
font-weight: 500
|
data/assets/css/style.sass
CHANGED
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.
|
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-
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|