styless 1.2.0 → 1.3.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: 15c65c37aa3993c0bf1a83da99802855e746abc1025e337369134b4e5eb1f05b
4
- data.tar.gz: 380813725685823d9c3ffd641c10d0f76ec0a6dfddda7cb5a3798716b6a32d22
3
+ metadata.gz: e5bbd70cd6fa6c6a5a9fc3cda0d3db4999159d688b052fc8001bf24b15bdc5b1
4
+ data.tar.gz: 97d3a5dc14569c4915c9b36dd60b651a9c9dd3f0d905d91b23801bb061834e25
5
5
  SHA512:
6
- metadata.gz: 4bf3e1cbd36ab0bc124f41fadb472f34a07c6401eda9383c610cba2b949b9c37062fa1400d3fefcf084754b86a112014120e164bd0aea6f54ba859d7c79ae036
7
- data.tar.gz: f251a7ee9e996a4c0ddb1065121b37ca17d921d76357676069846bb66ab08ced7f63bfe17b0008236cc045edcbb131eef25f7cd5571845d333ba66cfe2f0f10a
6
+ metadata.gz: c2d0a7e7508588746258d85f4ea131b189670861a4a0d843a2cd4b5e9d3568accad29122690724be1bb10b30c30ae2873e1b39395b6528e5829313e0db096065
7
+ data.tar.gz: 1fa8355e504ecf4e7be64a66f61b5e790b632179c61b4a17de93843fb705b2b761b2f4d61cabdb6c8d957f54548e00d95ceeb902c9c00ec5e716e7a8bd4003ce
data/README.md CHANGED
@@ -2,36 +2,26 @@
2
2
  ![Gem](https://img.shields.io/gem/v/styless?logo=rubygems&style=for-the-badge)
3
3
  ![GitHub deployments](https://img.shields.io/github/deployments/moonharelabs/styless/github-pages?label=Github%20Pages&logo=jekyll&logoColor=red&style=for-the-badge)
4
4
 
5
-
6
5
  <p align="center">
7
6
  <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>
7
+ <p align="center">A modern, highly customizable, and unstyled Jekyll theme with dark mode.<br><h6 align ="center">Easily hosted on GitHub Pages with few dependencies.</h6></p>
9
8
  <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
9
  </p>
12
10
 
13
11
  |![](screenshot.jpg)|![](dark-screenshot.jpg)|
14
12
  |-|-|
15
13
 
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/).
19
-
20
- ### Quick start: Use as a GitHub Pages remote theme
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/)
23
- ```yaml
24
- remote_theme: moonharelabs/styless
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>
14
+ ## Usage
27
15
 
16
+ ### Dependencies
17
+ 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.
28
18
 
29
19
  ### Local installation: Use the gem-based theme
30
20
 
31
21
  1. Install the Ruby Gem
32
22
  ```bash
33
23
  $ gem install styless
34
- ```
24
+ ```
35
25
  ```yaml
36
26
  # .. or add it to your your Jekyll site’s Gemfile
37
27
  gem "styless"
@@ -50,55 +40,24 @@ $ bundle exec jekyll serve
50
40
  ```
51
41
  4. Point your web browser to [http://localhost:4000](http://localhost:4000)
52
42
 
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.
43
+ ### Github Pages: Use the remote theme
54
44
 
55
- ### Customize Styless
56
- You can use any css framework with styless. Just add your libraries to `_includes/head.html file in your site.
57
-
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">
62
- ```
63
-
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>
68
- ```
45
+ 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.
69
46
 
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>
75
- ```
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>
47
+ 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/)
48
+ ```yaml
49
+ remote_theme: moonharelabs/styless
83
50
  ```
51
+ <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>
84
52
 
