jekyll-sleek 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/_includes/card.html +31 -0
  4. data/_includes/critical.css +1 -0
  5. data/_includes/disqus.html +18 -0
  6. data/_includes/footer.html +24 -0
  7. data/_includes/form.html +21 -0
  8. data/_includes/gtm.html +9 -0
  9. data/_includes/head.html +36 -0
  10. data/_includes/header.html +25 -0
  11. data/_includes/loadCss.js +9 -0
  12. data/_includes/logo.svg +5 -0
  13. data/_includes/mathjax.html +22 -0
  14. data/_includes/modal.html +12 -0
  15. data/_includes/pagination.html +3 -0
  16. data/_includes/sw.js +8 -0
  17. data/_layouts/compress.html +10 -0
  18. data/_layouts/default.html +47 -0
  19. data/_layouts/page.html +42 -0
  20. data/_layouts/post.html +106 -0
  21. data/_sass/abstracts/_mixins.scss +18 -0
  22. data/_sass/abstracts/_variables.scss +34 -0
  23. data/_sass/base/_base.scss +40 -0
  24. data/_sass/base/_helpers.scss +21 -0
  25. data/_sass/base/_typography.scss +104 -0
  26. data/_sass/components/_btn.scss +55 -0
  27. data/_sass/components/_card.scss +80 -0
  28. data/_sass/components/_form.scss +92 -0
  29. data/_sass/components/_modal.scss +73 -0
  30. data/_sass/components/_pagination.scss +5 -0
  31. data/_sass/components/_syntax.scss +209 -0
  32. data/_sass/components/_table.scss +21 -0
  33. data/_sass/jekyll-sleek.scss +38 -0
  34. data/_sass/layout/_footer.scss +35 -0
  35. data/_sass/layout/_grid.scss +23 -0
  36. data/_sass/layout/_nav.scss +196 -0
  37. data/_sass/pages/_page.scss +101 -0
  38. data/_sass/pages/_post.scss +62 -0
  39. data/_sass/vendor/_breakpoint.scss +1 -0
  40. data/_sass/vendor/_normalize.scss +453 -0
  41. data/assets/css/main.css +5 -0
  42. data/assets/css/main.map +1 -0
  43. data/assets/img/favicon.jpg +0 -0
  44. data/assets/img/icons/android-chrome-192x192.png +0 -0
  45. data/assets/img/icons/android-chrome-256x256.png +0 -0
  46. data/assets/img/icons/apple-touch-icon.png +0 -0
  47. data/assets/img/icons/browserconfig.xml +9 -0
  48. data/assets/img/icons/favicon-16x16.png +0 -0
  49. data/assets/img/icons/favicon-32x32.png +0 -0
  50. data/assets/img/icons/favicon.ico +0 -0
  51. data/assets/img/icons/icon-github.svg +1 -0
  52. data/assets/img/icons/icon-instagram.svg +1 -0
  53. data/assets/img/icons/icon-twitter.svg +1 -0
  54. data/assets/img/icons/manifest.json +18 -0
  55. data/assets/img/icons/mstile-150x150.png +0 -0
  56. data/assets/img/icons/safari-pinned-tab.svg +19 -0
  57. data/assets/img/posts/emile-perron-190221.jpg +0 -0
  58. data/assets/img/posts/emile-perron-190221_lg.jpg +0 -0
  59. data/assets/img/posts/emile-perron-190221_md.jpg +0 -0
  60. data/assets/img/posts/emile-perron-190221_placehold.jpg +0 -0
  61. data/assets/img/posts/emile-perron-190221_sm.jpg +0 -0
  62. data/assets/img/posts/emile-perron-190221_thumb.jpg +0 -0
  63. data/assets/img/posts/emile-perron-190221_thumb@2x.jpg +0 -0
  64. data/assets/img/posts/emile-perron-190221_xs.jpg +0 -0
  65. data/assets/img/posts/shane-rounce-205187.jpg +0 -0
  66. data/assets/img/posts/shane-rounce-205187_lg.jpg +0 -0
  67. data/assets/img/posts/shane-rounce-205187_md.jpg +0 -0
  68. data/assets/img/posts/shane-rounce-205187_placehold.jpg +0 -0
  69. data/assets/img/posts/shane-rounce-205187_sm.jpg +0 -0
  70. data/assets/img/posts/shane-rounce-205187_thumb.jpg +0 -0
  71. data/assets/img/posts/shane-rounce-205187_thumb@2x.jpg +0 -0
  72. data/assets/img/posts/shane-rounce-205187_xs.jpg +0 -0
  73. data/assets/img/posts/sleek.jpg +0 -0
  74. data/assets/img/posts/sleek_lg.jpg +0 -0
  75. data/assets/img/posts/sleek_md.jpg +0 -0
  76. data/assets/img/posts/sleek_placehold.jpg +0 -0
  77. data/assets/img/posts/sleek_sm.jpg +0 -0
  78. data/assets/img/posts/sleek_thumb.jpg +0 -0
  79. data/assets/img/posts/sleek_thumb@2x.jpg +0 -0
  80. data/assets/img/posts/sleek_xs.jpg +0 -0
  81. data/assets/js/bundle.js +2 -0
  82. metadata +80 -1
