styless 0.0.2 → 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: a000a019eafbb5107dc5c098e10a617f41717382b6c1c26f2021d994afd33368
4
- data.tar.gz: 0e37e1a940f5b890014f4828166cb7d4775ac38d29f75c83a3d1fbfaa565d611
3
+ metadata.gz: e5bbd70cd6fa6c6a5a9fc3cda0d3db4999159d688b052fc8001bf24b15bdc5b1
4
+ data.tar.gz: 97d3a5dc14569c4915c9b36dd60b651a9c9dd3f0d905d91b23801bb061834e25
5
5
  SHA512:
6
- metadata.gz: 7deecbca41906f1f99f4185025179da12f1de144ac73169c4d2e2345cf416725b1d088f7c163cc716887afd9a6538a9b43cd70084dae815db97a884d3f7877c3
7
- data.tar.gz: 3b1f52e0cdfb7ff94bf1ff88d945def5d862d6343f5478d391f67fa9158fad903918b1d71f76315f79b567dc88784b495c06844986f2a6659b1a42512f6241a6
6
+ metadata.gz: c2d0a7e7508588746258d85f4ea131b189670861a4a0d843a2cd4b5e9d3568accad29122690724be1bb10b30c30ae2873e1b39395b6528e5829313e0db096065
7
+ data.tar.gz: 1fa8355e504ecf4e7be64a66f61b5e790b632179c61b4a17de93843fb705b2b761b2f4d61cabdb6c8d957f54548e00d95ceeb902c9c00ec5e716e7a8bd4003ce
data/README.md CHANGED
@@ -1,30 +1,27 @@
1
- <br><br>
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)
4
+
2
5
  <p align="center">
3
6
  <h1 align="center">Styless</h1>
4
- <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>
5
- <p align="center"><strong><a href="https://pmarsceill.github.io/just-the-docs/">See it in action!</a></strong></p>
6
- <br><br><br>
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>
8
+ <p align="center"><strong><a target="_blank" href="https://moonharelabs.github.io/styless">See it in action!</a></strong></p>
7
9
  </p>
8
10
 
9
- ## Getting started
10
- ### Dependencies
11
- 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/).
11
+ |![](screenshot.jpg)|![](dark-screenshot.jpg)|
12
+ |-|-|
12
13
 
13
- ### Quick start: Use as a GitHub Pages remote theme
14
-
15
- 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/)
16
- ```yaml
17
- remote_theme: moonharelabs/styless
18
- ```
19
- <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
20
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.
21
18
 
22
19
  ### Local installation: Use the gem-based theme
23
20
 
24
21
  1. Install the Ruby Gem
25
22
  ```bash
26
23
  $ gem install styless
27
- ```
24
+ ```
28
25
  ```yaml
29
26
  # .. or add it to your your Jekyll site’s Gemfile
30
27
  gem "styless"
@@ -43,29 +40,24 @@ $ bundle exec jekyll serve
43
40
  ```
44
41
  4. Point your web browser to [http://localhost:4000](http://localhost:4000)
45
42
 
46
- 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
47
44
 
48
- ### Configure Styless
49
-
50
- - [See configuration options](configuration)
51
-
52
- ---
53
-
54
- ## About the project
55
-
56
- Styless is &copy; 2021-{{ "now" | date: "%Y" }} by @ksengine.
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.
57
46
 
58
- ### License
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
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>
59
52
 
60
- Styless is distributed by an [Unlicense License](https://github.com/moonharelabs/styless/tree/main/LICENSE).
53
+ ### Customize Styless
61
54
 
62
- ### Contributing
55
+ You can use any css framework with styless. Just add your libraries to `_includes/custom-head.html file in your site.
63
56
 
64
- When contributing to this repository, please first discuss the change you wish to make via issue,
65
- 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
66
58
 
67
- ### 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).
68
60
 
69
- Styless is committed to fostering a welcoming community.
61
+ ## License
70
62
 
71
- [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>
@@ -0,0 +1,8 @@
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,16 +1,9 @@
1
1
  <!DOCTYPE html>
2
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
-
8
- {% seo %}
9
- <link rel="stylesheet" href="{{ "/assets/css/styless.css?v=" | append: site.github.build_revision | relative_url }}">
10
- </head>
11
- <body>
12
-
13
- {{ content }}
14
-
15
- </body>
3
+ <head>
4
+ {% include head.html %}
5
+ </head>
6
+ <body>
7
+ {{ content }}
8
+ </body>
16
9
  </html>
data/_layouts/page.html CHANGED
@@ -1,14 +1,4 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <div style='
5
- font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
6
- font-size: 16px;
7
- line-height: 1.5;
8
- word-wrap: break-word;
9
- max-width: 1012px;
10
- margin: 32px auto 32px auto;
11
- padding-right: 16px;
12
- padding-left: 16px;'>
13
- {{ content }}
14
- </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: 0.0.2
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-02-18 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,20 +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
72
+ - _includes/head.html
73
+ - _includes/normalize.html
98
74
  - _layouts/default.html
99
75
  - _layouts/home.html
100
76
  - _layouts/page.html
101
77
  - _layouts/post.html
102
- - _sass/styless.scss
103
- - assets/css/styless.scss
104
- - assets/images/.gitkeep
105
78
  homepage: https://github.com/moonharelabs/styless
106
79
  licenses:
107
80
  - Unlicense
@@ -122,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
95
  - !ruby/object:Gem::Version
123
96
  version: '0'
124
97
  requirements: []
125
- rubygems_version: 3.0.3
98
+ rubygems_version: 3.0.3.1
126
99
  signing_key:
127
100
  specification_version: 4
128
101
  summary: The Unstyled Jekyll Theme.
data/_sass/styless.scss DELETED
@@ -1,391 +0,0 @@
1
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
-
3
- html {
4
- line-height: 1.15;
5
- -webkit-text-size-adjust: 100%
6
- }
7
-
8
- body {
9
- margin: 0
10
- }
11
-
12
- main {
13
- display: block
14
- }
15
-
16
- h1 {
17
- font-size: 2em;
18
- margin: .67em 0
19
- }
20
-
21
- hr {
22
- box-sizing: content-box;
23
- height: 0;
24
- overflow: visible
25
- }
26
-
27
- pre {
28
- font-family: monospace, monospace;
29
- font-size: 1em
30
- }
31
-
32
- a {
33
- background-color: transparent
34
- }
35
-
36
- abbr[title] {
37
- border-bottom: none;
38
- text-decoration: underline;
39
- text-decoration: underline dotted
40
- }
41
-
42
- b,
43
- strong {
44
- font-weight: bolder
45
- }
46
-
47
- code,
48
- kbd,
49
- samp {
50
- font-family: monospace, monospace;
51
- font-size: 1em
52
- }
53
-
54
- small {
55
- font-size: 80%
56
- }
57
-
58
- sub,
59
- sup {
60
- font-size: 75%;
61
- line-height: 0;
62
- position: relative;
63
- vertical-align: baseline
64
- }
65
-
66
- sub {
67
- bottom: -.25em
68
- }
69
-
70
- sup {
71
- top: -.5em
72
- }
73
-
74
- img {
75
- border-style: none
76
- }
77
-
78
- button,
79
- input,
80
- optgroup,
81
- select,
82
- textarea {
83
- font-family: inherit;
84
- font-size: 100%;
85
- line-height: 1.15;
86
- margin: 0
87
- }
88
-
89
- button,
90
- input {
91
- overflow: visible
92
- }
93
-
94
- button,
95
- select {
96
- text-transform: none
97
- }
98
-
99
- [type=button],
100
- [type=reset],
101
- [type=submit],
102
- button {
103
- -webkit-appearance: button
104
- }
105
-
106
- [type=button]::-moz-focus-inner,
107
- [type=reset]::-moz-focus-inner,
108
- [type=submit]::-moz-focus-inner,
109
- button::-moz-focus-inner {
110
- border-style: none;
111
- padding: 0
112
- }
113
-
114
- [type=button]:-moz-focusring,
115
- [type=reset]:-moz-focusring,
116
- [type=submit]:-moz-focusring,
117
- button:-moz-focusring {
118
- outline: 1px dotted ButtonText
119
- }
120
-
121
- fieldset {
122
- padding: .35em .75em .625em
123
- }
124
-
125
- legend {
126
- box-sizing: border-box;
127
- color: inherit;
128
- display: table;
129
- max-width: 100%;
130
- padding: 0;
131
- white-space: normal
132
- }
133
-
134
- progress {
135
- vertical-align: baseline
136
- }
137
-
138
- textarea {
139
- overflow: auto
140
- }
141
-
142
- [type=checkbox],
143
- [type=radio] {
144
- box-sizing: border-box;
145
- padding: 0
146
- }
147
-
148
- [type=number]::-webkit-inner-spin-button,
149
- [type=number]::-webkit-outer-spin-button {
150
- height: auto
151
- }
152
-
153
- [type=search] {
154
- -webkit-appearance: textfield;
155
- outline-offset: -2px
156
- }
157
-
158
- [type=search]::-webkit-search-decoration {
159
- -webkit-appearance: none
160
- }
161
-
162
- ::-webkit-file-upload-button {
163
- -webkit-appearance: button;
164
- font: inherit
165
- }
166
-
167
- details {
168
- display: block
169
- }
170
-
171
- summary {
172
- display: list-item
173
- }
174
-
175
- template {
176
- display: none
177
- }
178
-
179
- [hidden] {
180
- display: none
181
- }
182
-
183
- .highlight table td { padding: 5px; padding: 0.3125rem}
184
- .highlight table pre { margin: 0; }
185
- .highlight .cm {
186
- color: #999988;
187
- font-style: italic;
188
- }
189
- .highlight .cp {
190
- color: #999999;
191
- font-weight: bold;
192
- }
193
- .highlight .c1 {
194
- color: #999988;
195
- font-style: italic;
196
- }
197
- .highlight .cs {
198
- color: #999999;
199
- font-weight: bold;
200
- font-style: italic;
201
- }
202
- .highlight .c, .highlight .cd {
203
- color: #999988;
204
- font-style: italic;
205
- }
206
- .highlight .err {
207
- color: #a61717;
208
- background-color: #e3d2d2;
209
- }
210
- .highlight .gd {
211
- color: #000000;
212
- background-color: #ffdddd;
213
- }
214
- .highlight .ge {
215
- color: #000000;
216
- font-style: italic;
217
- }
218
- .highlight .gr {
219
- color: #aa0000;
220
- }
221
- .highlight .gh {
222
- color: #999999;
223
- }
224
- .highlight .gi {
225
- color: #000000;
226
- background-color: #ddffdd;
227
- }
228
- .highlight .go {
229
- color: #888888;
230
- }
231
- .highlight .gp {
232
- color: #555555;
233
- }
234
- .highlight .gs {
235
- font-weight: bold;
236
- }
237
- .highlight .gu {
238
- color: #aaaaaa;
239
- }
240
- .highlight .gt {
241
- color: #aa0000;
242
- }
243
- .highlight .kc {
244
- color: #000000;
245
- font-weight: bold;
246
- }
247
- .highlight .kd {
248
- color: #000000;
249
- font-weight: bold;
250
- }
251
- .highlight .kn {
252
- color: #000000;
253
- font-weight: bold;
254
- }
255
- .highlight .kp {
256
- color: #000000;
257
- font-weight: bold;
258
- }
259
- .highlight .kr {
260
- color: #000000;
261
- font-weight: bold;
262
- }
263
- .highlight .kt {
264
- color: #445588;
265
- font-weight: bold;
266
- }
267
- .highlight .k, .highlight .kv {
268
- color: #000000;
269
- font-weight: bold;
270
- }
271
- .highlight .mf {
272
- color: #009999;
273
- }
274
- .highlight .mh {
275
- color: #009999;
276
- }
277
- .highlight .il {
278
- color: #009999;
279
- }
280
- .highlight .mi {
281
- color: #009999;
282
- }
283
- .highlight .mo {
284
- color: #009999;
285
- }
286
- .highlight .m, .highlight .mb, .highlight .mx {
287
- color: #009999;
288
- }
289
- .highlight .sb {
290
- color: #d14;
291
- }
292
- .highlight .sc {
293
- color: #d14;
294
- }
295
- .highlight .sd {
296
- color: #d14;
297
- }
298
- .highlight .s2 {
299
- color: #d14;
300
- }
301
- .highlight .se {
302
- color: #d14;
303
- }
304
- .highlight .sh {
305
- color: #d14;
306
- }
307
- .highlight .si {
308
- color: #d14;
309
- }
310
- .highlight .sx {
311
- color: #d14;
312
- }
313
- .highlight .sr {
314
- color: #009926;
315
- }
316
- .highlight .s1 {
317
- color: #d14;
318
- }
319
- .highlight .ss {
320
- color: #990073;
321
- }
322
- .highlight .s {
323
- color: #d14;
324
- }
325
- .highlight .na {
326
- color: #008080;
327
- }
328
- .highlight .bp {
329
- color: #999999;
330
- }
331
- .highlight .nb {
332
- color: #0086B3;
333
- }
334
- .highlight .nc {
335
- color: #445588;
336
- font-weight: bold;
337
- }
338
- .highlight .no {
339
- color: #008080;
340
- }
341
- .highlight .nd {
342
- color: #3c5d5d;
343
- font-weight: bold;
344
- }
345
- .highlight .ni {
346
- color: #800080;
347
- }
348
- .highlight .ne {
349
- color: #990000;
350
- font-weight: bold;
351
- }
352
- .highlight .nf {
353
- color: #990000;
354
- font-weight: bold;
355
- }
356
- .highlight .nl {
357
- color: #990000;
358
- font-weight: bold;
359
- }
360
- .highlight .nn {
361
- color: #555555;
362
- }
363
- .highlight .nt {
364
- color: #000080;
365
- }
366
- .highlight .vc {
367
- color: #008080;
368
- }
369
- .highlight .vg {
370
- color: #008080;
371
- }
372
- .highlight .vi {
373
- color: #008080;
374
- }
375
- .highlight .nv {
376
- color: #008080;
377
- }
378
- .highlight .ow {
379
- color: #000000;
380
- font-weight: bold;
381
- }
382
- .highlight .o {
383
- color: #000000;
384
- font-weight: bold;
385
- }
386
- .highlight .w {
387
- color: #bbbbbb;
388
- }
389
- .highlight {
390
- background-color: #f8f8f8;
391
- }
@@ -1,4 +0,0 @@
1
- ---
2
- ---
3
-
4
- @import "styless";
@@ -1 +0,0 @@
1
-