jekyll-theme-2038 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6e36b3e2e83f7bcb181e2e52955ad5aebe66e0568ca738ca952bda8132b3e54
4
- data.tar.gz: f0482d83998fb2bba216cac15537d87ff6020165f44bb3bf700e5868c512d92a
3
+ metadata.gz: ed4cb704402433d6a197dca7e567417a8a2a87e5c15047f3c82ca4f964684239
4
+ data.tar.gz: 8a835d0475201b8040fb37d53be553aa2eafe1563a81e66878550bd41198d668
5
5
  SHA512:
6
- metadata.gz: f9d48c00633cfcb36578b5d842cce9235326f57561a7a4b5d4db68a22fe5f9e0013b8000444577a44a9cad997fcedb8d472a75433c06788ba3c6d09283212b34
7
- data.tar.gz: ee73d3ef353165941cba7c1dc305418d8595cf4bc60a11b216fb0806069c9fb5f3d787d849e76a412e6cd6613c88de13cb56caf892a7802b2301c32dd7404983
6
+ metadata.gz: e7b36cb24d6d3deaaf9f623bceda1a6fa83503d73cba78ac9e3942a74fccf01c834620d7caa8e13ccd03ba7e322eab518c77c5029677b26198aea40c06e8c450
7
+ data.tar.gz: 42d05ba759e9d344c80dd4e425db9aa567a01cb7819ed5c68a977d00c6033f4238e159d508de154599cb847faabd3c8ceb787f6aefa4f8f80fcd3a36e5255ad3
data/README.md CHANGED
@@ -1,13 +1,17 @@
1
1
  <img src="assets/wordmark.svg" align="right" />
2
2
 
