askclass-course-theme 0.4.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: b9e7b81c7615d7a7080463b94806c55b7525236f9cb54dffcb92bae2350528b0
4
- data.tar.gz: 1745fd369d3de94b043a049707ceeacb7e18210e7f475817c37e19454df637a4
3
+ metadata.gz: 514905a300536f3d6b73949c54dcc1fdc181aea33c93887c3f8dcc055b8e37d0
4
+ data.tar.gz: c58f8934c0a99269473f7b5a99d39a3ebb64ae55c025d8737a92c2e51220cb11
5
5
  SHA512:
6
- metadata.gz: eae0d66205afb6e7451af62d29b04b1e2232996f3dbe1b841cfa5a0974d8f278282d9e604d26ca12227dc010db8aec15971c541b375e1029ff13f55bf6af93b8
7
- data.tar.gz: 5e94ea3c1cbf1a02f64a0d184087cdd330311063eacba7a22b347f0644e0e1bc96cc6d392d7cf9527263fdcf9c317c6018b85fd575e7ab466fafbbf9be0e39dc
6
+ metadata.gz: 73208823dff0cd482574dc8456826e57c0dc1e18a3617338c61b35577a1999ded9bb82c351fd2ed7d5fc712125f8dc7a754c4d163fa41b41cd54e5dad2499a31
7
+ data.tar.gz: fc9dbb0d4c4ffc48f6275ea6ec77eccd4254c7ee57971d946998b7d44e3f4ee9d49dd076cf3241885dc37a5ff6daac0b7129f28814cb6b06277974983403c16f
data/_config.yml CHANGED
@@ -63,11 +63,11 @@ collections:
63
63
  segment:
64
64
  output: true
65
65
 
66
- ignore_theme_config: false
67
- excerpt_separator: "<!--more-->"
68
- permalink: /:year/:month/:day/:title
69
-
70
66
  defaults:
67
+ - scope:
68
+ path: ""
69
+ values:
70
+ layout: "default"
71
71
  - scope:
72
72
  type: "session"
73
73
  values:
@@ -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>
@@ -4,6 +4,6 @@
4
4
  {%- if page.collection == 'session' -%}
5
5
  <link rel="stylesheet" href="{{ 'assets/css/session.css' | relative_url }}" />
6
6
  {%- else -%}
7
- <link rel="stylesheet" href="{{ 'assets/css/index.css' | relative_url }}" />
7
+ <link rel="stylesheet" href="{{ 'assets/css/segment.css' | relative_url }}" />
8
8
  {%- endif -%}
9
9
  </head>
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(--secondaryColor); 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 -%}
@@ -3,7 +3,13 @@
3
3
  {% include header.html %}
4
4
  <body>
5
5
  {% include logo.html %}
6
- {{ content }}
6
+ {% if page.url == '/' %}
7
+ {% include course.html %}
8
+ {% elsif page.url == '/404' %}
9
+ <h2 class="center-align">Page not found!</h2>
10
+ {% else %}
11
+ {{ content }}
12
+ {% endif %}
7
13
  {% include footer.html %}
8
14
  {% include foot/pwaupdate.html %}
9
15
  </body>
