jekyll-theme-isotc211 0.3 → 0.3.1

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
  SHA256:
3
- metadata.gz: e9ea16ec48f64dc0ddfa05644d0773f34228fcea9d155d50594daf5285adf8f4
4
- data.tar.gz: c81df5f9596a7ed860cc2dc80f6d979fa54f3b4fa1c624619e4baf9d2c067b29
3
+ metadata.gz: fbf8574599352552548cd2f2b6c8ab94c3f3225248a34cbd7e10374f9172a377
4
+ data.tar.gz: b03b1cfcbfe6e7d6b3185bde7f5481cb24108344cea58248eadc28583172861e
5
5
  SHA512:
6
- metadata.gz: 0f9066da821978a383e0a06984ba30d0ec7b0f55cbc155c64f651b93ff6fb477bffe77ee532a30c276ceefb019562ca7514bcc61c73f502898e228d5acf8dc7c
7
- data.tar.gz: 02babca920bd2532fc7f27077f5bc7a2b17010a6a00e1a8e2b26a127a6bae41841027f6758b9acfcafa99fa64819cf9952ca01a9ebb1beb7edb48e6f33ec5123
6
+ metadata.gz: dfc36674ccb39d7d9bc8431bce675a5205ad3cca2d492446e850eb1d8511a64cececd89ca59d49b8dd25a8e6a95386c10c5c1a10f32b6a0fef11ecd8b7a86087
7
+ data.tar.gz: e41b487ad7b9332aca3319ebab03877b42fcd668ef6602bcb2876c1c1423de7ec954dd7e7a17ee5469b86fc897efeb711d2e5b81d9102bb21a73598f4027ad53
@@ -3,8 +3,8 @@
3
3
  {% if post.illustration %}news-item--with-illustration{% endif %}">
4
4
 
5
5
  {% if post.illustration %}
6
- <a class="illustration-container" href="{{ post.url | relative_url }}">
7
- <img src="{{ post.illustration | relative_url }}">
6
+ <a class="illustration-container" href="{{ post.url | relative_url }}"
7
+ style="background-image: url({{ post.illustration | relative_url }});">
8
8
  </a>
9
9
  {% endif %}
10
10
 
@@ -43,11 +43,12 @@
43
43
  {{ content }}
44
44
  </main>
45
45
 
46
- {% if site.awards %}
46
+ {% if site.awards and page.hide_awards != true %}
47
47
  <p class="awards">
48
+ <i class="fa fa-certificate icon"></i>
48
49
  Winner of
49
50
  {% for award in site.awards %}
50
- <span class="award"><a href="{{ award.path }}"
51
+ <span class="award">the <a href="{{ award.path }}"
51
52
  >{{ award.title }}</a>{%- unless forloop.last -%}, {% endunless %}</span>{% endfor %}.
52
53
  </p>
53
54
  {% endif %}
data/_layouts/page.html CHANGED
@@ -3,6 +3,6 @@ layout: default
3
3
  bodyClass: page
4
4
  ---
5
5
 
6
- <h2>{{ page.title }}</h2>
6
+ <h1>{{ page.title_html | default: page.title }}</h1>
7
7
 
8
8
  {{ content }}
data/_layouts/post.html CHANGED
@@ -4,7 +4,7 @@ nav_items: [home, about]
4
4
  bodyClass: post
5
5
  ---
6
6
 
7
- <h2>{{ page.title }}</h2>
7
+ <h1>{{ page.title_html | default: page.title }}</h1>
8
8
 
9
9
  <p class="meta">{{ page.date | date: '%B %d, %Y' }}</p>
10
10
 
