nattoppet 2.1.0 → 4.0.1

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.
@@ -1,3 +1,21 @@
1
+ <!doctype html>
2
+ <meta name=viewport content="width=device-width, initial-scale=1.0">
3
+ <meta name=author content="ylxdzsw@gmail.com">
4
+ <meta charset="utf-8">
5
+ <title>[title] | ylxdzsw's blog</title>
6
+
7
+ <style>
8
+ [mixin] tml.css
9
+ </style>
10
+
11
+ <script>
12
+ [mixin] tml.js
13
+ </script>
14
+
15
+ [eval*] this.index = 0
16
+
17
+ [#slot]
18
+
1
19
  [eval] this.index > 0 ? "</article>" : ''
2
20
 
3
21
  <div class="end-symbol">* * * * *</div>
@@ -9,4 +27,4 @@ const header = title.trim() ? `<h2><a id="${id}" href="#${id}">${interpret(title
9
27
  const close = this.index > 1 ? "</article>" : ''
10
28
  close + "<article>" + header
11
29
 
12
- [mixin] @std/common.ymd
30
+ [mixin] common.ymd
package/vue.css ADDED
@@ -0,0 +1,91 @@
1
+ html {
2
+ font-family: sans-serif;
3
+ line-height: 1.5;
4
+ text-align: justify;
5
+ hyphens: auto;
6
+ color: #33333d;
7
+ }
8
+ @media (max-width: 625px) {
9
+ html {
10
+ font-size: 15px;
11
+ }
12
+ }
13
+ body {
14
+ max-width: 720px;
15
+ margin: 0 auto;
16
+ padding: 0 1rem 1rem;
17
+ }
18
+ @media (max-width: 625px) {
19
+ body {
20
+ padding: 0 0.8rem 0.8rem;
21
+ }
22
+ }
23
+ h2,
24
+ h3 {
25
+ margin: 2rem 0 0;
26
+ position: relative;
27
+ }
28
+ h2:before,
29
+ h3:before {
30
+ content: "#";
31
+ color: #42b983;
32
+ position: absolute;
33
+ left: -1rem;
34
+ top: 0;
35
+ font-weight: bold;
36
+ opacity: 0;
37
+ }
38
+ @media (min-width: 625px) {
39
+ h2:hover:before,
40
+ h3:hover:before {
41
+ opacity: 1;
42
+ }
43
+ }
44
+ h2 a,
45
+ h3 a {
46
+ color: #2c3e50;
47
+ }
48
+ h2 {
49
+ font-family: serif;
50
+ padding-bottom: 0.7rem;
51
+ border-bottom: 0.5px solid #ddd;
52
+ }
53
+ h2:before {
54
+ top: 0.1em;
55
+ font-size: 0.9em;
56
+ }
57
+ pre {
58
+ border: 1px solid #bcd;
59
+ background-color: #ebf1f5;
60
+ padding: 0.8rem;
61
+ overflow-x: auto;
62
+ }
63
+ pre code {
64
+ font-size: 0.8rem;
65
+ }
66
+ code {
67
+ font-family: monospace;
68
+ color: #222;
69
+ }
70
+ ul ol {
71
+ padding-left: 1.5rem;
72
+ margin: 1.2rem 0;
73
+ }
74
+ a {
75
+ color: #42b983;
76
+ text-decoration: none;
77
+ }
78
+ a:hover {
79
+ text-decoration: underline;
80
+ }
81
+ blockquote {
82
+ margin: 1.2rem 0;
83
+ padding: 0 1rem;
84
+ border-left: 4px solid #42b983;
85
+ }
86
+ blockquote.warn {
87
+ border-left-color: tomato;
88
+ }
89
+ blockquote p {
90
+ margin-left: 0;
91
+ }
package/vue.ymd ADDED
@@ -0,0 +1,23 @@
1
+ <!doctype html>
2
+ <meta name=viewport content="width=device-width, initial-scale=1.0">
3
+ <meta name=author content="ylxdzsw@gmail.com">
4
+ <meta charset="utf-8">
5
+ <title>[title] | ylxdzsw's blog</title>
6
+
7
+ <style>
8
+ [mixin] vue.css
9
+ </style>
10
+
11
+ [eval*] this.index = 0
12
+
13
+ [#slot]
14
+
15
+ [h2]=
16
+ const id = 'sec' + this.index++
17
+ `<h2><a id="${id}" href="#${id}">${interpret(capture_until('\n'))}</a></h2>`
18
+
19
+ [h3]=
20
+ const id = 'sec' + this.index++
21
+ `<h3><a id="${id}" href="#${id}">${interpret(capture_until('\n'))}</a></h3>`
22
+
23
+ [mixin] common.ymd
package/.editorconfig DELETED
@@ -1,15 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 4
6
- end_of_line = lf
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
10
-
11
- [*.md]
12
- trim_trailing_whitespace = false
13
-
14
- [package.json]
15
- indent_size = 2