3
- # 2038
3
+ [My blog with 2038](https://mat-ling.fit)
4
4
 
5
- ![Version 0.1.0 with Gem](https://img.shields.io/badge/gem-0.1.0-519dd9.svg)
5
+ # 2038
6
6
 
7
- [TOC]
7
+ [![Ver 0.1.2 with Gem](https://img.shields.io/badge/gem-0.1.2-519dd9.svg)][gem]
8
8
 
9
- > Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So, throw off the bowlines. Sail away from the safe harbour. Catch the trade winds in your sails. Explore. Dream. Discover.
10
- > 20 年后,比起已做之事,你将更因未做之事绝望。所以,抛掉缰绳,驶离避风港,乘信风远航吧。去探索,去梦想,去发现。
9
+ > Twenty years from now you will be more disappointed by the things that you
10
+ > didn't do than by the ones you did do. So, throw off the bowlines. Sail away
11
+ > from the safe harbour. Catch the trade winds in your sails. Explore. Dream.
12
+ > Discover.
13
+ > 20 年后,比起已做之事,你将更因未做之事绝望。
14
+ > 所以,抛掉缰绳,驶离避风港,乘信风远航吧。去探索,去梦想,去发现。
11
15
  >
12
16
  > —— Unknown 佚名
13
17
 
@@ -31,7 +35,7 @@
31
35
  Add this line to your Jekyll site's `Gemfile`:
32
36
 
33
37
  ```ruby
34
- gem "jekyll-theme2038"
38
+ gem 'jekyll-theme-2038'
35
39
  ```
36
40
 
37
41
  And add this line to your Jekyll site's `_config.yml`:
@@ -48,14 +52,27 @@ Or install it yourself as:
48
52
 
49
53
  $ gem install jekyll-theme-2038
50
54
 
51
- BUT WAIT! You have to put [translation file](https://github.com/0xis-cn/2038/blob/main/_data/theme-2038-i18n.yml) manually into `_data` directory of your site to correctly display information, for it cannot be included in the gem.
55
+ BUT WAIT! You have to put [translation file][i18n-pos] manually into `_data`
56
+ directory of your site to correctly display information, for it cannot be
57
+ included in the gem.
52
58
 
53
59
  ## Usage
54
60
 
55
-
61
+ (To be continued after I fixed most of bugs)
56
62
 
57
63
  ## Todo
58
64
 
59
65
  * Support of UnicodeMath or ASCIIMath
60
66
  * Right-to-left and vertical page
61
67
 
68
+ ## Contribution
69
+
70
+ * Submit an [issue][issue-pos] or [pull request][pr-pos]
71
+ * Contact me via [E-mail][mail-pos]
72
+
73
+ [gem]: https://rubygems.org/gems/jekyll-theme-2038
74
+ [i18n-pos]: https://github.com/0xis-cn/2038/blob/main/_data/theme-2038-i18n.yml
75
+ [issue-pos]: https://github.com/0xis-cn/2038/issues
76
+ [pr-pos]: https://github.com/0xis-cn/2038/pulls
77
+ [mail-pos]: mailto:mat-ling@139.com
78
+
@@ -8,7 +8,7 @@ $em-image: url(dot-dark.svg);
8
8
  $bgcolour: black;
9
9
  $base-colour: white;
10
10
  $card-colour: #1A1A1A;
11
- $indication-colour: #333;
11
+ $indication-colour: #2A2A2A;
12
12
  $normal-colour: #AAA;
13
13
  $levity-colour: #999;
14
14
  $heavy-colour: #E6E6DC;
@@ -1,7 +1,7 @@
1
1
  $bgcolour: #F6F5F0;
2
2
  $base-colour: black;
3
3
  $card-colour: white;
4
- $indication-colour: #D8D8D8;
4
+ $indication-colour: #E6E5E0;
5
5
  $normal-colour: #555;
6
6
  $levity-colour: #777;
7
7
  $heavy-colour: #1A1A1A;
@@ -32,10 +32,8 @@ $mobile-opacity: .7 !default;
32
32
  line-height: 2rem;
33
33
  font-size: 2rem;
34
34
  speak: none;
35
-
36
- &::marker {
37
- content: '';
38
- }
35
+ list-style: none;
36
+ z-index: 100;
39
37
  }
40
38
 
41
39
  a {
@@ -69,8 +67,13 @@ $mobile-opacity: .7 !default;
69
67
  }
70
68
 
71
69
  .ml-drawer {
72
- width: 50%;
73
- box-sizing: border-box
70
+ width: calc(50% - 490px);
71
+ }
72
+ }
73
+
74
+ @media screen and (min-width: 1600px) {
75
+ .ml-drawer {
76
+ width: 18%;
74
77
  }
75
78
  }
76
79
 
@@ -61,9 +61,6 @@ body, button, input, select, textarea, .temp-lang {
61
61
 
62
62
  .ml-article {
63
63
  min-height: 30%;
64
- position: relative;
65
- top: 0;
66
- left: 0;
67
64
  }
68
65
 
69
66
  .ml-title {
@@ -1,6 +1,7 @@
1
1
  $header-height: 9em !default;
2
- $middle-width: 960px !default;
3
2
  $link-change-time: .3s !default;
3
+ $middle-width: 960px !default;
4
+ // TIPS: 若调整 $middle-width 请同步修改 drawer.scss 中 .ml-drawer 之宽度
4
5
 
5
6
  .ml-main {
6
7
  margin: 0 auto;
@@ -8,10 +9,6 @@ $link-change-time: .3s !default;
8
9
  max-width: $middle-width
9
10
  }
10
11
 
11
- .ml-drawer {
12
- padding-right: ($middle-width / 2) + 10px
13
- }
14
-
15
12
  .ml-card-list dt::before {
16
13
  content: '';
17
14
  display: inline-block;
@@ -91,9 +88,6 @@ $link-change-time: .3s !default;
91
88
  .ml-main {
92
89
  max-width: 60%;
93
90
  }
94
- .ml-drawer {
95
- padding-right: -32%
96
- }
97
91
  .ml-card-anchor {
98
92
  width: 30rem;
99
93
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-2038
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 物灵
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-01 00:00:00.000000000 Z
11
+ date: 2021-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll