jekyll-theme-open-course 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b09a6cad886465d099731b73e29af902f0090bd7dd2ea5fa205605db2985d79
4
- data.tar.gz: 78eebd7ecb8fcad3138444969f987b3bff2ceeb402114e502bbc523a4c1f860e
3
+ metadata.gz: 2bdae616ff9bf61b626bb82cb7da52c218c42c059234bed30fc97435268d8c1d
4
+ data.tar.gz: 7e605a5610c25dd3956d142d3ef4e12a12441700465358cc56a0d5567fffde90
5
5
  SHA512:
6
- metadata.gz: b70ff525e5feffc9c4717a1756af5ab92a21fdb095a8f425ecb18e822391a2e8a0345a84d9917c578f8fe249ea99c00516434542f467a43be458e3d970ba98ea
7
- data.tar.gz: '0795071f2df2501ed8799f2420ca96223aaaa8319ce7c97f86369cd6977a437fe8536d9b97bc12721317636fcdd9a1a01ca7e821d52f97217fa3a52a8d82ed92'
6
+ metadata.gz: 6976e631b9576e60075d5f7d5677b64f2db8ac62419d1e47f34cc488fbf093f67522e25ab2f6f0150f9733f3cd21f8c46afdb2794911413952b87cbbfc8fd23b
7
+ data.tar.gz: 33cc7a394c66e65c479da0c413bd0665d034ef0ad7f9a315f71507eb5016f9a920caee02f38cae6e7af57c74f04a6a715ace97aa08303819eb430cdd607286bf
@@ -0,0 +1,108 @@
1
+ body {
2
+ line-height: $base-line;
3
+ }
4
+
5
+ h1,h2,h3,h4,h5,h6 {
6
+ font-weight: bold;
7
+ }
8
+ h1 {
9
+ padding-top: $base-line / 2;
10
+ }
11
+ h1 small,
12
+ h1 b {
13
+ display: block;
14
+ font-weight: normal;
15
+ }
16
+ h3,
17
+ h4 {
18
+ text-transform: uppercase;
19
+ padding-bottom: $base-line / 4;
20
+ }
21
+ h4 {
22
+ text-transform: none;
23
+ }
24
+
25
+ p,li {
26
+ padding-bottom: $base-line;
27
+ -webkit-hyphens: auto;
28
+ hyphens: auto;
29
+ }
30
+
31
+ li {
32
+ padding-bottom: $base-line / 2;
33
+ }
34
+ ol, ul {
35
+ padding-bottom: $base-line / 2;
36
+ }
37
+
38
+ ol ol,
39
+ ol ul,
40
+ ul ol,
41
+ ul ul {
42
+ padding-top: $base-line / 2;
43
+ padding-bottom: 0;
44
+ padding-left: $base-line;
45
+ }
46
+
47
+ ol ul > li,
48
+ ul ul > li,
49
+ .with::before {
50
+ margin-left: -($base-line * 1.25);
51
+ }
52
+ ul {
53
+ list-style-type: square;
54
+ }
55
+ ol {
56
+ list-style-type: decimal;
57
+ }
58
+ ul, .with::before {
59
+ list-style-type: none;
60
+ }
61
+ ul li, .with::before {
62
+ position: relative;
63
+ padding-left: $base-line;
64
+ margin-left: -($base-line);
65
+ }
66
+ ul li::before {
67
+ content: "■";
68
+ position: absolute;
69
+ left: $base-line * 0.3;
70
+ top: -($base-line * 0.065);
71
+ }
72
+
73
+ ol, .with::before {
74
+ list-style-type: none;
75
+ counter-reset: enumerated;
76
+ }
77
+ ol > li, .with::before {
78
+ position: relative;
79
+ padding-left: $base-line;
80
+ margin-left: -($base-line);
81
+ counter-increment: enumerated;
82
+ }
83
+ ol > li::before {
84
+ font-weight: bold;
85
+ content: counter(enumerated) "";
86
+ position: absolute;
87
+ left: -($base-line * 0.0375);
88
+ text-align: right;
89
+ width: 1em;
90
+ }
91
+
92
+ b, strong {
93
+ font-weight: bold;
94
+ }
95
+
96
+ cite, em, i {
97
+ font-style: italic;
98
+ }
99
+ code {
100
+ font-family: Menlo, Monaco, "Droid Sans Mono", Courier, "Courier New", monospace;
101
+ font-size: 0.85em;
102
+ hyphens: none;
103
+ }
104
+
105
+ .access {
106
+ position: absolute;
107
+ left: -10000px;
108
+ }
@@ -0,0 +1,190 @@
1
+ $text-color: #222;
2
+ $back-color: #F2F2F2;
3
+ $spot-color: #900;
4
+ $gray-color: #7F7F7F;
5
+ $gray-alter: darken($gray-color, 10%);
6
+ $link-under: transparentize($spot-color, 0.65);
7
+ $curr-color: lighten($gray-color, 40%);
8
+
9
+ // Dark mode
10
+ $dk-text-color: #AFAFAF;
11
+ $dk-back-color: #111;
12
+ $dk-spot-color: #9C0000;
13
+ $dk-gray-color: #777;
14
+ $dk-link-under: transparentize($dk-spot-color, 0.25);
15
+ $dk-curr-color: darken($dk-gray-color, 45%);
16
+
17
+
18
+ // CSS Variables
19
+ html,
20
+ html.light {
21
+ --color-text: #{$text-color};
22
+ --color-back: #{$back-color};
23
+ --color-spot: #{$spot-color};
24
+ --color-gray: #{$gray-color};
25
+ --color-curr: #{$curr-color};
26
+ --color-altg: #{$gray-alter};
27
+ --color-link: #{$link-under};
28
+ --color-navi: #{$gray-color};
29
+ --color-nava: #{$back-color};
30
+ }
31
+ html.dark {
32
+ --color-text: #{$dk-text-color};
33
+ --color-back: #{$dk-back-color};
34
+ --color-spot: #{$dk-spot-color};
35
+ --color-gray: #{$dk-gray-color};
36
+ --color-curr: #{$dk-curr-color};
37
+ --color-altg: #{$dk-gray-color};
38
+ --color-link: #{$dk-link-under};
39
+ --color-navi: #{$dk-gray-color};
40
+ --color-nava: #{$dk-text-color};
41
+ }
42
+ @media screen and (prefers-color-scheme: dark) {
43
+ html {
44
+ --color-text: #{$dk-text-color};
45
+ --color-back: #{$dk-back-color};
46
+ --color-spot: #{$dk-spot-color};
47
+ --color-gray: #{$dk-gray-color};
48
+ --color-curr: #{$dk-curr-color};
49
+ --color-altg: #{$dk-gray-color};
50
+ --color-link: #{$dk-link-under};
51
+ --color-navi: #{$dk-gray-color};
52
+ --color-nava: #{$dk-text-color};
53
+ }
54
+ }
55
+
56
+ html {
57
+ transition: color 0.5s, background-color 0.5s;
58
+ color: $text-color;
59
+ color: var(--color-text);
60
+ background-color: $back-color;
61
+ background-color: var(--color-back);
62
+ }
63
+ ol > li::before,
64
+ ul li::before {
65
+ color: $spot-color;
66
+ color: var(--color-spot);
67
+ }
68
+ a {
69
+ color: $spot-color;
70
+ color: var(--color-spot);
71
+ }
72
+ @supports (text-decoration-color: red) {
73
+ a {
74
+ color: inherit;
75
+ text-decoration-color: $link-under;
76
+ text-decoration-color: var(--color-link);
77
+ }
78
+ }
79
+ #header h1 a {
80
+ color: $spot-color;
81
+ color: var(--color-spot);
82
+ }
83
+ .nav a {
84
+ border: 1px solid $spot-color;
85
+ border: 1px solid var(--color-spot);
86
+ color: $gray-color;
87
+ color: var(--color-navi);
88
+ }
89
+ .nav a:hover,
90
+ .nav a:focus,
91
+ .nav a:active,
92
+ #calendar #nav-cal a,
93
+ #policies #nav-pol a,
94
+ #projects #nav-pro a {
95
+ background-color: $spot-color;
96
+ background-color: var(--color-spot);
97
+ color: $back-color;
98
+ color: var(--color-nava);
99
+ }
100
+
101
+ .recommended,
102
+ .project .description,
103
+ .project .goals,
104
+ .week .agenda,
105
+ .fine-print {
106
+ color: $gray-color;
107
+ color: var(--color-gray);
108
+ }
109
+ .current {
110
+ transition: background-color 0.5s;
111
+ background-color: $curr-color;
112
+ background-color: var(--color-curr);
113
+ }
114
+ .week.current .agenda {
115
+ color: $gray-alter;
116
+ color: var(--color-altg);
117
+ }
118
+ #btn-show-calendar,
119
+ .agenda h3 a {
120
+ color: $back-color;
121
+ color: var(--color-back);
122
+ background-color: $spot-color;
123
+ background-color: var(--color-spot);
124
+ }
125
+ #btn-show-calendar {
126
+ background-color: $back-color;
127
+ background-color: var(--color-back);
128
+ color: $gray-color;
129
+ color: var(--color-gray);
130
+ border: 1px solid $gray-color;
131
+ border: 1px solid var(--color-gray);
132
+ }
133
+ #btn-show-calendar:active,
134
+ #btn-show-calendar:focus,
135
+ #btn-show-calendar:hover {
136
+ background-color: $gray-color;
137
+ background-color: var(--color-gray);
138
+ color: $back-color;
139
+ color: var(--color-back);
140
+ }
141
+ .agenda h3 a {
142
+ background-color: $back-color;
143
+ background-color: var(--color-back);
144
+ border: 1px solid $spot-color;
145
+ border: 1px solid var(--color-spot);
146
+ color: $spot-color;
147
+ color: var(--color-spot);
148
+ }
149
+ .agenda h3 a:active,
150
+ .agenda h3 a:focus,
151
+ .agenda h3 a:hover {
152
+ background-color: $spot-color;
153
+ background-color: var(--color-spot);
154
+ color: $back-color;
155
+ color: var(--color-back);
156
+ }
157
+ .agenda h3 a::before {
158
+ color: $gray-color;
159
+ color: var(--color-gray);
160
+ }
161
+ header small {
162
+ color: $spot-color;
163
+ color: var(--color-spot);
164
+ }
165
+ .week > header small {
166
+ color: $gray-color;
167
+ color: var(--color-gray);
168
+ }
169
+ #header,
170
+ #footer,
171
+ #instructor {
172
+ color: $gray-color;
173
+ color: var(--color-gray);
174
+ }
175
+ #header .nav {
176
+ color: $text-color;
177
+ color: var(--color-text);
178
+ }
179
+ #header #theme-button {
180
+ background-color: $text-color;
181
+ background-color: var(--color-text);
182
+ border-color: $text-color;
183
+ border-color: var(--color-text);
184
+ color: $back-color;
185
+ color: var(--color-back);
186
+ }
187
+ #header #theme-button svg {
188
+ fill: $back-color;
189
+ fill: var(--color-back);
190
+ }
@@ -0,0 +1,10 @@
1
+ $font-url: "https://use.typekit.net/pig5ein.css";
2
+
3
+ $primary-font-family: "Parka", serif;
4
+ $secondary-font-family: "moderno-fb-compressed";
5
+ $tertiary-font-family: "moderno-fb-condensed";
6
+
7
+ // Font-Weight Reference
8
+ // Parka: 300 (retina); 400 (normal); 500 (medium); 700 (bold)
9
+ // Moderno FB Compressed: 600 (semibold)
10
+ // Moderno FB Condensed: 700 (bold)
@@ -0,0 +1,358 @@
1
+ $base-size-px: 19;
2
+ $base-line-px: 24;
3
+ $base-size: ($base-size-px / 16) * 100%;
4
+ $base-line: ($base-line-px / $base-size-px) * 1rem;
5
+ $mod-scale: 1.25;
6
+
7
+
8
+ html {
9
+ -webkit-text-size-adjust: none;
10
+ font-family: $primary-font-family;
11
+ font-size: 19px;
12
+ }
13
+
14
+ @media (min-resolution: 192dpi) {
15
+ html {
16
+ font-weight: 300;
17
+ }
18
+ }
19
+
20
+ h2 {
21
+ font-family: $secondary-font-family;
22
+ font-weight: 600;
23
+ font-size: $base-size * $mod-scale * $mod-scale * $mod-scale;
24
+ line-height: $base-line * 2;
25
+ }
26
+
27
+ #content b,
28
+ #content strong {
29
+ font-weight: 500;
30
+ }
31
+
32
+ #full-nav.hidden {
33
+ display: none;
34
+ }
35
+ #quick-nav {
36
+ align-items: baseline;
37
+ display: flex;
38
+ justify-content: space-between;
39
+ }
40
+ #quick-nav .nav {
41
+ display: flex;
42
+ flex: 1 0 auto;
43
+ flex-flow: row wrap;
44
+ justify-content: flex-end;
45
+ }
46
+ #quick-nav li {
47
+ padding: 0;
48
+ margin-left: $base-line / 2;
49
+ }
50
+ .navbar #quick-nav li::before {
51
+ content: "";
52
+ }
53
+ #nav-con a {
54
+ text-decoration: none;
55
+ }
56
+ .nav a {
57
+ border-radius: $base-line / 4;
58
+ display: block;
59
+ padding: $base-line / 4;
60
+ text-decoration: none;
61
+ }
62
+
63
+ .nav li::before {
64
+ content: "";
65
+ }
66
+
67
+ #header h1 a {
68
+ text-decoration: none;
69
+ }
70
+
71
+ #header #theme-button {
72
+ opacity: 0.55;
73
+ line-height: 0;
74
+ }
75
+
76
+ /* ~ 370px */
77
+ @media screen and (min-width: 23.125em) {
78
+ #header h1 {
79
+ position: relative;
80
+ }
81
+ }
82
+
83
+ /* ~ 620px */
84
+ @media screen and (min-width: 38.75em) {
85
+ h2 {
86
+ font-family: $tertiary-font-family;
87
+ font-weight: 700;
88
+ }
89
+ }
90
+
91
+ #header h3,
92
+ #footer h3,
93
+ #instructor h3,
94
+ .agenda h3 {
95
+ text-transform: none;
96
+ font-weight: 500;
97
+ padding-bottom: $base-line / 2;
98
+ }
99
+ .agenda h3 {
100
+ padding-bottom: $base-line / 4;
101
+ }
102
+ .assigned h3,
103
+ .project h3 {
104
+ font-weight: bold;
105
+ }
106
+
107
+ #btn-show-calendar,
108
+ .agenda h3 a {
109
+ border-radius: $base-line / 4;
110
+ display: block;
111
+ padding: $base-line / 4;
112
+ text-decoration: none;
113
+ display: inline-block;
114
+ }
115
+ #btn-show-calendar {
116
+ margin-bottom: $base-line * 2;
117
+ text-decoration: none;
118
+ }
119
+
120
+ .agenda h3 a {
121
+ padding: $base-line / 8 $base-line / 4;
122
+ margin-top: -($base-line / 8);
123
+ }
124
+ .agenda h3 a::before {
125
+ content: "▸ ";
126
+ }
127
+ #content header {
128
+ padding-bottom: $base-line;
129
+ }
130
+ header small {
131
+ display: block;
132
+ font-weight: 500;
133
+ // padding-top: $base-line * 0.25;
134
+ }
135
+ .week > header small {
136
+ font-weight: normal;
137
+ }
138
+
139
+ #content article {
140
+ padding-bottom: $base-line * 3;
141
+ }
142
+
143
+ .current {
144
+ padding: $base-line * 1.5;
145
+ margin: ($base-line * 1.5) (-($base-line * 1.5));
146
+ }
147
+
148
+ .assigned {
149
+ padding-top: $base-line;
150
+ }
151
+
152
+ #header {
153
+ padding: $base-line * 0.5;
154
+ }
155
+ #header p {
156
+ min-height: $base-line * 4;
157
+ padding-top: $base-line * 0.5;
158
+ }
159
+ #header,
160
+ #content,
161
+ #footer,
162
+ #instructor {
163
+ padding-left: $base-line * 1.5;
164
+ padding-right: $base-line * 1.5;
165
+ }
166
+
167
+ /* ~ 690px */
168
+ @media screen and (min-width: 43.125em) {
169
+ #header,
170
+ .policy,
171
+ .project,
172
+ .week,
173
+ #instructor,
174
+ #footer {
175
+ display: grid;
176
+ grid-template-columns: repeat(5,1fr);
177
+ grid-column-gap: $base-line;
178
+ }
179
+ .week {
180
+ grid-template-rows: auto ($base-line * 3.25);
181
+ align-content: stretch;
182
+ }
183
+ .policy header,
184
+ .project header,
185
+ .week header {
186
+ grid-column: 1 / 6;
187
+ }
188
+ .week .agendas {
189
+ grid-column: 1 / 3;
190
+ grid-row-start: 3;
191
+ }
192
+ .week .assigned {
193
+ padding-top: 0;
194
+ grid-column: 3 / 6;
195
+ grid-row: 2 / 4;
196
+ }
197
+
198
+ .policy > * {
199
+ grid-column: 1 / 5;
200
+ }
201
+ #books.policy section,
202
+ #materials.policy .required {
203
+ grid-column: 1 / 4;
204
+ }
205
+ #books.policy .fine-print,
206
+ #materials.policy .recommended {
207
+ grid-column: 4 / 6;
208
+ grid-row: 3 / 5;
209
+ }
210
+ #books.policy .fine-print,
211
+ #materials.policy .recommended {
212
+ grid-row: 2 / 5;
213
+ }
214
+ .project .description {
215
+ grid-column: 1 / 3;
216
+ grid-row: 2 / 3;
217
+ }
218
+ .project .goals {
219
+ grid-column: 1 / 3;
220
+ grid-row: 3 / 4;
221
+ }
222
+ .project .deliverables,
223
+ .project .requirements {
224
+ grid-column: 3 / 6;
225
+ }
226
+ .project .preview {
227
+ grid-column: 1 / 6;
228
+ }
229
+ #header h1 {
230
+ grid-column: 1 / 6;
231
+ }
232
+ #header p {
233
+ grid-column: 1 / 4;
234
+ }
235
+ #header #quick-nav {
236
+ grid-column: 1 / 6;
237
+ }
238
+
239
+ #instructor > * {
240
+ grid-column: 2 / 6;
241
+ }
242
+ #footer #full-nav {
243
+ grid-column: 1 / 2;
244
+ }
245
+ #footer #colophon {
246
+ grid-column: 2 / 6;
247
+ }
248
+ .navbar #instructor > *,
249
+ .navbar #footer #colophon {
250
+ grid-column: 1 / 4;
251
+ }
252
+ }
253
+
254
+ /* ~ 770px */
255
+ @media screen and (min-width: 48.125em) {
256
+ body::after {
257
+ content: 'navbar';
258
+ display: none;
259
+ }
260
+ }
261
+
262
+ /* ~ 855px */
263
+ @media screen and (min-width: 53.4375em) {
264
+ #header,
265
+ #content,
266
+ #footer,
267
+ #instructor {
268
+ padding: ($base-line * 1.5) 10%;
269
+ }
270
+ #footer {
271
+ padding-top: 0;
272
+ }
273
+ #instructor {
274
+ padding-bottom: 0;
275
+ }
276
+ h2 {
277
+ font-size: $base-size * $mod-scale * $mod-scale * $mod-scale * $mod-scale;
278
+ line-height: $base-line * 2.5;
279
+ }
280
+ .project .description {
281
+ grid-column: 1 / 4;
282
+ grid-row: 2 / 3;
283
+ }
284
+ .project .goals {
285
+ grid-column: 4 / 6;
286
+ grid-row: 2 / 3;
287
+ }
288
+ .project .deliverables,
289
+ .project .requirements {
290
+ grid-row: 3 / 6;
291
+ }
292
+ .project .deliverables {
293
+ grid-column: 1 / 3;
294
+ }
295
+ .project .requirements {
296
+ grid-column: 3 / 6;
297
+ }
298
+ .project .preview {
299
+ grid-column: 1 / 4;
300
+ }
301
+ }
302
+
303
+ /* ~ 1100px */
304
+ @media screen and (min-width: 68.75em) {
305
+ #header,
306
+ #content,
307
+ #footer,
308
+ #instructor {
309
+ padding-top: ($base-line * 3);
310
+ }
311
+ #footer {
312
+ padding-top: 0;
313
+ }
314
+ #instructor {
315
+ padding-bottom: 0;
316
+ }
317
+ .policy,
318
+ .project,
319
+ .week {
320
+ grid-column-gap: $base-line * 1.5;
321
+ }
322
+ h2 {
323
+ font-size: $base-size * $mod-scale * $mod-scale * $mod-scale * $mod-scale * $mod-scale;
324
+ line-height: $base-line * 3;
325
+ }
326
+ }
327
+
328
+ /* States */
329
+ .js .past {
330
+ display: none;
331
+ }
332
+
333
+ /**
334
+ * A quick baseline grid overlay using css+svg.
335
+ * Inspired by [Basehold.it](https://basehold.it/).
336
+ * @author leshido
337
+ */
338
+
339
+ .g body {
340
+ position: relative;
341
+ }
342
+
343
+ .g body::after {
344
+ background: url('data:image/svg+xml;utf8,<svg height="24" width="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="0.5" style="fill:rgba(255, 0, 0, 0.3)" /></svg>') repeat top left;
345
+ content: "";
346
+ display: block;
347
+ pointer-events: none;
348
+ top: 0;
349
+ right: 0;
350
+ bottom: 0;
351
+ left: 0;
352
+ z-index: 9999;
353
+ position: absolute;
354
+ }
355
+
356
+ .g body:active::after {
357
+ display: none;
358
+ }
@@ -3,7 +3,7 @@ module JTOpenCourse
3
3
  require 'erb'
4
4
  require 'date'
5
5
 
6
- VERSION = "1.2.1"
6
+ VERSION = "1.2.2"
7
7
 
8
8
  SPELLED_NUMS = %w(
9
9
  Zero One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve Thirteen Fourteen Fifteen
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-course
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Stolley
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-12 00:00:00.000000000 Z
11
+ date: 2020-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -70,6 +70,10 @@ files:
70
70
  - _layouts/error.html
71
71
  - _layouts/policies.html
72
72
  - _layouts/projects.html
73
+ - _sass/_base.scss
74
+ - _sass/_colors.scss
75
+ - _sass/_fonts.scss
76
+ - _sass/_typography.scss
73
77
  - assets/css/print.css
74
78
  - assets/css/screen.scss
75
79
  - assets/img/te.png