@ywal123456/jskim 0.5.0 → 0.5.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.
@@ -0,0 +1,286 @@
1
+ /* JSKim ユーザーガイド print CSS(PDF / HTML 共通) */
2
+
3
+ @page {
4
+ size: A4 portrait;
5
+ }
6
+
7
+ * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ html {
12
+ font-size: 10.5pt;
13
+ -webkit-print-color-adjust: exact;
14
+ print-color-adjust: exact;
15
+ }
16
+
17
+ body {
18
+ margin: 0;
19
+ padding: 0;
20
+ color: #1a1a1a;
21
+ font-family:
22
+ "Yu Gothic",
23
+ "YuGothic",
24
+ "Hiragino Kaku Gothic ProN",
25
+ "Hiragino Sans",
26
+ "Noto Sans CJK JP",
27
+ "Noto Sans JP",
28
+ Meiryo,
29
+ sans-serif;
30
+ line-height: 1.65;
31
+ overflow-wrap: anywhere;
32
+ word-break: break-word;
33
+ }
34
+
35
+ .cover {
36
+ break-after: page;
37
+ page-break-after: always;
38
+ padding: 10mm 4mm 6mm;
39
+ }
40
+
41
+ .cover h1 {
42
+ font-size: 26pt;
43
+ font-weight: 700;
44
+ margin: 0 0 8mm;
45
+ border: none;
46
+ page-break-after: avoid;
47
+ }
48
+
49
+ .cover .version {
50
+ font-size: 14pt;
51
+ margin: 0 0 4mm;
52
+ color: #333;
53
+ }
54
+
55
+ .cover .doc-kind {
56
+ font-size: 11pt;
57
+ margin: 0 0 12mm;
58
+ color: #555;
59
+ }
60
+
61
+ .cover .cover-section {
62
+ margin-top: 6mm;
63
+ max-width: 160mm;
64
+ }
65
+
66
+ .cover .cover-section h2 {
67
+ font-size: 12pt;
68
+ margin: 0 0 3mm;
69
+ padding-bottom: 1.5mm;
70
+ border-bottom: 1px solid #ccc;
71
+ page-break-after: avoid;
72
+ }
73
+
74
+ .cover .cover-section > *:last-child {
75
+ margin-bottom: 0;
76
+ }
77
+
78
+ .toc {
79
+ break-after: page;
80
+ page-break-after: always;
81
+ }
82
+
83
+ .toc h1 {
84
+ font-size: 18pt;
85
+ margin: 0 0 8mm;
86
+ padding-bottom: 3mm;
87
+ border-bottom: 2px solid #222;
88
+ page-break-after: avoid;
89
+ }
90
+
91
+ .toc ol {
92
+ margin: 0;
93
+ padding-left: 0;
94
+ list-style: none;
95
+ font-size: 11pt;
96
+ line-height: 1.95;
97
+ }
98
+
99
+ .toc .toc-num {
100
+ font-variant-numeric: tabular-nums;
101
+ margin-right: 0.35em;
102
+ }
103
+
104
+ .toc a {
105
+ color: #0645ad;
106
+ text-decoration: underline;
107
+ }
108
+
109
+ /* toc の break-after で次ページへ。連続 chapter のみ break-before */
110
+ .chapter + .chapter {
111
+ break-before: page;
112
+ page-break-before: always;
113
+ }
114
+
115
+ .chapter > h1:first-child {
116
+ page-break-before: avoid;
117
+ }
118
+
119
+ h1 {
120
+ font-size: 17pt;
121
+ margin: 0 0 7mm;
122
+ padding-bottom: 2.5mm;
123
+ border-bottom: 2px solid #222;
124
+ page-break-after: avoid;
125
+ break-after: avoid;
126
+ }
127
+
128
+ h2 {
129
+ font-size: 13pt;
130
+ margin: 7mm 0 3mm;
131
+ page-break-after: avoid;
132
+ break-after: avoid;
133
+ }
134
+
135
+ h3 {
136
+ font-size: 11.5pt;
137
+ margin: 5mm 0 2mm;
138
+ page-break-after: avoid;
139
+ break-after: avoid;
140
+ }
141
+
142
+ h4,
143
+ h5,
144
+ h6 {
145
+ font-size: 10.5pt;
146
+ margin: 4mm 0 2mm;
147
+ page-break-after: avoid;
148
+ }
149
+
150
+ p {
151
+ margin: 0 0 3mm;
152
+ orphans: 3;
153
+ widows: 3;
154
+ }
155
+
156
+ ul,
157
+ ol {
158
+ margin: 0 0 3mm;
159
+ padding-left: 6mm;
160
+ }
161
+
162
+ li {
163
+ margin-bottom: 1.2mm;
164
+ }
165
+
166
+ li > ul,
167
+ li > ol {
168
+ margin-top: 1mm;
169
+ margin-bottom: 1mm;
170
+ }
171
+
172
+ blockquote {
173
+ margin: 3mm 0;
174
+ padding: 2.5mm 4mm;
175
+ border-left: 3px solid #555;
176
+ background: #f5f5f5;
177
+ color: #222;
178
+ }
179
+
180
+ blockquote p:last-child {
181
+ margin-bottom: 0;
182
+ }
183
+
184
+ pre {
185
+ margin: 3mm 0 4mm;
186
+ padding: 3mm 3.5mm;
187
+ background: #f3f3f3;
188
+ border: 1px solid #ccc;
189
+ border-radius: 2px;
190
+ white-space: pre-wrap;
191
+ overflow-wrap: anywhere;
192
+ word-break: break-all;
193
+ font-size: 8.4pt;
194
+ line-height: 1.45;
195
+ page-break-inside: auto;
196
+ }
197
+
198
+ code {
199
+ font-family:
200
+ Consolas,
201
+ "Cascadia Mono",
202
+ "SFMono-Regular",
203
+ "Noto Sans Mono CJK JP",
204
+ "Yu Gothic",
205
+ monospace;
206
+ font-size: 0.92em;
207
+ background: #efefef;
208
+ padding: 0.05em 0.25em;
209
+ border-radius: 2px;
210
+ }
211
+
212
+ pre code {
213
+ background: transparent;
214
+ padding: 0;
215
+ font-size: inherit;
216
+ border-radius: 0;
217
+ }
218
+
219
+ table {
220
+ width: 100%;
221
+ border-collapse: collapse;
222
+ margin: 3mm 0 5mm;
223
+ font-size: 9pt;
224
+ table-layout: fixed;
225
+ }
226
+
227
+ thead {
228
+ display: table-header-group;
229
+ }
230
+
231
+ th,
232
+ td {
233
+ border: 1px solid #aaa;
234
+ padding: 1.5mm 2mm;
235
+ vertical-align: top;
236
+ text-align: left;
237
+ overflow-wrap: anywhere;
238
+ word-break: break-word;
239
+ }
240
+
241
+ th {
242
+ background: #eaeaea;
243
+ font-weight: 600;
244
+ }
245
+
246
+ tr {
247
+ page-break-inside: avoid;
248
+ break-inside: avoid;
249
+ }
250
+
251
+ hr {
252
+ border: none;
253
+ border-top: 1px solid #ccc;
254
+ margin: 6mm 0;
255
+ }
256
+
257
+ a {
258
+ color: #0645ad;
259
+ text-decoration: underline;
260
+ }
261
+
262
+ .path-ref {
263
+ font-family:
264
+ Consolas,
265
+ "Cascadia Mono",
266
+ "Yu Gothic",
267
+ monospace;
268
+ font-size: 0.9em;
269
+ }
270
+
271
+ @media screen {
272
+ body {
273
+ max-width: 210mm;
274
+ margin: 0 auto;
275
+ padding: 12mm;
276
+ background: #fff;
277
+ }
278
+
279
+ .cover,
280
+ .toc,
281
+ .chapter {
282
+ border-bottom: 1px dashed #ccc;
283
+ margin-bottom: 10mm;
284
+ padding-bottom: 8mm;
285
+ }
286
+ }