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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0695b828b4a9c6cc6f7daf682989a2f9b2d6733dcef9e8f36132772bb4930090'
4
- data.tar.gz: 3baf24cd2b52376168d0cdca5d05c34ebce51106d2c92268d4c93be5fb0884a4
3
+ metadata.gz: 4bb9aa2434b1e4e4e0543a12c2e2c442635978579260c335fb4ae300a5a61e15
4
+ data.tar.gz: 9f4347b3bd3f224364ace21cf85f58e83a09bf38e08a1c8e594871a79c295184
5
5
  SHA512:
6
- metadata.gz: 4de957ff6a9db42a0b97b8db8f679034d19f02efbb5219f8136bfca6716a87e19032ce92ed258cb4ab6794926ebb61103119d893d65821fe738f8230ac43a51b
7
- data.tar.gz: a8db4a7d28aa773fcab866abda10c31647e004c771db152243fdd1a44c4c86a409fe4f74a2395a381b07981f7f12bdd23cccf4280c23fb239b7ddb1a42d775ea
6
+ metadata.gz: '080db13b9df00ccfe29ea5cae769befb8c9273aba284dee348436f8753c091d3340bd91c183d5b3897dbd9e474f7184406c102b858371bc52a3e9a2ce576c43c'
7
+ data.tar.gz: ceb510fa60404129b7b205811f187ee8b95e5d7b400cedf140880af61ad3e08ad50ceaadce56ad5b709b2d092ef1b1449ac0446affb754ad58b1383a25a74dd1
@@ -4,56 +4,58 @@ GEM
4
4
  addressable (2.7.0)
5
5
  public_suffix (>= 2.0.2, < 5.0)
6
6
  colorator (1.1.0)
7
- concurrent-ruby (1.1.5)
7
+ concurrent-ruby (1.1.7)
8
8
  em-websocket (0.5.1)
9
9
  eventmachine (>= 0.12.9)
10
10
  http_parser.rb (~> 0.6.0)
11
11
  eventmachine (1.2.7)
12
- ffi (1.11.3)
12
+ ffi (1.13.1)
13
13
  forwardable-extended (2.6.0)
14
14
  http_parser.rb (0.6.0)
15
- i18n (1.8.1)
15
+ i18n (1.8.5)
16
16
  concurrent-ruby (~> 1.0)
17
- jekyll (4.0.0)
17
+ jekyll (4.1.1)
18
18
  addressable (~> 2.4)
19
19
  colorator (~> 1.0)
20
20
  em-websocket (~> 0.5)
21
- i18n (>= 0.9.5, < 2)
21
+ i18n (~> 1.0)
22
22
  jekyll-sass-converter (~> 2.0)
23
23
  jekyll-watch (~> 2.0)
24
24
  kramdown (~> 2.1)
25
25
  kramdown-parser-gfm (~> 1.0)
26
26
  liquid (~> 4.0)
27
- mercenary (~> 0.3.3)
27
+ mercenary (~> 0.4.0)
28
28
  pathutil (~> 0.9)
29
29
  rouge (~> 3.0)
30
30
  safe_yaml (~> 1.0)
31
31
  terminal-table (~> 1.8)
32
- jekyll-sass-converter (2.0.1)
32
+ jekyll-sass-converter (2.1.0)
33
33
  sassc (> 2.0.1, < 3.0)
34
34
  jekyll-watch (2.2.1)
35
35
  listen (~> 3.0)
36
- kramdown (2.1.0)
36
+ kramdown (2.3.0)
37
+ rexml
37
38
  kramdown-parser-gfm (1.1.0)
38
39
  kramdown (~> 2.0)
39
40
  liquid (4.0.3)
40
41
  listen (3.2.1)
41
42
  rb-fsevent (~> 0.10, >= 0.10.3)
42
43
  rb-inotify (~> 0.9, >= 0.9.10)
43
- mercenary (0.3.6)
44
+ mercenary (0.4.0)
44
45
  pathutil (0.16.2)
45
46
  forwardable-extended (~> 2.6)
46
- public_suffix (4.0.3)
47
- rb-fsevent (0.10.3)
47
+ public_suffix (4.0.5)
48
+ rb-fsevent (0.10.4)
48
49
  rb-inotify (0.10.1)
49
50
  ffi (~> 1.0)
50
- rouge (3.14.0)
51
+ rexml (3.2.4)
52
+ rouge (3.22.0)
51
53
  safe_yaml (1.0.5)
