jekyll-theme-paperwiki 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ h3 {
60
60
  font-size: $fontsize-h3;
61
61
  font-variant: small-caps;
62
62
  padding: 0.71em 0 0.9em 0;
63
- color: #828077;
63
+ color: $color-h3;
64
64
  }
65
65
 
66
66
  a,
@@ -97,15 +97,18 @@ blockquote {
97
97
  margin-left: 3em;
98
98
  margin-right: 3em;
99
99
  margin-bottom: 1.75rem;
100
- padding-left: 1em;
100
+ padding: 1.75em;
101
101
 
102
- border-left: 0.25em solid $color-linen;
102
+ background-color: $color-paperdark;
103
+ border-left: 0.5em solid $color-shortbread;
103
104
 
104
- cite {
105
- display: block;
106
- width: 100%;
105
+ figcaption {
107
106
  text-align: right;
108
107
  }
108
+
109
+ figcaption cite {
110
+ display: inline;
111
+ }
109
112
  }
110
113
 
111
114
  ul ul {
@@ -131,15 +134,90 @@ samp {
131
134
  }
132
135
 
133
136
  code,
134
- kbd,
135
- .ipa {
136
- padding: 0.1em 0.2em;
137
+ kbd {
138
+ padding: 0.4em 0.5em 0.2em;
139
+
140
+ background-color: $color-codebg;
141
+ color: $color-codetext;
142
+ border-radius: 4px;
143
+ }
144
+
145
+ kbd {
146
+ position: relative;
147
+ top: -1px;
148
+ display: inline-block;
149
+ min-width: 0.75rem;
150
+ padding: 0.2rem 0.5rem;
151
+ line-height: 1;
152
+
153
+ background-color: $color-paperlight;
154
+ border: 1px solid $color-linen;
155
+ box-shadow: 0 2px 0 1px $color-linen;
156
+
157
+ cursor: default;
158
+
159
+ font-family: $fontfamily-body;
160
+ text-align: center;
161
+ color: $color-bodytext;
162
+
163
+ transition: .1s;
164
+ &:hover {
165
+ box-shadow: 0 1px 0 0.5px $color-linen;
166
+ top: 1px;
167
+ }
168
+ }
169
+
170
+ pre {
171
+ padding: 1rem;
137
172
 
138
173
  background-color: $color-codebg;
139
174
  color: $color-codetext;
140
- border-radius: 0.3em;
175
+ border-radius: 6px;
141
176
  }
142
177
 
143
178
  input[type="search"] {
144
179
  background-color: $color-searchbg;
145
180
  }
181
+
182
+ .tooltip {
183
+ position: relative;
184
+ }
185
+
186
+ .tooltip:before {
187
+ content: attr(data-tooltip);
188
+ position: absolute;
189
+ width: 100px;
190
+ background-color: #062B45;
191
+ color: #fff;
192
+ text-align: center;
193
+ padding: 10px;
194
+ line-height: 1.2;
195
+ border-radius: 6px;
196
+ z-index: 1;
197
+ opacity: 0;
198
+ transition: opacity .6s;
199
+ bottom: 125%;
200
+ left: 50%;
201
+ margin-left: -60px;
202
+ font-size: 0.75em;
203
+ visibility: hidden;
204
+ }
205
+
206
+ .tooltip:after {
207
+ content: "";
208
+ position: absolute;
209
+ bottom: 75%;
210
+ left: 50%;
211
+ margin-left: -5px;
212
+ border-width: 5px;
213
+ border-style: solid;
214
+ opacity: 0;
215
+ transition: opacity .6s;
216
+ border-color: #062B45 transparent transparent transparent;
217
+ visibility: hidden;
218
+ }
219
+
220
+ .tooltip:hover:before, .tooltip:hover:after {
221
+ opacity: 1;
222
+ visibility: visible;
223
+ }
@@ -6,7 +6,8 @@
6
6
  grid-column: span 2 / auto;
7
7
  padding: 4.5em 2em;
8
8
 
9
- background-color: $color-paperdark;
9
+ background-color: $color-collections_sidebar;
10
+ border-right: 1px solid $color-shortbread;
10
11
 
11
12
  font-size: $fontsize-small;
12
13
 
@@ -22,10 +23,6 @@
22
23
  .collections-content {
23
24
  grid-column: span 10 / auto;
24
25
 
25
- // display: grid;
26
- // grid-template-columns: repeat(12, 1fr);
27
- // grid-gap: 2em;
28
-
29
26
  padding: 1.56em 2em 1.56em*2;
30
27
 
31
28
  h1 {
@@ -47,8 +44,8 @@
47
44
  padding: 1.5rem;
48
45
  margin-bottom: 1rem;
49
46
 
50
- background-color: $color-paperdark;
51
- border: 1px solid #faf7f6;
47
+ background-color: $color-collections_header;
48
+ border: 1px solid $color-collections_header_border;
52
49
  border-radius: 1.5rem;
53
50
  }
54
51
 
@@ -62,7 +59,7 @@
62
59
  width: 100%;
63
60
  padding: 12px 16px;
64
61
 
65
- border: 1px solid transparent;
62
+ border: 1px solid $color-searchbar_border;
66
63
  border-radius: 1rem;
67
64
 
68
65
  font-size: $fontsize-body;
@@ -73,14 +70,14 @@
73
70
  }
74
71
 
75
72
  .collections-searchbar:hover {
76
- border: 1px solid $color-launchpadsearch;
77
- box-shadow: 0 0 6px $color-globalsearchbar;
73
+ border: 1px solid $color-searchbar_border_hover;
74
+ box-shadow: 0 0 6px $color-searchbar_shadow_hover;
78
75
  }
79
76
 
80
77
  .collections-searchbar:focus {
81
78
  outline: none;
82
- border-color: $color-globalsearchbar;
83
- box-shadow: 0 0 6px $color-globalsearchbar;
79
+ border-color: $color-searchbar_border_focus;
80
+ box-shadow: 0 0 6px $color-searchbar_shadow_focus;
84
81
  transition: 0.25s;
85
82
  }
86
83
 
@@ -4,6 +4,7 @@
4
4
  \*------------------------------------*/
5
5
 
6
6
 
7
+
7
8
  .entry {
8
9
  padding: 1.56em 2em;
9
10
 
@@ -33,6 +34,9 @@
33
34
  grid-column: span 10 / auto;
34
35
  }
35
36
 
37
+
38
+
39
+ // The auto-generated table of contents.
36
40
  .entry-index {
37
41
  position: -webkit-sticky; /* Safari */
38
42
  position: sticky;
@@ -41,11 +45,23 @@
41
45
 
42
46
  grid-column: span 2 / auto;
43
47
 
44
- padding: 4.5em 1em 2em 0.75em;
48
+ padding: 2em 1em 2em 0.75em;
45
49
 
46
50
  font-size: $fontsize-small;
47
51
  }
48
52
 
53
+ .entry-index ul {
54
+ list-style: none;
55
+ padding-left: 1rem;
56
+ a {
57
+ text-decoration: none;
58
+ }
59
+ }
60
+
61
+ .entry-index_return {
62
+ margin-bottom: 1.5rem;
63
+ }
64
+
49
65
  .entry-index ol {
50
66
  list-style: none;
51
67
  padding-left: 1rem;
@@ -66,13 +82,17 @@
66
82
  }
67
83
 
68
84
 
69
- .entry-summary {}
85
+
86
+ // The righthand sidebar.
87
+ .entry-sidebar {
88
+ grid-column: span 3 / auto;
89
+ }
70
90
 
71
91
  .entry-other_projects {
72
92
  padding: 1rem;
73
- margin: 1em 0;
93
+ margin: 1em;
74
94
  border-radius: 1em;
75
- background-color: #f9f7f6;
95
+ background-color: $color-entry_secondary;
76
96
  font-size: $fontsize-small;
77
97
 
78
98
  ul {
@@ -83,17 +103,13 @@
83
103
  }
84
104
  }
85
105
 
86
- .entry-quickstats {
87
- grid-column: span 3 / auto;
88
- padding: 0.5em;
89
- }
90
-
91
- .stats-image {
106
+ .entry-image {
92
107
  padding: 0.2em 0.2em 0.1em 0.2em;
93
108
  max-width: 100%;
94
109
  }
95
110
 
96
- .stats-facts {
111
+ .entry-quickstats {
112
+ padding: 0.5em;
97
113
  font-size: $fontsize-small;
98
114
  }
99
115
 
@@ -107,21 +123,29 @@
107
123
  }
108
124
  tr td:first-child {
109
125
  text-align: right;
110
- padding-right: 0.5em;
111
126
  background-color: $color-linen;
112
127
  }
113
128
  tr td:last-child {
114
129
  background-color: $color-paperdark;
115
130
  }
131
+ .entry-quickstats_double {
132
+ text-align: center !important;
133
+ }
134
+ }
135
+
136
+ .entry-quicknotes {
137
+ padding: 0.5em;
138
+ font-size: $fontsize-small;
139
+ text-align: center;
116
140
  }
117
141
 
118
142
 
119
143
 
144
+ // The navigation, which can be at the top or bottom of the article.
120
145
  .entry-tags {
121
- margin-bottom: 2em;
122
146
  padding: 1rem;
123
147
  border-radius: 1em;
124
- background-color: #f9f7f6;
148
+ background-color: $color-entry_secondary;
125
149
  font-size: $fontsize-small;
126
150
  text-transform: uppercase;
127
151
 
@@ -130,6 +154,14 @@
130
154
  }
131
155
  }
132
156
 
157
+ .entry-tags_top {
158
+ margin-bottom: 2em;
159
+ }
160
+
161
+ .entry-tags_bottom {
162
+ margin-top: 2em;
163
+ }
164
+
133
165
  .entry-subhead_pair {
134
166
  display: inline;
135
167
  margin-right: 1em;
@@ -150,8 +182,10 @@
150
182
 
151
183
 
152
184
 
185
+ // The footnotes section and the footnotes themselves.
153
186
  a.footnote {
154
187
  text-decoration: none;
188
+ line-height: 0;
155
189
  }
156
190
  a.footnote::before {
157
191
  content: "[";
@@ -161,11 +195,9 @@ a.footnote::after {
161
195
  }
162
196
 
163
197
  .footnotes {
164
- // grid-column: span 7 / auto;
165
-
166
198
  padding: 1rem;
167
199
  border-radius: 1em;
168
- background-color: #f9f7f6;
200
+ background-color: $color-entry_secondary;
169
201
  font-size: $fontsize-small;
170
202
  ol {
171
203
  padding-left: 1rem;
@@ -176,3 +208,5 @@ a.footnote::after {
176
208
  }
177
209
  }
178
210
  }
211
+
212
+ .tooltip {}
@@ -67,7 +67,7 @@
67
67
 
68
68
  .global-searchbar {
69
69
  padding: 0.2rem 1rem;
70
- border: 1px solid transparent;
70
+ border: 1px solid $color-searchbar_border;
71
71
  border-radius: 8px;
72
72
  font-size: $fontsize-small;
73
73
  transition: 0.25s;
@@ -81,14 +81,14 @@
81
81
  }
82
82
 
83
83
  .global-searchbar:hover {
84
- border: 1px solid $color-launchpadsearch;
85
- box-shadow: 0 0 6px $color-globalsearchbar;
84
+ border: 1px solid $color-searchbar_border_hover;
85
+ box-shadow: 0 0 6px $color-searchbar_shadow_hover;
86
86
  }
87
87
 
88
88
  .global-searchbar:focus {
89
89
  outline: none;
90
- border-color: $color-globalsearchbar;
91
- box-shadow: 0 0 6px $color-globalsearchbar;
90
+ border-color: $color-searchbar_border_focus;
91
+ box-shadow: 0 0 6px $color-searchbar_shadow_focus;
92
92
  transition: 0.25s;
93
93
  }
94
94
 
@@ -106,18 +106,29 @@
106
106
  }
107
107
 
108
108
  .global-nav-link {
109
+ position: relative;
109
110
  display: inline-block;
110
- padding-top: 0.3rem;
111
-
111
+ padding-top: 0.15rem;
112
112
  margin-right: 1.75rem;
113
113
 
114
- border-bottom: 2px solid #f6bf5d;
115
-
116
114
  font-size: $fontsize-small;
117
115
  text-decoration: none;
118
116
  text-transform: uppercase;
119
- &:hover {
120
- opacity: 0.75;
117
+ &::after {
118
+ content: ' ';
119
+ position: absolute;
120
+ top: 100%;
121
+ left: 25%;
122
+
123
+ width: 50%;
124
+ height: 1px;
125
+ border-bottom: 2px solid $color-global_nav_underline;
126
+
127
+ transition: 0.4s;
128
+ }
129
+ &:hover::after {
130
+ width: 100%;
131
+ left: 0;
121
132
  }
122
133
  }
123
134
 
@@ -9,10 +9,10 @@
9
9
  margin-top: 0;
10
10
  margin-bottom: 1.75rem;
11
11
  td {
12
- padding: 0 0 0 0.8em;
12
+ padding: 0 0 0 1em;
13
13
  }
14
14
  td:first-child {
15
- border-left: 2px solid $color-pistachio;
15
+ border-left: 4px solid $color-pistachio;
16
16
  }
17
17
  }
18
18
 
@@ -0,0 +1,10 @@
1
+ /*------------------------------------*\
2
+ # LANGUAGE STYLING
3
+ # styling for grammars and the like
4
+ \*------------------------------------*/
5
+
6
+ .ipa {
7
+ background-color: $color-codebg;
8
+ padding: .25em;
9
+ border-radius: .25em;
10
+ }
@@ -29,7 +29,7 @@
29
29
  width: 60%;
30
30
  padding: 12px 16px;
31
31
 
32
- border: 1px solid transparent;
32
+ border: 1px solid #f0eae7;
33
33
  border-radius: 1rem;
34
34
 
35
35
  font-size: $fontsize-body;
@@ -3,5 +3,17 @@
3
3
  \*------------------------------------*/
4
4
 
5
5
  #search-results dd {
6
- margin-bottom: 1.75em;
6
+ }
7
+
8
+ .search_result {}
9
+
10
+ .search_result-details {
11
+ margin-bottom: 0;
12
+ margin-left: 1.75rem;
13
+ font-size: $fontsize-small;
14
+ text-transform: uppercase;
15
+ }
16
+
17
+ .search_result-preview {
18
+ margin-bottom: 1.75rem;
7
19
  }
data/_sass/style.scss CHANGED
@@ -11,4 +11,5 @@
11
11
  @import "partials/entries";
12
12
  @import "partials/search";
13
13
  @import "partials/blog";
14
+ @import "partials/languages";
14
15
  @import "partials/glossing";
@@ -2,17 +2,24 @@
2
2
  # COLOUR SCHEME
3
3
  \*------------------------------------*/
4
4
 
5
+ // neutrals
5
6
  $color-paperlight: #fdfcfc; // off white
6
7
  $color-paperdark: #fbf9f8;
7
8
  $color-linen: #f6f2ef; // shortbread
9
+ $color-shortbread: #f9f6f4;//#f8f4f2;
8
10
  $color-ink: #4b4a46; // dark umber
11
+ $color-inkwarm: #504b38;
12
+ $color-ink_faded: #828077;
13
+
14
+ // brights
9
15
  $color-limeade: #e2edbf;
10
16
  $color-pistachio: #f1f5e1;
11
17
  $color-kiwi: #a7c854;
12
18
  $color-melon: #f1a393;
13
19
  $color-peach: #f7dcd3;
14
- $color-inkwarm: #504b38;
20
+ $color-mango: #f6bf5d;
15
21
 
22
+ // links
16
23
  $color-bluelight: #4083ae;
17
24
  $color-bluedark: #356d90;
18
25
  $color-purple: #61609d;
@@ -21,19 +28,27 @@ $color-purple: #61609d;
21
28
  # COLOUR SCHEME values
22
29
  \*------------------------------------*/
23
30
 
31
+ // Colours that apply to the body of all pages.
24
32
  $color-bodybg: $color-linen;
25
33
  $color-contentbg: $color-paperlight;
26
- $color-globalbg: $color-paperdark;
27
- $color-globalborder: #f7f2ef;
28
34
 
35
+ // Global text and link colours.
29
36
  $color-bodytext: $color-ink;
37
+ $color-h3: $color-ink_faded;
38
+
30
39
  $color-link: $color-bluelight;
31
40
  $color-linkhover: $color-bluedark;
32
41
  $color-linkactive: $color-purple;
33
42
  $color-linkvisited: $color-purple;
34
43
 
44
+ // Colours that apply to the global header and footer.
45
+ $color-globalbg: $color-paperdark;
46
+ $color-globalborder: $color-shortbread;
47
+ $color-global_nav_underline: $color-mango;
48
+
35
49
  $color-globalsearchbar: $color-peach;
36
50
 
51
+ // Colours that apply to the index page or launchpad.
37
52
  $color-launchpadsearch: $color-linen;
38
53
  $color-launchpadborder: $color-linen;
39
54
  $color-launchpadsearchbar: $color-melon;
@@ -41,9 +56,25 @@ $color-projectcard: $color-kiwi;
41
56
  $color-projectborder: $color-linen;
42
57
  $color-projecthover: $color-limeade;
43
58
 
59
+ // General searchbar colours.
60
+ $color-searchbar_border: $color-shortbread;
61
+ $color-searchbar_border_hover: $color-linen;
62
+ $color-searchbar_border_focus: $color-peach;
63
+ $color-searchbar_shadow_hover: $color-peach;
64
+ $color-searchbar_shadow_focus: $color-peach;
65
+
66
+ // Colours that apply only to collections pages.
67
+ $color-collections_sidebar: $color-paperdark;
68
+ $color-collections_header: $color-paperdark;
69
+ $color-collections_header_border: $color-shortbread;//#faf7f6;
70
+
71
+ // Colours that apply only to entry pages.
44
72
  $color-articleborder: $color-linen;
73
+ $color-entry_secondary: $color-paperdark;
45
74
 
46
75
  $color-searchbg: $color-paperlight;
47
76
  $color-codebg: $color-pistachio;
48
77
  $color-codetext: $color-inkwarm;
49
78
  $color-hr: $color-linen;
79
+
80
+ $color-blockquoteborder: $color-linen;
data/assets/.DS_Store ADDED
Binary file
data/assets/js/search.js CHANGED
@@ -1,36 +1,39 @@
1
1
  // Yoinked in its entirety from https://davidwalsh.name/adding-search-to-your-site-with-javascript
2
2
 
3
3
  var searchIndex = lunr(function() {
4
- this.ref("id");
5
- this.field("title", { boost: 10 });
6
- this.field("content");
7
- for (var key in window.pages) {
8
- this.add({
9
- "id": key,
10
- "title": pages[key].title,
11
- "content": pages[key].content
12
- });
13
- }
4
+ // define searchable fields for each page
5
+ this.ref("id");
6
+ this.field("title", { boost: 10 });
7
+ this.field("content");
8
+ this.field("portal");
9
+ this.field("categories");
10
+ for (var key in window.pages) {
11
+ this.add({
12
+ "id": key,
13
+ "title": pages[key].title,
14
+ "content": pages[key].content
15
+ });
16
+ }
14
17
  });
15
18
 
16
19
 
17
20
 
18
21
  function getQueryVariable(variable) {
19
- var query = window.location.search.substring(1);
20
- var vars = query.split("&");
21
- for (var i = 0; i < vars.length; i++) {
22
+ var query = window.location.search.substring(1);
23
+ var vars = query.split("&");
24
+ for (var i = 0; i < vars.length; i++) {
22
25
  var pair = vars[i].split("=");
23
26
  if (pair[0] === variable) {
24
- return decodeURIComponent(pair[1].replace(/\+/g, "%20"));
27
+ return decodeURIComponent(pair[1].replace(/\+/g, "%20"));
25
28
  }
26
- }
29
+ }
27
30
  }
28
31
 
29
32
  var searchTerm = getQueryVariable("q");
30
33
  // creation of searchIndex from earlier example
31
34
  var results = searchIndex.search(searchTerm);
32
35
  var resultPages = results.map(function (match) {
33
- return pages[match.ref];
36
+ return pages[match.ref];
34
37
  });
35
38
 
36
39
 
@@ -39,9 +42,9 @@ var resultPages = results.map(function (match) {
39
42
  // resultPages from previous example
40
43
  resultsString = "";
41
44
  resultPages.forEach(function (r) {
42
- resultsString += "<dt>";
43
- resultsString += "<a class='result' href='" + r.url + "'>" + r.title + "</a></dt>";
44
- // resultsString += "<dd><a href='/" + r.collection + "'>" + r.collection + "</a>";
45
- resultsString += "<dd>" + r.content.substring(0, 200) + "..." + "</dd>";
45
+ resultsString += "<dt class='search_result'>";
46
+ resultsString += "<a href='" + r.url + "'>" + r.title + "</a>";
47
+ resultsString += "<span class='search_result-details'>" + r.portal + "" + r.categories + "</span></dt>"
48
+ resultsString += "<dd class='search_result-preview'>" + r.content.substring(0, 200) + "..." + "</dd>";
46
49
  });
47
50
  document.querySelector("#search-results").innerHTML = resultsString;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-paperwiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - pomeloshark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-04 00:00:00.000000000 Z
11
+ date: 2023-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -26,7 +26,6 @@ dependencies:
26
26
  version: '4.2'
27
27
  description:
28
28
  email:
29
- - pomeloshark@proton.me
30
29
  executables: []
31
30
  extensions: []
32
31
  extra_rdoc_files: []
@@ -37,9 +36,12 @@ files:
37
36
  - _data/navigation.yml
38
37
  - _includes/collections_header.html
39
38
  - _includes/collections_sidebar.html
39
+ - _includes/entry_tags.html
40
40
  - _includes/global_footer.html
41
41
  - _includes/global_head.html
42
42
  - _includes/global_header.html
43
+ - _includes/search_results.html
44
+ - _includes/wiki_sidebar.html
43
45
  - _layouts/collections.html
44
46
  - _layouts/default.html
45
47
  - _layouts/entry.html
@@ -49,31 +51,29 @@ files:
49
51
  - _layouts/portal.html
50
52
  - _layouts/post.html
51
53
  - _layouts/reference_desk.html
54
+ - _layouts/search.html
52
55
  - _layouts/wiki.html
53
56
  - _layouts/work.html
54
- - _pages/random.html
55
- - _pages/search.md
56
- - _pages/wiki/wiki.md
57
- - _pages/wiki/wiki_all.md
58
- - _pages/wiki/wiki_contents.md
59
- - _pages/wiki/wiki_random.md
60
- - _pages/wiki/wiki_search.md
57
+ - _plugins/blockquote.rb
61
58
  - _plugins/gloss.rb
62
59
  - _plugins/interlinear.rb
63
60
  - _plugins/ipa.rb
64
61
  - _plugins/lang.rb
62
+ - _plugins/sidenote.rb
65
63
  - _sass/partials/_base.scss
66
64
  - _sass/partials/_blog.scss
67
65
  - _sass/partials/_collections.scss
68
66
  - _sass/partials/_entries.scss
69
67
  - _sass/partials/_global.scss
70
68
  - _sass/partials/_glossing.scss
69
+ - _sass/partials/_languages.scss
71
70
  - _sass/partials/_launchpad.scss
72
71
  - _sass/partials/_page.scss
73
72
  - _sass/partials/_search.scss
74
73
  - _sass/style.scss
75
74
  - _sass/variables/_colors.scss
76
75
  - _sass/variables/_fonts.scss
76
+ - assets/.DS_Store
77
77
  - assets/css/style.scss
78
78
  - assets/fonts/Inter/.DS_Store
79
79
  - assets/fonts/Inter/Inter-Bold.otf