askclass-course-theme 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/course.html +20 -5
- data/_includes/segment/index.html +3 -3
- data/_sass/_bubbles.scss +0 -4
- data/_sass/_tab-colors.scss +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5262bf15456d1f62aa9ebb8871b692bc695f392f19607a131201ad2311a2a88
|
|
4
|
+
data.tar.gz: 37c8f807b9fbb5f99eaf5ef1ec1358e4ec4a120b2c57cde6de5e14da4e7d17b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14989658b5666ed3ab5f736ca464ef67c2d3d85ddb405455e9ee5661408e59178af6fd7e40d39191870c0fec60f6bbaafac9cb156a571bac78af1e16f73b1078
|
|
7
|
+
data.tar.gz: 4cb1df76542bfc121e6bc5f4afc4dcf25f1721d496ac25c4112462c37e5d81ff5d9b6df90106c3f619f4f364c15fc41a22fc5ed23c0347d9fc73bc38bec180c6
|
data/_includes/course.html
CHANGED
|
@@ -25,17 +25,26 @@
|
|
|
25
25
|
{%- endif -%}
|
|
26
26
|
{%- for item in info.items -%}
|
|
27
27
|
{%- assign session = site.data.sessions[item] -%}
|
|
28
|
+
{%- if session.header %}
|
|
29
|
+
{%- assign header = session.header %}
|
|
30
|
+
{%- elsif session.sequence %}
|
|
31
|
+
{%- assign header = course.session_tag | append: " " | append: session.sequence %}
|
|
32
|
+
{%- else %}
|
|
33
|
+
{%- assign header = nul %}
|
|
34
|
+
{%- endif %}
|
|
28
35
|
<div class="item">
|
|
36
|
+
{%- if header %}
|
|
29
37
|
<div class="middle-align">
|
|
30
|
-
<span class="{{ symbols }}">{{ session.icon }}</span>
|
|
38
|
+
<span class="card-color {{ symbols }}">{{ session.icon }}</span>
|
|
31
39
|
{%- if session.url -%}
|
|
32
40
|
<a href="/session/{{ session.url }}" title="{{ session.title }}">
|
|
33
|
-
<h3>{{
|
|
41
|
+
<h3 class="card-color">{{ header }}</h3>
|
|
34
42
|
</a>
|
|
35
43
|
{%- else -%}
|
|
36
|
-
<h3>{{
|
|
44
|
+
<h3 class="card-color">{{ header }}</h3>
|
|
37
45
|
{%- endif -%}
|
|
38
46
|
</div>
|
|
47
|
+
{%- endif %}
|
|
39
48
|
{%- if session.due -%}
|
|
40
49
|
<small class="due"
|
|
41
50
|
data-date="{{ session.due }}"
|
|
@@ -45,10 +54,16 @@
|
|
|
45
54
|
</small>
|
|
46
55
|
{%- endif -%}
|
|
47
56
|
|
|
48
|
-
{
|
|
57
|
+
{%- if header == nul && session.url %}
|
|
58
|
+
<a class="card-color" href="/session/{{ session.url }}" title="{{ session.title }}">
|
|
59
|
+
{{ session.title }}
|
|
60
|
+
</a>
|
|
61
|
+
{%- else %}
|
|
62
|
+
{{ session.title }}
|
|
63
|
+
{%- endif %}
|
|
49
64
|
|
|
50
65
|
{%- if session.part -%}
|
|
51
|
-
<small>({{ session.part }})</small>
|
|
66
|
+
<small class="card-color">({{ session.part }})</small>
|
|
52
67
|
{%- endif -%}
|
|
53
68
|
</div>
|
|
54
69
|
{%- endfor -%}
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
|
|
30
30
|
<div class="body">
|
|
31
31
|
{%- if session.url -%}
|
|
32
|
-
<h3><a href="/session/{{ session.url }}">{{ session.title }}</a></h3>
|
|
32
|
+
<h3><a class="card-color" href="/session/{{ session.url }}">{{ session.title }}</a></h3>
|
|
33
33
|
{%- else -%}
|
|
34
|
-
<h3>{{ session.title }}</h3>
|
|
34
|
+
<h3 class="card-color">{{ session.title }}</h3>
|
|
35
35
|
{%- endif -%}
|
|
36
36
|
|
|
37
37
|
{%- if session.part -%}
|
|
38
|
-
<div class="item">
|
|
38
|
+
<div class="card-color item">
|
|
39
39
|
{{ session.part }}
|
|
40
40
|
</div>
|
|
41
41
|
{%- endif -%}
|
data/_sass/_bubbles.scss
CHANGED
|
@@ -147,10 +147,6 @@ $color-fade: rgba(0,0,0,0.6); // border shadow
|
|
|
147
147
|
text-align: left;
|
|
148
148
|
font-family: var(--font-tertiary);
|
|
149
149
|
|
|
150
|
-
// Responsive font sizing with clamp (modern replacement for calc)
|
|
151
|
-
font-size: clamp(20px, 1.25rem + 0.5vw, 30px);
|
|
152
|
-
line-height: clamp(30px, 1.8rem + 0.8vw, 42px);
|
|
153
|
-
|
|
154
150
|
.index {
|
|
155
151
|
position: absolute;
|
|
156
152
|
top: -14px;
|
data/_sass/_tab-colors.scss
CHANGED