jekyll-theme-newtype 0.1.3 → 0.1.4

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/disqus.html +27 -0
  3. data/_includes/footer.html +2 -4
  4. data/_includes/head.html +2 -2
  5. data/_includes/header.html +0 -31
  6. data/_includes/navigation.html +5 -0
  7. data/_includes/post_preview.html +2 -2
  8. data/_layouts/category_index.html +5 -6
  9. data/_layouts/default.html +45 -21
  10. data/_layouts/home.html +2 -0
  11. data/_layouts/page.html +6 -0
  12. data/_layouts/post.html +26 -0
  13. data/_sass/layout.scss +203 -0
  14. data/_sass/newtype.scss +2 -36
  15. data/_sass/typography.scss +67 -0
  16. data/_sass/vars.scss +32 -0
  17. data/assets/fonts/cmunbxo.otf +0 -0
  18. data/assets/fonts/cmunsi.otf +0 -0
  19. data/assets/fonts/cmunss.otf +0 -0
  20. data/assets/fonts/cmunsx.otf +0 -0
  21. data/assets/site_icon.png +0 -0
  22. data/assets/site_logo.png +0 -0
  23. data/assets/style.scss +1 -0
  24. metadata +13 -19
  25. data/_includes/navbar.html +0 -9
  26. data/_sass/skeleton/base/_base-styles.scss +0 -37
  27. data/_sass/skeleton/base/_functions.scss +0 -17
  28. data/_sass/skeleton/base/_normalize.scss +0 -428
  29. data/_sass/skeleton/base/_typography.scss +0 -29
  30. data/_sass/skeleton/base/_utils.scss +0 -20
  31. data/_sass/skeleton/base/_variables.scss +0 -32
  32. data/_sass/skeleton/modules/_buttons.scss +0 -147
  33. data/_sass/skeleton/modules/_code.scss +0 -18
  34. data/_sass/skeleton/modules/_forms.scss +0 -88
  35. data/_sass/skeleton/modules/_grid.scss +0 -116
  36. data/_sass/skeleton/modules/_lists.scss +0 -32
  37. data/_sass/skeleton/modules/_media-queries.scss +0 -22
  38. data/_sass/skeleton/modules/_spacing.scss +0 -26
  39. data/_sass/skeleton/modules/_tables.scss +0 -19
  40. data/_sass/skeleton/normalize.scss +0 -427
  41. data/_sass/skeleton/skeleton.scss +0 -418
@@ -1,37 +1,3 @@
1
- /*
2
- * Based on: https://github.com/whatsnewsaes
3
- */
4
-
5
- /* Base files. */
6
- @import "skeleton/base/normalize";
7
- @import "skeleton/base/variables";
8
- @import "skeleton/base/functions";
9
- @import "skeleton/base/base-styles";
10
- @import "skeleton/base/utils";
11
- @import "skeleton/base/typography";
12
-
13
- /* Modules */
14
- @import "skeleton/modules/grid";
15
- @import "skeleton/modules/buttons";
16
- @import "skeleton/modules/forms";
17
- @import "skeleton/modules/lists";
18
- @import "skeleton/modules/code";
19
- @import "skeleton/modules/tables";
20
- @import "skeleton/modules/spacing";
21
- @import "skeleton/modules/media-queries";
22
-
1
+ @import "typography";
2
+ @import "layout";
23
3
  @import "syntax";
