mindark 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2537fbe909c6a2b0b9fc387d1b5701bfd8374c6f10624adb351035e982601b89
4
+ data.tar.gz: 4074081ad333e3ea8f72a1f7b3fa7f32cdcf8f5762bd8c6e484f28c98e4850a4
5
+ SHA512:
6
+ metadata.gz: ee98568bfebd3e30da98d9802de4f2e9e7caaa804055c37b726341efaa4b42c6f0c5fae1ded5ca404c3235dfc902e05353374495209605186c8d899770321fcf
7
+ data.tar.gz: fe6fda55592a22dcded35c1f1c901c65f34e58d5200aa7138af4895607fc89c4b1792186b341716220ecbb8aff50421318997c08c3954a1e0e4f998294056371
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 thang-nm
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,52 @@
1
+ # Mindark
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "Mindark"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: Mindark
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install Mindark
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `Mindark.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
@@ -0,0 +1 @@
1
+ <!-- Analytics -->
@@ -0,0 +1,25 @@
1
+ <h2 class="home section-name categories text-center">Articles</h2>
2
+ <section class="articles">
3
+ {%- assign column = 3 -%}
4
+ {%- assign maxIndex = column | minus: 1 -%}
5
+ {%- for index in (0..maxIndex) -%}
6
+ <div class="column">
7
+ {%- for post in site.posts -%}
8
+ {%- assign mod = forloop.index0 | modulo: column -%}
9
+ {%- if mod == index -%}
10
+ <article class="preview">
11
+ <div class="thumbnail">
12
+ <a class="post-link" href="{{ post.url | relative_url }}">
13
+ <img src="{{ post.image | relative_url }}">
14
+ </a>
15
+ </div>
16
+ <a class="post-link" href="{{ post.url | relative_url }}">
17
+ <h2 class="title">{{ post.title }}</h2>
18
+ </a>
19
+ <p class="description">{{ post.excerpt }}</p>
20
+ </article>
21
+ {%- endif -%}
22
+ {%- endfor -%}
23
+ </div>
24
+ {%- endfor -%}
25
+ </section>
@@ -0,0 +1,2 @@
1
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
2
+ <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
@@ -0,0 +1,8 @@
1
+ <footer class="site-footer h-card">
2
+ <div class="wrapper">
3
+ <div class="">
4
+ Made with <img class="heart" src="/assets/img/heart.svg">
5
+ by <a href="https://github.com/thang-nm">me</a>
6
+ </div>
7
+ </div>
8
+ </footer>
@@ -0,0 +1,15 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ {%- include meta.html -%}
6
+ {%- seo -%}
7
+ {%- feed_meta -%}
8
+ {%- include icon.html -%}
9
+ {%- include font.html -%}
10
+ <link rel="stylesheet" href="{{ "/assets/css/mindark.css" | relative_url }}">
11
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
12
+ {%- if jekyll.environment == 'production' and site.analytics -%}
13
+ {%- include analytics.html -%}
14
+ {%- endif -%}
15
+ </head>
@@ -0,0 +1,5 @@
1
+ <header class="site-header">
2
+ <div class="wrapper">
3
+ <a href="/"><img src="/assets/img/logo.svg" width="32px" alt="{{ site.title }}"></a>
4
+ </div>
5
+ </header>
@@ -0,0 +1,2 @@
1
+ <link rel="icon" type="image/x-icon" href="/assets/img/favicon.ico" />
2
+ <link rel="apple-touch-icon" href="/assets/img/apple-touch-icon.png">
File without changes
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+ {% include head.html %}
4
+ <body class="{{ body_class }}">
5
+ {% include analytics.html %}
6
+ {% include header.html %}
7
+ <main class="page-content">
8
+ {{ content }}
9
+ </main>
10
+ {% include footer.html %}
11
+ </body>
12
+ </html>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="container">
6
+ {%- include articles.html -%}
7
+ </div>
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="container post">
6
+ <article>
7
+ <h1 class="title">{{ page.title }}</h1>
8
+ <h6 class="author">
9
+ {% if page.author %}
10
+ Writen by <span class="author-name">{{ page.author }}</span> —
11
+ {% endif %}
12
+ <span class="publish-date">{{ page.date | date: "%B %-d, %Y" }}</span>
13
+ </h6>
14
+ {% if page.poster %}
15
+ <img class="poster" src="{{ page.poster | relative_url }}">
16
+ {% endif %}
17
+ {{ content }}
18
+ </article>
19
+ </div>
@@ -0,0 +1,21 @@
1
+ $accent-color: #ffe066;
2
+ $link-color: #4dabf7;
3
+ $link-visited-color: #22b8cf;
4
+ $quote-border-color: #51cf66;
5
+ $text-color: #b1b2b3;
6
+ $text-bright-color: white;
7
+ $background-color: #121415;
8
+ $code-background-color: #171b20;
9
+ $border-color: #212529;
10
+
11
+ $min-body-width: 320px;
12
+ $container-max-width: 1080px;
13
+ $post-width: 860px;
14
+ $spacing: 30px;
15
+ $font-size: 18px;
16
+ $font-weight-normal: 400;
17
+ $font-weight-bold: 600;
18
+
19
+ $font-family: 'Inter', sans-serif;
20
+ $font-family-italic: 'Montserrat', sans-serif;
21
+ $font-monospace: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
@@ -0,0 +1,246 @@
1
+ $margin-bottom: $spacing * 4 / 5;
2
+
3
+ html {
4
+ background-color: $background-color;
5
+ color: $text-color;
6
+ font-family: $font-family;
7
+ font-size: $font-size;
8
+ font-weight: $font-weight-normal;
9
+ font-synthesis: none;
10
+ font-feature-settings: 'kern';
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ }
14
+
15
+ body {
16
+ margin: 0;
17
+ padding: 0;
18
+ min-width: $min-body-width;
19
+ }
20
+
21
+ h1, h2, h3, h4, h5, h6, ul, ol, p, blockquote, pre {
22
+ margin: 0;
23
+ padding: 0;
24
+ }
25
+
26
+ h1, h2, h3, h4, h5, h6 {
27
+ color: $text-bright-color;
28
+ }
29
+
30
+ h1 {
31
+ font-weight: 700;
32
+ font-size: $font-size * 2.25;
33
+ margin-bottom: $spacing / 1.5;
34
+ }
35
+
36
+ h2 {
37
+ font-weight: 600;
38
+ font-size: $font-size * 2;
39
+ margin-bottom: $spacing / 1.75;
40
+ }
41
+
42
+ h3 {
43
+ font-weight: 500;
44
+ font-size: $font-size * 1.75;
45
+ margin-bottom: $spacing / 2;
46
+ }
47
+
48
+ h4 {
49
+ font-weight: 400;
50
+ font-size: $font-size * 1.5;
51
+ margin-bottom: $spacing / 2.25;
52
+ }
53
+
54
+ h5 {
55
+ font-weight: 400;
56
+ font-size: $font-size * 1.25;
57
+ margin-bottom: $spacing / 2.5;
58
+ }
59
+
60
+ h6 {
61
+ font-weight: 400;
62
+ font-size: $font-size * 1;
63
+ margin-bottom: $spacing / 2.75;
64
+ }
65
+
66
+ hr {
67
+ border: none;
68
+ border-bottom: 1px solid $border-color;
69
+ margin-top: $spacing * 1.5;
70
+ margin-bottom: $spacing * 1.5;
71
+ }
72
+
73
+ strong, b {
74
+ font-weight: $font-weight-bold;
75
+ color: $text-bright-color;
76
+ }
77
+
78
+ p {
79
+ margin: 0;
80
+ padding: 0;
81
+ margin-bottom: $margin-bottom;
82
+ line-height: $font-size * 2.25;
83
+ }
84
+
85
+ * {
86
+ + h1 {
87
+ margin-top: $spacing * 2.25;
88
+ }
89
+
90
+ + h2 {
91
+ margin-top: $spacing * 1.75;
92
+ }
93
+ + h3 {
94
+ margin-top: $spacing * 1.25;
95
+ }
96
+
97
+ + h4, + h5, + h6 {
98
+ margin-top: $spacing * 0.75;
99
+ }
100
+ }
101
+
102
+ em {
103
+ font-family: $font-family-italic;
104
+ }
105
+
106
+ blockquote {
107
+ position: relative;
108
+ padding-left: $spacing / 1.25;
109
+ margin-bottom: $spacing * 2 / 3;
110
+ font-style: italic;
111
+ font-family: $font-family-italic;
112
+
113
+ &:before {
114
+ content: " ";
115
+ position: absolute;
116
+ left: 0;
117
+ top: 7px;
118
+ bottom: 9px;
119
+ width: 3px;
120
+ border-radius: 1px;
121
+ background-color: $quote-border-color;
122
+ }
123
+
124
+ p {
125
+ &:first-child::first-letter {
126
+ font-size: 1.5 * $font-size;
127
+ }
128
+
129
+ margin-bottom: 0px;
130
+
131
+ > code::first-letter {
132
+ font-size: inherit;
133
+ }
134
+ }
135
+ }
136
+
137
+ ul {
138
+ padding-left: $spacing * 2 / 3;
139
+
140
+ li {
141
+ margin-bottom: $margin-bottom / 1.5;
142
+ line-height: $font-size * 1.5;
143
+
144
+ p {
145
+ margin: 0;
146
+ line-height: initial;
147
+ }
148
+ }
149
+
150
+ ol, ul {
151
+ margin-top: $margin-bottom / 1.5;
152
+ }
153
+ }
154
+
155
+ ol {
156
+ padding-left: 26px;
157
+
158
+ li {
159
+ margin-bottom: $margin-bottom / 1.5;
160
+ line-height: $font-size * 1.5;
161
+
162
+ p {
163
+ margin: 0;
164
+ line-height: initial;
165
+ }
166
+ }
167
+
168
+ ol, ul {
169
+ margin-top: $margin-bottom / 1.5;
170
+ }
171
+ }
172
+
173
+ pre {
174
+ padding: $spacing / 3 $spacing / 2;
175
+ font-family: $font-monospace;
176
+ font-size: $font-size - 3;
177
+ font-variant-ligatures: common-ligatures;
178
+ line-height: round(($font-size - 2) * 1.6);
179
+ background-color: $code-background-color;
180
+ margin-bottom: $spacing / 2;
181
+ border-radius: 4px;
182
+
183
+ code {
184
+ background-color: transparent;
185
+ padding: 0;
186
+ color: $text-color;
187
+ }
188
+ }
189
+
190
+ code {
191
+ padding: ($spacing / 10) round($spacing / 4);
192
+ border-radius: 4px;
193
+ background-color: $code-background-color;
194
+ font-family: $font-monospace;
195
+ color: $accent-color;
196
+ word-break: keep-all;
197
+ word-wrap: break-word;
198
+ line-height: $font-size * 1.75;
199
+ }
200
+
201
+ table {
202
+ width: 100%;
203
+ border-collapse: collapse;
204
+ margin-bottom: $margin-bottom;
205
+
206
+ td, th {
207
+ border: 1px solid $border-color;
208
+ }
209
+
210
+ td {
211
+ padding: ($spacing / 2.5) ($spacing / 1.5);
212
+ }
213
+
214
+ th {
215
+ color: $text-bright-color;
216
+ font-weight: $font-weight-bold;
217
+ padding: ($spacing / 2) ($spacing / 1.5);
218
+ }
219
+ }
220
+
221
+ a {
222
+ position: relative;
223
+ text-decoration: none;
224
+ color: $link-color;
225
+
226
+ &:hover {
227
+ > * {
228
+ color: $accent-color !important;
229
+ }
230
+ }
231
+
232
+ &:visited {
233
+ color: $link-visited-color;
234
+ }
235
+ }
236
+
237
+ img {
238
+ max-width: 100%;
239
+ display: block;
240
+ margin: auto;
241
+ }
242
+
243
+ ::selection {
244
+ background-color: rgba($accent-color, 0.2)
245
+ // background-color: #b6c253;
246
+ }
@@ -0,0 +1,143 @@
1
+ $md-yellow: $accent-color;
2
+ $md-dark : #343a40;
3
+ $md-blue : #339af0;
4
+ $md-gray : #adb5bd;
5
+ $md-red : #ff6b6b;
6
+ $md-pink : #f783ac;
7
+ $md-grape : #da77f2;
8
+ $md-violet: #9775fa;
9
+ $md-indogo: #748ffc;
10
+ $md-cyan : #3bc9db;
11
+ $md-teal : #38d9a9;
12
+ $md-green : #69db7c;
13
+ $md-lime : #a9e34b;
14
+ $md-orange: #ffa94d;
15
+ $md-brown : #A1694E;
16
+
17
+ $md-code-c : $md-gray; // Comment
18
+ $md-code-err : $md-red; // Error
19
+ $md-code-o : $md-red; // Operator
20
+ $md-code-cm : $md-dark; // Comment.Multiline
21
+ $md-code-cp : $md-dark; // Comment.Preproc
22
+ $md-code-c1 : $md-dark; // Comment.Single
23
+ $md-code-cs : $md-dark; // Comment.Special
24
+ $md-code-gd : $md-lime; // Generic.Deleted
25
+ $md-code-gd-x: $md-lime; // Generic.Deleted.Specific
26
+ $md-code-ge : $md-lime; // Generic.Emph
27
+ $md-code-gr : $md-red; // Generic.Error
28
+ $md-code-gh : $md-lime; // Generic.Heading
29
+ $md-code-gi : $md-lime; // Generic.Inserted
30
+ $md-code-gi-x: $md-lime; // Generic.Inserted.Specific
31
+ $md-code-go : $md-lime; // Generic.Output
32
+ $md-code-gp : $md-lime; // Generic.Prompt
33
+ $md-code-gs : $md-lime; // Generic.Strong
34
+ $md-code-gu : $md-lime; // Generic.Subheading
35
+ $md-code-gt : $md-lime; // Generic.Traceback
36
+ $md-code-k : $md-yellow; // Keyword
37
+ $md-code-kc : $md-pink; // Keyword.Constant
38
+ $md-code-kd : $md-yellow; // Keyword.Declaration
39
+ $md-code-kp : $md-yellow; // Keyword.Pseudo
40
+ $md-code-kr : $md-yellow; // Keyword.Reserved
41
+ $md-code-kt : $md-blue; // Keyword.Type
42
+ $md-code-m : $md-orange; // Literal.Number
43
+ $md-code-s : $md-green; // Literal.String
44
+ $md-code-n : $md-gray; //
45
+ $md-code-na : $md-teal; // Name.Attribute
46
+ $md-code-nb : $md-blue; // Name.Builtin
47
+ $md-code-nc : $md-blue; // Name.Class
48
+ $md-code-no : $md-pink; // Name.Constant
49
+ $md-code-ni : $md-pink; // Name.Entity
50
+ $md-code-ne : $md-pink; // Name.Exception
51
+ $md-code-nf : $md-teal; // Name.Function
52
+ $md-code-nn : $md-violet; // Name.Namespace
53
+ $md-code-nl : $md-brown;
54
+ $md-code-nt : $md-pink; // Name.Tag
55
+ $md-code-nv : $md-brown; // Name.Variable
56
+ $md-code-ow : $md-cyan; // Operator.Word
57
+ $md-code-w : $md-gray; // Text.Whitespace
58
+ $md-code-mf : $md-orange; // Literal.Number.Float
59
+ $md-code-mh : $md-orange; // Literal.Number.Hex
60
+ $md-code-mi : $md-orange; // Literal.Number.Integer
61
+ $md-code-mo : $md-gray; // Literal.Number.Oct
62
+ $md-code-sb : $md-gray; // Literal.String.Backtick
63
+ $md-code-sc : $md-gray; // Literal.String.Char
64
+ $md-code-sd : $md-gray; // Literal.String.Doc
65
+ $md-code-s2 : $md-green; // Literal.String.Double
66
+ $md-code-se : $md-green; // Literal.String.Escape
67
+ $md-code-sh : $md-green; // Literal.String.Heredoc
68
+ $md-code-si : $md-green; // Literal.String.Interpol
69
+ $md-code-sx : $md-green; // Literal.String.Other
70
+ $md-code-sr : $md-green; // Literal.String.Regex
71
+ $md-code-s1 : $md-green; // Literal.String.Single
72
+ $md-code-ss : $md-green; // Literal.String.Symbol
73
+ $md-code-bp : $md-gray; // Name.Builtin.Pseudo
74
+ $md-code-vc : $md-gray; // Name.Variable.Class
75
+ $md-code-vg : $md-gray; // Name.Variable.Global
76
+ $md-code-vi : $md-gray; // Name.Variable.Instance
77
+ $md-code-il : $md-orange; // Literal.Number.Integer.Long
78
+ $md-code-p : $md-brown;
79
+
80
+ .highlight {
81
+ .c { color: $md-code-c ; }
82
+ .err { color: $md-code-err ; }
83
+ .k { color: $md-code-k ; }
84
+ .o { color: $md-code-o ; }
85
+ .cm { color: $md-code-cm ; }
86
+ .cp { color: $md-code-cp ; }
87
+ .c1 { color: $md-code-c1 ; }
88
+ .cs { color: $md-code-cs ; }
89
+ .gd { color: $md-code-gd ; }
90
+ .gd .x { color: $md-code-gd-x; }
91
+ .ge { color: $md-code-ge ; }
92
+ .gr { color: $md-code-gr ; }
93
+ .gh { color: $md-code-gh ; }
94
+ .gi { color: $md-code-gi ; }
95
+ .gi .x { color: $md-code-gi-x; }
96
+ .go { color: $md-code-go ; }
97
+ .gp { color: $md-code-gp ; }
98
+ .gs { color: $md-code-gs ; }
99
+ .gu { color: $md-code-gu ; }
100
+ .gt { color: $md-code-gt ; }
101
+ .kc { color: $md-code-kc ; }
102
+ .kd { color: $md-code-kd ; }
103
+ .kp { color: $md-code-kp ; }
104
+ .kr { color: $md-code-kr ; }
105
+ .kt { color: $md-code-kt ; }
106
+ .m { color: $md-code-m ; }
107
+ .s { color: $md-code-s ; }
108
+ .n { color: $md-code-n ; }
109
+ .na { color: $md-code-na ; }
110
+ .nb { color: $md-code-nb ; }
111
+ .nc { color: $md-code-nc ; }
112
+ .nl { color: $md-code-nl ; }
113
+ .no { color: $md-code-no ; }
114
+ .ni { color: $md-code-ni ; }
115
+ .ne { color: $md-code-ne ; }
116
+ .nf { color: $md-code-nf ; }
117
+ .nn { color: $md-code-nn ; }
118
+ .nt { color: $md-code-nt ; }
119
+ .nv { color: $md-code-nv ; }
120
+ .ow { color: $md-code-ow ; }
121
+ .w { color: $md-code-w ; }
122
+ .mf { color: $md-code-mf ; }
123
+ .mh { color: $md-code-mh ; }
124
+ .mi { color: $md-code-mi ; }
125
+ .mo { color: $md-code-mo ; }
126
+ .sb { color: $md-code-sb ; }
127
+ .sc { color: $md-code-sc ; }
128
+ .sd { color: $md-code-sd ; }
129
+ .s2 { color: $md-code-s2 ; }
130
+ .se { color: $md-code-se ; }
131
+ .sh { color: $md-code-sh ; }
132
+ .si { color: $md-code-si ; }
133
+ .sx { color: $md-code-sx ; }
134
+ .sr { color: $md-code-sr ; }
135
+ .s1 { color: $md-code-s1 ; }
136
+ .ss { color: $md-code-ss ; }
137
+ .bp { color: $md-code-bp ; }
138
+ .vc { color: $md-code-vc ; }
139
+ .vg { color: $md-code-vg ; }
140
+ .vi { color: $md-code-vi ; }
141
+ .il { color: $md-code-il ; }
142
+ .p { color: $md-code-p ; }
143
+ }
@@ -0,0 +1,221 @@
1
+ .text-center {
2
+ text-align: center;
3
+ }
4
+
5
+ .btn {
6
+ display: inline-block;
7
+ white-space: nowrap;
8
+ padding: $spacing * 0.4 $spacing * 0.5;
9
+ background-color: $code-background-color;
10
+ font-weight: $font-weight-bold;
11
+ border-radius: 4px;
12
+ transition: all 0.5s;
13
+
14
+ &:hover {
15
+ color: black;
16
+ background-color: $accent-color;
17
+ }
18
+ }
19
+
20
+ .container {
21
+ max-width: $container-max-width;
22
+ padding: $spacing;
23
+ margin: auto;
24
+
25
+ @media (min-width: $container-max-width + $spacing * 2) {
26
+ padding-left: 0px;
27
+ padding-right: 0px;
28
+ }
29
+ }
30
+
31
+ .highlight {
32
+ margin-bottom: $margin-bottom;
33
+ overflow: scroll;
34
+
35
+ pre {
36
+ margin-bottom: 0px;
37
+ }
38
+
39
+ code {
40
+ line-height: initial;
41
+ }
42
+ }
43
+
44
+ header {
45
+ position: fixed;
46
+ width: 100%;
47
+ background-color: rgba($background-color, 0.9);
48
+ border-bottom: 1px solid $border-color;
49
+ backdrop-filter: saturate(180%) blur(20px);
50
+ -webkit-backdrop-filter: saturate(180%) blur(20px);
51
+ z-index: 100;
52
+
53
+ .wrapper {
54
+ display: flex;
55
+ justify-content: center;
56
+ }
57
+
58
+ img {
59
+ padding: $spacing / 2 $spacing * 2 / 3;
60
+ }
61
+ }
62
+
63
+ main {
64
+ padding-top: 80px;
65
+ }
66
+
67
+ .container.post {
68
+ margin-top: 40px;
69
+ max-width: $post-width;
70
+ margin-left: auto;
71
+ margin-right: auto;
72
+ }
73
+
74
+ .post {
75
+ article {
76
+ .title {
77
+ font-size: $font-size * 3;
78
+ text-align: center;
79
+ margin-bottom: $spacing / 2;
80
+ word-wrap: break-word;
81
+ }
82
+
83
+ .author {
84
+ color: $text-color;
85
+ text-align: center;
86
+ margin-bottom: $spacing * 2;
87
+
88
+ &-name {
89
+ color: $accent-color;
90
+ }
91
+ }
92
+
93
+ .publish-date {
94
+ font-size: $font-size;
95
+ }
96
+
97
+ .poster {
98
+ width: 130%;
99
+ max-width: 130%;
100
+ margin-left: -15%;
101
+ margin-bottom: $spacing * 2;
102
+ border-radius: 2px;
103
+ box-shadow: 0px 10px 10px rgba(black, 0.3);
104
+ }
105
+
106
+ > p:first-of-type::first-letter {
107
+ font-size: $font-size * 2.5;
108
+ font-weight: $font-weight-bold;
109
+ color: $text-bright-color;
110
+ padding-right: 1px;
111
+ }
112
+
113
+ img {
114
+ border-radius: 2px;
115
+ }
116
+ }
117
+ }
118
+
119
+ footer {
120
+ font-size: $font-size * 0.8;
121
+ border-top: 1px solid $border-color;
122
+
123
+ .wrapper {
124
+ padding: $spacing $spacing / 2;
125
+ text-align: center;
126
+ }
127
+
128
+ img.code {
129
+ width: 16px;
130
+ height: auto;
131
+ padding-bottom: 4px;
132
+ padding-right: 3px;
133
+ display: inline-block;
134
+ vertical-align: middle;
135
+ }
136
+
137
+ img.heart {
138
+ width: 14px;
139
+ padding-left: 3px;
140
+ padding-right: 3px;
141
+ display: inline-block;
142
+ vertical-align: middle;
143
+ }
144
+ }
145
+
146
+ .section-name:not(:first-child) {
147
+ margin-top: $spacing;
148
+ }
149
+
150
+ .articles {
151
+ display: flex;
152
+ flex-wrap: wrap;
153
+ margin-left: -$spacing / 2;
154
+ margin-right: -$spacing / 2;
155
+
156
+ .column {
157
+ width: 33.33%;
158
+
159
+ @media (max-width: 480px) {
160
+ width: 100%;
161
+ }
162
+ }
163
+
164
+ article {
165
+ padding: $spacing / 2;
166
+ margin-bottom: $spacing * 4 / 5;
167
+
168
+ img {
169
+ transition: all 0.3s;
170
+ &:hover {
171
+ transform: scale(1.1);
172
+ }
173
+ }
174
+
175
+ .thumbnail {
176
+ overflow: hidden;
177
+ border-radius: 5px;
178
+ box-shadow: 0px 10px 10px rgba(black, 0.15);
179
+ background-color: #1b1e21;
180
+ }
181
+
182
+ .title {
183
+ font-size: $font-size * 1.25;
184
+ margin-top: $spacing * 2 / 3;
185
+ margin-bottom: $spacing / 3;
186
+ word-wrap: break-word;
187
+ }
188
+
189
+ .description {
190
+ font-size: round($font-size * 8 / 9);
191
+ line-height: $font-size * 1.5;
192
+ margin-bottom: 0px;
193
+ }
194
+ }
195
+ }
196
+
197
+ .divider {
198
+ display: flex;
199
+ width: 100%;
200
+ justify-content: space-between;
201
+ align-items: center;
202
+ white-space: nowrap;
203
+ flex-grow: 1;
204
+ color: $text-bright-color;
205
+ font-size: $font-size - 3;
206
+
207
+ &::before, &::after {
208
+ content: '';
209
+ height: 1px;
210
+ background-color: lighten($border-color, $amount: 5);
211
+ flex: 1 0 auto;
212
+ }
213
+
214
+ &::before {
215
+ margin-right: $spacing / 2;
216
+ }
217
+
218
+ &::after {
219
+ margin-left: $spacing / 2;
220
+ }
221
+ }
@@ -0,0 +1,21 @@
1
+ @font-face {
2
+ font-family: 'JetBrains Mono';
3
+ src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/eot/JetBrainsMono-Regular.eot') format('embedded-opentype'),
4
+ url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff2/JetBrainsMono-Regular.woff2') format('woff2'),
5
+ url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff/JetBrainsMono-Regular.woff') format('woff'),
6
+ url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/ttf/JetBrainsMono-Regular.ttf') format('truetype');
7
+ font-weight: normal;
8
+ font-style: normal;
9
+ font-display: swap;
10
+ }
11
+
12
+ @font-face {
13
+ font-family: 'JetBrains Mono';
14
+ src: url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/eot/JetBrainsMono-Bold.eot') format('embedded-opentype'),
15
+ url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff2/JetBrainsMono-Bold.woff2') format('woff2'),
16
+ url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/web/woff/JetBrainsMono-Bold.woff') format('woff'),
17
+ url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/ttf/JetBrainsMono-Bold.ttf') format('truetype');
18
+ font-weight: bold;
19
+ font-style: normal;
20
+ font-display: swap;
21
+ }
@@ -0,0 +1,4 @@
1
+ @import "variables";
2
+ @import "base";
3
+ @import "code";
4
+ @import "elements";
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+
4
+ @import "minidark";
5
+ @import "jetbrains-mono";
@@ -0,0 +1,2 @@
1
+ ---
2
+ ---
Binary file
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
+ <g fill="#ffe066" fill-rule="nonzero">
5
+ <path d="M15.92,10.1372021 C14.776925,14.090887 10.7633378,16.5370219 6.65884646,15.7815369 C2.55435516,15.026052 -0.290337097,11.3175617 0.0948601165,7.22437952 C0.48005733,3.13119731 3.96838358,0.000304678964 8.144,-1.76715292e-15 C8.31831579,-1.76715292e-15 8.50273684,-1.76715292e-15 8.72,0.0223834197 C8.91283132,0.0349161201 9.08151067,0.154631913 9.15452632,0.330777202 C9.22703123,0.507369019 9.19073344,0.709215398 9.06105263,0.850569948 C7.34287359,2.73598743 7.17174054,5.5386071 8.6481219,7.61307316 C10.1245033,9.68753921 12.8586784,10.4862545 15.2454737,9.54031088 C15.4242431,9.46962242 15.6282881,9.50516518 15.7715645,9.63195107 C15.9148409,9.75873697 15.9724118,9.95469916 15.92,10.1372021 L15.92,10.1372021 Z" id="Path"></path>
6
+ </g>
7
+ </g>
8
+ </svg>
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mindark
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - thang-nm
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-08-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ description:
56
+ email:
57
+ - nm.thang@outlook.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE
63
+ - README.md
64
+ - _includes/analytics.html
65
+ - _includes/articles.html
66
+ - _includes/font.html
67
+ - _includes/footer.html
68
+ - _includes/head.html
69
+ - _includes/header.html
70
+ - _includes/icon.html
71
+ - _includes/meta.html
72
+ - _layouts/default.html
73
+ - _layouts/home.html
74
+ - _layouts/post.html
75
+ - _sass/_variables.scss
76
+ - _sass/base.scss
77
+ - _sass/code.scss
78
+ - _sass/elements.scss
79
+ - _sass/jetbrains-mono.scss
80
+ - _sass/minidark.scss
81
+ - assets/css/mindark.scss
82
+ - assets/css/style.scss
83
+ - assets/img/apple-touch-icon.png
84
+ - assets/img/favicon.ico
85
+ - assets/img/logo.svg
86
+ homepage: https://github.com/thang-nm/Mindark
87
+ licenses:
88
+ - MIT
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubygems_version: 3.0.3
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: Minimal Darkness theme for Jekyll
109
+ test_files: []