askclass-course-theme 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/logo_static.html +5 -6
- data/_includes/session/googledrive.html +6 -0
- data/_includes/session/header.html +1 -1
- data/_includes/session/paginator.html +13 -3
- data/_includes/session/videos.html +5 -1
- data/_layouts/session.html +1 -1
- data/_sass/_base.scss +18 -9
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad415f673871488c829c0bdbfa89be7e3ff9f892c2f3200f725a11926e89d428
|
4
|
+
data.tar.gz: 6a64b6a2420b29a6d511933644937c7ed49614d781fc787c215506c77d8faf5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 924742638712d060a2555c0f14e642a9d5b43de26327fa55173ee2cb712e14654fcb62d5a12717527d77bde53439679c6a24a908e5d0d4df278324118717a70b
|
7
|
+
data.tar.gz: 6d4e3fba3a8e1ec59e302b5e0511a63f91aec08dc951735d9d018e832a00921997c69412def98e085de22020af52b4af357d1182209365b86ae3d5f7701d2876
|
data/_includes/logo_static.html
CHANGED
@@ -13,13 +13,12 @@
|
|
13
13
|
window.onscroll = () => {
|
14
14
|
const top = window.pageYOffset;
|
15
15
|
if (window.innerHeight + top >= document.body.offsetHeight - 2) {
|
16
|
-
e.
|
17
|
-
|
18
|
-
e.
|
16
|
+
e.classList.add('bottom');
|
17
|
+
} else if (top > 100) {
|
18
|
+
e.classList.remove('bottom');
|
19
|
+
e.classList.add('fixed');
|
19
20
|
} else {
|
20
|
-
e.
|
21
|
-
e.style.bottom = 'unset';
|
22
|
-
e.style.opacity = top > 100 ? 0.5 : 1;
|
21
|
+
e.classList.remove('fixed');
|
23
22
|
}
|
24
23
|
}
|
25
24
|
</script>
|
@@ -9,21 +9,31 @@
|
|
9
9
|
{%- assign _next_segment = segment_data.items[_nidx] -%}
|
10
10
|
{%- assign _next_item = site.data.sessions[_next_segment] -%}
|
11
11
|
|
12
|
+
{%- unless _next_item -%}
|
13
|
+
{%- assign _next_segment = site.data.syllabus[next].items[0] -%}
|
14
|
+
{%- assign _next_item = site.data.sessions[_next_segment] -%}
|
15
|
+
{%- endunless -%}
|
16
|
+
|
12
17
|
{%- if _index > 0 -%}
|
13
18
|
{%- assign _pidx = _index | minus: 1 -%}
|
14
19
|
{%- assign _prev_segment = segment_data.items[_pidx] -%}
|
15
20
|
{%- assign _prev_item = site.data.sessions[_prev_segment] -%}
|
16
21
|
{%- endif -%}
|
17
22
|
|
23
|
+
{%- unless _prev_item -%}
|
24
|
+
{%- assign _prev_segment = site.data.syllabus[prev].items[-1] -%}
|
25
|
+
{%- assign _prev_item = site.data.sessions[_prev_segment] -%}
|
26
|
+
{%- endunless -%}
|
27
|
+
|
18
28
|
<section class="spacer center-align">
|
19
29
|
|
20
30
|
{%- include segment/nav.html segment=session_data.segment -%}
|
21
|
-
<
|
31
|
+
<center>
|
22
32
|
{%- if session_data.header -%}
|
23
|
-
{{ session_data.header }}
|
33
|
+
<small>{{ session_data.header }}</small><br/>
|
24
34
|
{%- endif -%}
|
25
35
|
{{ session_data.title }}
|
26
|
-
</
|
36
|
+
</center>
|
27
37
|
|
28
38
|
<div class="paginator-container spacer">
|
29
39
|
{%- include session/next_prev.html p="previous" item=_prev_item -%}
|
@@ -1,5 +1,9 @@
|
|
1
1
|
{% for v in include.videos %}
|
2
|
-
{%
|
2
|
+
{% if v contains '://' %}
|
3
|
+
{% include session/googledrive.html src=v %}
|
4
|
+
{% else %}
|
5
|
+
{% include session/youtube.html id=v %}
|
6
|
+
{% endif %}
|
3
7
|
{% assign _size = include.videos | size %}
|
4
8
|
{% if forloop.index != _size %}<hr />{% endif %}
|
5
9
|
{% endfor %}
|
data/_layouts/session.html
CHANGED
data/_sass/_base.scss
CHANGED
@@ -125,9 +125,6 @@ sub {
|
|
125
125
|
align-items: center;
|
126
126
|
text-decoration: none;
|
127
127
|
text-align: center;
|
128
|
-
img {
|
129
|
-
margin-right: 5px;
|
130
|
-
}
|
131
128
|
}
|
132
129
|
@mixin align-center() {
|
133
130
|
display: flex;
|
@@ -151,17 +148,29 @@ sub {
|
|
151
148
|
.course-id {
|
152
149
|
@include align-middle();
|
153
150
|
font-family: var(--font-special);
|
154
|
-
flex-direction:
|
155
|
-
position: fixed;
|
156
|
-
top: 5px;
|
157
|
-
right: 5px;
|
151
|
+
flex-direction: column;
|
158
152
|
a {
|
159
153
|
color: var(--color-theme);
|
160
154
|
display: flex;
|
161
|
-
margin
|
155
|
+
margin: 0 5px;
|
162
156
|
}
|
163
157
|
& a:nth-child(2) {
|
164
|
-
margin
|
158
|
+
margin: 3px 0;
|
159
|
+
}
|
160
|
+
&.fixed {
|
161
|
+
flex-direction: row-reverse;
|
162
|
+
position: fixed;
|
163
|
+
right: 5px;
|
164
|
+
top: 5px;
|
165
|
+
opacity: 0.8;
|
166
|
+
img {
|
167
|
+
transform: scale(0.6);
|
168
|
+
}
|
169
|
+
&.bottom {
|
170
|
+
opacity: 1;
|
171
|
+
bottom: 70px;
|
172
|
+
top: unset;
|
173
|
+
}
|
165
174
|
}
|
166
175
|
}
|
167
176
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: askclass-course-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AskClass
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- _includes/segment/index.html
|
49
49
|
- _includes/segment/nav.html
|
50
50
|
- _includes/session/content_revealer.html
|
51
|
+
- _includes/session/googledrive.html
|
51
52
|
- _includes/session/header.html
|
52
53
|
- _includes/session/images.html
|
53
54
|
- _includes/session/item.html
|