24
-
25
- .header{
26
- margin-top: 4em;
27
- }
28
-
29
- .header-icon{
30
- max-height: 12em;
31
- border-radius: 50%;
32
- }
33
-
34
- .navbar > li{
35
- list-style-type: none;
36
- font-size: 14pt;
37
- }
@@ -0,0 +1,67 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Inknut+Antiqua:500,900|Roboto+Slab');
2
+
3
+ @function approx($a, $b, $sublevel, $suplevel, $i) {
4
+ @return $a + ($b - $a)*($sublevel - $i)/($sublevel - $suplevel);
5
+ }
6
+
7
+ @mixin font-by-level($i) {
8
+ @if($i <= $title-level) {
9
+ font-family: $title-font;
10
+ font-size: approx($subtitle-fontsize, $title-fontsize,
11
+ $title-level, 0,
12
+ $i);
13
+ font-weight: $title-fontweight;
14
+ } @elseif($i <= $subtitle-level) {
15
+ font-family: $subtitle-font;
16
+ font-size: approx($regular-fontsize, $subtitle-fontsize,
17
+ $regular-level, $subtitle-level,
18
+ $i);
19
+ font-weight: $subtitle-fontweight;
20
+ } @else {
21
+ font-family: $regular-font;
22
+ font-size: approx($regular-fontsize, $subtitle-fontsize,
23
+ $regular-level, $subtitle-level,
24
+ $i);
25
+ font-weight: $regular-fontweight;
26
+ }
27
+ }
28
+
29
+
30
+ body {
31
+ font-family: $regular-font;
32
+ }
33
+
34
+ @for $i from 1 through $regular-level {
35
+ h#{$i} {
36
+ @include font-by-level($i)
37
+ }
38
+ }
39
+
40
+ p span {
41
+ @include font-by-level($regular-level);
42
+ }
43
+
44
+ strong {
45
+ @include font-by-level($strong-level);
46
+ }
47
+
48
+ a {
49
+ text-decoration: none;
50
+ color: $regular-color;
51
+ }
52
+
53
+
54
+ .site-navigation {
55
+ background-color: $nav-backcolor;
56
+ color: $nav-forecolor;
57
+ }
58
+
59
+ .site-navigation > * {
60
+ color: $nav-forecolor;
61
+ @include font-by-level($navigation-level);
62
+ }
63
+
64
+ .site-title {
65
+ text-transform: uppercase;
66
+ @include font-by-level(0);
67
+ }
@@ -0,0 +1,32 @@
1
+ // Layout vars
2
+
3
+ $tablet-width: 1000px;
4
+ $page-width: 210mm;
5
+ $logo-width: 65mm;
6
+ $left-margin: 2cm;
7
+ $right-margin: 2cm;
8
+ $logo-title-margin: 1rem;
9
+
10
+ // Typography vars
11
+
12
+ $title-color: black;
13
+ $regular-color: black;
14
+ $title-font: "Inknut Antiqua", serif;
15
+ $subtitle-font: "Inknut Antiqua", serif;
16
+ $regular-font: "Roboto Slab", serif;
17
+ $nav-backcolor: black;
18
+ $nav-forecolor: white;
19
+
20
+ $title-level: 1;
21
+ $subtitle-level: 3;
22
+ $regular-level: 10;
23
+
24
+ $navigation-level: 8;
25
+ $link-level: $regular-level - 1;
26
+ $strong-level: $regular-level - 1;
27
+ $regular-fontsize: 14pt;
28
+ $subtitle-fontsize: 20pt;
29
+ $title-fontsize: 36pt;
30
+ $regular-fontweight: 400;
31
+ $subtitle-fontweight: 500;
32
+ $title-fontweight: 900;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,4 +1,5 @@
1
1
  ---
2
2
  ---
3
3
 
4
+ @import "vars";
4
5
  @import "newtype";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-newtype
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serge Kozlukov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-28 00:00:00.000000000 Z
11
+ date: 2018-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -61,10 +61,11 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - LICENSE.txt
63
63
  - README.md
64
+ - _includes/disqus.html
64
65
  - _includes/footer.html
65
66
  - _includes/head.html
66
67
  - _includes/header.html
67
- - _includes/navbar.html
68
+ - _includes/navigation.html
68
69
  - _includes/post_preview.html
69
70
  - _includes/sidebar.html
70
71
  - _layouts/category_index.html
@@ -73,25 +74,16 @@ files:
73
74
  - _layouts/page.html
74
75
  - _layouts/post.html
75
76
  - _layouts/slides.html
77
+ - _sass/layout.scss
76
78
  - _sass/newtype.scss
77
- - _sass/skeleton/base/_base-styles.scss
78
- - _sass/skeleton/base/_functions.scss
79
- - _sass/skeleton/base/_normalize.scss
80
- - _sass/skeleton/base/_typography.scss
81
- - _sass/skeleton/base/_utils.scss
82
- - _sass/skeleton/base/_variables.scss
83
- - _sass/skeleton/modules/_buttons.scss
84
- - _sass/skeleton/modules/_code.scss
85
- - _sass/skeleton/modules/_forms.scss
86
- - _sass/skeleton/modules/_grid.scss
87
- - _sass/skeleton/modules/_lists.scss
88
- - _sass/skeleton/modules/_media-queries.scss
89
- - _sass/skeleton/modules/_spacing.scss
90
- - _sass/skeleton/modules/_tables.scss
91
- - _sass/skeleton/normalize.scss
92
- - _sass/skeleton/skeleton.scss
93
79
  - _sass/syntax.scss