85
- ---
86
-
87
- ## About the project
88
-
89
- Styless is &copy; 2021-now by @ksengine.
90
-
91
- ### License
92
-
93
- Styless is distributed by an [Unlicense License](https://github.com/moonharelabs/styless/tree/main/LICENSE).
53
+ ### Customize Styless
94
54
 
95
- ### Contributing
55
+ You can use any css framework with styless. Just add your libraries to `_includes/custom-head.html file in your site.
96
56
 
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).
57
+ ## Contributing
99
58
 
100
- ### Code of Conduct
59
+ Bug reports and pull requests are welcome on GitHub at [our GitHub repo](https://github.com/moonharelabs/styless). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/moonharelabs/styless/tree/main/CODE_OF_CONDUCT.md).
101
60
 
102
- Styless is committed to fostering a welcoming community.
61
+ ## License
103
62
 
104
- [View our Code of Conduct](https://github.com/moonharelabs/styless/tree/main/CODE_OF_CONDUCT.md) on our GitHub repository.
63
+ The theme is available as open source under the terms of the [Unlicense License](https://github.com/moonharelabs/styless/tree/main/LICENSE).
@@ -0,0 +1 @@
1
+ <!-- include your custom head here -->
@@ -0,0 +1,7 @@
1
+ <script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
2
+ <script>
3
+ function addDarkmodeWidget() {
4
+ new Darkmode().showWidget();
5
+ }
6
+ window.addEventListener('load', addDarkmodeWidget);
7
+ </script>
data/_includes/head.html CHANGED
@@ -1 +1,8 @@
1
-
1
+ {% seo %}
2
+ {%- if site.normalize -%}
3
+ {% include normalize.html %}
4
+ {%- endif -%}
5
+ {%- if site.darkmode -%}
6
+ {% include dark.html %}
7
+ {%- endif -%}
8
+ {% include custom-head.html %}
@@ -0,0 +1 @@
1
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/modern-normalize@1.1.0/modern-normalize.min.css">
@@ -1,29 +1,9 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ site.lang | default: "en-US" }}">
3
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]-->
4
+ {% include head.html %}
13
5
  </head>
14
6
  <body>
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
+ {{ content }}
28
8
  </body>
29
9
  </html>
data/_layouts/home.html CHANGED
@@ -1,12 +1,4 @@
1
1
  ---
2
2
  layout: default
3
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>
4
+ {{ content }}
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: 1.2.0
4
+ version: 1.3.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-09-20 00:00:00.000000000 Z
11
+ date: 2021-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,34 +30,6 @@ 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'
47
- - !ruby/object:Gem::Dependency
48
- name: jekyll-feed
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '0.9'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '0.9'
61
33
  - !ruby/object:Gem::Dependency
62
34
  name: jekyll-seo-tag
63
35
  requirement: !ruby/object:Gem::Requirement
@@ -88,24 +60,21 @@ dependencies:
88
60
  version: '0'
89
61
  description:
90
62
  email:
91
- - patrick.marsceill@gmail.com
63
+ - ksengine.github@gmail.com
92
64
  executables: []
93
65
  extensions: []
94
66
  extra_rdoc_files: []
95
67
  files:
96
68
  - LICENSE
97
69
  - README.md
70
+ - _includes/custom-head.html
71
+ - _includes/dark.html
98
72
  - _includes/head.html
99
- - _includes/nav.html
100
- - _includes/search/algolia.html
73
+ - _includes/normalize.html
101
74
  - _layouts/default.html
102
75
  - _layouts/home.html
103
76
  - _layouts/page.html
104
77
  - _layouts/post.html
105
- - _sass/styless.scss
106
- - assets/css/styless.scss
107
- - assets/images/.gitkeep
108
- - assets/js/jit.js
109
78
  homepage: https://github.com/moonharelabs/styless
110
79
  licenses:
111
80
  - Unlicense
data/_includes/nav.html DELETED
@@ -1,99 +0,0 @@
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>
@@ -1,95 +0,0 @@
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>
data/_sass/styless.scss DELETED
@@ -1,620 +0,0 @@
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
-
@@ -1,4 +0,0 @@
1
- ---
2
- ---
3
-
4
- @import "styless";
@@ -1 +0,0 @@
1
-
data/assets/js/jit.js DELETED
@@ -1,9 +0,0 @@
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);