52
- sassc (2.2.1)
54
+ sassc (2.4.0)
53
55
  ffi (~> 1.9)
54
56
  terminal-table (1.8.0)
55
57
  unicode-display_width (~> 1.1, >= 1.1.1)
56
- unicode-display_width (1.6.0)
58
+ unicode-display_width (1.7.0)
57
59
 
58
60
  PLATFORMS
59
61
  ruby
@@ -62,4 +64,4 @@ DEPENDENCIES
62
64
  jekyll
63
65
 
64
66
  BUNDLED WITH
65
- 1.17.2
67
+ 2.1.4
@@ -40,7 +40,7 @@ course:
40
40
  href: "policies/"
41
41
  id: pol
42
42
  css:
43
- font-url: "https://use.typekit.net/pig5ein.css"
43
+ font-url: "https://use.typekit.net/qqk1feg.css"
44
44
 
45
45
  collections_dir: syllabus
46
46
 
@@ -30,7 +30,7 @@ layout: default
30
30
  <header>
31
31
  {% endif %}
32
32
  <h2>
33
- {{ week.theme | escape }}
33
+ {{ week.theme | markdownify | remove: "<p>" | remove: "</p>" | strip_newlines }}
34
34
  </h2>
35
35
  <small>Week&nbsp;{{ util.spelled_nums[week_int] }}</small>
36
36
  </header>
@@ -44,7 +44,7 @@ layout: default
44
44
  {% else %}
45
45
  {% capture dateline %}Agenda for the Week of {{ entry.begins | date: "%B %-e" }}{% endcapture %}
46
46
  {% endif %}
47
- <h3>{{ dateline }}{% if meeting.video %} <a href="{{ meeting.video }}">Video</a>{% endif %}</h3>
47
+ <h3>{{ dateline }}{% if meeting.video %} <a href="{{ meeting.video }}"><svg class="youtube" aria-label="YouTube"><use href="#youtube"></use></svg>Video</a>{% endif %}</h3>
48
48
  <ol>
49
49
  {% for item in meeting.agenda %}
50
50
  <li>{{ item | markdownify | remove: "<p>" | remove: "</p>" | strip_newlines }}</li>
@@ -116,3 +116,6 @@ layout: default
116
116
  {% endif %}
117
117
  </article>
118
118
  {% endfor %}
119
+
120
+ <!-- Youtube Icon via https://www.flaticon.com/free-icon/youtube_2111795 -->
121
+ <svg xmlns='http://www.w3.org/2000/svg' class="unused"><path id="youtube" d='m23.469 5.929.03.196c-.29-1.029-1.073-1.823-2.068-2.112l-.021-.005c-1.871-.508-9.4-.508-9.4-.508s-7.51-.01-9.4.508c-1.014.294-1.798 1.088-2.083 2.096l-.005.021c-.699 3.651-.704 8.038.031 11.947l-.031-.198c.29 1.029 1.073 1.823 2.068 2.112l.021.005c1.869.509 9.4.509 9.4.509s7.509 0 9.4-.509c1.015-.294 1.799-1.088 2.084-2.096l.005-.021c.318-1.698.5-3.652.5-5.648 0-.073 0-.147-.001-.221.001-.068.001-.149.001-.23 0-1.997-.182-3.951-.531-5.846zm-13.861 9.722v-7.293l6.266 3.652z'/></svg>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en" id="{{page.id}}" prefix="og: http://ogp.me/ns#" class="loading">
3
- <head>{% assign course = site.course %}{% assign instructor = site.course.instructor %}
3
+ <head>{% assign course = site.course %}{% assign instructor = site.course.instructor %}{% assign ta = site.course.ta %}
4
4
  <meta charset="utf-8" />
5
5
  <title>{{ course.number }}: {% if page.title %}{{ page.title}}{% else %}{{ course.title }}{% endif %}</title>
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no" />
@@ -17,7 +17,7 @@
17
17
  <body>
18
18
  <header id="header">
19
19
  <h1>
20
- <a rel="home" href="{{ site.url }}{{ site.baseurl }}">{{ course.title}}</a>
20
+ <a rel="home" href="{{ site.url }}{{ site.baseurl }}">{{ course.title}}</a>{% if page.title %}: {{ page.title}}{% endif %}
21
21
  </h1>
22
22
  <p class="tagline">
23
23
  {% if course.tagline %}{{ course.tagline }}{% endif %}
