sim-css 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1163cb5bb1188a9fea72ddf2c555e2d1d4054242433fc4ca9896de3fdf03b690
4
+ data.tar.gz: 873d4de371c1c3df387307d61ce797739502a9bfb29c268d2f045500ba6af726
5
+ SHA512:
6
+ metadata.gz: 817418ff1fb99e155dc3cbf31e085d982c978593de0b2ab6badd622d1873d179066496a5f63d850cfd20b8f44c94f62607d859642c5e20f7a6807b4e3f257cd1
7
+ data.tar.gz: a5e6537d48a42d258b6d488e498317dd07552d8db671bd21adb86ef66062668d123358ee2cce65a11d4998da0a93e97170c5521cdc3c7bffafe5c53d3cec0821
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 MegaMU
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.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # sim-css
2
+
3
+ A Jekyll Theme base on no-style-please
4
+
5
+ See the [Original Repository](https://github.com/riggraz/no-style-please)
6
+
7
+ ## What's New
8
+
9
+ - Auto Toc Generation
10
+ - Tags display
11
+ - MathJax Support
12
+ - Show All tags
13
+ - A footer
14
+ - Show '...' if the title is too long
15
+
16
+ ![Example](https://raw.githubusercontent.com/SirMegaMU/sim-css/main/assets/img/example.png)
17
+
18
+ ## Installation
19
+
20
+ Add this line to your Jekyll site's `Gemfile`:
21
+
22
+ ```ruby
23
+ gem "sim-css"
24
+ ```
25
+
26
+ And add this line to your Jekyll site's `_config.yml`:
27
+
28
+ ```yaml
29
+ theme: sim-css
30
+ ```
31
+
32
+ And then execute:
33
+
34
+ $ bundle
35
+
36
+ Or install it yourself as:
37
+
38
+ $ gem install sim-css
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 `sim-css.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
+
data/_config.yml ADDED
@@ -0,0 +1,31 @@
1
+ title: Sim-CSS
2
+ description: A Jekyll Theme base on no-style-please
3
+
4
+ author: MegaMU
5
+ email: sirmegamu@outlook.com
6
+ url: ""
7
+ baseurl: ""
8
+ favicon: "assets/img/logo.png"
9
+ footer: Copyright © Sim-CSS 2022 Theme by MegaMU
10
+
11
+ theme: sim-css
12
+
13
+ theme_config:
14
+ appearance: "auto"
15
+ back_home_text: "..."
16
+ date_format: "%Y-%m-%d"
17
+ show_description: true
18
+
19
+ markdown: kramdown
20
+ highlighter: rouge
21
+ mathjax: true
22
+
23
+ showTags: true
24
+ showCategory: true
25
+ sass:
26
+ style: compressed
27
+
28
+
29
+ plugins:
30
+ - jekyll-feed
31
+ - jekyll-seo-tag
@@ -0,0 +1,39 @@
1
+ {% comment %}<!--
2
+ The pages_list include is a listing helper.
3
+ Usage:
4
+ 1) assign the 'pages_list' variable to a valid array of pages or posts.
5
+ 2) include JB/pages_list
6
+ example:
7
+ <ul>
8
+ {% assign pages_list = site.pages %}
9
+ {% include JB/pages_list %}
10
+ </ul>
11
+
12
+ Grouping: (optional):
13
+ assign the 'group' variable to constrain the list to only pages/posts
14
+ in the given group. Note you must define the group manually in the page/post
15
+ meta-data to use this feature.
16
+ Grouping is mainly helpful for non-post pages.
17
+ If you want to group posts, it's easier/better to tag them, then pass the tagged posts array.
18
+ i.e. site.tags.cool_tag (this returns an array of posts tagged: cool_tag)
19
+
20
+ This helper can be seen in use at: ../_layouts/default.html
21
+ -->{% endcomment %}
22
+
23
+ {% if site.JB.pages_list.provider == "custom" %}
24
+ {% include custom/pages_list %}
25
+ {% else %}
26
+ {% for node in pages_list %}
27
+ {% if node.title != null %}
28
+ {% if group == null or group == node.group %}
29
+ {% if page.url == node.url %}
30
+ <li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
31
+ {% else %}
32
+ <li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
33
+ {% endif %}
34
+ {% endif %}
35
+ {% endif %}
36
+ {% endfor %}
37
+ {% endif %}
38
+ {% assign pages_list = nil %}
39
+ {% assign group = nil %}
@@ -0,0 +1,66 @@
1
+ {% comment %}<!--
2
+ Collate_posts helper. Collated posts by year and month.
3
+ Usage:
4
+ 1) assign the 'posts_collate' variable to a valid array of posts.
5
+ 2) include JB/posts_collate
6
+ example:
7
+ {% assign posts_collate = site.posts %}
8
+ {% include JB/posts_collate %}
9
+
10
+ Ordering:
11
+ Posts are displayed in reverse chronological order.
12
+ For normal chronological order:
13
+ 1) Change the for loop to this:
14
+ => 'for post in site.posts reversed'
15
+ 2) Next make sure to change 'post.previous.date' to:
16
+ => 'post.next.date'
17
+
18
+ -->{% endcomment %}
19
+
20
+ {% if site.JB.posts_collate.provider == "custom" %}
21
+ {% include custom/posts_collate %}
22
+ {% else %}
23
+ {% for post in posts_collate %}
24
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
25
+ {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
26
+ {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
27
+ {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
28
+
29
+ {% if forloop.first %}
30
+
31
+
32
+ <div class="hat_title">
33
+ <h3>{{this_year}}</h3>
34
+ </div>
35
+ <div class="post_list">
36
+ <ul>
37
+
38
+ {% endif %}
39
+
40
+ <li>
41
+ <span>
42
+ {{ post.date | date: "%Y-%m-%e" }}
43
+ </span>
44
+ &raquo;
45
+ <a href="{{ BASE_PATH }}{{ post.url }}" ><div class="line-limit-length">{{ post.title }}</div></a>
46
+ </li>
47
+
48
+ {% if forloop.last %}
49
+ </ul>
50
+
51
+ {% else %}
52
+ {% if this_year != next_year %}
53
+ </ul>
54
+ </div>
55
+
56
+ <div class="hat_title">
57
+ <h3> {{next_year}}</h3>
58
+ </div>
59
+ <div class="post_list">
60
+ <ul>
61
+ {% else %}
62
+ {% endif %}
63
+ {% endif %}
64
+ {% endfor %}
65
+ {% endif %}
66
+ {% assign posts_collate = nil %}</div>
@@ -0,0 +1,19 @@
1
+ {% capture jbcache %}
2
+ {% if site.JB.setup.provider == "custom" %}
3
+ {% include custom/setup %}
4
+ {% else %}
5
+ {% if site.safe and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
6
+ {% assign BASE_PATH = site.JB.BASE_PATH %}
7
+ {% assign HOME_PATH = site.JB.BASE_PATH %}
8
+ {% else %}
9
+ {% assign BASE_PATH = nil %}
10
+ {% assign HOME_PATH = "/" %}
11
+ {% endif %}
12
+
13
+ {% if site.JB.ASSET_PATH %}
14
+ {% assign ASSET_PATH = site.JB.ASSET_PATH %}
15
+ {% else %}
16
+ {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ layout.theme.name }}{% endcapture %}
17
+ {% endif %}
18
+ {% endif %}
19
+ {% endcapture %}{% assign jbcache = nil %}
@@ -0,0 +1,33 @@
1
+ {% comment %}<!--
2
+ The tags_list include is a listing helper for tags.
3
+ Usage:
4
+ 1) assign the 'tags_list' variable to a valid array of tags.
5
+ 2) include JB/tags_list
6
+ example:
7
+ <ul>
8
+ {% assign tags_list = site.tags %}
9
+ {% include JB/tags_list %}
10
+ </ul>
11
+
12
+ Notes:
13
+ Tags can be either a Hash of tag objects (hashes) or an Array of tag-names (strings).
14
+ The encapsulating 'if' statement checks whether tags_list is a Hash or Array.
15
+ site.tags is a Hash while page.tags is an array.
16
+
17
+ This helper can be seen in use at: ../_layouts/default.html
18
+ -->{% endcomment %}
19
+
20
+ {% if site.JB.tags_list.provider == "custom" %}
21
+ {% include custom/tags_list %}
22
+ {% else %}
23
+ {% if tags_list.first[0] == null %}
24
+ {% for tag in tags_list %}
25
+ <li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
26
+ {% endfor %}
27
+ {% else %}
28
+ {% for tag in tags_list %}
29
+ <li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
30
+ {% endfor %}
31
+ {% endif %}
32
+ {% endif %}
33
+ {% assign tags_list = nil %}
@@ -0,0 +1 @@
1
+ <a href="{{ '/' | relative_url }}">{{ site.theme_config.back_home_text }}</a>
@@ -0,0 +1,4 @@
1
+ <div class="push"></div>
2
+ <div class="footer">
3
+ <span class="center"> {{ site.footer }} </span>
4
+ </div>
@@ -0,0 +1,6 @@
1
+ <script data-goatcounter="https://{{ site.goat_counter }}.goatcounter.com/count"
2
+ async src="//gc.zgo.at/count.js"></script>
3
+
4
+ <noscript>
5
+ <img src="https://{{ site.goat_counter }}.goatcounter.com/count?p=/test-img">
6
+ </noscript>
@@ -0,0 +1,32 @@
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
+
6
+ <title>
7
+ {%- if page.title -%}
8
+ {{ page.title }}
9
+ {%- else -%}
10
+ {{ site.title }}
11
+ {%- endif -%}
12
+ </title>
13
+
14
+ {%-seo title=false-%}
15
+ {%-feed_meta-%}
16
+
17
+ <link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | relative_url }}"/>
18
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}"/>
19
+ {% if site.mathjax and page.math%}
20
+ <script type="text/x-mathjax-config">
21
+ MathJax.Hub.Config({
22
+ tex2jax: {
23
+ skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
24
+ inlineMath: [['$','$']]
25
+ }
26
+ });
27
+
28
+ </script>
29
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
30
+ type="text/javascript"></script>
31
+ {% endif %}
32
+ </head>
@@ -0,0 +1,26 @@
1
+ <ul>
2
+ {%-for item in include.collection-%}
3
+ <li>
4
+ {%- if item.url -%}
5
+ <a href="{{ item.url }}" >{{ item.title }}</a>
6
+ {%- else -%}
7
+ {{ item.title }}
8
+ {%- endif -%}
9
+ </li>
10
+
11
+ {%-if item.post_list-%}
12
+ {%
13
+ include post_list.html
14
+ category=item.post_list.category
15
+ limit=item.post_list.limit
16
+ show_more=item.post_list.show_more
17
+ show_more_text=item.post_list.show_more_text
18
+ show_more_url=item.post_list.show_more_url
19
+ -%}
20
+ {%-endif-%}
21
+
22
+ {%-if item.entries-%}
23
+ {%-include menu_item.html collection=item.entries-%}
24
+ {%-endif-%}
25
+ {%-endfor-%}
26
+ </ul>
@@ -0,0 +1,25 @@
1
+ {%-if include.category-%}
2
+ {%-assign posts = site.categories[include.category]-%}
3
+ {%-else-%}
4
+ {%-assign posts = site.posts-%}
5
+ {%-endif-%}
6
+
7
+ {%-if include.limit and posts.size > include.limit-%}
8
+ {%-assign limit_exceeded = true-%}
9
+ {%-else-%}
10
+ {%-assign limit_exceeded = false-%}
11
+ {%-endif-%}
12
+
13
+ {%- if posts.size > 0 -%}
14
+ <ul>
15
+ {%- for post in posts limit: include.limit -%}
16
+ <li>
17
+ <span>{{- post.date | date: site.theme_config.date_format -}}</span>
18
+ <a href="{{ post.url | relative_url }}" ><span class="line-limit-length">{{ post.title | downcase }}</span></a>
19
+ </li>
20
+ {%- endfor -%}
21
+ {%- if include.show_more and limit_exceeded -%}
22
+ <li><a href="{{ include.show_more_url }}">{{ include.show_more_text | default: "Show more..." }}</a></li>
23
+ {%- endif -%}
24
+ </ul>
25
+ {%- endif -%}
@@ -0,0 +1,20 @@
1
+ <div>
2
+ {% if site.showTags and page.tag %}
3
+ <p>
4
+ <strong>Tags:</strong>
5
+ {% for item in page.tag %}
6
+ {{ item }}
7
+ {% endfor %}
8
+
9
+ {% if site.showCategory and page.category %}
10
+ <strong>Category:</strong>
11
+ {{ page.category }}
12
+ {% endif %}
13
+ </p>
14
+ {% endif %}
15
+ {% if page.beforeToc %}
16
+ <p>
17
+ <i>{{-page.beforeToc-}}</i>
18
+ </p>
19
+ {% endif %}
20
+ </div>
@@ -0,0 +1,96 @@
1
+ {% capture tocWorkspace %}
2
+ {% comment %}
3
+ Version 1.0.8
4
+ https://github.com/allejo/jekyll-toc
5
+
6
+ "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
7
+
8
+ Usage:
9
+ {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
10
+
11
+ Parameters:
12
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
13
+
14
+ Optional Parameters:
15
+ * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
16
+ * class (string) : '' - a CSS class assigned to the TOC
17
+ * id (string) : '' - an ID to assigned to the TOC
18
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
19
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
20
+ * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
21
+ * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
22
+ * baseurl (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
23
+ * anchor_class (string) : '' - add custom class(es) for each anchor element
24
+
25
+ Output:
26
+ An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
27
+ generate the table of contents and will NOT output the markdown given to it
28
+ {% endcomment %}
29
+
30
+ {% capture my_toc %}{% endcapture %}
31
+ {% assign orderedList = include.ordered | default: false %}
32
+ {% assign minHeader = include.h_min | default: 1 %}
33
+ {% assign maxHeader = include.h_max | default: 6 %}
34
+ {% assign nodes = include.html | split: '<h' %}
35
+ {% assign firstHeader = true %}
36
+
37
+ {% capture listModifier %}{% if orderedList %}1.{% else %}-{% endif %}{% endcapture %}
38
+
39
+ {% for node in nodes %}
40
+ {% if node == "" %}
41
+ {% continue %}
42
+ {% endif %}
43
+
44
+ {% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
45
+
46
+ {% if headerLevel < minHeader or headerLevel > maxHeader %}
47
+ {% continue %}
48
+ {% endif %}
49
+
50
+ {% if firstHeader %}
51
+ {% assign firstHeader = false %}
52
+ {% assign minHeader = headerLevel %}
53
+ {% endif %}
54
+
55
+ {% assign indentAmount = headerLevel | minus: minHeader %}
56
+ {% assign _workspace = node | split: '</h' %}
57
+
58
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
59
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
60
+ {% assign html_id = _idWorkspace[0] %}
61
+
62
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
63
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
64
+ {% assign html_class = _classWorkspace[0] %}
65
+
66
+ {% if html_class contains "no_toc" %}
67
+ {% continue %}
68
+ {% endif %}
69
+
70
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
71
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
72
+
73
+ {% assign space = '' %}
74
+ {% for i in (1..indentAmount) %}
75
+ {% assign space = space | prepend: ' ' %}
76
+ {% endfor %}
77
+
78
+ {% unless include.item_class == blank %}
79
+ {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
80
+ {% endunless %}
81
+
82
+ {% capture heading_body %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
83
+ {% capture my_toc %}{{ my_toc }}
84
+ {{ space }}{{ listModifier }} {{ listItemClass }} [{{ heading_body | replace: "|", "\|" }}]({% if include.baseurl %}{{ include.baseurl }}{% endif %}#{{ html_id }}){% if include.anchor_class %}{:.{{ include.anchor_class }}}{% endif %}{% endcapture %}
85
+ {% endfor %}
86
+
87
+ {% if include.class %}
88
+ {% capture my_toc %}{:.{{ include.class }}}
89
+ {{ my_toc | lstrip }}{% endcapture %}
90
+ {% endif %}
91
+
92
+ {% if include.id %}
93
+ {% capture my_toc %}{: #{{ include.id }}}
94
+ {{ my_toc | lstrip }}{% endcapture %}
95
+ {% endif %}
96
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% include JB/setup %}
6
+
7
+ <ul class>
8
+ {% assign tags_list = site.tags %}
9
+ {% include JB/tags_list %}
10
+ </ul>
11
+
12
+ <div class>
13
+ {% for tag in site.tags %}
14
+
15
+ <h3 id="{{ tag[0] }}-ref">{{ tag[0] }}</h3>
16
+ <ul>
17
+ {% assign pages_list = tag[1] %}
18
+ {% include JB/pages_list %}
19
+ </ul>
20
+
21
+
22
+ {% endfor %}
23
+ </div>
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: page
3
+ title: Archive
4
+ ---
5
+
6
+ {%-include back_link.html-%}
7
+
8
+ <h1>{{ page.title }}</h1>
9
+
10
+ {%-include post_list.html category=page.which_category-%}
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% assign posts_collate = site.posts %}
6
+ <div>
7
+ {% include JB/posts_collate %}
8
+ </div>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: 'en' }}">
3
+ {%- include head.html -%}
4
+ <body a="{{ site.theme_config.appearance | default: 'auto' }}">
5
+ <div class="container">
6
+ <main class="page-content" aria-label="Content">
7
+ <div class="w">
8
+ {{ content }}
9
+ </div>
10
+ </main>
11
+
12
+ {%-if site.goat_counter and jekyll.environment == "production"-%}
13
+ {%-include goat_counter.html-%}
14
+ {%-endif-%}
15
+
16
+ {% if page.custom_js %}
17
+ {% for js_file in page.custom_js %}
18
+ <script type="text/javascript" src="{{ site.baseurl }}/assets/js/{{ js_file }}.js"></script>
19
+ {% endfor %}
20
+ {% endif %}
21
+
22
+ {%-include footer.html-%}
23
+ </div>
24
+ </body>
25
+ </html>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <header>
5
+ <h1>{{ site.title }}</h1>
6
+ {%-if site.theme_config.show_description-%}
7
+ <p>{{ site.description }}</p>
8
+ {%-endif-%}
9
+ </header>
10
+
11
+ {%-include menu_item.html collection=site.data.menu.entries-%}
12
+
13
+ {{ content }}
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {%-include back_link.html-%}
6
+
7
+ <h1>{{ page.title }}</h1>
8
+
9
+ {{ content }}
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {%-include back_link.html-%}
6
+
7
+ <article>
8
+ <p class="post-meta">
9
+ <time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.date_format }}</time>
10
+ </p>
11
+
12
+ <h1>{{ page.title }}</h1>
13
+
14
+ {% if site.showTags %}
15
+ {%-include tags.html-%}
16
+ {% endif %}
17
+
18
+ {% if page.enableToc %}
19
+ <h3>Toc</h3>
20
+ {% include toc.html html=content %}
21
+ {% endif %}
22
+
23
+ {{ content }}
24
+ </article>
@@ -0,0 +1,94 @@
1
+ // -------------- THEME SWITCHER -------------- //
2
+ @mixin dark-appearance {
3
+ filter: invert(1);
4
+ img {
5
+ filter: invert(1);
6
+
7
+ &.ioda { filter: invert(0); }
8
+ }
9
+ }
10
+
11
+ body[a="dark"] { @include dark-appearance; }
12
+
13
+
14
+ @media (prefers-color-scheme: dark) {
15
+ body[a="auto"] { @include dark-appearance; }
16
+ }
17
+ // -------------------------------------------- //
18
+
19
+ // bg color is also needed in html in order to
20
+ // block body's background propagation
21
+ // see: https://stackoverflow.com/a/61265706
22
+ html, body { background: white; }
23
+
24
+ html { height: 100%; }
25
+
26
+ body {
27
+ color: black;
28
+ font-family: monospace;
29
+ font-size: 16px;
30
+ line-height: 1.4;
31
+ margin: 0;
32
+ min-height: 100%;
33
+ overflow-wrap: break-word;
34
+ }
35
+
36
+ .post-meta { text-align: right; }
37
+
38
+ h2, h3, h4, h5, h6 { margin-top: 3rem; }
39
+
40
+ hr { margin: 2rem 0; }
41
+
42
+ p { margin: 1rem 0; }
43
+
44
+ li { margin: 0.4rem 0; }
45
+
46
+ *:target { background: yellow; }
47
+
48
+ .w {
49
+ max-width: 640px;
50
+ margin: 0 auto;
51
+ padding: 4rem 2rem;
52
+ }
53
+
54
+ hr {
55
+ text-align: center;
56
+ border: 0;
57
+
58
+ &:before { content: '/////' }
59
+ &:after { content: attr(data-content) '/////' }
60
+ }
61
+
62
+ table { width: 100%; }
63
+
64
+ table, th, td {
65
+ border: thin solid black;
66
+ border-collapse: collapse;
67
+ padding: 0.4rem;
68
+ }
69
+
70
+ code {
71
+ color: white;
72
+ background: black;
73
+ }
74
+
75
+ div.highlighter-rouge code {
76
+ display: block;
77
+ overflow-x: auto;
78
+ white-space: pre-wrap;
79
+ padding: 1rem;
80
+ }
81
+
82
+ blockquote {
83
+ font-style: italic;
84
+ border: thin solid black;
85
+ padding: 1rem;
86
+
87
+ p { margin: 0; }
88
+ }
89
+
90
+ img {
91
+ max-width: 100%;
92
+ display: block;
93
+ margin: 0 auto;
94
+ }
@@ -0,0 +1,35 @@
1
+ .footer {
2
+ position: absolute;
3
+ height: 50px;
4
+ width: 100%;
5
+ bottom: 0;
6
+ clear: both;
7
+ }
8
+
9
+ .push {
10
+ height: 50px;
11
+ }
12
+
13
+ .container {
14
+ position: relative;
15
+ min-height: 100vh;
16
+ height: auto !important;
17
+ height: 100%;
18
+ flex: 1;
19
+ }
20
+
21
+ .center {
22
+ position: relative;
23
+ display: flex;
24
+ justify-content: center;
25
+ }
26
+
27
+ .line-limit-length {
28
+ overflow: hidden;
29
+ text-overflow: ellipsis;
30
+ white-space: nowrap;
31
+ width: 400px;
32
+ display: inline-block;
33
+ // height: 18.4px;
34
+ margin-bottom: -5px;
35
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+
4
+ @import "no-style-please";
5
+ @import "sim-css";
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ const p = document.createElement("p");
2
+ p.style.textAlign = "center";
3
+ p.style.fontSize = "18pt";
4
+ p.innerHTML = "C'mon, move your mouse!"
5
+ document.body.append(p);
6
+
7
+ document.addEventListener("mousemove", e => {
8
+ p.innerHTML = `mouseX: ${e.clientX}, mouseY: ${e.clientY}`;
9
+ });
File without changes
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sim-css
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - MegaMU
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-09-14 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.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ description:
28
+ email:
29
+ - sirmegamu@outlook.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE.txt
35
+ - README.md
36
+ - _config.yml
37
+ - _includes/JB/pages_list
38
+ - _includes/JB/posts_collate
39
+ - _includes/JB/setup
40
+ - _includes/JB/tags_list
41
+ - _includes/back_link.html
42
+ - _includes/footer.html
43
+ - _includes/goat_counter.html
44
+ - _includes/head.html
45
+ - _includes/menu_item.html
46
+ - _includes/post_list.html
47
+ - _includes/tags.html
48
+ - _includes/toc.html
49
+ - _layouts/alltags.html
50
+ - _layouts/archive.html
51
+ - _layouts/collect.html
52
+ - _layouts/default.html
53
+ - _layouts/home.html
54
+ - _layouts/page.html
55
+ - _layouts/post.html
56
+ - _sass/no-style-please.scss
57
+ - _sass/sim-css.scss
58
+ - assets/css/main.scss
59
+ - assets/img/example.png
60
+ - assets/img/logo.png
61
+ - assets/js/mouse_coords.js
62
+ - assets/js/sim-css.js
63
+ homepage: https://github.com/SirMegaMU/sim-css
64
+ licenses:
65
+ - MIT
66
+ metadata: {}
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubygems_version: 3.3.7
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: A Jekyll Theme base on no-style-please
86
+ test_files: []