askclass-course-theme 0.5.0 → 0.5.1

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: 9958814e12fcc66a3b3d3ec65d7b9fc566936da0d9a4f50c476a2060be0d5fdc
4
- data.tar.gz: e58a07a1d503e7eadd08e7a24ce01d978ff3817dbe2a58f0fcdceb03d6c59ebf
3
+ metadata.gz: 514905a300536f3d6b73949c54dcc1fdc181aea33c93887c3f8dcc055b8e37d0
4
+ data.tar.gz: c58f8934c0a99269473f7b5a99d39a3ebb64ae55c025d8737a92c2e51220cb11
5
5
  SHA512:
6
- metadata.gz: e5b62e020c12935fbd5b5f994e28329c1a74893c2a2671b6499ccd5320d3a890a379feee401e9b0840289e1babaa68f07cbe02afdf64312a3968041cb7d97781
7
- data.tar.gz: 03f964ecebe9f4b5b4d005eefe83ea2a820e1def34ed20afe530a4882f802b3ab5cdb24a60ad92ee6711a3d8031a5d52d068e940c74c9c516d6c2b68f1f5134f
6
+ metadata.gz: 73208823dff0cd482574dc8456826e57c0dc1e18a3617338c61b35577a1999ded9bb82c351fd2ed7d5fc712125f8dc7a754c4d163fa41b41cd54e5dad2499a31
7
+ data.tar.gz: fc9dbb0d4c4ffc48f6275ea6ec77eccd4254c7ee57971d946998b7d44e3f4ee9d49dd076cf3241885dc37a5ff6daac0b7129f28814cb6b06277974983403c16f
@@ -23,7 +23,13 @@
23
23
  <div class="item">
24
24
  <div class="middle-align">
25
25
  <span class="material-symbols-outlined">{{ session.icon }}</span>
26
- <h3>{{ session.header }}</h3>
26
+ {%- if session.url -%}
27
+ <a href="/session/{{ session.url }}" title="{{ session.title }}">
28
+ <h3>{{ session.header }}</h3>
29
+ </a>
30
+ {%- else -%}
31
+ <h3>{{ session.header }}</h3>
32
+ {%- endif -%}
27
33
  </div>
28
34
  {%- if session.due -%}
29
35
  <small class="due"
@@ -34,11 +40,7 @@
34
40
  </small>
35
41
  {%- endif -%}
36
42
 
37
- {%- if session.url -%}
38
- <a href="/session/{{ session.url }}" title="{{ session.title }}">{{ session.title }}</a>
39
- {%- else -%}
40
- {{ session.title }}
41
- {%- endif -%}
43
+ {{ session.title }}
42
44
 
43
45
  {%- if session.part -%}
44
46
  <small>(Part {{ session.part }})</small>
data/_includes/logo.html CHANGED
@@ -8,7 +8,7 @@
8
8
  {%- if include.href %}
9
9
  <h4 class="special"><a href="{{ include.href }}">{{ include.title | default: site.title }}</a></h4>
10
10
  {% elsif include.title %}
11
- <h4 class="special" style="color: var(--color-secondary); margin: 0 0 1em 0">{{ include.title }}</h4>
11
+ <h4 class="special" style="color: var(--color-theme); margin: 0 0 1em 0">{{ include.title }}</h4>
12
12
  {% else %}
13
13
  <h4 class="special">{{ include.title | default: site.title }}</h4>
14
14
  {% endif -%}
data/_sass/_base.scss CHANGED
@@ -17,6 +17,7 @@
17
17
 
18
18
  --color-card-fg: #{$color-card-fg};
19
19
  --color-card-bg: #{$color-card-bg};
20
+ --color-code-bg: #{$color-code-bg};
20
21
 
21
22
  --content-width: #{$content-width};
22
23
 
@@ -92,7 +93,7 @@ code {
92
93
  }
93
94
 
94
95
  pre {
95
- background: linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05));
96
+ background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5));
96
97
  padding: 10px;
97
98
  code {
98
99
  color: inherit;
data/_sass/_post.scss CHANGED
@@ -1,3 +1,10 @@
1
+ @mixin boxed() {
2
+ margin-top: 100px;
3
+ border-radius: 5px;
4
+ padding: 2px 5px;
5
+ background-color: var(--color-code-bg);
6
+ }
7
+
1
8
  article {
2
9
  max-width: var(--content-width);
3
10
  width: 100%;
@@ -15,6 +22,38 @@ article {
15
22
  font-size: 15px;
16
23
  }
17
24
  }
25
+ h1, h2, h3, h4 {
26
+ & + * {
27
+ margin-top: 0.5em;
28
+ }
29
+ & > code {
30
+ font-size: 0.8em;
31
+ }
32
+ }
33
+ code {
34
+ @include boxed();
35
+ }
36
+ pre {
37
+ margin: 0;
38
+ code {
39
+ border: 0;
40
+ background-color: inherit;
41
+ border-radius: 0;
42
+ padding: 0;
43
+ margin: 0;
44
+ }
45
+ }
46
+ p:has(> sub) {
47
+ margin: 1em 0 0 0;
48
+ sub {
49
+ font-family: var(--font-special);
50
+ color: var(--color-dark);
51
+ font-size: 0.9rem;
52
+ }
53
+ & + h1, & + h2, & + h3, & + h4 {
54
+ margin-top: 0;
55
+ }
56
+ }
18
57
  address {
19
58
  font-style: normal;
20
59
  font-family: var(--font-secondary);
data/_sass/_table.scss CHANGED
@@ -4,7 +4,7 @@ table {
4
4
  background-color: var(--color-row-odd, '#2a2a2a');
5
5
  }
6
6
  th, tr:nth-child(even) {
7
- background-color: var(--color-row,even, '#2f2f2f');
7
+ background-color: var(--color-row-even, '#2f2f2f');
8
8
  }
9
9
  td, th {
10
10
  word-break: normal;
data/_sass/init.scss CHANGED
@@ -3,10 +3,10 @@ $font-secondary: 'Teko', sans-serif;
3
3
  $font-special: 'Josefin Sans', sans-serif;
4
4
  $font-mono: 'Share Tech Mono', monospace;
5
5
 
6
- $color-primary: aliceblue;
7
- $color-secondary: skyblue;
6
+ $color-primary: white;
7
+ $color-secondary: floralwhite;
8
8
  $color-tertiary: #2cdd88;
9
- $color-bg: #222;
9
+ $color-bg: #3a3a3a;
10
10
  $color-fg: ivory;
11
11
  $color-dark: gray;
12
12
  $color-link: deeppink;
@@ -15,8 +15,10 @@ $color-theme: #ffc100;
15
15
  $color-row-odd: #2a2a2a;
16
16
  $color-row-even: #2f2f2f;
17
17
 
18
+ $color-code-bg: #222;
18
19
  $color-card-bg: whitesmoke;
19
20
  $color-card-fg: #444;
21
+
20
22
  $card-font-size: 16px;
21
23
 
22
24
  $content-width: 600px;
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - AskClass
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-07 00:00:00.000000000 Z
11
+ date: 2022-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll