limp-dark 0.1.1

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 (63) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +45 -0
  4. data/README.md~ +45 -0
  5. data/_config.yml +73 -0
  6. data/_config.yml~ +51 -0
  7. data/_data/social.yml +6 -0
  8. data/_includes/extensions/comments/disqus.html +17 -0
  9. data/_includes/extensions/comments/gitment.html +16 -0
  10. data/_includes/extensions/google-analytics.html +19 -0
  11. data/_includes/extensions/google-tag.html +9 -0
  12. data/_includes/functions.html +26 -0
  13. data/_includes/functions/get_categories.html +12 -0
  14. data/_includes/functions/get_datetimes.html +18 -0
  15. data/_includes/functions/get_reading_time.html +41 -0
  16. data/_includes/functions/get_tags.html +12 -0
  17. data/_includes/functions/get_value.html +19 -0
  18. data/_includes/functions/log.html +17 -0
  19. data/_includes/head.html +18 -0
  20. data/_includes/views/footer.html +71 -0
  21. data/_includes/views/header.html +44 -0
  22. data/_includes/views/main.html +21 -0
  23. data/_includes/views/pagination.html +47 -0
  24. data/_includes/views/paginator.html +25 -0
  25. data/_includes/views/post-header.html +26 -0
  26. data/_includes/views/post-item.html +13 -0
  27. data/_includes/views/segments.html +21 -0
  28. data/_includes/views/share-buttons.html +43 -0
  29. data/_includes/views/sidebar.html +0 -0
  30. data/_layouts/404.html +31 -0
  31. data/_layouts/archives.html +17 -0
  32. data/_layouts/categories.html +15 -0
  33. data/_layouts/default.html +15 -0
  34. data/_layouts/page.html +7 -0
  35. data/_layouts/post.html +83 -0
  36. data/_layouts/tags.html +26 -0
  37. data/_sass/_extends.sass +0 -0
  38. data/_sass/_mixins.sass +6 -0
  39. data/_sass/_veriables.sass +19 -0
  40. data/_sass/base/_base-dir.sass +1 -0
  41. data/_sass/base/_base.sass +220 -0
  42. data/_sass/layouts/_footer.sass +80 -0
  43. data/_sass/layouts/_header.sass +0 -0
  44. data/_sass/layouts/_layouts-dir.sass +3 -0
  45. data/_sass/layouts/_main.sass +30 -0
  46. data/_sass/modules/_container.sass +28 -0
  47. data/_sass/modules/_modules-dir.sass +6 -0
  48. data/_sass/modules/_nav.sass +108 -0
  49. data/_sass/modules/_post-footer.sass +52 -0
  50. data/_sass/modules/_post-header.sass +27 -0
  51. data/_sass/modules/_post_list.sass +38 -0
  52. data/_sass/modules/_segments.sass +39 -0
  53. data/_sass/states/_states-dir.sass +1 -0
  54. data/_sass/states/_states.sass +0 -0
  55. data/_sass/style.sass +10 -0
  56. data/_sass/themes/_dark.sass +0 -0
  57. data/_sass/themes/_themes-dir.sass +1 -0
  58. data/assets/css/gitment.css +1145 -0
  59. data/assets/css/gitment.dark.css +79 -0
  60. data/assets/css/main.sass +5 -0
  61. data/assets/images/limp.png +0 -0
  62. data/assets/js/gitment.browser.js +3751 -0
  63. metadata +188 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>{{page.title}}</h1>