@@ -0,0 +1,129 @@
1
+ // Asciidoctor-generated markup
2
+ // ============================
3
+
4
+ @mixin asciidoc-markup() {
5
+
6
+ // Code listing
7
+
8
+ .paragraph code {
9
+ word-break: break-word;
10
+ }
11
+
12
+ // Generic block title
13
+
14
+ .admonitionblock,
15
+ .listingblock,
16
+ .imageblock {
17
+ .title {
18
+ text-transform: uppercase;
19
+ font-size: 12px;
20
+ border-radius: .25em;
21
+ background-color: $textColor;
22
+ color: white;
23
+ font-weight: bold;
24
+ padding: .3em .6em .15em .6em;
25
+ }
26
+ }
27
+
28
+ // Specific blocks
29
+
30
+ .admonitionblock,
31
+ .listingblock {
32
+ margin-top: 1em;
33
+ margin-bottom: 1em;
34
+ }
35
+
36
+ .admonitionblock.warning {
37
+ td.icon .title {
38
+ background-color: $warningColor;
39
+ }
40
+ }
41
+ .admonitionblock.important {
42
+ td.icon .title {
43
+ background-color: $importantColor;
44
+ }
45
+ }
46
+
47
+ .imageblock {
48
+ .title {
49
+ background-color: $accentColor;
50
+ color: white;
51
+ }
52
+ }
53
+
54
+ .listingblock {
55
+ display: flex;
56
+ flex-flow: column nowrap;
57
+
58
+ .title {
59
+ align-self: flex-start;
60
+ background-color: $codeListingBorderColor;
61
+ color: white;
62
+ border-radius: 0;
63
+ }
64
+
65
+ .content {
66
+ align-self: stretch;
67
+
68
+ pre {
69
+ margin: 0;
70
+ }
71
+ }
72
+ }
73
+
74
+ .admonitionblock {
75
+ overflow-x: scroll;
76
+
77
+ table:first-child {
78
+ margin-top: 0;
79
+ }
80
+ table:last-child {
81
+ margin-bottom: 0;
82
+ }
83
+
84
+ td.icon {
85
+ vertical-align: top;
86
+ padding-left: 0;
87
+ padding-right: 1em;
88
+ font-size: 90%;
89
+ }
90
+
91
+ .title {
92
+ background-color: $linkColor;
93
+ color: white;
94
+ }
95
+
96
+ .content {
97
+ font-size: 90%;
98
+
99
+ .title {
100
+ background: transparent;
101
+ color: $textColor;
102
+ padding-left: 0;
103
+ }
104
+
105
+ .listingblock pre {
106
+ font-size: 100%;
107
+ }
108
+
109
+ > div:first-child {
110
+ > :first-child {
111
+ margin-top: 0;
112
+ }
113
+ }
114
+ > div:last-child {
115
+ > :last-child {
116
+ margin-bottom: 0;
117
+ }
118
+ &.ulist {
119
+ li:first-child > :first-child {
120
+ margin-top: 0;
121
+ }
122
+ li:last-child > :last-child {
123
+ margin-bottom: 0;
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
data/_sass/home.scss CHANGED
@@ -23,7 +23,7 @@ body.home {
23
23
  flex-flow: row nowrap;
24
24
  justify-content: flex-start;
25
25
  align-items: stretch;
26
- overflow-y: auto;
26
+ overflow-x: auto;
27
27
  padding-top: 1em;
28
28
  padding-bottom: 1em;
29
29
  }
@@ -55,16 +55,8 @@ body.home {
55
55
  display: block;
56
56
  width: 155px;
57
57
  overflow: hidden;
58
-
59
- img {
60
- display: block;
61
- width: 300px;
62
- height: auto;
63
- position: absolute;
64
- top: 50%;
65
- left: 50%;
66
- transform: translateY(-50%) translateX(-50%);
67
- }
58
+ background-size: cover;
59
+ background-position: center center;
68
60
  }
69
61
  }
70
62
 
@@ -72,6 +64,8 @@ body.home {
72
64
  font-weight: normal;
73
65
  margin-top: .75em;
74
66
  margin-bottom: .4em;
67
+ font-size: 110%;
68
+ line-height: 1.3;
75
69
 
76
70
  a {
77
71
  text-decoration: none;
@@ -8,6 +8,12 @@ $logoSize: 100px;
8
8
  $isoTCColor: #0f6db3;
9
9
  $textColor: black;
10
10
 
11
+ $warningColor: red;
12
+ $importantColor: orange;
13
+ $accentColor: $isoTCColor;
14
+
15
+ $codeListingBorderColor: silver;
16
+
11
17
  $mainShadowColor: rgba(black, 0.4);
12
18
  $headerFooterBackgroundColor: rgba(black, 0.05);
13
19
  $mainSectionBackgroundColor: rgba(white, 0.8);
@@ -65,6 +71,7 @@ html {
65
71
  position: relative;
66
72
  }
67
73
 
74
+ @import 'adoc-markup';
68
75
  @import 'offsets';
69
76
  @import 'main';
70
77
  @import 'home';
data/_sass/main.scss CHANGED
@@ -1,28 +1,11 @@
1
- // Asciidoctor-generated markup
2
- // ============================
1
+ // Main layout
2
+ // ===========
3
3
 
4
4
  body > main {
5
- .admonitionblock {
6
- margin-bottom: 1em;
7
-
8
- td.icon {
9
- vertical-align: top;
10
- padding-right: 1em;
11
- font-weight: bold;
12
- }
13
- .content {
14
- word-break: break-word;
15
- }
16
- }
17
- .paragraph code {
18
- word-break: break-word;
19
- }
5
+ font-size: 18px;
6
+ @include asciidoc-markup();
20
7
  }
21
8
 
22
-
23
- // Main layout
24
- // ===========
25
-
26
9
  body > header,
27
10
  body > main > section,
28
11
  body > main > .section {
@@ -63,6 +46,10 @@ body {
63
46
  padding: 1em 15vw;
64
47
  background: rgba(black, 0.1);
65
48
  font-size: 80%;
49
+
50
+ .icon {
51
+ margin-right: 1em;
52
+ }
66
53
  }
67
54
 
68
55
  > footer {
data/_sass/offsets.scss CHANGED
@@ -39,7 +39,11 @@ body.home > main > .news {
39
39
 
40
40
  body.post, body.page {
41
41
  > main > * {
42
- margin-left: $sideOffsetBase;
43
- margin-right: $sideOffsetBase;
42
+ padding-left: $sideOffsetBase;
43
+ padding-right: $sideOffsetBase / 2;
44
+
45
+ @media screen and (min-width: $bigscreenBreakpoint) {
46
+ padding-right: $sideOffsetBase;
47
+ }
44
48
  }
45
49
  }
data/_sass/post.scss CHANGED
@@ -1,27 +1,34 @@
1
- body.post {
1
+ body.post,
2
+ body.page {
2
3
  > main {
3
4
  padding-bottom: 1em;
4
- }
5
5
 
6
- .meta {
7
- color: lighten($textColor, 50);
8
- margin-bottom: 2em;
9
- }
6
+ h1 {
7
+ margin-bottom: 0;
8
+ font-weight: normal;
9
+ font-size: 200%;
10
+ }
10
11
 
11
- h2 {
12
- margin-bottom: 0;
13
- font-weight: normal;
14
- font-size: 200%;
15
- }
12
+ .lead {
13
+ background-color: rgba(0, 0, 0, 0.05);
14
+ font-size: 120%;
15
+ margin-bottom: 1em;
16
+ }
17
+
18
+ .meta {
19
+ color: lighten($textColor, 50);
20
+ margin-bottom: 2em;
21
+ }
16
22
 
17
- .illustration {
18
- margin-bottom: 1em;
23
+ .illustration {
24
+ margin-bottom: 1em;
19
25
 
20
- img {
21
- display: block;
22
- width: 100%;
23
- @media screen and (min-width: $bigscreenBreakpoint) {
24
- width: 85%;
26
+ img {
27
+ display: block;
28
+ width: 100%;
29
+ @media screen and (min-width: $bigscreenBreakpoint) {
30
+ width: 85%;
31
+ }
25
32
  }
26
33
  }
27
34
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-isotc211
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-24 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -142,6 +142,7 @@ files:
142
142
  - _layouts/page.html
143
143
  - _layouts/post.html
144
144
  - _pages/404.adoc
145
+ - _sass/adoc-markup.scss
145
146
  - _sass/home.scss
146
147
  - _sass/jekyll-theme-isotc211.scss
147
148
  - _sass/main.scss