askclass-course-theme 0.7.1 → 0.7.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: b23317dc53a5e8d8c6906f5b5efa26de3e1887cba9ad3e6b0d8d195bd467c00a
4
- data.tar.gz: 36884856058b4b4aed13d20b004363a714adaa0ab02d175cf99b3bdd32150aad
3
+ metadata.gz: 931e7b78af4da413dd772ab9be96c3907897d6126b718c55b8bff803c12cd585
4
+ data.tar.gz: 0f2bdb0a504597c0544e7fcd47c718d2ebbfa304a07fccf84507c0ca54459906
5
5
  SHA512:
6
- metadata.gz: d24904a8f0249c4432767689c3cf4ad0a959b64f65c003a4b1fe5a431dd196a67932cbbd5a5c1481f8bbeaf5b10d02d38cba9773771b33c227f6a77910d01583
7
- data.tar.gz: 25745693f3f7b4715bf6b8338c4a12391765bf1d87add85a7a28b18b2889a25b944c3f8bce0988410167ae2e25718de0119086835d81cb08403eb0317d0c001c
6
+ metadata.gz: 0d7f2e0664a268bbc889194aa7850f72c5c536bc1e07dcc5bdbee09de7bcb1923d2095177a5a1409747cdb1a92c8aca2842c3ead8591d6af67abba617743b69c
7
+ data.tar.gz: e4d498fe7d9c509cfda6b3c74a3fcdb9bab1fe6fc177a63e833c701cc5236343579a9ffcf42a308cb986507481614d6d307eb7b9a5d0ef6745c5da6e7e16bdfc
@@ -10,13 +10,16 @@
10
10
 
11
11
  {%- assign _p = include.item -%}
12
12
 
13
- <div class="paginator">
13
+ <div class="paginator {{ arrow }}">
14
14
  {%- if _p %}
15
15
  <div class="{{ align }}">
16
16
  <span>{{ indicator }}</span>
17
17
  <span class="material-symbols-outlined">navigate_{{ arrow }}</span>
18
18
  </div>
19
19
  <a href="/session/{{ _p.url }}">
20
+ {%- if _p.header -%}
21
+ {{ _p.header }} &bull;&nbsp;
22
+ {%- endif -%}
20
23
  {{ _p.title }}
21
24
  </a>
22
25
  {%- else %}
@@ -1,26 +1,32 @@
1
- {% for s in segment_data.items %}
2
- {% if s == session_id %}
3
- {% assign _index = forloop.index0 %}
4
- {% break %}
5
- {% endif %}
6
- {% endfor %}
1
+ {%- for s in segment_data.items -%}
2
+ {%- if s == session_id -%}
3
+ {%- assign _index = forloop.index0 -%}
4
+ {%- break -%}
5
+ {%- endif -%}
6
+ {%- endfor -%}
7
7
 
8
- {% assign _nidx = _index | plus: 1 %}
9
- {% assign _next_segment = segment_data.items[_nidx] %}
10
- {% assign _next_item = site.data.sessions[_next_segment] %}
8
+ {%- assign _nidx = _index | plus: 1 -%}
9
+ {%- assign _next_segment = segment_data.items[_nidx] -%}
10
+ {%- assign _next_item = site.data.sessions[_next_segment] -%}
11
11
 
12
- {% if _index > 0 %}
13
- {% assign _pidx = _index | minus: 1 %}
14
- {% assign _prev_segment = segment_data.items[_pidx] %}
15
- {% assign _prev_item = site.data.sessions[_prev_segment] %}
16
- {% endif %}
12
+ {%- if _index > 0 -%}
13
+ {%- assign _pidx = _index | minus: 1 -%}
14
+ {%- assign _prev_segment = segment_data.items[_pidx] -%}
15
+ {%- assign _prev_item = site.data.sessions[_prev_segment] -%}
16
+ {%- endif -%}
17
17
 
18
18
  <section class="spacer center-align">
19
19
 
20
- {% include segment/nav.html segment=session_data.segment icon=1 %}
20
+ {%- include segment/nav.html segment=session_data.segment -%}
21
+ <div>
22
+ {%- if session_data.header -%}
23
+ {{ session_data.header }} &bull;&nbsp;
24
+ {%- endif -%}
25
+ {{ session_data.title }}
26
+ </div>
21
27
 
22
- <div class="paginator-container">
23
- {% include session/next_prev.html p="previous" item=_prev_item %}
24
- {% include session/next_prev.html p="next" item=_next_item %}
28
+ <div class="paginator-container spacer">
29
+ {%- include session/next_prev.html p="previous" item=_prev_item -%}
30
+ {%- include session/next_prev.html p="next" item=_next_item -%}
25
31
  </div>
26
32
  </section>
@@ -10,7 +10,6 @@ $size-width: 150px;
10
10
  .paginator {
11
11
  width: $size-width;
12
12
  a {
13
- text-align: center;
14
13
  display: block;
15
14
  font-size: 14px;
16
15
  line-height: 1.3;
@@ -20,10 +19,13 @@ $size-width: 150px;
20
19
  width: 100%;
21
20
  height: 100px;
22
21
  }
22
+ &.next a {
23
+ text-align: right;
24
+ }
23
25
  }
24
26
 
25
27
  .pull-left, .pull-right {
26
- color: var(--darkColor);
28
+ color: var(--color-dark);
27
29
  display: flex;
28
30
  align-items: center;
29
31
  justify-content: flex-end;
@@ -34,7 +34,7 @@ html {
34
34
  }
35
35
  }
36
36
  .body {
37
- h3, h3 a {
37
+ h3, h3 a, .item small:not(.due) {
38
38
  color: $color;
39
39
  }
40
40
  code, .due {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: askclass-course-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AskClass