data/_sass/_base.scss ADDED
@@ -0,0 +1,213 @@
1
+ :root {
2
+ --font-special: #{$font-special};
3
+ --font-main: #{$font-main};
4
+ --font-secondary: #{$font-secondary};
5
+ --font-mono: #{$font-mono};
6
+
7
+ --color-bg: #{$color-bg};
8
+ --color-fg: #{$color-fg};
9
+ --color-primary: #{$color-primary};
10
+ --color-secondary: #{$color-secondary};
11
+ --color-tertiary: #{$color-tertiary};
12
+ --color-link: #{$color-link};
13
+ --color-dark: #{$color-dark};
14
+ --color-theme: #{$color-theme};
15
+ --color-row-odd: #{$color-row-odd};
16
+ --color-row-even: #{$color-row-even};
17
+
18
+ --color-card-fg: #{$color-card-fg};
19
+ --color-card-bg: #{$color-card-bg};
20
+ --color-code-bg: #{$color-code-bg};
21
+
22
+ --content-width: #{$content-width};
23
+
24
+ --grid-width: #{$grid-width};
25
+ --grid-image-height: #{$grid-image-height};
26
+ --card-font-size: #{$card-font-size};
27
+ }
28
+
29
+ body {
30
+ font-family: var(--font-main);
31
+ font-size: 17px;
32
+ line-height: 1.6;
33
+ background-color: var(--color-bg);
34
+ color: var(--color-fg);
35
+ &::-webkit-scrollbar {
36
+ width: 6px;
37
+ height: 6px;
38
+ }
39
+ &::-webkit-scrollbar-thumb {
40
+ background-color: rgba(0,0,0,0.5);
41
+ border-radius: 6px;
42
+ }
43
+ &::-webkit-scrollbar-corner {
44
+ background-color: transparent;
45
+ }
46
+ }
47
+
48
+ hr {
49
+ width: 300px;
50
+ margin-bottom: 20px;
51
+ margin-top: 40px;
52
+ border-color: var(--color-bg);
53
+ }
54
+
55
+ a {
56
+ color: var(--color-link);
57
+ text-decoration: none;
58
+ }
59
+
60
+ h1, h2, h3, h4, h5, h6 {
61
+ font-family: var(--font-secondary);
62
+ font-weight: normal;
63
+ color: var(--color-secondary);
64
+ line-height: 1;
65
+ }
66
+
67
+ h1 { font-size: 2.5em }
68
+ h2 { font-size: 2em }
69
+ h3 { font-size: 1.7em }
70
+ h4 { font-size: 1.4em }
71
+ h5 { font-size: 1.2em }
72
+ h6 { font-size: 1em }
73
+
74
+ .special {
75
+ font-family: var(--font-special);
76
+ text-align: center;
77
+ color: var(--color-primary);
78
+ margin: 10px 0 5px 0;
79
+ }
80
+
81
+ code, pre {
82
+ font-family: var(--font-mono);
83
+ }
84
+
85
+ code {
86
+ white-space: pre-wrap;
87
+ color: var(--color-secondary);
88
+ &.rounded {
89
+ border-radius: 5px;
90
+ margin: 0 3px;
91
+ padding: 2px 5px;
92
+ }
93
+ }
94
+
95
+ pre {
96
+ background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5));
97
+ padding: 10px;
98
+ code {
99
+ color: inherit;
100
+ }
101
+ }
102
+
103
+ sub, sup {
104
+ font-size: small;
105
+ }
106
+ sup {
107
+ vertical-align: 6px;
108
+ }
109
+ sub {
110
+ vertical-align: 0px;
111
+ }
112
+
113
+ .md-18 { font-size: 18px; }
114
+ .md-24 { font-size: 24px; }
115
+ .md-36 { font-size: 36px; }
116
+ .md-48 { font-size: 48px; }
117
+ .md-disabled { color: rgba(0,0,0,0.6); }
118
+
119
+ @mixin margin-top() {
120
+ margin-top: 100px;
121
+ }
122
+
123
+ @mixin align-middle() {
124
+ display: flex;
125
+ align-items: center;
126
+ text-decoration: none;
127
+ text-align: center;
128
+ img {
129
+ margin-right: 5px;
130
+ }
131
+ }
132
+ @mixin align-center() {
133
+ display: flex;
134
+ align-items: center;
135
+ text-decoration: none;
136
+ flex-direction: column;
137
+ }
138
+
139
+ .middle-align {
140
+ @include align-middle();
141
+ }
142
+
143
+ .center-align {
144
+ @include align-center();
145
+ }
146
+
147
+ .spacer {
148
+ margin-top: 100px;
149
+ }
150
+
151
+ footer {
152
+ @include margin-top();
153
+ @include align-center();
154
+ color: var(--color-dark);
155
+ font-size: 14px;
156
+ ul {
157
+ padding: 0;
158
+ display: flex;
159
+ li {
160
+ @include align-middle();
161
+ margin: 0 5px;
162
+ a {
163
+ color: var(--color-secondary);
164
+ }
165
+ }
166
+ }
167
+ }
168
+
169
+ article {
170
+ &.center {
171
+ @include align-center();
172
+ }
173
+ &.center img {
174
+ border-radius: 50%;
175
+ object-fit: cover;
176
+ }
177
+ &.left img {
178
+ float: left;
179
+ object-fit: cover;
180
+ margin: 5px 10px 0 0;
181
+ display: inline-block;
182
+ }
183
+ &.tiles {
184
+ ul {
185
+ list-style-type: none;
186
+ padding-inline-start: unset;
187
+ display: grid;
188
+ grid-gap: 1rem;
189
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
190
+ li {
191
+ padding: 5px;
192
+ margin: 5px;
193
+ border-radius: 5px;
194
+ text-align: center;
195
+ background-color: var(--color-theme);
196
+ height: 60px;
197
+ display: flex;
198
+ align-items: center;
199
+ justify-content: center;
200
+ a {
201
+ color: var(--color-bg);
202
+ overflow: hidden;
203
+ text-overflow: ellipsis;
204
+ word-break: break-word;
205
+ }
206
+ sup {
207
+ vertical-align: 3px;
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+
data/_sass/_grid.scss CHANGED
@@ -1,12 +1,9 @@
1
- $size-width: 180px;
2
- $size-height: 180px;
3
-
4
1
  ul.grid {
5
2
  list-style-type: none;
6
3
  padding-inline-start: unset;
7
4
  display: grid;
8
5
  grid-gap: 1rem;
9
- grid-template-columns: repeat(auto-fit, minmax($size-width, 1fr));
6
+ grid-template-columns: repeat(auto-fit, minmax(var(--grid-width), 1fr));
10
7
  clear: both;
11
8
 
12
9
  li {
@@ -19,6 +16,8 @@ ul.grid {
19
16
  img {
20
17
  object-fit: cover;
21
18
  width: 100%;
22
- height: $size-height;
19
+ height: var(--grid-image-height);
23
20
  }
24
21
  }
22
+
23
+ @import "tab";
data/_sass/_post.scss CHANGED
@@ -1,27 +1,66 @@
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
- max-width: var(--contentWidth);
9
+ max-width: var(--content-width);
3
10
  width: 100%;
4
11
  display: flex;
5
12
  flex-direction: column;
6
13
  overflow-wrap: break-word;
7
14
  word-break: break-word;
8
15
  h1, h2, h3, h4 {
9
- font-family: var(--specialFont);
16
+ font-family: var(--font-special);
10
17
  margin-bottom: 0;
11
18
  }
12
19
  h1 {
13
20
  & + time {
14
- color: var(--darkColor);
21
+ color: var(--color-dark);
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
- font-family: var(--secondaryFont);
59
+ font-family: var(--font-secondary);
21
60
  margin-top: 1.5em;
22
61
  font-size: 1.4em;
23
62
  a {
24
- color: var(--tertiaryColor);
63
+ color: var(--color-tertiary);
25
64
  }
26
65
  }
27
66
  .text > p:first-child {
@@ -30,12 +69,12 @@ article {
30
69
  }
31
70
  .tags {
32
71
  small {
33
- font-family: var(--secondaryFont);
34
- color: var(--darkColor);
72
+ font-family: var(--font-secondary);
73
+ color: var(--color-dark);
35
74
  }
36
75
  }
37
76
  .source {
38
- color: var(--darkColor);
77
+ color: var(--color-dark);
39
78
  font-size: 13px;
40
79
  & > * {
41
80
  margin-left: 10px;
@@ -44,10 +83,10 @@ article {
44
83
  }
45
84
 
46
85
  blockquote {
47
- border-left: 5px solid var(--darkColor);
86
+ border-left: 5px solid var(--color-dark);
48
87
  padding-left: 10px;
49
88
  margin: 0 10px 0 20px;
50
- font-family: var(--specialFont);
89
+ font-family: var(--font-special);
51
90
  font-size: 19px;
52
91
  p {
53
92
  margin: 0;
@@ -56,3 +95,50 @@ blockquote {
56
95
  margin-bottom: 2em;
57
96
  }
58
97
  }
98
+
99
+ samp {
100
+ filter: blur(4px);
101
+ font-family: var(--font-special);
102
+ font-size: 18px;
103
+ cursor: pointer;
104
+ &.on {
105
+ filter: none;
106
+ color: var(--color-secondary);
107
+ }
108
+ }
109
+
110
+ .lesson-number {
111
+ display: flex;
112
+ align-items: center;
113
+ justify-content: center;
114
+ text-decoration: none;
115
+ padding: 7px 5px 3px 5px;
116
+ margin: 0 5px;
117
+ background-color: var(--color-fg);
118
+ font-family: var(--fontText);
119
+ color: var(--color-bg);
120
+ border-radius: 50%;
121
+ width: 25px;
122
+ height: 25px;
123
+ font-size: 16px;
124
+
125
+ &.current {
126
+ background-color: var(--color-secondary);
127
+ }
128
+ &.material-symbols-outlined {
129
+ font-size: 25px;
130
+ padding: 5px;
131
+ font-family: 'Material Symbols Outlined';
132
+ }
133
+ }
134
+
135
+ a.lesson-number{
136
+ color: var(--color-fg);
137
+ background-color: var(--color-link);
138
+ }
139
+
140
+ @import
141
+ "bullets",
142
+ "table",
143
+ "tab-colors",
144
+ "video";
data/_sass/_tab.scss CHANGED
@@ -1,23 +1,13 @@
1
- $color-bg: whitesmoke;
2
- $color-fg: #444;
3
- $size-font: 16px;
4
-
5
1
  @mixin special() {
6
- color: $color-bg;
7
- font-family: var(--specialFont);
8
- }
9
-
10
- html {
11
- --bg: #{$color-bg};
12
- --fg: #{$color-fg};
13
- --fontSize: #{$size-font};
2
+ color: var(--color-card-bg, 'whitesmoke');
3
+ font-family: var(--font-special);
14
4
  }
15
5
 
16
6
  .card-tab {
17
7
  display: flex;
18
8
  flex-direction: column;
19
9
  position: relative;
20
- background-image: linear-gradient(225deg, $color-fg 50%, transparent 50%);
10
+ background-image: linear-gradient(225deg, var(--color-card-fg) 50%, transparent 50%);
21
11
  background-size: 120px 27px;
22
12
  background-repeat: no-repeat;
23
13
  background-position: right top;
@@ -25,9 +15,9 @@ html {
25
15
  box-shadow: 3px 3px 3px rgba(0, 0, 0, .1);
26
16
  border-top-width: 22px;
27
17
  border-top-style: solid;
28
- border-top-color: $color-fg;
29
- background-color: $color-bg;
30
- color: $color-fg;
18
+ border-top-color: var(--color-card-fg);
19
+ background-color: var(--color-card-bg);
20
+ color: var(--color-card-fg);
31
21
  text-transform: none;
32
22
  height: calc(100% - 22px);
33
23
  }
@@ -68,9 +58,9 @@ html {
68
58
  text-overflow: ellipsis;
69
59
  display: flex;
70
60
  align-items: flex-end;
71
- font-family: var(--secondaryFont);
61
+ font-family: var(--font-secondary);
72
62
  a {
73
- color: var(--bgColor);
63
+ color: var(--color-bg);
74
64
  }
75
65
  }
76
66
 
@@ -94,11 +84,11 @@ html {
94
84
  .item {
95
85
  margin-bottom: 20px;
96
86
  text-align: left;
97
- font-size: $size-font;
87
+ font-size: var(--card-font-size);
98
88
  line-height: normal;
99
89
  h3 {
100
90
  margin: 3px 5px 0 5px;
101
- color: $color-fg;
91
+ color: var(--color-card-fg);
102
92
  }
103
93
  .due {
104
94
  display: inline-flex;
@@ -111,7 +101,7 @@ html {
111
101
  font-variation-settings: 'FILL' 1;
112
102
  }
113
103
  &.past {
114
- background-color: var(--darkColor);
104
+ background-color: var(--color-dark);
115
105
  }
116
106
  }
117
107
  small {
@@ -130,23 +120,25 @@ html {
130
120
  justify-content: space-between;
131
121
  a {
132
122
  text-decoration: none;
133
- font-size: $size-font;
123
+ font-size: var(--card-font-size);
134
124
  display: contents;
135
125
  &.button {
136
126
  display: flex;
137
127
  border-radius: 5px;
138
128
  padding: 5px 10px;
139
129
  color: white!important;
140
- background-color: $color-fg;
130
+ background-color: var(--color-card-fg);
141
131
  .material-symbols-outlined {
142
132
  font-variation-settings: 'FILL' 1;
143
133
  }
144
134
  }
145
135
  }
146
136
  .tags {
147
- font-family: var(--secondaryFont);
137
+ font-family: var(--font-secondary);
148
138
  white-space: nowrap;
149
139
  text-overflow: ellipsis;
150
140
  overflow: hidden;
151
141
  }
152
142
  }
143
+
144
+ @import "tab-colors";
data/_sass/_table.scss CHANGED
@@ -1,13 +1,10 @@
1
- $color-odd: #2a2a2a;
2
- $color-even: #2f2f2f;
3
-
4
1
  table {
5
2
  table-layout: fixed;
6
3
  tr:nth-child(odd) {
7
- background-color: $color-odd;
4
+ background-color: var(--color-row-odd, '#2a2a2a');
8
5
  }
9
6
  th, tr:nth-child(even) {
10
- background-color: $color-even;
7
+ background-color: var(--color-row-even, '#2f2f2f');
11
8
  }
12
9
  td, th {
13
10
  word-break: normal;
data/_sass/init.scss CHANGED
@@ -1,37 +1,29 @@
1
- $font-main: 'Open Sans', sans-serif;
2
- $font-secondary: 'Teko', sans-serif;
3
- $font-special: 'Josefin Sans', sans-serif;
4
- $font-mono: 'Share Tech Mono', monospace;
1
+ $font-main: 'Open Sans', sans-serif;
2
+ $font-secondary: 'Teko', sans-serif;
3
+ $font-special: 'Josefin Sans', sans-serif;
4
+ $font-mono: 'Share Tech Mono', monospace;
5
5
 
6
- $color-primary: aliceblue;
7
- $color-secondary: skyblue;
8
- $color-tertiary: #2cdd88;
9
- $color-bg: #222;
10
- $color-fg: ivory;
11
- $color-dark: gray;
12
- $color-link: deeppink;
13
- $color-theme: #ffc100;
6
+ $color-primary: white;
7
+ $color-secondary: floralwhite;
8
+ $color-tertiary: #2cdd88;
9
+ $color-bg: #3a3a3a;
10
+ $color-fg: ivory;
11
+ $color-dark: gray;
12
+ $color-link: deeppink;
13
+ $color-theme: #ffc100;
14
14
 
15
- $content-width: 600px;
15
+ $color-row-odd: #2a2a2a;
16
+ $color-row-even: #2f2f2f;
16
17
 
17
- :root {
18
- --specialFont: #{$font-special};
19
- --mainFont: #{$font-main};
20
- --secondaryFont: #{$font-secondary};
21
- --monoFont: #{$font-mono};
18
+ $color-code-bg: #222;
19
+ $color-card-bg: whitesmoke;
20
+ $color-card-fg: #444;
22
21
 
23
- --bgColor: #{$color-bg};
24
- --fgColor: #{$color-fg};
25
- --primaryColor: #{$color-primary};
26
- --secondaryColor: #{$color-secondary};
27
- --tertiaryColor: #{$color-tertiary};
28
- --linkColor: #{$color-link};
29
- --darkColor: #{$color-dark};
30
- --themeColor: #{$color-theme};
22
+ $card-font-size: 16px;
31
23
 
32
- --contentWidth: #{$content-width};
33
- }
24
+ $content-width: 600px;
34
25
 
35
- @import
36
- "custom-variables",
37
- "default";
26
+ $grid-width: 180px;
27
+ $grid-image-height: 180px;
28
+
29
+ @import "base";
@@ -3,6 +3,4 @@
3
3
 
4
4
  @import
5
5
  "grid",
6
- "tab",
7
- "tab-colors",
8
6
  "init";
@@ -3,9 +3,4 @@
3
3
 
4
4
  @import
5
5
  "post",
6
- "bullets",
7
- "table",
8
- "tab-colors",
9
- "video",
10
- "lesson",
11
6
  "init";
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.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
@@ -56,18 +56,16 @@ files:
56
56
  - _layouts/default.html
57
57
  - _layouts/segment.html
58
58
  - _layouts/session.html
59
+ - _sass/_base.scss
59
60
  - _sass/_bullets.scss
60
- - _sass/_default.scss
61
61
  - _sass/_grid.scss
62
- - _sass/_lesson.scss
63
62
  - _sass/_post.scss
64
63
  - _sass/_tab-colors.scss
65
64
  - _sass/_tab.scss
66
65
  - _sass/_table.scss
67
66
  - _sass/_video.scss
68
- - _sass/custom-variables.scss
69
67
  - _sass/init.scss
70
- - assets/css/index.scss
68
+ - assets/css/segment.scss
71
69
  - assets/css/session.scss
72
70
  - assets/favicon.ico
73
71
  - assets/loading.svg
data/_sass/_default.scss DELETED
@@ -1,193 +0,0 @@
1
- body {
2
- font-family: $font-main;
3
- font-size: 17px;
4
- line-height: 1.6;
5
- background-color: $color-bg;
6
- color: $color-fg;
7
- &::-webkit-scrollbar {
8
- width: 6px;
9
- height: 6px;
10
- }
11
- &::-webkit-scrollbar-thumb {
12
- background-color: rgba(0,0,0,0.5);
13
- border-radius: 6px;
14
- }
15
- &::-webkit-scrollbar-corner {
16
- background-color: transparent;
17
- }
18
- }
19
-
20
- hr {
21
- width: 300px;
22
- margin-bottom: 20px;
23
- margin-top: 40px;
24
- border-color: $color-bg;
25
- }
26
-
27
- a {
28
- color: $color-link;
29
- text-decoration: none;
30
- }
31
-
32
- h1, h2, h3, h4, h5, h6 {
33
- font-family: $font-secondary;
34
- font-weight: normal;
35
- color: $color-secondary;
36
- line-height: 1;
37
- }
38
-
39
- h1 { font-size: 2.5em }
40
- h2 { font-size: 2em }
41
- h3 { font-size: 1.7em }
42
- h4 { font-size: 1.4em }
43
- h5 { font-size: 1.2em }
44
- h6 { font-size: 1em }
45
-
46
- .special {
47
- font-family: $font-special;
48
- text-align: center;
49
- color: $color-primary;
50
- margin: 10px 0 5px 0;
51
- }
52
-
53
- code, pre {
54
- font-family: $font-mono;
55
- }
56
-
57
- code {
58
- white-space: pre-wrap;
59
- color: $color-secondary;
60
- &.rounded {
61
- border-radius: 5px;
62
- margin: 0 3px;
63
- padding: 2px 5px;
64
- }
65
- }
66
-
67
- pre {
68
- background: linear-gradient(rgba(0,0,0,0.05),rgba(0,0,0,0.05));
69
- padding: 10px;
70
- code {
71
- color: inherit;
72
- }
73
- }
74
-
75
- sub, sup {
76
- font-size: small;
77
- }
78
- sup {
79
- vertical-align: 6px;
80
- }
81
- sub {
82
- vertical-align: 0px;
83
- }
84
-
85
- .md-18 { font-size: 18px; }
86
- .md-24 { font-size: 24px; }
87
- .md-36 { font-size: 36px; }
88
- .md-48 { font-size: 48px; }
89
- .md-disabled { color: rgba(0,0,0,0.6); }
90
-
91
- .buttons {
92
- margin-bottom: 1em;
93
- a {
94
- text-decoration: none;
95
- color: yellowgreen;
96
- }
97
- }
98
-
99
- @mixin margin-top() {
100
- margin-top: 100px;
101
- }
102
-
103
- @mixin align-middle() {
104
- display: flex;
105
- align-items: center;
106
- text-decoration: none;
107
- text-align: center;
108
- img {
109
- margin-right: 5px;
110
- }
111
- }
112
- @mixin align-center() {
113
- display: flex;
114
- align-items: center;
115
- text-decoration: none;
116
- flex-direction: column;
117
- }
118
-
119
- .middle-align {
120
- @include align-middle();
121
- }
122
-
123
- .center-align {
124
- @include align-center();
125
- }
126
-
127
- .spacer {
128
- margin-top: 100px;
129
- }
130
-
131
- footer {
132
- @include margin-top();
133
- @include align-center();
134
- color: $color-dark;
135
- font-size: 14px;
136
- ul {
137
- padding: 0;
138
- display: flex;
139
- li {
140
- @include align-middle();
141
- margin: 0 5px;
142
- a {
143
- color: $color-secondary;
144
- }
145
- }
146
- }
147
- }
148
-
149
- article {
150
- &.center {
151
- @include align-center();
152
- }
153
- &.center img {
154
- border-radius: 50%;
155
- object-fit: cover;
156
- }
157
- &.left img {
158
- float: left;
159
- object-fit: cover;
160
- margin: 5px 10px 0 0;
161
- display: inline-block;
162
- }
163
- }
164
-
165
- article.tiles {
166
- ul {
167
- list-style-type: none;
168
- padding-inline-start: unset;
169
- display: grid;
170
- grid-gap: 1rem;
171
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
172
- li {
173
- padding: 5px;
174
- margin: 5px;
175
- border-radius: 5px;
176
- text-align: center;
177
- background-color: $color-theme;
178
- height: 60px;
179
- display: flex;
180
- align-items: center;
181
- justify-content: center;
182
- a {
183
- color: $color-bg;
184
- overflow: hidden;
185
- text-overflow: ellipsis;
186
- word-break: break-word;
187
- }
188
- sup {
189
- vertical-align: 3px;
190
- }
191
- }
192
- }
193
- }
data/_sass/_lesson.scss DELETED
@@ -1,40 +0,0 @@
1
- samp {
2
- filter: blur(4px);
3
- font-family: var(--specialFont);
4
- font-size: 18px;
5
- cursor: pointer;
6
- &.on {
7
- filter: none;
8
- color: var(--secondaryColor);
9
- }
10
- }
11
-
12
- .lesson-number {
13
- display: flex;
14
- align-items: center;
15
- justify-content: center;
16
- text-decoration: none;
17
- padding: 7px 5px 3px 5px;
18
- margin: 0 5px;
19
- background-color: var(--fgColor);
20
- font-family: var(--fontText);
21
- color: var(--bgColor);
22
- border-radius: 50%;
23
- width: 25px;
24
- height: 25px;
25
- font-size: 16px;
26
-
27
- &.current {
28
- background-color: var(--secondaryColor);
29
- }
30
- &.material-symbols-outlined {
31
- font-size: 25px;
32
- padding: 5px;
33
- font-family: 'Material Symbols Outlined';
34
- }
35
- }
36
-
37
- a.lesson-number{
38
- color: var(--fgColor);
39
- background-color: var(--linkColor);
40
- }
@@ -1,16 +0,0 @@
1
- // Fonts are specified in _config.yml
2
- // $font-main: 'Open Sans', sans-serif;
3
- // $font-secondary: 'Teko', sans-serif;
4
- // $font-special: 'Josefin Sans', sans-serif;
5
- // $font-mono: 'Share Tech Mono', monospace;
6
-
7
- // Change colors
8
- // $color-primary: aliceblue;
9
- // $color-secondary: skyblue;
10
- // $color-tertiary: #2cdd88;
11
- // $color-bg: green;
12
- // $color-fg: ivory;
13
- // $color-dark: gray;
14
- // $color-link: deeppink;
15
- // $color-theme: #ffc100;
16
- // $content-width: 600px;