80
+ - _sass/typography.scss
81
+ - _sass/vars.scss
94
82
  - assets/bullet.svg
83
+ - assets/fonts/cmunbxo.otf
84
+ - assets/fonts/cmunsi.otf
85
+ - assets/fonts/cmunss.otf
86
+ - assets/fonts/cmunsx.otf
95
87
  - assets/revealjs/.gitignore
96
88
  - assets/revealjs/.travis.yml
97
89
  - assets/revealjs/CONTRIBUTING.md
@@ -195,6 +187,8 @@ files:
195
187
  - assets/revealjs/test/test-pdf.js
196
188
  - assets/revealjs/test/test.html
197
189
  - assets/revealjs/test/test.js
190
+ - assets/site_icon.png
191
+ - assets/site_logo.png
198
192
  - assets/social-github.svg
199
193
  - assets/social-twitter.png
200
194
  - assets/social-twitter.svg
@@ -1,9 +0,0 @@
1
- <div class="container" >
2
- <ul class="navbar">
3
- {% for page in site.pages %}
4
- {% if page.navbar %}
5
- <li><a href="{{ page.url }}">{{ page.title }}</a></li>
6
- {% endif %}
7
- {% endfor %}
8
- </ul>
9
- </div>
@@ -1,37 +0,0 @@
1
- // Base Styles
2
- //––––––––––––––––––––––––––––––––––––––––––––––––––
3
- // NOTE
4
- // html is set to 62.5% so that all the REM measurements throughout Skeleton
5
- // are based on 10px sizing. So basically 1.5rem = 15px :)
6
-
7
- html {
8
- font-size: 62.5%;
9
- }
10
-
11
- body {
12
- font-size: 1.5em; // currently ems cause chrome bug misinterpreting rems on body element
13
- line-height: 1.6;
14
- font-weight: 400;
15
- font-family: $font-family;
16
- color: $font-color;
17
- }
18
-
19
- // Links
20
- //––––––––––––––––––––––––––––––––––––––––––––––––––
21
-
22
- a {
23
- color: $link-color;
24
- &:hover {
25
- color: darken($link-color, 5%);
26
- }
27
- }
28
-
29
- // Misc
30
- //––––––––––––––––––––––––––––––––––––––––––––––––––
31
-
32
- hr {
33
- margin-top: 3rem;
34
- margin-bottom: 3.5rem;
35
- border-width: 0;
36
- border-top: 1px solid $light-grey;
37
- }
@@ -1,17 +0,0 @@
1
- /*
2
- * Skeleton V2.0.4
3
- * Copyright 2014, Dave Gamache
4
- * www.getskeleton.com
5
- * Free to use under the MIT license.
6
- * http://www.opensource.org/licenses/mit-license.php
7
- * 12/9/2014
8
- * Sass Version by Seth Coelen https://github.com/whatsnewsaes
9
- */
10
-
11
- @function grid-column-width($n) {
12
- @return $column-width * $n - ($column-margin*($total-columns - $n)/$total-columns);
13
- }
14
-
15
- @function grid-offset-length($n) {
16
- @return grid-column-width($n) + $column-margin;
17
- }
@@ -1,428 +0,0 @@
1
- /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
2
-
3
- //
4
- // 1. Set default font family to sans-serif.
5
- // 2. Prevent iOS and IE text size adjust after device orientation change,
6
- // without disabling user zoom.
7
- //
8
-
9
- html {
10
- font-family: sans-serif; // 1
11
- -ms-text-size-adjust: 100%; // 2
12
- -webkit-text-size-adjust: 100%; // 2
13
- }
14
-
15
- //
16
- // Remove default margin.
17
- //
18
-
19
- body {
20
- margin: 0;
21
- }
22
-
23
- // HTML5 display definitions
24
- // ==========================================================================
25
-
26
- //
27
- // Correct `block` display not defined for any HTML5 element in IE 8/9.
28
- // Correct `block` display not defined for `details` or `summary` in IE 10/11
29
- // and Firefox.
30
- // Correct `block` display not defined for `main` in IE 11.
31
- //
32
-
33
- article,
34
- aside,
35
- details,
36
- figcaption,
37
- figure,
38
- footer,
39
- header,
40
- hgroup,
41
- main,
42
- menu,
43
- nav,
44
- section,
45
- summary {
46
- display: block;
47
- }
48
-
49
- //
50
- // 1. Correct `inline-block` display not defined in IE 8/9.
51
- // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
52
- //
53
-
54
- audio,
55
- canvas,
56
- progress,
57
- video {
58
- display: inline-block; // 1
59
- vertical-align: baseline; // 2
60
- }
61
-
62
- //
63
- // Prevent modern browsers from displaying `audio` without controls.
64
- // Remove excess height in iOS 5 devices.
65
- //
66
-
67
- audio:not([controls]) {
68
- display: none;
69
- height: 0;
70
- }
71
-
72
- //
73
- // Address `[hidden]` styling not present in IE 8/9/10.
74
- // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
75
- //
76
-
77
- [hidden],
78
- template {
79
- display: none;
80
- }
81
-
82
- // Links
83
- // ==========================================================================
84
-
85
- //
86
- // Remove the gray background color from active links in IE 10.
87
- //
88
-
89
- a {
90
- background-color: transparent;
91
- }
92
-
93
- //
94
- // Improve readability of focused elements when they are also in an
95
- // active/hover state.
96
- //
97
-
98
- a {
99
- &:active {
100
- outline: 0;
101
- }
102
- &:hover {
103
- outline: 0;
104
- }
105
- }
106
-
107
- // Text-level semantics
108
- // ==========================================================================
109
-
110
- //
111
- // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
112
- //
113
-
114
- abbr[title] {
115
- border-bottom: 1px dotted;
116
- }
117
-
118
- //
119
- // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
120
- //
121
-
122
- b,
123
- strong {
124
- font-weight: bold;
125
- }
126
-
127
- //
128
- // Address styling not present in Safari and Chrome.
129
- //
130
-
131
- dfn {
132
- font-style: italic;
133
- }
134
-
135
- //
136
- // Address variable `h1` font-size and margin within `section` and `article`
137
- // contexts in Firefox 4+, Safari, and Chrome.
138
- //
139
-
140
- h1 {
141
- font-size: 2em;
142
- margin: 0.67em 0;
143
- }
144
-
145
- //
146
- // Address styling not present in IE 8/9.
147
- //
148
-
149
- mark {
150
- background: #ff0;
151
- color: #000;
152
- }
153
-
154
- //
155
- // Address inconsistent and variable font size in all browsers.
156
- //
157
-
158
- small {
159
- font-size: 80%;
160
- }
161
-
162
- //
163
- // Prevent `sub` and `sup` affecting `line-height` in all browsers.
164
- //
165
-
166
- sub,
167
- sup {
168
- font-size: 75%;
169
- line-height: 0;
170
- position: relative;
171
- vertical-align: baseline;
172
- }
173
-
174
- sup {
175
- top: -0.5em;
176
- }
177
-
178
- sub {
179
- bottom: -0.25em;
180
- }
181
-
182
- // Embedded content
183
- // ==========================================================================
184
-
185
- //
186
- // Remove border when inside `a` element in IE 8/9/10.
187
- //
188
-
189
- img {
190
- border: 0;
191
- }
192
-
193
- //
194
- // Correct overflow not hidden in IE 9/10/11.
195
- //
196
-
197
- svg:not(:root) {
198
- overflow: hidden;
199
- }
200
-
201
- // Grouping content
202
- // ==========================================================================
203
-
204
- //
205
- // Address margin not present in IE 8/9 and Safari.
206
- //
207
-
208
- figure {
209
- margin: 1em 40px;
210
- }
211
-
212
- //
213
- // Address differences between Firefox and other browsers.
214
- //
215
-
216
- hr {
217
- box-sizing: content-box;
218
- height: 0;
219
- }
220
-
221
- //
222
- // Contain overflow in all browsers.
223
- //
224
-
225
- pre {
226
- overflow: auto;
227
- }
228
-
229
- //
230
- // Address odd `em`-unit font size rendering in all browsers.
231
- //
232
-
233
- code,
234
- kbd,
235
- pre,
236
- samp {
237
- font-family: monospace, monospace;
238
- font-size: 1em;
239
- }
240
-
241
- // Forms
242
- // ==========================================================================
243
-
244
- //
245
- // Known limitation: by default, Chrome and Safari on OS X allow very limited
246
- // styling of `select`, unless a `border` property is set.
247
- //
248
-
249
- //
250
- // 1. Correct color not being inherited.
251
- // Known issue: affects color of disabled elements.
252
- // 2. Correct font properties not being inherited.
253
- // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
254
- //
255
-
256
- button,
257
- input,
258
- optgroup,
259
- select,
260
- textarea {
261
- color: inherit; // 1
262
- font: inherit; // 2
263
- margin: 0; // 3
264
- }
265
-
266
- //
267
- // Address `overflow` set to `hidden` in IE 8/9/10/11.
268
- //
269
-
270
- button {
271
- overflow: visible;
272
- }
273
-
274
- //
275
- // Address inconsistent `text-transform` inheritance for `button` and `select`.
276
- // All other form control elements do not inherit `text-transform` values.
277
- // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
278
- // Correct `select` style inheritance in Firefox.
279
- //
280
-
281
- button,
282
- select {
283
- text-transform: none;
284
- }
285
-
286
- //
287
- // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
288
- // and `video` controls.
289
- // 2. Correct inability to style clickable `input` types in iOS.
290
- // 3. Improve usability and consistency of cursor style between image-type
291
- // `input` and others.
292
- //
293
-
294
- button,
295
- html input[type="button"], // 1
296
- input[type="reset"],
297
- input[type="submit"] {
298
- -webkit-appearance: button; // 2
299
- cursor: pointer; // 3
300
- }
301
-
302
- //
303
- // Re-set default cursor for disabled elements.
304
- //
305
-
306
- button[disabled],
307
- html input[disabled] {
308
- cursor: default;
309
- }
310
-
311
- //
312
- // Remove inner padding and border in Firefox 4+.
313
- //
314
-
315
- button::-moz-focus-inner,
316
- input::-moz-focus-inner {
317
- border: 0;
318
- padding: 0;
319
- }
320
-
321
- //
322
- // Address Firefox 4+ setting `line-height` on `input` using `!important` in
323
- // the UA stylesheet.
324
- //
325
-
326
- input {
327
- line-height: normal;
328
- }
329
-
330
- //
331
- // It's recommended that you don't attempt to style these elements.
332
- // Firefox's implementation doesn't respect box-sizing, padding, or width.
333
- //
334
- // 1. Address box sizing set to `content-box` in IE 8/9/10.
335
- // 2. Remove excess padding in IE 8/9/10.
336
- //
337
-
338
- input[type="checkbox"],
339
- input[type="radio"] {
340
- box-sizing: border-box; // 1
341
- padding: 0; // 2
342
- }
343
-
344
- //
345
- // Fix the cursor style for Chrome's increment/decrement buttons. For certain
346
- // `font-size` values of the `input`, it causes the cursor style of the
347
- // decrement button to change from `default` to `text`.
348
- //
349
-
350
- input[type="number"]::-webkit-inner-spin-button,
351
- input[type="number"]::-webkit-outer-spin-button {
352
- height: auto;
353
- }
354
-
355
- //
356
- // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
357
- // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
358
- //
359
-
360
- input[type="search"] {
361
- -webkit-appearance: textfield; // 1
362
- box-sizing: content-box; //2
363
- }
364
-
365
- //
366
- // Remove inner padding and search cancel button in Safari and Chrome on OS X.
367
- // Safari (but not Chrome) clips the cancel button when the search input has
368
- // padding (and `textfield` appearance).
369
- //
370
-
371
- input[type="search"]::-webkit-search-cancel-button,
372
- input[type="search"]::-webkit-search-decoration {
373
- -webkit-appearance: none;
374
- }
375
-
376
- //
377
- // Define consistent border, margin, and padding.
378
- //
379
-
380
- fieldset {
381
- border: 1px solid #c0c0c0;
382
- margin: 0 2px;
383
- padding: 0.35em 0.625em 0.75em;
384
- }
385
-
386
- //
387
- // 1. Correct `color` not being inherited in IE 8/9/10/11.
388
- // 2. Remove padding so people aren't caught out if they zero out fieldsets.
389
- //
390
-
391
- legend {
392
- border: 0; // 1
393
- padding: 0; // 2
394
- }
395
-
396
- //
397
- // Remove default vertical scrollbar in IE 8/9/10/11.
398
- //
399
-
400
- textarea {
401
- overflow: auto;
402
- }
403
-
404
- //
405
- // Don't inherit the `font-weight` (applied by a rule above).
406
- // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
407
- //
408
-
409
- optgroup {
410
- font-weight: bold;
411
- }
412
-
413
- // Tables
414
- // ==========================================================================
415
-
416
- //
417
- // Remove most spacing between table cells.
418
- //
419
-
420
- table {
421
- border-collapse: collapse;
422
- border-spacing: 0;
423
- }
424
-
425
- td,
426
- th {
427
- padding: 0;
428
- }