styless 0.0.1 → 1.2.0

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: 0663ea64377c63e3725dabee4e1c3b366a18e5c6a6adb28260080d640aa9c022
4
- data.tar.gz: cf52f1eac9d0292b18fdddb8be476eb6c692fe8c63029336048a8fe17dacd232
3
+ metadata.gz: 15c65c37aa3993c0bf1a83da99802855e746abc1025e337369134b4e5eb1f05b
4
+ data.tar.gz: 380813725685823d9c3ffd641c10d0f76ec0a6dfddda7cb5a3798716b6a32d22
5
5
  SHA512:
6
- metadata.gz: ee18512d3279b2324eec078855895cbfaa17d7a6459fff609abe4645334203b724917730a978530aca7bbc2322ff5a580d03fdc7ffe287e9e812b0634fa47b53
7
- data.tar.gz: 271481df649a8bf89157a7d00058da4996d58295650ebee4901095999dfb7937d2f745ec0cc11ebd371b38cdf2d3600ed0d31759e097185fa8cf70b966301d80
6
+ metadata.gz: 4bf3e1cbd36ab0bc124f41fadb472f34a07c6401eda9383c610cba2b949b9c37062fa1400d3fefcf084754b86a112014120e164bd0aea6f54ba859d7c79ae036
7
+ data.tar.gz: f251a7ee9e996a4c0ddb1065121b37ca17d921d76357676069846bb66ab08ced7f63bfe17b0008236cc045edcbb131eef25f7cd5571845d333ba66cfe2f0f10a
data/README.md CHANGED
@@ -1,319 +1,104 @@
1
- # Styless
1
+ ![Gem](https://img.shields.io/gem/dt/styless?logo=rubygems&style=for-the-badge)
2
+ ![Gem](https://img.shields.io/gem/v/styless?logo=rubygems&style=for-the-badge)
3
+ ![GitHub deployments](https://img.shields.io/github/deployments/moonharelabs/styless/github-pages?label=Github%20Pages&logo=jekyll&logoColor=red&style=for-the-badge)
2
4
 
3
- *Styless is an unstyled Jekyll theme for writers*.
4
5
 
5
- *Running `bundle show styless` will provide you with the local path to your current theme version.*
6
+ <p align="center">
7
+ <h1 align="center">Styless</h1>
8
+ <p align="center">A modern, highly customizable, and unstyled Jekyll theme for developers with built-in dark mode.<br>Easily hosted on GitHub Pages with few dependencies.</p>
9
+ <p align="center"><strong><a target="_blank" href="https://moonharelabs.github.io/styless">See it in action!</a></strong></p>
10
+ <br><br><br>
11
+ </p>
6
12
 
13
+ |![](screenshot.jpg)|![](dark-screenshot.jpg)|
14
+ |-|-|
7
15
 
8
- [Theme preview](https://moonharelabs.github.io/styless/)
16
+ ## Getting started
17
+ ### Dependencies
18
+ Styless is built for [Jekyll](https://jekyllrb.com/), a static site generator. View the [quick start guide](https://jekyllrb.com/) for more information. Styless requires no special plugins and can run on GitHub Pages’ standard Jekyll compiler. The [Jekyll SEO Tag plugin](https://github.com/jekyll/jekyll-seo-tag) is included by default (no need to run any special installation) to inject SEO and open graph metadata on docs pages. For information on how to configure SEO and open graph metadata visit the [Jekyll SEO Tag usage guide](https://jekyll.github.io/jekyll-seo-tag/usage/).
9
19
 
10
- ![styless theme preview](/screenshot.png)
11
-
12
- ## Installation
13
-
14
- Add this line to your Jekyll site's Gemfile:
15
-
16
- ```ruby
17
- gem "styless"
18
- ```
19
-
20
- And then execute:
21
-
22
- $ bundle
23
-
24
-
25
- ## Contents At-A-Glance
26
-
27
- Minima has been scaffolded by the `jekyll new-theme` command and therefore has all the necessary files and directories to have a new Jekyll site up and running with zero-configuration.
28
-
29
- ### Layouts
30
-
31
- Refers to files within the `_layouts` directory, that define the markup for your theme.
32
-
33
- - `default.html` &mdash; The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
34
- - `home.html` &mdash; The layout for your landing-page / home-page / index-page. [[More Info.](#home-layout)]
35
- - `page.html` &mdash; The layout for your documents that contain FrontMatter, but are not posts.
36
- - `post.html` &mdash; The layout for your posts.
37
-
38
- #### Home Layout
39
-
40
- `home.html` is a flexible HTML layout for the site's landing-page / home-page / index-page. <br/>
41
-
42
- ##### *Main Heading and Content-injection*
43
-
44
- From Minima v2.2 onwards, the *home* layout will inject all content from your `index.md` / `index.html` **before** the **`Posts`** heading. This will allow you to include non-posts related content to be published on the landing page under a dedicated heading. *We recommended that you title this section with a Heading2 (`##`)*.
45
-
46
- Usually the `site.title` itself would suffice as the implicit 'main-title' for a landing-page. But, if your landing-page would like a heading to be explicitly displayed, then simply define a `title` variable in the document's front matter and it will be rendered with an `<h1>` tag.
47
-
48
- ##### *Post Listing*
49
-
50
- This section is optional from Minima v2.2 onwards.<br/>
51
- It will be automatically included only when your site contains one or more valid posts or drafts (if the site is configured to `show_drafts`).
52
-
53
- The title for this section is `Posts` by default and rendered with an `<h2>` tag. You can customize this heading by defining a `list_title` variable in the document's front matter.
54
-
55
-
56
- ### Includes
57
-
58
- Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
59
-
60
- - `disqus_comments.html` &mdash; Code to markup disqus comment box.
61
- - `footer.html` &mdash; Defines the site's footer section.
62
- - `google-analytics.html` &mdash; Inserts Google Analytics module (active only in production environment).
63
- - `head.html` &mdash; Code-block that defines the `<head></head>` in *default* layout.
64
- - `custom-head.html` &mdash; Placeholder to allow users to add more metadata to `<head />`.
65
- - `header.html` &mdash; Defines the site's main header section. By default, pages with a defined `title` attribute will have links displayed here.
66
- - `social.html` &mdash; Renders social-media icons based on the `minima:social_links` data in the config file.
67
-
68
-
69
- ### Sass
70
-
71
- Refers to `.scss` files within the `_sass` directory that define the theme's styles.
72
-
73
- - `minima/skins/classic.scss` &mdash; The "classic" skin of the theme. *Used by default.*
74
- - `minima/initialize.scss` &mdash; A component that defines the theme's *skin-agnostic* variable defaults and sass partials.
75
- It imports the following components (in the following order):
76
- - `minima/custom-variables.scss` &mdash; A hook that allows overriding variable defaults and mixins. (*Note: Cannot override styles*)
77
- - `minima/_base.scss` &mdash; Sass partial for resets and defines base styles for various HTML elements.
78
- - `minima/_layout.scss` &mdash; Sass partial that defines the visual style for various layouts.
79
- - `minima/custom-styles.scss` &mdash; A hook that allows overriding styles defined above. (*Note: Cannot override variables*)
80
-
81
- Refer the [skins](#skins) section for more details.
82
-
83
-
84
- ### Assets
85
-
86
- Refers to various asset files within the `assets` directory.
87
-
88
- - `assets/css/style.scss` &mdash; Imports sass files from within the `_sass` directory and gets processed into the theme's
89
- stylesheet: `assets/css/styles.css`.
90
- - `assets/minima-social-icons.svg` &mdash; A composite SVG file comprised of *symbols* related to various social-media icons.
91
- This file is used as-is without any processing. Refer [section on social networks](#social-networks) for its usage.
92
-
93
-
94
- ### Plugins
95
-
96
- Minima comes with [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) plugin preinstalled to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag#usage) to know how to set it up.
97
-
98
-
99
- ## Usage
100
-
101
- Have the following line in your config file:
20
+ ### Quick start: Use as a GitHub Pages remote theme
102
21
 
22
+ 1. Add Styless to your Jekyll site's `_config.yml` as a [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/)
103
23
  ```yaml
104
- theme: minima
105
- ```
106
-
107
-
108
- ### Customizing templates
109
-
110
- To override the default structure and style of minima, simply create the concerned directory at the root of your site, copy the file you wish to customize to that directory, and then edit the file.
111
- e.g., to override the [`_includes/head.html `](_includes/head.html) file to specify a custom style path, create an `_includes` directory, copy `_includes/head.html` from minima gem folder to `<yoursite>/_includes` and start editing that file.
112
-
113
- The site's default CSS has now moved to a new place within the gem itself, [`assets/css/style.scss`](assets/css/style.scss).
114
-
115
- In Minima 3.0, if you only need to customize the colors of the theme, refer to the subsequent section on skins. To have your
116
- *CSS overrides* in sync with upstream changes released in future versions, you can collect all your overrides for the Sass
117
- variables and mixins inside a sass file placed at `_sass/minima/custom-variables.scss` and all other overrides inside a sass file
118
- placed at path `_sass/minima/custom.scss`.
119
-
120
- You need not maintain entire partial(s) at the site's source just to override a few styles. However, your stylesheet's primary
121
- source (`assets/css/style.scss`) should contain the following:
122
-
123
- - Front matter dashes at the very beginning (can be empty).
124
- - Directive to import a skin.
125
- - Directive to import the base styles (automatically loads overrides when available).
126
-
127
- Therefore, your `assets/css/style.scss` should contain the following at minimum:
128
-
129
- ```sass
130
- ---
131
- ---
132
-
133
- @import "minima/skins/{{ site.minima.skin | default: 'classic' }}";
134
- @import "minima/initialize";
24
+ remote_theme: moonharelabs/styless
135
25
  ```
26
+ <small>You must have GitHub Pages enabled on your repo, one or more Markdown files, and a `_config.yml` file. [See an example repository](https://github.com/moonharelabs/styless/tree/main/docs)</small>
136
27
 
137
- #### Skins
138
28
 
139
- Minima 3.0 supports defining and switching between multiple color-palettes (or *skins*).
29
+ ### Local installation: Use the gem-based theme
140
30
 
31
+ 1. Install the Ruby Gem
32
+ ```bash
33
+ $ gem install styless
141
34
  ```
142
- .
143
- ├── minima.scss
144
- └── minima
145
- └── _syntax-highlighting.scss
146
- ```
147
-
148
-
149
- A skin is a Sass file placed in the directory `_sass/minima/skins` and it defines the variable defaults related to the "color"
150
- aspect of the theme. It also embeds the Sass rules related to syntax-highlighting since that is primarily related to color and
151
- has to be adjusted in harmony with the current skin.
152
-
153
- The default color palette for Minima is defined within `_sass/minima/skins/classic.scss`. To switch to another available skin,
154
- simply declare it in the site's config file. For example, to activate `_sass/minima/skins/dark.scss` as the skin, the setting
155
- would be:
156
-
157
35
  ```yaml
158
- minima:
159
- skin: dark
36
+ # .. or add it to your your Jekyll site’s Gemfile
37
+ gem "styless"
160
38
  ```
161
-
162
- As part of the migration to support skins, some existing Sass variables have been retired and some **have been redefined** as
163
- summarized in the following table:
164
-
165
- Minima 2.0 | Minima 3.0
166
- --------------- | ----------
167
- `$brand-color` | `$link-base-color`
168
- `$grey-*` | `$brand-*`
169
- `$orange-color` | *has been removed*
170
-
171
- ##### Available skins
172
-
173
- - classic
174
- - dark
175
- - solarized
176
- - solarized-dark
177
-
178
- ### Customize navigation links
179
-
180
- This allows you to set which pages you want to appear in the navigation area and configure order of the links.
181
-
182
- For instance, to only link to the `about` and the `portfolio` page, add the following to your `_config.yml`:
183
-
39
+ 2. Add Styless to your Jekyll site’s `_config.yml`
184
40
  ```yaml
185
- header_pages:
186
- - about.md
187
- - portfolio.md
41
+ theme: "styless"
188
42
  ```
189
-
190
-
191
- ### Change default date format
192
-
193
- You can change the default date format by specifying `site.minima.date_format`
194
- in `_config.yml`.
195
-
43
+ 3. Run you local Jekyll server
44
+ ```bash
45
+ $ jekyll serve
196
46
  ```
197
- # Minima date format
198
- # refer to http://shopify.github.io/liquid/filters/date/ if you want to customize this
199
- minima:
200
- date_format: "%b %-d, %Y"
47
+ ```bash
48
+ # .. or if you're using a Gemfile (bundler)
49
+ $ bundle exec jekyll serve
201
50
  ```
51
+ 4. Point your web browser to [http://localhost:4000](http://localhost:4000)
202
52
 
53
+ If you're hosting your site on GitHub Pages, [set up GitHub Pages and Jekyll locally](https://help.github.com/en/articles/setting-up-your-github-pages-site-locally-with-jekyll) so that you can more easily work in your development environment.
203
54
 
204
- ### Extending the `<head />`
205
-
206
- You can *add* custom metadata to the `<head />` of your layouts by creating a file `_includes/custom-head.html` in your source directory. For example, to add favicons:
207
-
208
- 1. Head over to [https://realfavicongenerator.net/](https://realfavicongenerator.net/) to add your own favicons.
209
- 2. [Customize](#customization) default `_includes/custom-head.html` in your source directory and insert the given code snippet.
55
+ ### Customize Styless
56
+ You can use any css framework with styless. Just add your libraries to `_includes/head.html file in your site.
210
57
 
211
-
212
- ### Enabling comments (via Disqus)
213
-
214
- Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
215
-
216
- To enable it, add the following lines to your Jekyll site:
217
-
218
- ```yaml
219
- disqus:
220
- shortname: my_disqus_shortname
58
+ #### bootstrap
59
+ _includes/head.html
60
+ ```html
61
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
221
62
  ```
222
63
 
223
- You can find out more about Disqus' shortnames [here](https://help.disqus.com/installation/whats-a-shortname).
224
-
225
- Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
226
-
227
- If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
228
-
229
- :warning: `url`, e.g. `https://example.com`, must be set in you config file for Disqus to work.
230
-
231
- ### Author Metadata
232
-
233
- From `Minima-3.0` onwards, `site.author` is expected to be a mapping of attributes instead of a simple scalar value:
234
-
235
- ```yaml
236
- author:
237
- name: John Smith
238
- email: "john.smith@foobar.com"
64
+ Examples(some file like `index.md`)
65
+ ```markdown
66
+ [Link button](http://example.com/){: .btn .btn-primary }
67
+ <button type="button" class="btn btn-primary">Primary</button>
239
68
  ```
240
69
 
241
- To migrate existing metadata, update your config file and any reference to the object in your layouts and includes as summarized below:
242
-
243
- Minima 2.x | Minima 3.0
244
- ------------- | -------------------
245
- `site.author` | `site.author.name`
246
- `site.email` | `site.author.email`
247
-
248
-
249
- ### Social networks
250
-
251
- You can add links to the accounts you have on other sites, with respective icon, by adding one or more of the following options in your config.
252
- From `Minima-3.0` onwards, the usernames are to be nested under `minima.social_links`, with the keys being simply the social-network's name:
253
-
254
- ```yaml
255
- minima:
256
- social_links:
257
- twitter: jekyllrb
258
- github: jekyll
259
- stackoverflow: "11111"
260
- dribbble: jekyll
261
- facebook: jekyll
262
- flickr: jekyll
263
- instagram: jekyll
264
- linkedin: jekyll
265
- pinterest: jekyll
266
- telegram: jekyll
267
- microdotblog: jekyll
268
- keybase: jekyll
269
-
270
- mastodon:
271
- - username: jekyll
272
- instance: example.com
273
- - username: jekyll2
274
- instance: example.com
275
-
276
- gitlab:
277
- - username: jekyll
278
- instance: example.com
279
- - username: jekyll2
280
- instance: example.com
281
-
282
- youtube: jekyll
283
- youtube_channel: UC8CXR0-3I70i1tfPg1PAE1g
284
- youtube_channel_name: CloudCannon
70
+ ### Dark Theme
71
+ Styless has a built-in dark theme. Styless automatically selects dark theme, if browser users selected darkt theme from system settings. But you can easily toggle it.
72
+ - Enable
73
+ ```html
74
+ <button onclick="document.documentElement.classList.add('dark');">Enable Dark Theme</button>
285
75
  ```
286
-
287
-
288
- ### Enabling Google Analytics
289
-
290
- To enable Google Analytics, add the following lines to your Jekyll site:
291
-
292
- ```yaml
293
- google_analytics: UA-NNNNNNNN-N
76
+ - Disable
77
+ ```html
78
+ <button onclick="document.documentElement.classList.remove('dark');">Enable Dark Theme</button>
79
+ ```
80
+ - Toggle
81
+ ```html
82
+ <button onclick="document.documentElement.classList.toggle('dark');">Enable Dark Theme</button>
294
83
  ```
295
84
 
296
- Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
297
-
298
- ### Enabling Excerpts on the Home Page
299
-
300
- To display post-excerpts on the Home Page, simply add the following to your `_config.yml`:
85
+ ---
301
86
 
302
- ```yaml
303
- show_excerpts: true
304
- ```
87
+ ## About the project
305
88
 
89
+ Styless is &copy; 2021-now by @ksengine.
306
90
 
307
- ## Contributing
91
+ ### License
308
92
 
309
- Bug reports and pull requests are welcome on GitHub at https://github.com/jekyll/minima. 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.
93
+ Styless is distributed by an [Unlicense License](https://github.com/moonharelabs/styless/tree/main/LICENSE).
310
94
 
311
- ## Development
95
+ ### Contributing
312
96
 
313
- To set up your environment to develop this theme, run `script/bootstrap`.
97
+ When contributing to this repository, please first discuss the change you wish to make via issue,
98
+ email, or any other method with the owners of this repository before making a change. Read more about becoming a contributor in [our GitHub repo](https://github.com/moonharelabs/styless#contributing).
314
99
 
315
- To test your theme, run `script/server` (or `bundle exec jekyll serve`) and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme and the contents. As you make modifications, your site will regenerate and you should see the changes in the browser after a refresh.
100
+ ### Code of Conduct
316
101
 
317
- ## License
102
+ Styless is committed to fostering a welcoming community.
318
103
 
319
- The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
104
+ [View our Code of Conduct](https://github.com/moonharelabs/styless/tree/main/CODE_OF_CONDUCT.md) on our GitHub repository.
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,99 @@
1
+ <div class="height-[100%] width-[160px] position-[fixed] z-index-[1] top-[0] left-[0] background-color-[#111] overflow-x-hidden padding-top-[20px]">
2
+ {%- assign titled_pages = include.pages
3
+ | where_exp:"item", "item.title != nil" -%}
4
+
5
+ {%- comment -%}
6
+ The values of `title` and `nav_order` can be numbers or strings.
7
+ Jekyll gives build failures when sorting on mixtures of different types,
8
+ so numbers and strings need to be sorted separately.
9
+
10
+ Here, numbers are sorted by their values, and come before all strings.
11
+ An omitted `nav_order` value is equivalent to the page's `title` value
12
+ (except that a numerical `title` value is treated as a string).
13
+
14
+ The case-sensitivity of string sorting is determined by `site.nav_sort`.
15
+ {%- endcomment -%}
16
+
17
+ {%- assign string_ordered_pages = titled_pages
18
+ | where_exp:"item", "item.nav_order == nil" -%}
19
+ {%- assign nav_ordered_pages = titled_pages
20
+ | where_exp:"item", "item.nav_order != nil" -%}
21
+
22
+ {%- comment -%}
23
+ The nav_ordered_pages have to be added to number_ordered_pages and
24
+ string_ordered_pages, depending on the nav_order value.
25
+ The first character of the jsonify result is `"` only for strings.
26
+ {%- endcomment -%}
27
+ {%- assign nav_ordered_groups = nav_ordered_pages
28
+ | group_by_exp:"item", "item.nav_order | jsonify | slice: 0" -%}
29
+ {%- assign number_ordered_pages = "" | split:"X" -%}
30
+ {%- for group in nav_ordered_groups -%}
31
+ {%- if group.name == '"' -%}
32
+ {%- assign string_ordered_pages = string_ordered_pages | concat: group.items -%}
33
+ {%- else -%}
34
+ {%- assign number_ordered_pages = number_ordered_pages | concat: group.items -%}
35
+ {%- endif -%}
36
+ {%- endfor -%}
37
+
38
+ {%- assign sorted_number_ordered_pages = number_ordered_pages | sort:"nav_order" -%}
39
+
40
+ {%- comment -%}
41
+ The string_ordered_pages have to be sorted by nav_order, and otherwise title
42
+ (where appending the empty string to a numeric title converts it to a string).
43
+ After grouping them by those values, the groups are sorted, then the items
44
+ of each group are concatenated.
45
+ {%- endcomment -%}
46
+ {%- assign string_ordered_groups = string_ordered_pages
47
+ | group_by_exp:"item", "item.nav_order | default: item.title | append:''" -%}
48
+ {%- if site.nav_sort == 'case_insensitive' -%}
49
+ {%- assign sorted_string_ordered_groups = string_ordered_groups | sort_natural:"name" -%}
50
+ {%- else -%}
51
+ {%- assign sorted_string_ordered_groups = string_ordered_groups | sort:"name" -%}
52
+ {%- endif -%}
53
+ {%- assign sorted_string_ordered_pages = "" | split:"X" -%}
54
+ {%- for group in sorted_string_ordered_groups -%}
55
+ {%- assign sorted_string_ordered_pages = sorted_string_ordered_pages | concat: group.items -%}
56
+ {%- endfor -%}
57
+
58
+ {%- assign pages_list = sorted_number_ordered_pages | concat: sorted_string_ordered_pages -%}
59
+
60
+ {%- for node in pages_list -%}
61
+ {%- if node.parent == nil -%}
62
+ {%- unless node.nav_exclude -%}
63
+ <li class="nav-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
64
+ {%- if node.has_children -%}
65
+ <a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
66
+ {%- endif -%}
67
+ <a href="{{ node.url | absolute_url }}" class="nav-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
68
+ {%- if node.has_children -%}
69
+ {%- assign children_list = pages_list | where: "parent", node.title -%}
70
+ <ul class="nav-list ">
71
+ {%- for child in children_list -%}
72
+ {%- unless child.nav_exclude -%}
73
+ <li class="nav-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
74
+ {%- if child.has_children -%}
75
+ <a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
76
+ {%- endif -%}
77
+ <a href="{{ child.url | absolute_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
78
+ {%- if child.has_children -%}
79
+ {%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%}
80
+ <ul class="nav-list">
81
+ {%- for grand_child in grand_children_list -%}
82
+ {%- unless grand_child.nav_exclude -%}
83
+ <li class="nav-list-item {% if page.url == grand_child.url %} active{% endif %}">
84
+ <a href="{{ grand_child.url | absolute_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
85
+ </li>
86
+ {%- endunless -%}
87
+ {%- endfor -%}
88
+ </ul>
89
+ {%- endif -%}
90
+ </li>
91
+ {%- endunless -%}
92
+ {%- endfor -%}
93
+ </ul>
94
+ {%- endif -%}
95
+ </li>
96
+ {%- endunless -%}
97
+ {%- endif -%}
98
+ {%- endfor -%}
99
+ </div>
@@ -0,0 +1,95 @@
1
+ <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.js"></script>
2
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
3
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.css">
4
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch-theme-algolia.min.css">
5
+ <base href="{{ site.baseurl }}">
6
+
7
+ <script>
8
+ const search = instantsearch({
9
+ appId: '{{ site.algolia.application_id }}',
10
+ apiKey: '{{ site.algolia.search_only_api_key }}',
11
+ indexName: '{{ site.algolia.index_name }}'
12
+ });
13
+
14
+ const hitTemplate = function(hit) {
15
+ let date = '';
16
+ if (hit.date) {
17
+ date = moment.unix(hit.date).format('MMM D, YYYY');
18
+ }
19
+ let url = `{{ site.baseurl }}${hit.url}#${hit.anchor}`;
20
+
21
+ const title = hit._highlightResult.title.value;
22
+
23
+ let breadcrumbs = '';
24
+ if (hit._highlightResult.headings) {
25
+ breadcrumbs = hit._highlightResult.headings.map(match => {
26
+ return `<span class="search-breadcrumb">${match.value}</span>`
27
+ }).join(' > ')
28
+ }
29
+ const content = hit._highlightResult.html.value;
30
+
31
+ return `
32
+ <div class="search-item">
33
+ <span class="search-meta">${date}</span>
34
+ <h2><a class="search-link" href="${url}">${title}</a></h2>
35
+ {{#breadcrumbs}}<a href="${url}" class="post-breadcrumbs">${breadcrumbs}</a>{{/breadcrumbs}}
36
+ <div class="post-snippet">${content}</div>
37
+ </div>
38
+ `;
39
+ }
40
+
41
+
42
+ search.addWidget(
43
+ instantsearch.widgets.searchBox({
44
+ container: '#search-searchbar',
45
+ placeholder: 'Search into posts...',
46
+ poweredBy: true
47
+ })
48
+ );
49
+
50
+ search.addWidget(
51
+ instantsearch.widgets.hits({
52
+ container: '#search-hits',
53
+ templates: {
54
+ item: hitTemplate
55
+ }
56
+ })
57
+ );
58
+
59
+ search.start();
60
+ </script>
61
+
62
+ <style>
63
+ .ais-search-box {
64
+ max-width: 100%;
65
+ margin-bottom: 15px;
66
+ }
67
+ .post-item {
68
+ margin-bottom: 30px;
69
+ }
70
+ .post-link .ais-Highlight {
71
+ color: #111;
72
+ font-style: normal;
73
+ text-decoration: underline;
74
+ }
75
+ .post-breadcrumbs {
76
+ color: #424242;
77
+ display: block;
78
+ }
79
+ .post-breadcrumb {
80
+ font-size: 18px;
81
+ color: #424242;
82
+ }
83
+ .post-breadcrumb .ais-Highlight {
84
+ font-weight: bold;
85
+ font-style: normal;
86
+ }
87
+ .post-snippet .ais-Highlight {
88
+ color: #2a7ae2;
89
+ font-style: normal;
90
+ font-weight: bold;
91
+ }
92
+ .post-snippet img {
93
+ display: none;
94
+ }
95
+ </style>
@@ -1,8 +1,29 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ {% seo %}
8
+ <link rel="stylesheet" href="{{ "/assets/css/styless.css?v=" | append: site.github.build_revision | relative_url }}">
9
+ <script src="{{ "/assets/js/jit.js?v=" | append: site.github.build_revision | relative_url }}"></script>
10
+ <!--[if lt IE 9]>
11
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
12
+ <![endif]-->
13
+ </head>
3
14
  <body>
4
-
5
- {{ content }}
6
-
15
+ <div style="max-width:1012px;margin-right:auto;margin-left:auto;margin-top:32px;margin-bottom:32px;padding-left:16px;padding-right:16px;">
16
+ {{ content }}
17
+ </div>
18
+ {% if site.google_analytics %}
19
+ <script>
20
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
21
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
22
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
23
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
24
+ ga('create', '{{ site.google_analytics }}', 'auto');
25
+ ga('send', 'pageview');
26
+ </script>
27
+ {% endif %}
7
28
  </body>
8
29
  </html>
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="padding:1rem max-width:1012px margin:auto">
5
+ {{ content }}
6
+ {% if site.github.private != true and site.github.license %}
7
+ <hr>
8
+ <div class="padding:1rem color:gray margin-top:1rem border-top-width:1px border-style:solid">
9
+ <center>This site is open source. {% github_edit_link "Improve this page" %}.</center>
10
+ </div>
11
+ {% endif %}
12
+ </div>
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {{ content }}
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ {{ content }}
@@ -0,0 +1,620 @@
1
+ /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
2
+ /* Document ======== */
3
+ /** Use a better box model (opinionated). */
4
+ *, ::before, ::after {
5
+ box-sizing: border-box;
6
+ }
7
+ /** 1. Correct the line height in all browsers. 2. Prevent adjustments of font size after orientation changes in iOS. 3. Use a more readable tab size (opinionated). */
8
+ html {
9
+ line-height: 1.15;
10
+ /* 1 */
11
+ -webkit-text-size-adjust: 100%;
12
+ /* 2 */
13
+ -moz-tab-size: 4;
14
+ /* 3 */
15
+ tab-size: 4;
16
+ /* 3 */
17
+ }
18
+ /* Sections ======== */
19
+ /** 1. Remove the margin in all browsers. 2. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
20
+ body {
21
+ margin: 0;
22
+ /* 1 */
23
+ font-family: system-ui, -apple-system,
24
+ /* Firefox supports this but not yet `system-ui` */
25
+ 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
26
+ /* 2 */
27
+ }
28
+ /* Grouping content ================ */
29
+ /** 1. Add the correct height in Firefox. 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) */
30
+ hr {
31
+ height: 0;
32
+ /* 1 */
33
+ color: inherit;
34
+ /* 2 */
35
+ }
36
+ /* Text-level semantics ==================== */
37
+ /** Add the correct text decoration in Chrome, Edge, and Safari. */
38
+ abbr[title] {
39
+ text-decoration: underline dotted;
40
+ }
41
+ /** Add the correct font weight in Edge and Safari. */
42
+ b, strong {
43
+ font-weight: bolder;
44
+ }
45
+ /** 1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) 2. Correct the odd 'em' font sizing in all browsers. */
46
+ code, kbd, samp, pre {
47
+ font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
48
+ /* 1 */
49
+ font-size: 1em;
50
+ /* 2 */
51
+ }
52
+ /** Add the correct font size in all browsers. */
53
+ small {
54
+ font-size: 80%;
55
+ }
56
+ /** Prevent 'sub' and 'sup' elements from affecting the line height in all browsers. */
57
+ sub, sup {
58
+ font-size: 75%;
59
+ line-height: 0;
60
+ position: relative;
61
+ vertical-align: baseline;
62
+ }
63
+ sub {
64
+ bottom: -0.25em;
65
+ }
66
+ sup {
67
+ top: -0.5em;
68
+ }
69
+ /* Tabular data ============ */
70
+ /** 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) */
71
+ table {
72
+ text-indent: 0;
73
+ /* 1 */
74
+ border-color: inherit;
75
+ /* 2 */
76
+ }
77
+ /* Forms ===== */
78
+ /** 1. Change the font styles in all browsers. 2. Remove the margin in Firefox and Safari. */
79
+ button, input, optgroup, select, textarea {
80
+ font-family: inherit;
81
+ /* 1 */
82
+ font-size: 100%;
83
+ /* 1 */
84
+ line-height: 1.15;
85
+ /* 1 */
86
+ margin: 0;
87
+ /* 2 */
88
+ }
89
+ /** Remove the inheritance of text transform in Edge and Firefox. */
90
+ button, select {
91
+ text-transform: none;
92
+ }
93
+ /** Correct the inability to style clickable types in iOS and Safari. */
94
+ button, [type='button'], [type='reset'], [type='submit'] {
95
+ -webkit-appearance: button;
96
+ }
97
+ /** Remove the inner border and padding in Firefox. */
98
+ ::-moz-focus-inner {
99
+ border-style: none;
100
+ padding: 0;
101
+ }
102
+ /** Restore the focus styles unset by the previous rule. */
103
+ :-moz-focusring {
104
+ outline: 1px dotted ButtonText;
105
+ }
106
+ /** Remove the additional ':invalid' styles in Firefox. See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737 */
107
+ :-moz-ui-invalid {
108
+ box-shadow: none;
109
+ }
110
+ /** Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers. */
111
+ legend {
112
+ padding: 0;
113
+ }
114
+ /** Add the correct vertical alignment in Chrome and Firefox. */
115
+ progress {
116
+ vertical-align: baseline;
117
+ }
118
+ /** Correct the cursor style of increment and decrement buttons in Safari. */
119
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
120
+ height: auto;
121
+ }
122
+ /** 1. Correct the odd appearance in Chrome and Safari. 2. Correct the outline style in Safari. */
123
+ [type='search'] {
124
+ -webkit-appearance: textfield;
125
+ /* 1 */
126
+ outline-offset: -2px;
127
+ /* 2 */
128
+ }
129
+ /** Remove the inner padding in Chrome and Safari on macOS. */
130
+ ::-webkit-search-decoration {
131
+ -webkit-appearance: none;
132
+ }
133
+ /** 1. Correct the inability to style clickable types in iOS and Safari. 2. Change font properties to 'inherit' in Safari. */
134
+ ::-webkit-file-upload-button {
135
+ -webkit-appearance: button;
136
+ /* 1 */
137
+ font: inherit;
138
+ /* 2 */
139
+ }
140
+ /* Interactive =========== */
141
+ /* Add the correct display in Chrome and Safari. */
142
+ summary {
143
+ display: list-item;
144
+ }
145
+ img {
146
+ max-width: 100%;
147
+ height:auto;
148
+ }
149
+ pre {
150
+ border: 1px solid lightgray;
151
+ overflow-x: auto;
152
+ }
153
+ .highlight table td {
154
+ padding: 5px;
155
+ }
156
+ .highlight table pre {
157
+ margin: 0;
158
+ }
159
+ .highlight .cm {
160
+ color: #999988;
161
+ font-style: italic;
162
+ }
163
+ .highlight .cp {
164
+ color: #999999;
165
+ font-weight: bold;
166
+ }
167
+ .highlight .c1 {
168
+ color: #999988;
169
+ font-style: italic;
170
+ }
171
+ .highlight .cs {
172
+ color: #999999;
173
+ font-weight: bold;
174
+ font-style: italic;
175
+ }
176
+ .highlight .c, .highlight .cd {
177
+ color: #999988;
178
+ font-style: italic;
179
+ }
180
+ .highlight .err {
181
+ color: #a61717;
182
+ background-color: #e3d2d2;
183
+ }
184
+ .highlight .gd {
185
+ color: #000000;
186
+ background-color: #ffdddd;
187
+ }
188
+ .highlight .ge {
189
+ color: #000000;
190
+ font-style: italic;
191
+ }
192
+ .highlight .gr {
193
+ color: #aa0000;
194
+ }
195
+ .highlight .gh {
196
+ color: #999999;
197
+ }
198
+ .highlight .gi {
199
+ color: #000000;
200
+ background-color: #ddffdd;
201
+ }
202
+ .highlight .go {
203
+ color: #888888;
204
+ }
205
+ .highlight .gp {
206
+ color: #555555;
207
+ }
208
+ .highlight .gs {
209
+ font-weight: bold;
210
+ }
211
+ .highlight .gu {
212
+ color: #aaaaaa;
213
+ }
214
+ .highlight .gt {
215
+ color: #aa0000;
216
+ }
217
+ .highlight .kc {
218
+ color: #000000;
219
+ font-weight: bold;
220
+ }
221
+ .highlight .kd {
222
+ color: #000000;
223
+ font-weight: bold;
224
+ }
225
+ .highlight .kn {
226
+ color: #000000;
227
+ font-weight: bold;
228
+ }
229
+ .highlight .kp {
230
+ color: #000000;
231
+ font-weight: bold;
232
+ }
233
+ .highlight .kr {
234
+ color: #000000;
235
+ font-weight: bold;
236
+ }
237
+ .highlight .kt {
238
+ color: #445588;
239
+ font-weight: bold;
240
+ }
241
+ .highlight .k, .highlight .kv {
242
+ color: #000000;
243
+ font-weight: bold;
244
+ }
245
+ .highlight .mf {
246
+ color: #009999;
247
+ }
248
+ .highlight .mh {
249
+ color: #009999;
250
+ }
251
+ .highlight .il {
252
+ color: #009999;
253
+ }
254
+ .highlight .mi {
255
+ color: #009999;
256
+ }
257
+ .highlight .mo {
258
+ color: #009999;
259
+ }
260
+ .highlight .m, .highlight .mb, .highlight .mx {
261
+ color: #009999;
262
+ }
263
+ .highlight .sb {
264
+ color: #d14;
265
+ }
266
+ .highlight .sc {
267
+ color: #d14;
268
+ }
269
+ .highlight .sd {
270
+ color: #d14;
271
+ }
272
+ .highlight .s2 {
273
+ color: #d14;
274
+ }
275
+ .highlight .se {
276
+ color: #d14;
277
+ }
278
+ .highlight .sh {
279
+ color: #d14;
280
+ }
281
+ .highlight .si {
282
+ color: #d14;
283
+ }
284
+ .highlight .sx {
285
+ color: #d14;
286
+ }
287
+ .highlight .sr {
288
+ color: #009926;
289
+ }
290
+ .highlight .s1 {
291
+ color: #d14;
292
+ }
293
+ .highlight .ss {
294
+ color: #990073;
295
+ }
296
+ .highlight .s {
297
+ color: #d14;
298
+ }
299
+ .highlight .na {
300
+ color: #008080;
301
+ }
302
+ .highlight .bp {
303
+ color: #999999;
304
+ }
305
+ .highlight .nb {
306
+ color: #0086b3;
307
+ }
308
+ .highlight .nc {
309
+ color: #445588;
310
+ font-weight: bold;
311
+ }
312
+ .highlight .no {
313
+ color: #008080;
314
+ }
315
+ .highlight .nd {
316
+ color: #3c5d5d;
317
+ font-weight: bold;
318
+ }
319
+ .highlight .ni {
320
+ color: #800080;
321
+ }
322
+ .highlight .ne {
323
+ color: #990000;
324
+ font-weight: bold;
325
+ }
326
+ .highlight .nf {
327
+ color: #990000;
328
+ font-weight: bold;
329
+ }
330
+ .highlight .nl {
331
+ color: #990000;
332
+ font-weight: bold;
333
+ }
334
+ .highlight .nn {
335
+ color: #555555;
336
+ }
337
+ .highlight .nt {
338
+ color: #000080;
339
+ }
340
+ .highlight .vc {
341
+ color: #008080;
342
+ }
343
+ .highlight .vg {
344
+ color: #008080;
345
+ }
346
+ .highlight .vi {
347
+ color: #008080;
348
+ }
349
+ .highlight .nv {
350
+ color: #008080;
351
+ }
352
+ .highlight .ow {
353
+ color: #000000;
354
+ font-weight: bold;
355
+ }
356
+ .highlight .o {
357
+ color: #000000;
358
+ font-weight: bold;
359
+ }
360
+ .highlight .w {
361
+ color: #bbbbbb;
362
+ }
363
+ .highlight {
364
+ background-color: #f8f8f8;
365
+ }
366
+ @media print {
367
+ body {
368
+ padding: 0.4in;
369
+ font-size: 12pt;
370
+ color: #444;
371
+ }
372
+ }
373
+ .dark {
374
+ a {
375
+ color: rgb(140, 140, 250);
376
+ }
377
+ ::-webkit-scrollbar-track-piece {
378
+ background-color: rgba(255, 255, 255, 0.2) !important;
379
+ }
380
+ ::-webkit-scrollbar-track {
381
+ background-color: rgba(255, 255, 255, 0.3) !important;
382
+ }
383
+ ::-webkit-scrollbar-thumb {
384
+ background-color: rgba(255, 255, 255, 0.5) !important;
385
+ }
386
+ embed[type="application/pdf"] {
387
+ filter: invert(90%);
388
+ }
389
+ color: rgb(191, 191, 191);
390
+ background: rgb(31, 31, 31) !important;
391
+ body {
392
+ background-color: rgb(31, 31, 31);
393
+ background-image: none !important;
394
+ }
395
+ input, select, textarea, button {
396
+ color: rgb(191, 191, 191);
397
+ background-color: rgb(31, 31, 31);
398
+ }
399
+ font {
400
+ color: rgb(191, 191, 191);
401
+ }
402
+ filter: contrast(100%) brightness(100%) saturate(100%);
403
+ .filter {
404
+ width: 100%;
405
+ height: 100%;
406
+ position: fixed;
407
+ left: 0px;
408
+ top: 0px;
409
+ pointer-events: none;
410
+ z-index: 2147483647;
411
+ }
412
+ .yellow-filter {
413
+ background: rgba(255, 255, 0, 0.15);
414
+ opacity: 0;
415
+ }
416
+ .blue-filter {
417
+ background: rgba(0, 0, 255, 0.15);
418
+ opacity: 0;
419
+ }
420
+ .dim-filter {
421
+ background: rgba(0, 0, 0, 0.5);
422
+ opacity: 0;
423
+ }
424
+ .transform-z {
425
+ transform: translateZ(0px);
426
+ }
427
+ th, td {
428
+ border-bottom: 1px solid rgb(69, 69, 69);
429
+ }
430
+ blockquote {
431
+ border-left: 1px solid rgb(69, 69, 69);
432
+ }
433
+ pre {
434
+ border: 1px solid rgb(69, 69, 69);
435
+ }
436
+ .highlight .cm {
437
+ color: rgb(196, 196, 186);
438
+ }
439
+ .highlight .cp {
440
+ color: rgb(191, 191, 191);
441
+ }
442
+ .highlight .c1 {
443
+ color: rgb(196, 196, 186);
444
+ }
445
+ .highlight .cs {
446
+ color: rgb(191, 191, 191);
447
+ }
448
+ .highlight .c, .highlight .cd {
449
+ color: rgb(196, 196, 186);
450
+ }
451
+ .highlight .err {
452
+ color: rgb(230, 153, 153);
453
+ background-color: rgb(75, 47, 47);
454
+ }
455
+ .highlight .gd {
456
+ color: rgb(191, 191, 191);
457
+ background-color: rgb(69, 17, 17);
458
+ }
459
+ .highlight .ge {
460
+ color: rgb(191, 191, 191);
461
+ }
462
+ .highlight .gr {
463
+ color: rgb(230, 153, 153);
464
+ }
465
+ .highlight .gh {
466
+ color: rgb(191, 191, 191);
467
+ }
468
+ .highlight .gi {
469
+ color: rgb(191, 191, 191);
470
+ background-color: rgb(17, 69, 17);
471
+ }
472
+ .highlight .go {
473
+ color: rgb(191, 191, 191);
474
+ }
475
+ .highlight .gp {
476
+ color: rgb(191, 191, 191);
477
+ }
478
+ .highlight .gu {
479
+ color: rgb(191, 191, 191);
480
+ }
481
+ .highlight .gt {
482
+ color: rgb(230, 153, 153);
483
+ }
484
+ .highlight .kc {
485
+ color: rgb(191, 191, 191);
486
+ }
487
+ .highlight .kd {
488
+ color: rgb(191, 191, 191);
489
+ }
490
+ .highlight .kn {
491
+ color: rgb(191, 191, 191);
492
+ }
493
+ .highlight .kp {
494
+ color: rgb(191, 191, 191);
495
+ }
496
+ .highlight .kr {
497
+ color: rgb(191, 191, 191);
498
+ }
499
+ .highlight .kt {
500
+ color: rgb(170, 181, 212);
501
+ }
502
+ .highlight .k, .highlight .kv {
503
+ color: rgb(191, 191, 191);
504
+ }
505
+ .highlight .mf {
506
+ color: rgb(153, 230, 230);
507
+ }
508
+ .highlight .mh {
509
+ color: rgb(153, 230, 230);
510
+ }
511
+ .highlight .il {
512
+ color: rgb(153, 230, 230);
513
+ }
514
+ .highlight .mi {
515
+ color: rgb(153, 230, 230);
516
+ }
517
+ .highlight .mo {
518
+ color: rgb(153, 230, 230);
519
+ }
520
+ .highlight .m, .highlight .mb, .highlight .mx {
521
+ color: rgb(153, 230, 230);
522
+ }
523
+ .highlight .sb {
524
+ color: rgb(230, 153, 172);
525
+ }
526
+ .highlight .sc {
527
+ color: rgb(230, 153, 172);
528
+ }
529
+ .highlight .sd {
530
+ color: rgb(230, 153, 172);
531
+ }
532
+ .highlight .s2 {
533
+ color: rgb(230, 153, 172);
534
+ }
535
+ .highlight .se {
536
+ color: rgb(230, 153, 172);
537
+ }
538
+ .highlight .sh {
539
+ color: rgb(230, 153, 172);
540
+ }
541
+ .highlight .si {
542
+ color: rgb(230, 153, 172);
543
+ }
544
+ .highlight .sx {
545
+ color: rgb(230, 153, 172);
546
+ }
547
+ .highlight .sr {
548
+ color: rgb(153, 230, 172);
549
+ }
550
+ .highlight .s1 {
551
+ color: rgb(230, 153, 172);
552
+ }
553
+ .highlight .ss {
554
+ color: rgb(230, 153, 210);
555
+ }
556
+ .highlight .s {
557
+ color: rgb(230, 153, 172);
558
+ }
559
+ .highlight .na {
560
+ color: rgb(153, 230, 230);
561
+ }
562
+ .highlight .bp {
563
+ color: rgb(191, 191, 191);
564
+ }
565
+ .highlight .nb {
566
+ color: rgb(153, 210, 230);
567
+ }
568
+ .highlight .nc {
569
+ color: rgb(170, 181, 212);
570
+ }
571
+ .highlight .no {
572
+ color: rgb(153, 230, 230);
573
+ }
574
+ .highlight .nd {
575
+ color: rgb(177, 205, 205);
576
+ }
577
+ .highlight .ni {
578
+ color: rgb(230, 153, 230);
579
+ }
580
+ .highlight .ne {
581
+ color: rgb(230, 153, 153);
582
+ }
583
+ .highlight .nf {
584
+ color: rgb(230, 153, 153);
585
+ }
586
+ .highlight .nl {
587
+ color: rgb(230, 153, 153);
588
+ }
589
+ .highlight .nn {
590
+ color: rgb(191, 191, 191);
591
+ }
592
+ .highlight .nt {
593
+ color: rgb(153, 153, 230);
594
+ }
595
+ .highlight .vc {
596
+ color: rgb(153, 230, 230);
597
+ }
598
+ .highlight .vg {
599
+ color: rgb(153, 230, 230);
600
+ }
601
+ .highlight .vi {
602
+ color: rgb(153, 230, 230);
603
+ }
604
+ .highlight .nv {
605
+ color: rgb(153, 230, 230);
606
+ }
607
+ .highlight .ow {
608
+ color: rgb(191, 191, 191);
609
+ }
610
+ .highlight .o {
611
+ color: rgb(191, 191, 191);
612
+ }
613
+ .highlight .w {
614
+ color: rgb(191, 191, 191);
615
+ }
616
+ .highlight {
617
+ background-color: rgb(33, 33, 33);
618
+ }
619
+ }
620
+
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "styless";
@@ -0,0 +1 @@
1
+
data/assets/js/jit.js ADDED
@@ -0,0 +1,9 @@
1
+ (function(g){var d={u:function(a){a=a||{};for(var c=1;c<arguments.length;c++){var b=arguments[c];if(b)for(var e in b)b.hasOwnProperty(e)&&(a[e]="object"===typeof b[e]?1==b[e]instanceof Array?b[e].slice(0):this.u(a[e],b[e]):b[e])}return a},g:function(a,c){return function(b,e){return this.l(b.slice(1),a+e+c)}},j:function(a){return function(c,b){var e=this.l(c.slice(1),b);e&&(e[1]=e[0]+"{"+e[1]+"}",e[0]=a);return e}},N:function(a,c){return function(b){return a+":"+b.join(c)}}};d.h=d.u({D:"class",B:{s:{O:"640px",
2
+ L:"768px",K:"1024px",P:"1280px",R:"1536px"}},o:"first last odd even visited checked group-hover group-focus focus-within hover focus focus-visible active disabled dark sm md lg xl xxl".split(" "),i:{first:d.g("",":first"),last:d.g("",":last"),odd:d.g("",":nth-child(odd)"),even:d.g("",":nth-child(even)"),visited:d.g("",":visited"),checked:d.g("",":checked"),"group-hover":d.g(".group:hover ",""),"group-focus":d.g(".group:focus ",""),"focus-within":d.g("",":focus-within"),hover:d.g("",":hover"),focus:d.g("",
3
+ ":focus"),"focus-visible":d.g("",":focus-visible"),active:d.g("",":active"),disabled:d.g("",":disabled")},plugins:{object:function(a){return["fill","contain","cover","none","scale"].indexOf(a[0])?"object-fit:"+a.join("-"):"object-position:"+a.join(" ")},overflow:function(a){return"overflow:"+a.join(" ")},"overflow-x":function(a){return"overflow-x:"+a.join(" ")},"overflow-y":function(a){return"overflow-y:"+a.join(" ")},z:function(a){return"z-index:"+a[0]},visible:function(){return"visibility:visible"},
4
+ invisible:function(){return"visibility:hidden"},text:function(a){return(["left","center","right","justify"].indexOf(a[0])?"text-align:":"color:")+a[0]}}},g.I||{});d.cache={};Object.keys(d.h.B.s).forEach(function(a){var c=d.h,b=c.B,e=b.s[a],f=e.replace(parseFloat(e),parseFloat(e)-.1);b=(b=b.s[c.o[c.o.indexOf(a)+1]])?b.replace(parseFloat(b),parseFloat(b)-.1):void 0;c.i[a]||(c.i[a]=d.j("@media(min-width:breakpoint)".replace("breakpoint",e)));c.i["<"+a]||(c.i["<"+a]=d.j("@media(max-width:breakpoint)".replace("breakpoint",
5
+ f)));!c.i["@"+a]&&b&&(c.i["@"+a]=d.j("@media(min-width:breakpoint) and (max-width:next)".replace("breakpoint",e).replace("next",b)))});d.h.i.J="media"===d.h.D?d.j("@media(prefers-color-scheme:dark)"):function(a,c){var b=this.l(a.slice(1),c);b[0]=".dark "+b[0];return b};d.m=document.createElement("style");d.m.id="MOONHARE_STYLE_ELEMENT";d.m.innerHTML=" ";document.head.appendChild(d.m);d.styleSheet=d.m.sheet;d.G=function(a){return(a+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(c,
6
+ b){return b?"\x00"===c?"\ufffd":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c})};d.F=function(a,c){if(1===a.length){for(var b=a[0].split("-"),e=0;e<b.length;e++)for(var f in this.h.plugins)if(b.slice(0,b.length-e).join("-")===f)return[c,this.h.plugins[f].call(this,b.slice(b.length-e),a[0])];e=a[0].split("[");if(2===e.length&&CSS.supports(e[0].slice(0,-1),e[1].slice(0,-1).replace(/\|/g," ")))return[c,e[0].slice(0,-1)+":"+e[1].slice(0,-1).replace(/\|/g," ")+";"];if(CSS.supports(b.slice(0,
7
+ -1).join("-"),b.slice(-1)[0].replace(/\|/g," ")))return[c,b.slice(0,-1).join("-")+":"+b.slice(-1)[0].replace(/\|/g," ")+";"]}};d.v=function(){[].forEach.call(g.document.querySelectorAll("*"),function(a){[].forEach.call(a.classList,function(c){this.A(c)},this)},this)};d.C=function(a,c,b,e){Object.keys(this.cache).forEach(function(f){var h=f.split(":");b.forEach(function(k,l){this.h.o.indexOf(k)>this.h.o.indexOf(h[l])&&(this.cache[e]=this.cache[f],this.styleSheet.addRule(a,c,this.cache[f]),this.cache[f]+=
8
+ 1)},this)},this);this.styleSheet.addRule(a,c,this.styleSheet.cssRules.length);this.cache[e]=this.styleSheet.cssRules.length};d.l=function(a,c){return(this.h.i[a[0]]||this.F).call(this,a,c)};d.A=function(a){if(!(a in this.cache)){var c=a.split(":"),b=this.l(c,"."+this.G(a));b&&this.C(b[0],b[1],c,a)}};d.H=function(){var a=this;"function"==typeof MutationObserver&&(new MutationObserver(function(c){c.forEach(function(b){[].forEach.call(b.target.classList,function(e){a.A(e)})})})).observe(document.documentElement,
9
+ {attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0})};d.start=function(){var a=this;"loading"!=g.document.readyState?this.v():g.document.addEventListener("DOMContentLoaded",function(){return a.v()})};g.M=d;d.start();d.H()})(window);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: styless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kavindu Santhusa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-13 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,6 +30,20 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: jekyll-admin
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: jekyll-feed
35
49
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +95,17 @@ extra_rdoc_files: []
81
95
  files:
82
96
  - LICENSE
83
97
  - README.md
98
+ - _includes/head.html
99
+ - _includes/nav.html
100
+ - _includes/search/algolia.html
84
101
  - _layouts/default.html
102
+ - _layouts/home.html
103
+ - _layouts/page.html
104
+ - _layouts/post.html
105
+ - _sass/styless.scss
106
+ - assets/css/styless.scss
107
+ - assets/images/.gitkeep
108
+ - assets/js/jit.js
85
109
  homepage: https://github.com/moonharelabs/styless
86
110
  licenses:
87
111
  - Unlicense
@@ -102,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
126
  - !ruby/object:Gem::Version
103
127
  version: '0'
104
128
  requirements: []
105
- rubygems_version: 3.0.3
129
+ rubygems_version: 3.0.3.1
106
130
  signing_key:
107
131
  specification_version: 4
108
132
  summary: The Unstyled Jekyll Theme.