@@ -42,13 +42,28 @@
42
42
  <ul>
43
43
  <li>
44
44
  <a href="{{ instructor.url }}">{{ instructor.honorific }} {{ instructor.name }}</a>,
45
- {{ site.course.instructor.full_title | escape }}
45
+ {{ instructor.full_title | escape }}
46
46
  </li>
47
47
  <li><a href="mailto:{{ instructor.email }}">{{ instructor.email }}</a></li>
48
48
  <li id="office-hours">
49
49
  {{ instructor.office_hours }}
50
50
  </li>
51
51
  </ul>
52
+ {% if ta.name %}
53
+ <header>
54
+ <h3>Teaching Assistant</h3>
55
+ </header>
56
+ <ul>
57
+ <li>
58
+ {% if ta.url %}<a href="{{ ta.url }}">{% endif %}{{ ta.name }}{% if ta.url %}</a>{% endif %},
59
+ {{ ta.full_title | escape }}
60
+ </li>
61
+ <li><a href="mailto:{{ ta.email }}">{{ ta.email }}</a></li>
62
+ <li id="ta-office-hours">
63
+ {{ ta.office_hours }}
64
+ </li>
65
+ </ul>
66
+ {% endif %}
52
67
  </aside>
53
68
 
54
69
 
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="links">
6
+ <header>
7
+ <h2>{{ page.title }}</h2>
8
+ </header>
9
+ {{ content }}
10
+ </article>
@@ -8,7 +8,7 @@ layout: default
8
8
  {% for project in site.projects %}
9
9
  {% assign dd = project.due_date | date: "%s" %}
10
10
 
11
- <article class="project" id="project-{{ site.data.utility.spelled_nums[forloop.index] | downcase }}">
11
+ <article class="project {{project.level}}" id="project-{{ site.data.utility.spelled_nums[forloop.index] | downcase }}">
12
12
  {% if today < dd and current == true %}
13
13
  <header id="current">
14
14
  {% assign current = false %}
@@ -106,3 +106,7 @@ code {
106
106
  position: absolute;
107
107
  left: -10000px;
108
108
  }
109
+
110
+ .unused {
111
+ display: none;
112
+ }
@@ -1,16 +1,18 @@
1
- $text-color: #222;
2
- $back-color: #F2F2F2;
3
- $spot-color: #900;
4
- $gray-color: #7F7F7F;
1
+ $text-color: #321207;
2
+ $back-color: #F6EACB;
3
+ $spot-color: #6C1F55;
4
+ $acnt-color: #B34523;
5
+ $gray-color: #73664E; /* #7F7F7F; */
5
6
  $gray-alter: darken($gray-color, 10%);
6
7
  $link-under: transparentize($spot-color, 0.65);
7
- $curr-color: lighten($gray-color, 40%);
8
+ $curr-color: darken($back-color, 8%);
8
9
 
9
10
  // Dark mode
10
- $dk-text-color: #AFAFAF;
11
+ $dk-text-color: #DEDEDE;
11
12
  $dk-back-color: #111;
12
- $dk-spot-color: #9C0000;
13
- $dk-gray-color: #777;
13
+ $dk-spot-color: #FFB700;
14
+ $dk-acnt-color: #FF764D;
15
+ $dk-gray-color: #9E9E9E;
14
16
  $dk-link-under: transparentize($dk-spot-color, 0.25);
15
17
  $dk-curr-color: darken($dk-gray-color, 45%);
16
18
 
@@ -21,6 +23,7 @@ html.light {
21
23
  --color-text: #{$text-color};
22
24
  --color-back: #{$back-color};
23
25
  --color-spot: #{$spot-color};
26
+ --color-acnt: #{$acnt-color};
24
27
  --color-gray: #{$gray-color};
25
28
  --color-curr: #{$curr-color};
26
29
  --color-altg: #{$gray-alter};
@@ -32,24 +35,26 @@ html.dark {
32
35
  --color-text: #{$dk-text-color};
33
36
  --color-back: #{$dk-back-color};
34
37
  --color-spot: #{$dk-spot-color};
38
+ --color-acnt: #{$dk-acnt-color};
35
39
  --color-gray: #{$dk-gray-color};
36
40
  --color-curr: #{$dk-curr-color};
37
41
  --color-altg: #{$dk-gray-color};
38
42
  --color-link: #{$dk-link-under};
39
43
  --color-navi: #{$dk-gray-color};
40
- --color-nava: #{$dk-text-color};
44
+ --color-nava: #{$dk-back-color};
41
45
  }
42
46
  @media screen and (prefers-color-scheme: dark) {
43
47
  html {
44
48
  --color-text: #{$dk-text-color};
45
49
  --color-back: #{$dk-back-color};
46
50
  --color-spot: #{$dk-spot-color};
51
+ --color-acnt: #{$dk-acnt-color};
47
52
  --color-gray: #{$dk-gray-color};
48
53
  --color-curr: #{$dk-curr-color};
49
54
  --color-altg: #{$dk-gray-color};
50
55
  --color-link: #{$dk-link-under};
51
56
  --color-navi: #{$dk-gray-color};
52
- --color-nava: #{$dk-text-color};
57
+ --color-nava: #{$dk-back-color};
53
58
  }
54
59
  }
55
60
 
@@ -62,8 +67,8 @@ html {
62
67
  }
63
68
  ol > li::before,
64
69
  ul li::before {
65
- color: $spot-color;
66
- color: var(--color-spot);
70
+ color: $acnt-color;
71
+ color: var(--color-acnt);
67
72
  }
68
73
  a {
69
74
  color: $spot-color;
@@ -81,8 +86,8 @@ a {
81
86
  color: var(--color-spot);
82
87
  }
83
88
  .nav a {
84
- border: 1px solid $spot-color;
85
- border: 1px solid var(--color-spot);
89
+ border: 1px solid $acnt-color;
90
+ border: 1px solid var(--color-acnt);
86
91
  color: $gray-color;
87
92
  color: var(--color-navi);
88
93
  }
@@ -92,8 +97,8 @@ a {
92
97
  #calendar #nav-cal a,
93
98
  #policies #nav-pol a,
94
99
  #projects #nav-pro a {
95
- background-color: $spot-color;
96
- background-color: var(--color-spot);
100
+ background-color: $acnt-color;
101
+ background-color: var(--color-acnt);
97
102
  color: $back-color;
98
103
  color: var(--color-nava);
99
104
  }
@@ -115,13 +120,6 @@ a {
115
120
  color: $gray-alter;
116
121
  color: var(--color-altg);
117
122
  }
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
123
  #btn-show-calendar {
126
124
  background-color: $back-color;
127
125
  background-color: var(--color-back);
@@ -139,24 +137,28 @@ a {
139
137
  color: var(--color-back);
140
138
  }
141
139
  .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);
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
148
  }
149
149
  .agenda h3 a:active,
150
150
  .agenda h3 a:focus,
151
151
  .agenda h3 a:hover {
152
- background-color: $spot-color;
153
- background-color: var(--color-spot);
152
+ background-color: $acnt-color;
153
+ background-color: var(--color-acnt);
154
154
  color: $back-color;
155
155
  color: var(--color-back);
156
156
  }
157
- .agenda h3 a::before {
158
- color: $gray-color;
159
- color: var(--color-gray);
157
+ a:active .youtube,
158
+ a:focus .youtube,
159
+ a:hover .youtube {
160
+ fill: $back-color;
161
+ fill: var(--color-back);
160
162
  }
161
163
  header small {
162
164
  color: $spot-color;
@@ -177,10 +179,10 @@ header small {
177
179
  color: var(--color-text);
178
180
  }
179
181
  #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);
182
+ background-color: $acnt-color;
183
+ background-color: var(--color-acnt);
184
+ border-color: $acnt-color;
185
+ border-color: var(--color-acnt);
184
186
  color: $back-color;
185
187
  color: var(--color-back);
186
188
  }
@@ -0,0 +1,192 @@
1
+ $text-color: #321207;
2
+ $back-color: #F6EACB;
3
+ $spot-color: #6C1F55;
4
+ $acnt-color: #B34523;
5
+ $gray-color: #73664E; /* #7F7F7F; */
6
+ $gray-alter: darken($gray-color, 10%);
7
+ $link-under: transparentize($spot-color, 0.65);
8
+ $curr-color: darken($back-color, 8%);
9
+
10
+ // Dark mode
11
+ $dk-text-color: #DEDEDE;
12
+ $dk-back-color: #111;
13
+ $dk-spot-color: #FFB700;
14
+ $dk-acnt-color: #FF764D;
15
+ $dk-gray-color: #9E9E9E;
16
+ $dk-link-under: transparentize($dk-spot-color, 0.25);
17
+ $dk-curr-color: darken($dk-gray-color, 45%);
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
+ }