@@ -0,0 +1,18 @@
1
+ @mixin clearfix {
2
+ &::before {
3
+ content: "";
4
+ display: table;
5
+ clear: both;
6
+ }
7
+
8
+ &::after {
9
+ content: "";
10
+ display: table;
11
+ clear: both;
12
+ }
13
+ }
14
+
15
+ @mixin container($breakpoint) {
16
+ max-width: $breakpoint;
17
+ margin: 0 auto;
18
+ }
@@ -0,0 +1,34 @@
1
+ $primary: #277cea !default;
2
+ $secondary: #ff6161 !default;
3
+ $border: #ededed !default;
4
+ $primary-light: #68a4f1;
5
+ $reverse: #3c3d41 !default;
6
+ $success: #8fd896 !default;
7
+ $error: #ff6161 !default;
8
+
9
+ $bg-color: #fff !default;
10
+ $light-bg-color: #f9f9f9;
11
+ $text-color: #343851;
12
+ $heading-color: #313237;
13
+ $link-color: $primary;
14
+ $button-dark: #222325;
15
+ $dark-light: #313237;
16
+ $outline: #dbdbdb;
17
+ $grey: #838c8d;
18
+
19
+
20
+ $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
21
+
22
+ // Breakpoints
23
+ $xs: 0;
24
+ $sm: 36em; //576px
25
+ $md: 48em; //768px
26
+ $lg: 62em; //992px
27
+ $xl: 75em; //1200px
28
+
29
+ // Code
30
+ $code-bg-color: #f6f8fa !default;
31
+ $code-text-color: #25292e !default;
32
+
33
+ // Borders
34
+ $border-color: #dce6f0 !default;
@@ -0,0 +1,40 @@
1
+ html {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ -webkit-overflow-scrolling: touch;
7
+ }
8
+
9
+ *,
10
+ *::before,
11
+ *::after {
12
+ box-sizing: inherit;
13
+ }
14
+
15
+ //sticky footer
16
+ .site {
17
+ display: flex;
18
+ min-height: 100vh;
19
+ flex-direction: column;
20
+ }
21
+
22
+ .site__content {
23
+ flex: 1;
24
+ }
25
+
26
+ // responsive images
27
+ img {
28
+ max-width: 100%;
29
+ height: auto;
30
+ width: auto;
31
+ vertical-align: middle;
32
+ }
33
+
34
+ img::selection {
35
+ background: transparent;
36
+ }
37
+
38
+ figure {
39
+ margin: 0;
40
+ }
@@ -0,0 +1,21 @@
1
+ .blur {
2
+ background: $bg-color;
3
+ filter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feGaussianBlur stdDeviation="16" /></filter></svg>#filter');
4
+ -webkit-filter: blur(1rem);
5
+ filter: blur(1rem);
6
+ transition: filter 400ms, -webkit-filter 400ms;
7
+
8
+ &.lazyloaded {
9
+ -webkit-filter: blur(0);
10
+ filter: blur(0);
11
+ }
12
+ }
13
+
14
+ .dark-bg {
15
+ background-color: $dark-light;
16
+ }
17
+
18
+ .hidden {
19
+ display: none;
20
+ visibility: hidden;
21
+ }
@@ -0,0 +1,104 @@
1
+ // General
2
+ body {
3
+ background-color: $bg-color;
4
+ font-family: $font-stack;
5
+ font-size: 1rem;
6
+ line-height: 1.5;
7
+ color: $text-color;
8
+ -webkit-font-smoothing: antialiased;
9
+ -webkit-text-size-adjust: 100%;
10
+ }
11
+
12
+ ::selection {
13
+ color: $bg-color;
14
+ background-color: $reverse;
15
+ }
16
+
17
+ // Reboot
18
+ p {
19
+ margin-top: 0;
20
+ margin-bottom: 1.25rem;
21
+ }
22
+
23
+ // Typography
24
+ h1,
25
+ h2,
26
+ h3,
27
+ h4,
28
+ h5,
29
+ h6 {
30
+ color: $heading-color;
31
+ margin-top: 0;
32
+ margin-bottom: .5rem;
33
+ }
34
+
35
+ //reset link
36
+ a {
37
+ color: $link-color;
38
+ text-decoration: none;
39
+ transition: all .2s linear;
40
+ border-bottom: 1px dashed $link-color;
41
+
42
+ &:active,
43
+ &:focus {
44
+ outline: 0;
45
+ }
46
+
47
+ &:hover,
48
+ &:focus {
49
+ color: $primary-light;
50
+ border-bottom: 1px solid $primary-light;
51
+ }
52
+ }
53
+
54
+ hr {
55
+ height: 1px;
56
+ background: $border;
57
+ border: 0;
58
+ }
59
+
60
+ em {
61
+ font-style: italic;
62
+ }
63
+
64
+ abbr[title] {
65
+ text-decoration: none;
66
+ }
67
+
68
+ mark {
69
+ background: #ff0;
70
+ color: $heading-color;
71
+ }
72
+
73
+ code {
74
+ padding: 0.2em 0.4em;
75
+ font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
76
+ font-size: 0.9rem;
77
+ color: $code-text-color;
78
+ background-color: $code-bg-color;
79
+ border-radius: 3px;
80
+ }
81
+
82
+ pre {
83
+ padding: 0.8rem;
84
+ margin-top: 0;
85
+ margin-bottom: 1rem;
86
+ overflow-x: auto;
87
+ font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
88
+ color: $code-text-color;
89
+ word-wrap: normal;
90
+ background-color: $code-bg-color;
91
+ border: solid 1px $border-color;
92
+ border-radius: 0.3rem;
93
+
94
+ > code {
95
+ padding: 0;
96
+ margin: 0;
97
+ font-size: 0.9rem;
98
+ color: $code-text-color;
99
+ word-break: normal;
100
+ white-space: pre;
101
+ background: transparent;
102
+ border: 0;
103
+ }
104
+ }
@@ -0,0 +1,55 @@
1
+ .btn,
2
+ input[type="submit"],
3
+ input[type="reset"],
4
+ input[type="button"] {
5
+ position: relative;
6
+ display: inline-block;
7
+ padding: 18px 30px;
8
+ font-size: 11px;
9
+ font-family: inherit;
10
+ line-height: 1.5;
11
+ letter-spacing: 0.2em;
12
+ text-decoration: none;
13
+ text-transform: uppercase;
14
+ white-space: nowrap;
15
+ cursor: pointer;
16
+ color: $bg-color;
17
+ background-color: $button-dark;
18
+ text-align: center;
19
+ border: 0;
20
+ border-radius: 0;
21
+ transition: all 0.45s cubic-bezier(0.25, 1, 0.33, 1);
22
+ outline: 0;
23
+
24
+ &::after {
25
+ display: none;
26
+ }
27
+
28
+ &:hover,
29
+ :focus,
30
+ :active {
31
+ color: $bg-color;
32
+ background-color: lighten($button-dark, 14%);
33
+ outline: 0;
34
+ }
35
+ }
36
+
37
+ .btn + .btn {
38
+ margin-top: 2em;
39
+
40
+ @include breakpoint(350px) {
41
+ margin-top: 0;
42
+ margin-left: 2em;
43
+ }
44
+ }
45
+
46
+ button:disabled {
47
+ cursor: not-allowed;
48
+ opacity: .65;
49
+ transition: background-color .2s ease;
50
+
51
+ &:hover,
52
+ :focus {
53
+ background-color: $button-dark;
54
+ }
55
+ }
@@ -0,0 +1,80 @@
1
+ .post-card {
2
+ display: block;
3
+ width: 100%;
4
+ min-height: 250px;
5
+ border-radius: 4px;
6
+ overflow: hidden;
7
+ background-color: $bg-color;
8
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
9
+ margin-bottom: 2.25rem; // don't use % value see more: https://github.com/philipwalton/flexbugs/issues/86
10
+ border-bottom: 0;
11
+ transition: box-shadow .25s ease;
12
+
13
+ &:hover,
14
+ &:focus {
15
+ border-bottom: 0;
16
+ box-shadow: 0 2px 40px 0 hsla(232, 8%, 63%, .3);
17
+ }
18
+
19
+ @include breakpoint($md) {
20
+ width: 48.4375%;
21
+ margin-right: 3.125%;
22
+
23
+ &:last-of-type,
24
+ &:nth-child(2n+2) {
25
+ margin-right: 0;
26
+ }
27
+ }
28
+
29
+ @include breakpoint($xl) {
30
+ width: 31.25%;
31
+ margin-right: 3.125%;
32
+
33
+ &:nth-child(2n+2) {
34
+ margin-right: 3.125%;
35
+ }
36
+
37
+ &:last-of-type,
38
+ &:nth-child(3n+3) {
39
+ margin-right: 0;
40
+ }
41
+ }
42
+ }
43
+
44
+ .post-card__thumb {
45
+ margin: 0;
46
+ background: $bg-color;
47
+ position: relative;
48
+ overflow: hidden;
49
+
50
+ &::after {
51
+ content: "";
52
+ display: block;
53
+ height: 0;
54
+ width: 100%;
55
+ // 16:9 = 56.25% = calc(9 / 16 * 100%)
56
+ padding-bottom: 56.25%;
57
+ }
58
+
59
+ > * {
60
+ position: absolute;
61
+ top: 0;
62
+ left: 0;
63
+ width: 100%;
64
+ height: 100%;
65
+ display: block;
66
+ }
67
+ }
68
+
69
+ .post-card__inner {
70
+ padding: 1.875rem 1.25rem 0.625rem;
71
+ color: $grey;
72
+ }
73
+
74
+ .post-card__header {
75
+ margin-bottom: 0.75rem;
76
+
77
+ .post-card__meta {
78
+ font-size: 0.875rem;
79
+ }
80
+ }
@@ -0,0 +1,92 @@
1
+ input,
2
+ textarea {
3
+ display: inline-block;
4
+ padding: 5px 0;
5
+ width: 100%;
6
+ border: 0;
7
+ border-bottom: 2px solid $border;
8
+ outline: none;
9
+ font-family: $font-stack;
10
+ background: transparent;
11
+
12
+ &:focus {
13
+ border-color: $primary;
14
+ transition: border-color .25s;
15
+ }
16
+ }
17
+
18
+ .form__input {
19
+ position: relative;
20
+ display: inline-block;
21
+ width: 100%;
22
+ margin-bottom: 35px;
23
+
24
+ &::before {
25
+ content: "";
26
+ position: absolute;
27
+ bottom: 0;
28
+ left: 0;
29
+ width: 0;
30
+ height: 2px;
31
+ background: $primary;
32
+ z-index: 5;
33
+ transition: width .45s cubic-bezier(.694, .048, .335, 1);
34
+ transition-delay: .1s;
35
+ }
36
+
37
+ &::after {
38
+ content: "";
39
+ position: absolute;
40
+ bottom: 0;
41
+ left: 0;
42
+ width: 0;
43
+ height: 2px;
44
+ background: $secondary;
45
+ z-index: 4;
46
+ transition: width .45s cubic-bezier(.694, .048, .335, 1);
47
+ }
48
+
49
+ &:hover::after,
50
+ :focus::after,
51
+ :active::after {
52
+ width: 100%;
53
+ }
54
+
55
+ &:hover::before,
56
+ :focus::before,
57
+ :active::after {
58
+ width: 100%;
59
+ }
60
+
61
+ &.error {
62
+ &:hover::after,
63
+ :focus::after,
64
+ :active::after {
65
+ width: 0%;
66
+ }
67
+
68
+ &:hover::before,
69
+ :focus::before,
70
+ :active::after {
71
+ width: 0%;
72
+ }
73
+ }
74
+ }
75
+
76
+ .error {
77
+ input {
78
+ border-bottom-color: $error;
79
+ }
80
+
81
+ textarea {
82
+ border-bottom-color: $error;
83
+ }
84
+ }
85
+
86
+ .error-data {
87
+ color: $error;
88
+ font-size: 14px;
89
+ position: absolute;
90
+ left: 0;
91
+ bottom: -21px;
92
+ }