jekyll-theme-open-course 1.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
1
- $font-url: "https://use.typekit.net/pig5ein.css";
1
+ $font-url: "https://use.typekit.net/qqk1feg.css";
2
2
 
3
- $primary-font-family: "Parka", serif;
4
- $secondary-font-family: "moderno-fb-compressed";
5
- $tertiary-font-family: "moderno-fb-condensed";
3
+ $primary-font-family: "alber-new-web", serif;
4
+ $secondary-font-family: "abril-titling-narrow";
5
+ $tertiary-font-family: "abril-titling";
6
6
 
7
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)
8
+ // Alder New Web: 300 (retina); 400 (normal); 500 (medium); 700 (bold)
9
+ // Abril Titling Narrow: 600 (semibold)
10
+ // Abril Titling: 700 (bold)
@@ -1,5 +1,5 @@
1
1
  $base-size-px: 19;
2
- $base-line-px: 24;
2
+ $base-line-px: 25;
3
3
  $base-size: ($base-size-px / 16) * 100%;
4
4
  $base-line: ($base-line-px / $base-size-px) * 1rem;
5
5
  $mod-scale: 1.25;
@@ -11,7 +11,7 @@ html {
11
11
  font-size: 19px;
12
12
  }
13
13
 
14
- @media (min-resolution: 192dpi) {
14
+ @media screen and (min-resolution: 192dpi), (-webkit-min-device-pixel-ratio: 2) {
15
15
  html {
16
16
  font-weight: 300;
17
17
  }
@@ -20,8 +20,8 @@ html {
20
20
  h2 {
21
21
  font-family: $secondary-font-family;
22
22
  font-weight: 600;
23
- font-size: $base-size * $mod-scale * $mod-scale * $mod-scale;
24
- line-height: $base-line * 2;
23
+ font-size: $base-size * $mod-scale * $mod-scale;
24
+ line-height: $base-line * 1.5;
25
25
  }
26
26
 
27
27
  #content b,
@@ -29,6 +29,10 @@ h2 {
29
29
  font-weight: 500;
30
30
  }
31
31
 
32
+ #nav-con {
33
+ position: absolute;
34
+ left: -10000px;
35
+ }
32
36
  #full-nav.hidden {
33
37
  display: none;
34
38
  }
@@ -57,6 +61,7 @@ h2 {
57
61
  border-radius: $base-line / 4;
58
62
  display: block;
59
63
  padding: $base-line / 4;
64
+ padding: calc(#{$base-line / 5} - 1px) $base-line / 4 calc(#{$base-line / 4} - 1px) $base-line / 4;
60
65
  text-decoration: none;
61
66
  }
62
67
 
@@ -85,6 +90,8 @@ h2 {
85
90
  h2 {
86
91
  font-family: $tertiary-font-family;
87
92
  font-weight: 700;
93
+ font-size: $base-size * $mod-scale * $mod-scale * $mod-scale;
94
+ line-height: $base-line * 2;
88
95
  }
89
96
  }
90
97
 
@@ -106,6 +113,7 @@ h2 {
106
113
 
107
114
  #btn-show-calendar,
108
115
  .agenda h3 a {
116
+ font-weight: normal;
109
117
  border-radius: $base-line / 4;
110
118
  display: block;
111
119
  padding: $base-line / 4;
@@ -119,10 +127,15 @@ h2 {
119
127
 
120
128
  .agenda h3 a {
121
129
  padding: $base-line / 8 $base-line / 4;
130
+ padding: calc(#{$base-line / 10} - 1px) $base-line / 4 calc(#{$base-line / 8} - 1px) $base-line / 4;
122
131
  margin-top: -($base-line / 8);
123
132
  }
124
- .agenda h3 a::before {
125
- content: "▸ ";
133
+ .youtube {
134
+ float: left;
135
+ padding-right: 5px;
136
+ padding-top: 1px;
137
+ height: 25px;
138
+ width: 25px;
126
139
  }
127
140
  #content header {
128
141
  padding-bottom: $base-line;
@@ -130,7 +143,7 @@ h2 {
130
143
  header small {
131
144
  display: block;
132
145
  font-weight: 500;
133
- // padding-top: $base-line * 0.25;
146
+ padding-top: $base-line * 0.25;
134
147
  }
135
148
  .week > header small {
136
149
  font-weight: normal;
@@ -164,9 +177,14 @@ header small {
164
177
  padding-right: $base-line * 1.5;
165
178
  }
166
179
 
180
+ #instructor {
181
+ padding-bottom: $base-line * 2;
182
+ }
183
+
167
184
  /* ~ 690px */
168
185
  @media screen and (min-width: 43.125em) {
169
186
  #header,
187
+ .error,
170
188
  .policy,
171
189
  .project,
172
190
  .week,
@@ -180,6 +198,7 @@ header small {
180
198
  grid-template-rows: auto ($base-line * 3.25);
181
199
  align-content: stretch;
182
200
  }
201
+ .error header,
183
202
  .policy header,
184
203
  .project header,
185
204
  .week header {
@@ -195,6 +214,7 @@ header small {
195
214
  grid-row: 2 / 4;
196
215
  }
197
216
 
217
+ .error > *,
198
218
  .policy > * {
199
219
  grid-column: 1 / 5;
200
220
  }
@@ -251,14 +271,6 @@ header small {
251
271
  }
252
272
  }
253
273
 
254
- /* ~ 770px */
255
- @media screen and (min-width: 48.125em) {
256
- body::after {
257
- content: 'navbar';
258
- display: none;
259
- }
260
- }
261
-
262
274
  /* ~ 855px */
263
275
  @media screen and (min-width: 53.4375em) {
264
276
  #header,
@@ -267,12 +279,12 @@ header small {
267
279
  #instructor {
268
280
  padding: ($base-line * 1.5) 10%;
269
281
  }
282
+ #instructor {
283
+ padding-bottom: $base-line * 2;
284
+ }
270
285
  #footer {
271
286
  padding-top: 0;
272
287
  }
273
- #instructor {
274
- padding-bottom: 0;
275
- }
276
288
  h2 {
277
289
  font-size: $base-size * $mod-scale * $mod-scale * $mod-scale * $mod-scale;
278
290
  line-height: $base-line * 2.5;
@@ -300,6 +312,25 @@ header small {
300
312
  }
301
313
  }
302
314
 
315
+ /* ~ 890px */
316
+ @media screen and (min-width: 55.625em) {
317
+ body::after {
318
+ content: 'navbar';
319
+ display: none;
320
+ }
321
+ .links {
322
+ display: grid;
323
+ grid-template-columns: repeat(3,1fr);
324
+ grid-column-gap: $base-line;
325
+ }
326
+ .links header {
327
+ grid-column: 1 / 4;
328
+ }
329
+ .links .suggestions {
330
+ grid-column: 2 / span 2;
331
+ }
332
+ }
333
+
303
334
  /* ~ 1100px */
304
335
  @media screen and (min-width: 68.75em) {
305
336
  #header,
@@ -311,9 +342,7 @@ header small {
311
342
  #footer {
312
343
  padding-top: 0;
313
344
  }
314
- #instructor {
315
- padding-bottom: 0;
316
- }
345
+ .error,
317
346
  .policy,
318
347
  .project,
319
348
  .week {
@@ -326,7 +355,11 @@ header small {
326
355
  }
327
356
 
328
357
  /* States */
329
- .js .past {
358
+ .js .past,
359
+ .grad .ugrad,
360
+ .ugrad .grad,
361
+ .grad .grad h3,
362
+ .ugrad .ugrad h3 {
330
363
  display: none;
331
364
  }
332
365
 
@@ -341,7 +374,7 @@ header small {
341
374
  }
342
375
 
343
376
  .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;
377
+ background: url('data:image/svg+xml;utf8,<svg height="25" 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
378
  content: "";
346
379
  display: block;
347
380
  pointer-events: none;
@@ -0,0 +1,192 @@
1
+ $text-color: #470E49;
2
+ $back-color: #ECE9D8;
3
+ $spot-color: #18384D;
4
+ $acnt-color: #596B6B;
5
+ $gray-color: #6D626F; /* #7F7F7F; */
6
+ $gray-alter: darken($gray-color, 10%);
7
+ $link-under: $acnt-color;
8
+ $curr-color: #D4CCBE;
9
+
10
+ // Dark mode
11
+ $dk-text-color: $back-color;
12
+ $dk-back-color: darken($text-color, 10%);
13
+ $dk-spot-color: #E5DDB6;
14
+ $dk-acnt-color: lighten(#627482, 10%);
15
+ $dk-gray-color: lighten($gray-color, 30%);
16
+ $dk-link-under: $dk-acnt-color;
17
+ $dk-curr-color: darken($text-color, 12%);
18
+
19
+
20
+ // CSS Variables
21
+ html,
22
+ html.light {
23
+ --color-text: #{$text-color};
24
+ --color-back: #{$back-color};
25
+ --color-spot: #{$spot-color};
26
+ --color-acnt: #{$acnt-color};
27
+ --color-gray: #{$gray-color};
28
+ --color-curr: #{$curr-color};
29
+ --color-altg: #{$gray-alter};
30
+ --color-link: #{$link-under};
31
+ --color-navi: #{$gray-color};
32
+ --color-nava: #{$back-color};
33
+ }
34
+ html.dark {
35
+ --color-text: #{$dk-text-color};
36
+ --color-back: #{$dk-back-color};
37
+ --color-spot: #{$dk-spot-color};
38
+ --color-acnt: #{$dk-acnt-color};
39
+ --color-gray: #{$dk-gray-color};
40
+ --color-curr: #{$dk-curr-color};
41
+ --color-altg: #{$dk-gray-color};
42
+ --color-link: #{$dk-link-under};
43
+ --color-navi: #{$dk-gray-color};
44
+ --color-nava: #{$dk-back-color};
45
+ }
46
+ @media screen and (prefers-color-scheme: dark) {
47
+ html {
48
+ --color-text: #{$dk-text-color};
49
+ --color-back: #{$dk-back-color};
50
+ --color-spot: #{$dk-spot-color};
51
+ --color-acnt: #{$dk-acnt-color};
52
+ --color-gray: #{$dk-gray-color};
53
+ --color-curr: #{$dk-curr-color};
54
+ --color-altg: #{$dk-gray-color};
55
+ --color-link: #{$dk-link-under};
56
+ --color-navi: #{$dk-gray-color};
57
+ --color-nava: #{$dk-back-color};
58
+ }
59
+ }
60
+
61
+ html {
62
+ transition: color 0.5s, background-color 0.5s;
63
+ color: $text-color;
64
+ color: var(--color-text);
65
+ background-color: $back-color;
66
+ background-color: var(--color-back);
67
+ }
68
+ ol > li::before,
69
+ ul li::before {
70
+ color: $acnt-color;
71
+ color: var(--color-acnt);
72
+ }
73
+ a {
74
+ color: $spot-color;
75
+ color: var(--color-spot);
76
+ }
77
+ @supports (text-decoration-color: red) {
78
+ a {
79
+ color: inherit;
80
+ text-decoration-color: $link-under;
81
+ text-decoration-color: var(--color-link);
82
+ }
83
+ }
84
+ #header h1 a {
85
+ color: $spot-color;
86
+ color: var(--color-spot);
87
+ }
88
+ .nav a {
89
+ border: 1px solid $acnt-color;
90
+ border: 1px solid var(--color-acnt);
91
+ color: $gray-color;
92
+ color: var(--color-navi);
93
+ }
94
+ .nav a:hover,
95
+ .nav a:focus,
96
+ .nav a:active,
97
+ #calendar #nav-cal a,
98
+ #policies #nav-pol a,
99
+ #projects #nav-pro a {
100
+ background-color: $acnt-color;
101
+ background-color: var(--color-acnt);
102
+ color: $back-color;
103
+ color: var(--color-nava);
104
+ }
105
+
106
+ .recommended,
107
+ .project .description,
108
+ .project .goals,
109
+ .week .agenda,
110
+ .fine-print {
111
+ color: $gray-color;
112
+ color: var(--color-gray);
113
+ }
114
+ .current {
115
+ transition: background-color 0.5s;
116
+ background-color: $curr-color;
117
+ background-color: var(--color-curr);
118
+ }
119
+ .week.current .agenda {
120
+ color: $gray-alter;
121
+ color: var(--color-altg);
122
+ }
123
+ #btn-show-calendar {
124
+ background-color: $back-color;
125
+ background-color: var(--color-back);
126
+ color: $gray-color;
127
+ color: var(--color-gray);
128
+ border: 1px solid $gray-color;
129
+ border: 1px solid var(--color-gray);
130
+ }
131
+ #btn-show-calendar:active,
132
+ #btn-show-calendar:focus,
133
+ #btn-show-calendar:hover {
134
+ background-color: $gray-color;
135
+ background-color: var(--color-gray);
136
+ color: $back-color;
137
+ color: var(--color-back);
138
+ }
139
+ .agenda h3 a {
140
+ background-color: inherit;
141
+ color: $acnt-color;
142
+ color: var(--color-acnt);
143
+ }
144
+ .youtube {
145
+ color: pink;
146
+ fill: $acnt-color;
147
+ fill: var(--color-acnt);
148
+ }
149
+ .agenda h3 a:active,
150
+ .agenda h3 a:focus,
151
+ .agenda h3 a:hover {
152
+ background-color: $acnt-color;
153
+ background-color: var(--color-acnt);
154
+ color: $back-color;
155
+ color: var(--color-back);
156
+ }
157
+ a:active .youtube,
158
+ a:focus .youtube,
159
+ a:hover .youtube {
160
+ fill: $back-color;
161
+ fill: var(--color-back);
162
+ }
163
+ header small {
164
+ color: $spot-color;
165
+ color: var(--color-spot);
166
+ }
167
+ .week > header small {
168
+ color: $gray-color;
169
+ color: var(--color-gray);
170
+ }
171
+ #header,
172
+ #footer,
173
+ #instructor {
174
+ color: $gray-color;
175
+ color: var(--color-gray);
176
+ }
177
+ #header .nav {
178
+ color: $text-color;
179
+ color: var(--color-text);
180
+ }
181
+ #header #theme-button {
182
+ background-color: $acnt-color;
183
+ background-color: var(--color-acnt);
184
+ border-color: $acnt-color;
185
+ border-color: var(--color-acnt);
186
+ color: $back-color;
187
+ color: var(--color-back);
188
+ }
189
+ #header #theme-button svg {
190
+ fill: $back-color;
191
+ fill: var(--color-back);
192
+ }
@@ -1,3 +1,12 @@
1
+ html {
2
+ font-size: 11pt;
3
+ color: black;
4
+ }
5
+
6
+ * {
7
+ color: black;
8
+ }
9
+
1
10
  #header,
2
11
  #footer {
3
12
  color: inherit;
@@ -7,7 +16,12 @@ a,
7
16
  text-decoration: none;
8
17
  color: inherit;
9
18
  }
10
- #content a[href^="http"]::after {
19
+ .agenda h3 a {
20
+ display: none;
21
+ }
22
+
23
+ #content a[href^="http"]::after,
24
+ #footer a[href^="http"]::after {
11
25
  display: inline;
12
26
  content: "(" attr(href) ")";
13
27
  font-family: Menlo, Monaco, "Droid Sans Mono", Courier, "Courier New", monospace;
@@ -19,14 +33,10 @@ p,li {
19
33
  -webkit-hyphens: none;
20
34
  hyphens: none;
21
35
  }
22
- h2 {
23
- font-family: "moderno-fb-condensed";
24
- font-weight: 700;
25
- }
26
-
27
36
 
28
37
  /* Hide Navigation Stuff */
29
38
 
39
+ #quick-nav,
30
40
  #nav-nav,
31
41
  #full-nav {
32
42
  display: none;