6
+
7
+ {{ content }}
@@ -0,0 +1,83 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include views/post-header.html %}
6
+ {{ content }}
7
+
8
+ {% include views/share-buttons.html %}
9
+
10
+ <div class="post-nav">
11
+ {%- if page.previous -%}
12
+ <a class="previous" href="{{ page.previous.url | relative_url }}" title="{{
13
+ page.previous.title | escape }}">{{ page.previous.title | escape | truncatewords: 6 }}</a>
14
+ {%- else -%}
15
+ <span></span>
16
+ {%- endif -%}
17
+
18
+ {%- if page.next -%}
19
+ <a class="next" href="{{ page.next.url | relative_url }}" title="{{ page.next.title | escape }}">{{ page.next.title | escape | truncatewords: 6 }}</a>
20
+ {%- else -%}
21
+ <span></span>
22
+ {%- endif -%}
23
+ </div>
24
+
25
+
26
+
27
+ <div class="post-related">
28
+ <div><h3>Related Articles</h3></div>
29
+ <ol>
30
+ {% assign posts = site[page.collection] | sample:4 %}
31
+ {%- for post in posts -%}
32
+ <li><a class="post-link" href="{{post.url | relative_url}}" title="{{ page.next.title | escape }}">{{ post.title | escape | truncatewords: 12 }}</a></li>
33
+ {%- endfor -%}
34
+ </ol>
35
+ </div>
36
+
37
+ <div class="post-comments">
38
+ {%- if page.comments != false -%}
39
+
40
+ {%- if site.disqus.shortname -%}
41
+ {%- include extensions/comments/disqus.html -%}
42
+ {%- endif -%}
43
+
44
+ {%- if site.gitment.username -%}
45
+ {%- include extensions/comments/gitment.html -%}
46
+ {%- endif -%}
47
+
48
+ {%- endif -%}
49
+ </div>
50
+
51
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.0/styles/github.min.css">
52
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.4.0/highlight.min.js"></script>
53
+ <script>
54
+ // Init highlight js
55
+ document.addEventListener('DOMContentLoaded', function(event) {
56
+ var els = document.querySelectorAll('pre code')
57
+ function handle(block) {
58
+ var outer = block.parentElement.parentElement.parentElement;
59
+ var lang = block.getAttribute('data-lang');
60
+ for (var i = 0; i < outer.classList.length; i++) {
61
+ var cls = outer.classList[i];
62
+ if (cls.startsWith('language-')) {
63
+ lang = cls;
64
+ break;
65
+ }
66
+ }
67
+ if (!lang) {
68
+ cls = block.getAttribute('class');
69
+ lang = cls ? cls.replace('hljs ', '') : '';
70
+ }
71
+ if (lang.startsWith('language-')) {
72
+ lang = lang.substr(9);
73
+ }
74
+ block.setAttribute('class', 'hljs ' + lang);
75
+ block.parentNode.setAttribute('data-lang', lang);
76
+ hljs.highlightBlock(block);
77
+ }
78
+ for (var i = 0; i < els.length; i++) {
79
+ var el = els[i];
80
+ handle(el);
81
+ }
82
+ });
83
+ </script>
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <style>
6
+ h2::before {
7
+ display: block;
8
+ content: " ";
9
+ margin-top: -85px;
10
+ height: 85px;
11
+ visibility: hidden;
12
+ pointer-events: none;
13
+ }
14
+ </style>
15
+
16
+ {%- if site.posts.size > 0 -%}
17
+
18
+ {%- include functions.html func='log' level='debug' msg='Get tags value' -%}
19
+ {%- include functions.html func='get_tags' -%}
20
+ {% assign tags = return %}
21
+
22
+ {% assign keys = tags %}
23
+ {% assign field = 'tags' %}
24
+ {%- include views/segments.html -%}
25
+
26
+ {%- endif -%}
File without changes
@@ -0,0 +1,6 @@
1
+ @mixin media-query($device)
2
+ @media screen and (max-width: $device)
3
+ @content
4
+
5
+ @mixin relative-font-size($ratio)
6
+ font-size: $base-font-size * $ratio
@@ -0,0 +1,19 @@
1
+
2
+ // colors
3
+
4
+ $brand_main: #f09d51 !default
5
+ $brand_sec: #313638 !default
6
+ $brand_light: #f5eae1 !default
7
+
8
+ // device sizes
9
+
10
+ $on-phone: 430px !default
11
+ $on-palm: 725px !default
12
+ $on-laptop: 992px !default
13
+
14
+ // base font size
15
+
16
+ $base-font-size: 16px !default
17
+ $spacing-unit: 30px !default
18
+
19
+ $table-text-align: left !default
@@ -0,0 +1 @@
1
+ @import base.sass
@@ -0,0 +1,220 @@
1
+ /* latin */
2
+ @font-face
3
+ font-family: 'Nerko One'
4
+ font-style: normal
5
+ font-weight: 400
6
+ font-display: swap
7
+ src: url(https://fonts.gstatic.com/s/nerkoone/v1/m8JQjfZSc7OXlB3ZMOjDd5RA.woff2) format('woff2')
8
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
9
+
10
+ @font-face
11
+ font-family: 'Sansita Swashed'
12
+ font-style: normal
13
+ font-weight: 500
14
+ font-display: swap
15
+ src: url(https://fonts.gstatic.com/s/sansitaswashed/v1/BXR8vFfZifTZgFlDDLgNkBydPKTt3pVCeYWqJnZSW4ZpXT0few.woff2) format('woff2')
16
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
17
+
18
+ @font-face
19
+ font-family: 'Comfortaa'
20
+ font-style: normal
21
+ font-weight: 600
22
+ font-display: swap
23
+ src: url(https://fonts.gstatic.com/s/comfortaa/v29/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4bbLDrMfIA.woff2) format('woff2')
24
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
25
+
26
+ body
27
+ background: $brand_sec
28
+ color: $brand_main
29
+ margin: 5rem 0 0 0
30
+ padding: 0
31
+ display: flex
32
+ flex-direction: column
33
+ justify-content: space-between
34
+ min-height: calc( 100vh - 13vh )
35
+ font-family: sans-serif, Arial, Helvetica
36
+ @include relative-font-size(1.07)
37
+
38
+ main
39
+ flex-grow: 1
40
+
41
+ p
42
+ line-height: 1.3
43
+ @include relative-font-size(1.05)
44
+
45
+ h1, h2, h3, h4, h5, h6
46
+ font-family: 'Sansita Swashed', sans-serif
47
+
48
+ h1
49
+ color: $brand_light
50
+ @include relative-font-size(2.7)
51
+
52
+ h2
53
+ @include relative-font-size(2.4)
54
+
55
+ h3
56
+ @include relative-font-size(2.1)
57
+
58
+ h4
59
+ @include relative-font-size(1.9)
60
+
61
+ h5
62
+ @include relative-font-size(1.7)
63
+
64
+ h6
65
+ @include relative-font-size(1.5)
66
+
67
+ @include media-query($on-phone)
68
+ h1
69
+ @include relative-font-size(2.2)
70
+
71
+ h2
72
+ @include relative-font-size(2.05)
73
+
74
+ h3
75
+ @include relative-font-size(1.9)
76
+
77
+ h4
78
+ @include relative-font-size(1.75)
79
+
80
+ h5
81
+ @include relative-font-size(1.6)
82
+
83
+ h6
84
+ @include relative-font-size(1.5)
85
+
86
+ a
87
+ text-decoration: none
88
+ color: $brand_main
89
+ transition: .3s ease all
90
+ &:hover
91
+ color: $brand_light
92
+ transition: .3s ease all
93
+
94
+ .svg-icon
95
+ width: 1.3rem
96
+ height: 1.3rem
97
+
98
+ blockquote
99
+ color: darken($brand_main, 10%)
100
+ font-style: italic
101
+ border-left: 5px solid
102
+ margin-left: 0
103
+ padding-left: 3rem
104
+
105
+ /**
106
+ * Images
107
+ */
108
+ img
109
+ max-width: 100%
110
+ vertical-align: middle
111
+
112
+ /**
113
+ * Figures
114
+ */
115
+ figure
116
+ margin: 0
117
+ & > img
118
+ display: block
119
+
120
+ figcaption
121
+ @include relative-font-size(.5)
122
+
123
+ /**
124
+ * Lists
125
+ */
126
+ ul,
127
+ ol
128
+ margin-left: $spacing-unit
129
+
130
+ li
131
+ > ul,
132
+ > ol
133
+ margin-bottom: 0
134
+
135
+ /**
136
+ * Code formatting
137
+ */
138
+ pre,
139
+ code
140
+ color: $brand_sec
141
+ // @include relative-font-size(0.9375)
142
+
143
+ *:not(pre) > code
144
+ padding: 1px 5px
145
+ border-radius: 3px
146
+ color: #ffc38b
147
+ background-color: lighten($brand_sec, 10%)
148
+ margin: 0 5px
149
+
150
+ .highlight
151
+ > pre
152
+ width: 100%
153
+ overflow: hidden
154
+ border-radius: 7px
155
+ position: relative
156
+ background-color: $brand_light
157
+
158
+ // code language badge
159
+ &:before
160
+ content: attr(data-lang)
161
+ color: #fff
162
+ background-color: #ff4e00
163
+ padding: .2rem .5em
164
+ border-radius: 0 7px
165
+ text-transform: uppercase
166
+ text-align: center
167
+ min-width: 32px
168
+ min-height: 15px
169
+ display: inline-block
170
+ position: absolute
171
+ right: 0
172
+
173
+ > code
174
+ box-sizing: border-box
175
+ width: 100%
176
+ overflow: auto
177
+ display: inline-block
178
+ padding: 20px!important
179
+ background-color: transparent
180
+ border: 0
181
+
182
+ table, pre
183
+ margin-bottom: 0
184
+
185
+ .gutter, .code
186
+ padding: 6px
187
+ border: none
188
+
189
+ /**
190
+ * Tables
191
+ */
192
+ table
193
+ margin-bottom: $spacing-unit
194
+ width: 100%
195
+ text-align: $table-text-align
196
+ color: darken($brand_main, 10%)
197
+ border-collapse: collapse
198
+
199
+ tr
200
+ &:nth-child(even)
201
+ background-color: lighten($brand_sec, 6%)
202
+
203
+ th,
204
+ td
205
+ padding: ($spacing-unit / 3) ($spacing-unit / 2)
206
+
207
+ th
208
+ background-color: lighten($brand_sec, 3%)
209
+ border: 1px solid darken($brand_main, 4%)
210
+ border-bottom-color: darken($brand_main, 12%)
211
+
212
+ td
213
+ border: 1px solid $brand_main
214
+
215
+ // mermaid
216
+ img.mermaid
217
+ background: lighten($brand_sec, 15%)
218
+ overflow: hidden
219
+ border-radius: 7px
220
+ padding: 7px 0 7px 0
@@ -0,0 +1,80 @@
1
+ .footer
2
+ width: 100%
3
+ // background: darken($brand_light, 20%)
4
+ background: $brand_sec
5
+ box-shadow: 2px 0px 3px rgba($brand_main, 0.5)
6
+
7
+ &__section
8
+ width: 100%
9
+ display: flex
10
+ justify-content: space-between
11
+ padding: 1rem 0 1rem 0
12
+
13
+ & > div:first-child
14
+ width: 60%
15
+
16
+ & > div:last-child
17
+ width: 25%
18
+
19
+ & > div
20
+ width: 15%
21
+
22
+ & > div:not(:last-child)
23
+ padding-right: 1.7rem
24
+
25
+ &__extra
26
+ display: flex
27
+ align-items: center
28
+ flex-direction: column
29
+ padding: 1rem 0 1rem 0
30
+
31
+ & > .social > ul
32
+ list-style: none
33
+ padding: 0
34
+ margin: 0
35
+ display: flex
36
+
37
+ & > li:not(:last-child)
38
+ padding-right: 1.5rem
39
+
40
+ & svg
41
+ width: 30px
42
+ height: 30px
43
+ fill: $brand_main
44
+
45
+ & svg:hover
46
+ fill: $brand_light
47
+ transition: .3s ease all
48
+
49
+ &__links
50
+ list-style: none
51
+ padding: 0
52
+ margin-left: 0
53
+
54
+ & > li > a
55
+ color: $brand_main
56
+ text-decoration: none
57
+ transition: .3s ease all
58
+
59
+ &:hover
60
+ color: $brand_light
61
+ transition: .3s ease all
62
+
63
+ & > li:not(:last-child)
64
+ padding-bottom: .5rem
65
+ .copyright
66
+ text-align: center
67
+
68
+ @include media-query($on-palm)
69
+ .footer
70
+ &__section
71
+ flex-direction: column
72
+ align-items: center
73
+
74
+ & > div:not(:last-child)
75
+ padding-bottom: 1rem
76
+ padding-right: 0
77
+
78
+ & > div
79
+ width: 100% !important
80
+ text-align: center