askclass-course-theme 0.7.0 → 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: 57efa5d11fc6fc2aaad9c2f429f6a6bae67b1023e96cbad3d1c0176261718346
4
- data.tar.gz: 7b562ae2cd815ab1e613bfb32bd22dac861616970a3e53b1e4ca6b17e66f0a31
3
+ metadata.gz: 931e7b78af4da413dd772ab9be96c3907897d6126b718c55b8bff803c12cd585
4
+ data.tar.gz: 0f2bdb0a504597c0544e7fcd47c718d2ebbfa304a07fccf84507c0ca54459906
5
5
  SHA512:
6
- metadata.gz: 1d9122a69c606cb3b773ce0087ae87000502f33fd91850c1ce9620de795730d41b3d892ac294e5c514eb3092654aeeec06a76fb409a7d9c08571949399851f93
7
- data.tar.gz: 05010cb3e4df78795af24a3b9a1464e114acdc0f7c053fab2d05feb42d45473a946aa53684f142f76e88f4156feb0a0c57a47c03c250fe6a07dbd712c8dcf024
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,12 +19,15 @@ $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
- align-items: end;
30
+ align-items: center;
29
31
  justify-content: flex-end;
30
32
  }
31
33
 
@@ -34,13 +34,16 @@ 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 {
41
41
  color: white;
42
42
  background-color: $color;
43
43
  }
44
+ .item:not(:first-child) {
45
+ border-color: $color;
46
+ }
44
47
  }
45
48
  &.current {
46
49
  .control {
data/_sass/_tab.scss CHANGED
@@ -79,7 +79,7 @@
79
79
  margin: 5px 0;
80
80
  }
81
81
  .item:not(:first-child) {
82
- border-top: 3px outset;
82
+ border-top: 1px solid;
83
83
  }
84
84
  .item {
85
85
  margin-bottom: 20px;
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.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AskClass