mint 0.7.3 → 0.8.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 +7 -0
- data/Gemfile +23 -14
- data/LICENSE +22 -0
- data/README.md +82 -56
- data/bin/mint +47 -10
- data/bin/mint-epub +1 -4
- data/config/templates/base/style.css +187 -0
- data/config/templates/default/css/style.css +126 -79
- data/config/templates/default/layout.erb +10 -0
- data/config/templates/default/style.css +237 -0
- data/config/templates/garden/layout.erb +38 -0
- data/config/templates/garden/style.css +303 -0
- data/config/templates/newspaper/layout.erb +16 -0
- data/config/templates/nord/layout.erb +11 -0
- data/config/templates/nord/style.css +339 -0
- data/config/templates/nord-dark/layout.erb +11 -0
- data/config/templates/nord-dark/style.css +339 -0
- data/config/templates/protocol/layout.erb +9 -0
- data/config/templates/protocol/style.css +25 -0
- data/config/templates/zen/layout.erb +11 -0
- data/config/templates/zen/style.css +114 -0
- data/lib/mint/command_line.rb +253 -111
- data/lib/mint/css.rb +11 -4
- data/lib/mint/css_template.rb +37 -0
- data/lib/mint/document.rb +193 -43
- data/lib/mint/helpers.rb +50 -10
- data/lib/mint/layout.rb +2 -3
- data/lib/mint/markdown_template.rb +47 -0
- data/lib/mint/mint.rb +181 -114
- data/lib/mint/plugin.rb +3 -3
- data/lib/mint/plugins/epub.rb +1 -2
- data/lib/mint/resource.rb +19 -9
- data/lib/mint/style.rb +10 -14
- data/lib/mint/version.rb +1 -1
- data/lib/mint.rb +1 -0
- data/man/mint.1 +135 -0
- data/spec/cli/README.md +99 -0
- data/spec/cli/argument_parsing_spec.rb +207 -0
- data/spec/cli/bin_integration_spec.rb +348 -0
- data/spec/cli/configuration_management_spec.rb +363 -0
- data/spec/cli/full_workflow_integration_spec.rb +527 -0
- data/spec/cli/publish_workflow_spec.rb +368 -0
- data/spec/cli/template_management_spec.rb +300 -0
- data/spec/css_spec.rb +1 -1
- data/spec/document_spec.rb +105 -68
- data/spec/helpers_spec.rb +42 -42
- data/spec/mint_spec.rb +104 -80
- data/spec/plugin_spec.rb +86 -88
- data/spec/run_cli_tests.rb +95 -0
- data/spec/spec_helper.rb +8 -1
- data/spec/style_spec.rb +18 -16
- data/spec/support/cli_helpers.rb +169 -0
- data/spec/support/fixtures/content-2.md +16 -0
- data/spec/support/matchers.rb +1 -1
- metadata +145 -167
- data/config/syntax.yaml +0 -71
- data/config/templates/base/style.sass +0 -144
- data/config/templates/default/layout.haml +0 -8
- data/config/templates/default/style.sass +0 -36
- data/config/templates/protocol/layout.haml +0 -7
- data/config/templates/protocol/style.sass +0 -20
- data/config/templates/zen/css/style.css +0 -145
- data/config/templates/zen/layout.haml +0 -7
- data/config/templates/zen/style.sass +0 -24
- data/features/config.feature +0 -21
- data/features/plugins/epub.feature +0 -23
- data/features/publish.feature +0 -73
- data/features/support/env.rb +0 -15
- data/features/templates.feature +0 -79
- data/spec/command_line_spec.rb +0 -87
- data/spec/plugins/epub_spec.rb +0 -242
@@ -0,0 +1,303 @@
|
|
1
|
+
/* Garden Template - Digital Garden with Navigation */
|
2
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
3
|
+
|
4
|
+
* {
|
5
|
+
margin: 0;
|
6
|
+
padding: 0;
|
7
|
+
box-sizing: border-box;
|
8
|
+
}
|
9
|
+
|
10
|
+
body {
|
11
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
12
|
+
line-height: 1.6;
|
13
|
+
color: #1a1a1a;
|
14
|
+
background-color: #fafafa;
|
15
|
+
font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
|
16
|
+
-webkit-font-smoothing: antialiased;
|
17
|
+
-moz-osx-font-smoothing: grayscale;
|
18
|
+
}
|
19
|
+
|
20
|
+
.garden-container {
|
21
|
+
display: flex;
|
22
|
+
min-height: 100vh;
|
23
|
+
width: 100%;
|
24
|
+
background: white;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Navigation Sidebar */
|
28
|
+
.garden-nav {
|
29
|
+
width: 280px;
|
30
|
+
background: #fafafa;
|
31
|
+
border-right: 1px solid #e5e7eb;
|
32
|
+
flex-shrink: 0;
|
33
|
+
overflow-y: auto;
|
34
|
+
max-height: 100vh;
|
35
|
+
position: sticky;
|
36
|
+
top: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
.garden-nav-header {
|
40
|
+
padding: 1.5rem 1rem 1rem;
|
41
|
+
border-bottom: 1px solid #e5e7eb;
|
42
|
+
background: white;
|
43
|
+
}
|
44
|
+
|
45
|
+
.garden-nav-header h3 {
|
46
|
+
font-size: 1.1rem;
|
47
|
+
font-weight: 600;
|
48
|
+
color: #374151;
|
49
|
+
letter-spacing: -0.025em;
|
50
|
+
}
|
51
|
+
|
52
|
+
.garden-nav-content {
|
53
|
+
padding: 1rem 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
.garden-toc {
|
57
|
+
list-style: none;
|
58
|
+
padding: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
.garden-toc li {
|
62
|
+
margin: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
.garden-toc a {
|
66
|
+
display: block;
|
67
|
+
padding: 0.5rem 1rem;
|
68
|
+
color: #6b7280;
|
69
|
+
text-decoration: none;
|
70
|
+
border-left: 3px solid transparent;
|
71
|
+
transition: all 0.15s ease;
|
72
|
+
font-size: 0.875rem;
|
73
|
+
font-weight: 400;
|
74
|
+
}
|
75
|
+
|
76
|
+
.garden-toc a:hover {
|
77
|
+
color: #374151;
|
78
|
+
background-color: #f3f4f6;
|
79
|
+
border-left-color: #d1d5db;
|
80
|
+
}
|
81
|
+
|
82
|
+
.garden-toc a.current {
|
83
|
+
color: #2563eb;
|
84
|
+
background-color: #eff6ff;
|
85
|
+
border-left-color: #2563eb;
|
86
|
+
font-weight: 500;
|
87
|
+
}
|
88
|
+
|
89
|
+
/* Depth-based indentation */
|
90
|
+
.garden-toc .depth-0 a {
|
91
|
+
padding-left: 1rem;
|
92
|
+
font-weight: 500;
|
93
|
+
}
|
94
|
+
|
95
|
+
.garden-toc .depth-1 a {
|
96
|
+
padding-left: 1.75rem;
|
97
|
+
font-size: 0.8125rem;
|
98
|
+
}
|
99
|
+
|
100
|
+
.garden-toc .depth-2 a {
|
101
|
+
padding-left: 2.5rem;
|
102
|
+
font-size: 0.75rem;
|
103
|
+
}
|
104
|
+
|
105
|
+
.garden-toc .depth-3 a {
|
106
|
+
padding-left: 3.25rem;
|
107
|
+
font-size: 0.75rem;
|
108
|
+
}
|
109
|
+
|
110
|
+
/* Main Content Area */
|
111
|
+
.garden-main {
|
112
|
+
flex: 1;
|
113
|
+
overflow-y: auto;
|
114
|
+
max-height: 100vh;
|
115
|
+
}
|
116
|
+
|
117
|
+
.garden-content {
|
118
|
+
padding: 2rem 3rem;
|
119
|
+
max-width: none;
|
120
|
+
}
|
121
|
+
|
122
|
+
/* Typography */
|
123
|
+
.garden-content h1 {
|
124
|
+
font-size: 2rem;
|
125
|
+
font-weight: 700;
|
126
|
+
margin-bottom: 1.5rem;
|
127
|
+
color: #111827;
|
128
|
+
line-height: 1.2;
|
129
|
+
letter-spacing: -0.025em;
|
130
|
+
}
|
131
|
+
|
132
|
+
.garden-content h2 {
|
133
|
+
font-size: 1.5rem;
|
134
|
+
font-weight: 600;
|
135
|
+
margin: 2rem 0 1rem;
|
136
|
+
color: #1f2937;
|
137
|
+
border-bottom: 1px solid #e5e7eb;
|
138
|
+
padding-bottom: 0.5rem;
|
139
|
+
letter-spacing: -0.025em;
|
140
|
+
}
|
141
|
+
|
142
|
+
.garden-content h3 {
|
143
|
+
font-size: 1.25rem;
|
144
|
+
font-weight: 600;
|
145
|
+
margin: 1.5rem 0 0.75rem;
|
146
|
+
color: #374151;
|
147
|
+
letter-spacing: -0.025em;
|
148
|
+
}
|
149
|
+
|
150
|
+
.garden-content h4 {
|
151
|
+
font-size: 1.125rem;
|
152
|
+
font-weight: 600;
|
153
|
+
margin: 1.25rem 0 0.5rem;
|
154
|
+
color: #4b5563;
|
155
|
+
letter-spacing: -0.025em;
|
156
|
+
}
|
157
|
+
|
158
|
+
.garden-content p {
|
159
|
+
margin-bottom: 1.25rem;
|
160
|
+
color: #374151;
|
161
|
+
line-height: 1.7;
|
162
|
+
}
|
163
|
+
|
164
|
+
.garden-content a {
|
165
|
+
color: #2563eb;
|
166
|
+
text-decoration: none;
|
167
|
+
border-bottom: 1px solid transparent;
|
168
|
+
transition: border-bottom 0.15s ease;
|
169
|
+
}
|
170
|
+
|
171
|
+
.garden-content a:hover {
|
172
|
+
border-bottom-color: #2563eb;
|
173
|
+
}
|
174
|
+
|
175
|
+
/* Lists */
|
176
|
+
.garden-content ul,
|
177
|
+
.garden-content ol {
|
178
|
+
margin: 1rem 0;
|
179
|
+
padding-left: 1.75rem;
|
180
|
+
}
|
181
|
+
|
182
|
+
.garden-content li {
|
183
|
+
margin: 0.375rem 0;
|
184
|
+
color: #374151;
|
185
|
+
line-height: 1.6;
|
186
|
+
}
|
187
|
+
|
188
|
+
/* Code */
|
189
|
+
.garden-content code {
|
190
|
+
background: #f3f4f6;
|
191
|
+
padding: 0.125rem 0.375rem;
|
192
|
+
border-radius: 4px;
|
193
|
+
font-family: 'SF Mono', 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
|
194
|
+
font-size: 0.875em;
|
195
|
+
color: #dc2626;
|
196
|
+
font-weight: 500;
|
197
|
+
}
|
198
|
+
|
199
|
+
.garden-content pre {
|
200
|
+
background: #f9fafb;
|
201
|
+
padding: 1.5rem;
|
202
|
+
border-radius: 8px;
|
203
|
+
overflow-x: auto;
|
204
|
+
margin: 1.5rem 0;
|
205
|
+
border: 1px solid #e5e7eb;
|
206
|
+
border-left: 4px solid #2563eb;
|
207
|
+
}
|
208
|
+
|
209
|
+
.garden-content pre code {
|
210
|
+
background: none;
|
211
|
+
padding: 0;
|
212
|
+
color: #374151;
|
213
|
+
font-weight: 400;
|
214
|
+
}
|
215
|
+
|
216
|
+
/* Tables */
|
217
|
+
.garden-content table {
|
218
|
+
width: 100%;
|
219
|
+
border-collapse: collapse;
|
220
|
+
margin: 1.5rem 0;
|
221
|
+
border-radius: 6px;
|
222
|
+
overflow: hidden;
|
223
|
+
border: 1px solid #e5e7eb;
|
224
|
+
}
|
225
|
+
|
226
|
+
.garden-content th,
|
227
|
+
.garden-content td {
|
228
|
+
padding: 0.75rem 1rem;
|
229
|
+
text-align: left;
|
230
|
+
border-bottom: 1px solid #e5e7eb;
|
231
|
+
}
|
232
|
+
|
233
|
+
.garden-content th {
|
234
|
+
background: #f9fafb;
|
235
|
+
font-weight: 600;
|
236
|
+
color: #374151;
|
237
|
+
font-size: 0.875rem;
|
238
|
+
}
|
239
|
+
|
240
|
+
/* Blockquotes */
|
241
|
+
.garden-content blockquote {
|
242
|
+
margin: 1.5rem 0;
|
243
|
+
padding: 1rem 1.5rem;
|
244
|
+
background: #f9fafb;
|
245
|
+
border-left: 4px solid #6b7280;
|
246
|
+
border-radius: 0 6px 6px 0;
|
247
|
+
}
|
248
|
+
|
249
|
+
.garden-content blockquote p {
|
250
|
+
margin: 0;
|
251
|
+
color: #4b5563;
|
252
|
+
font-style: italic;
|
253
|
+
line-height: 1.6;
|
254
|
+
}
|
255
|
+
|
256
|
+
/* Responsive Design */
|
257
|
+
@media (max-width: 768px) {
|
258
|
+
.garden-container {
|
259
|
+
flex-direction: column;
|
260
|
+
}
|
261
|
+
|
262
|
+
.garden-nav {
|
263
|
+
width: 100%;
|
264
|
+
position: static;
|
265
|
+
max-height: none;
|
266
|
+
order: 2;
|
267
|
+
}
|
268
|
+
|
269
|
+
.garden-main {
|
270
|
+
order: 1;
|
271
|
+
max-height: none;
|
272
|
+
}
|
273
|
+
|
274
|
+
.garden-content {
|
275
|
+
padding: 1.5rem;
|
276
|
+
}
|
277
|
+
|
278
|
+
.garden-content h1 {
|
279
|
+
font-size: 1.75rem;
|
280
|
+
}
|
281
|
+
|
282
|
+
.garden-content h2 {
|
283
|
+
font-size: 1.375rem;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
@media (max-width: 480px) {
|
288
|
+
.garden-content {
|
289
|
+
padding: 1rem;
|
290
|
+
}
|
291
|
+
|
292
|
+
.garden-content h1 {
|
293
|
+
font-size: 1.5rem;
|
294
|
+
}
|
295
|
+
|
296
|
+
.garden-content h2 {
|
297
|
+
font-size: 1.25rem;
|
298
|
+
}
|
299
|
+
|
300
|
+
.garden-nav-content {
|
301
|
+
padding: 0.5rem 0;
|
302
|
+
}
|
303
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
7
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
8
|
+
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
|
9
|
+
<%= stylesheet_tag %>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<main id="container">
|
13
|
+
<div class="newspaper-columns"><%= content %></div>
|
14
|
+
</main>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,339 @@
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
|
2
|
+
|
3
|
+
:root {
|
4
|
+
--screen-font-size: 16px;
|
5
|
+
--screen-line-height: calc(var(--screen-font-size) * 1.5);
|
6
|
+
--screen-unit: var(--screen-line-height);
|
7
|
+
|
8
|
+
--print-font-size: 11pt;
|
9
|
+
--print-line-height: 16pt;
|
10
|
+
--print-unit: var(--print-line-height);
|
11
|
+
|
12
|
+
/* Nord color scheme */
|
13
|
+
--nord0: #2e3440; /* Polar Night - darkest */
|
14
|
+
--nord1: #3b4252; /* Polar Night */
|
15
|
+
--nord2: #434c5e; /* Polar Night */
|
16
|
+
--nord3: #4c566a; /* Polar Night - lightest */
|
17
|
+
--nord4: #d8dee9; /* Snow Storm - darkest */
|
18
|
+
--nord5: #e5e9f0; /* Snow Storm */
|
19
|
+
--nord6: #eceff4; /* Snow Storm - lightest */
|
20
|
+
--nord7: #8fbcbb; /* Frost - teal */
|
21
|
+
--nord8: #88c0d0; /* Frost - light blue */
|
22
|
+
--nord9: #81a1c1; /* Frost - blue */
|
23
|
+
--nord10: #5e81ac; /* Frost - dark blue */
|
24
|
+
--nord11: #bf616a; /* Aurora - red */
|
25
|
+
--nord12: #d08770; /* Aurora - orange */
|
26
|
+
--nord13: #ebcb8b; /* Aurora - yellow */
|
27
|
+
--nord14: #a3be8c; /* Aurora - green */
|
28
|
+
--nord15: #b48ead; /* Aurora - purple */
|
29
|
+
|
30
|
+
--nord-text: var(--nord0);
|
31
|
+
--nord-text-subtle: var(--nord3);
|
32
|
+
--nord-background: var(--nord6);
|
33
|
+
--nord-surface: #ffffff;
|
34
|
+
--nord-border: var(--nord4);
|
35
|
+
--nord-accent: var(--nord10);
|
36
|
+
--nord-secondary: var(--nord8);
|
37
|
+
}
|
38
|
+
|
39
|
+
@import "../base/style.css";
|
40
|
+
|
41
|
+
body {
|
42
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
43
|
+
color: var(--nord-text);
|
44
|
+
line-height: 1.5;
|
45
|
+
background-color: var(--nord-background);
|
46
|
+
font-weight: 400;
|
47
|
+
letter-spacing: -0.005em;
|
48
|
+
font-feature-settings: "liga" 1, "kern" 1;
|
49
|
+
}
|
50
|
+
|
51
|
+
h1, h2, h3, h4, h5, h6 {
|
52
|
+
font-weight: 600;
|
53
|
+
color: var(--nord-text);
|
54
|
+
letter-spacing: -0.02em;
|
55
|
+
}
|
56
|
+
|
57
|
+
h1 {
|
58
|
+
font-size: calc(var(--screen-font-size) * 1.8);
|
59
|
+
margin-top: calc(var(--screen-unit) * 2);
|
60
|
+
margin-bottom: calc(var(--screen-unit) * 1.5);
|
61
|
+
line-height: 1.3;
|
62
|
+
color: var(--nord0);
|
63
|
+
}
|
64
|
+
|
65
|
+
h2 {
|
66
|
+
font-size: calc(var(--screen-font-size) * 1.4);
|
67
|
+
margin-top: calc(var(--screen-unit) * 1.5);
|
68
|
+
margin-bottom: calc(var(--screen-unit) * 0.75);
|
69
|
+
line-height: 1.4;
|
70
|
+
color: var(--nord1);
|
71
|
+
}
|
72
|
+
|
73
|
+
h3 {
|
74
|
+
font-size: calc(var(--screen-font-size) * 1.2);
|
75
|
+
margin-top: calc(var(--screen-unit) * 1.25);
|
76
|
+
margin-bottom: calc(var(--screen-unit) * 0.5);
|
77
|
+
line-height: 1.4;
|
78
|
+
color: var(--nord2);
|
79
|
+
}
|
80
|
+
|
81
|
+
h4, h5, h6 {
|
82
|
+
font-size: calc(var(--screen-font-size) * 1.05);
|
83
|
+
margin-top: calc(var(--screen-unit) * 1);
|
84
|
+
margin-bottom: calc(var(--screen-unit) * 0.25);
|
85
|
+
line-height: 1.4;
|
86
|
+
color: var(--nord3);
|
87
|
+
}
|
88
|
+
|
89
|
+
p {
|
90
|
+
margin: calc(var(--screen-unit) * 0.75) 0;
|
91
|
+
}
|
92
|
+
|
93
|
+
blockquote {
|
94
|
+
border-left: 3px solid var(--nord8);
|
95
|
+
padding-left: calc(var(--screen-unit) * 1);
|
96
|
+
margin-left: 0;
|
97
|
+
font-style: italic;
|
98
|
+
color: var(--nord-text-subtle);
|
99
|
+
background-color: rgba(143, 188, 187, 0.05);
|
100
|
+
padding: calc(var(--screen-unit) * 0.75) calc(var(--screen-unit) * 1);
|
101
|
+
border-radius: 0 4px 4px 0;
|
102
|
+
}
|
103
|
+
|
104
|
+
code {
|
105
|
+
font-family: "SF Mono", "JetBrains Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
|
106
|
+
font-size: calc(var(--screen-font-size) * 0.9);
|
107
|
+
background-color: var(--nord5);
|
108
|
+
color: var(--nord0);
|
109
|
+
padding: 0.15em 0.4em;
|
110
|
+
border-radius: 4px;
|
111
|
+
font-weight: 500;
|
112
|
+
letter-spacing: 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
pre {
|
116
|
+
background-color: var(--nord6);
|
117
|
+
border: 1px solid var(--nord-border);
|
118
|
+
border-radius: 8px;
|
119
|
+
padding: calc(var(--screen-unit) * 1);
|
120
|
+
overflow-x: auto;
|
121
|
+
margin: calc(var(--screen-unit) * 1) 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
pre code {
|
125
|
+
background-color: transparent;
|
126
|
+
padding: 0;
|
127
|
+
border-radius: 0;
|
128
|
+
font-size: calc(var(--screen-font-size) * 0.85);
|
129
|
+
color: var(--nord0);
|
130
|
+
}
|
131
|
+
|
132
|
+
a:link, a:visited {
|
133
|
+
color: var(--nord-accent);
|
134
|
+
text-decoration: none;
|
135
|
+
border-bottom: 1px solid transparent;
|
136
|
+
transition: all 0.2s ease;
|
137
|
+
}
|
138
|
+
|
139
|
+
a:hover {
|
140
|
+
color: var(--nord8);
|
141
|
+
border-bottom-color: var(--nord8);
|
142
|
+
}
|
143
|
+
|
144
|
+
strong {
|
145
|
+
font-weight: 600;
|
146
|
+
color: var(--nord0);
|
147
|
+
}
|
148
|
+
|
149
|
+
em {
|
150
|
+
font-style: italic;
|
151
|
+
color: var(--nord1);
|
152
|
+
}
|
153
|
+
|
154
|
+
ul, ol {
|
155
|
+
margin: calc(var(--screen-unit) * 0.75) 0;
|
156
|
+
padding-left: calc(var(--screen-unit) * 1.5);
|
157
|
+
}
|
158
|
+
|
159
|
+
li {
|
160
|
+
margin: calc(var(--screen-unit) * 0.25) 0;
|
161
|
+
}
|
162
|
+
|
163
|
+
table {
|
164
|
+
border-collapse: collapse;
|
165
|
+
margin: calc(var(--screen-unit) * 1) 0;
|
166
|
+
width: 100%;
|
167
|
+
background-color: var(--nord-surface);
|
168
|
+
border-radius: 6px;
|
169
|
+
overflow: hidden;
|
170
|
+
box-shadow: 0 1px 3px rgba(46, 52, 64, 0.1);
|
171
|
+
}
|
172
|
+
|
173
|
+
th, td {
|
174
|
+
padding: calc(var(--screen-unit) * 0.5) calc(var(--screen-unit) * 0.75);
|
175
|
+
text-align: left;
|
176
|
+
border-bottom: 1px solid var(--nord-border);
|
177
|
+
}
|
178
|
+
|
179
|
+
th {
|
180
|
+
background-color: var(--nord5);
|
181
|
+
font-weight: 600;
|
182
|
+
color: var(--nord0);
|
183
|
+
font-size: calc(var(--screen-font-size) * 0.9);
|
184
|
+
text-transform: uppercase;
|
185
|
+
letter-spacing: 0.05em;
|
186
|
+
}
|
187
|
+
|
188
|
+
tr:last-child td {
|
189
|
+
border-bottom: none;
|
190
|
+
}
|
191
|
+
|
192
|
+
tr:hover {
|
193
|
+
background-color: rgba(143, 188, 187, 0.03);
|
194
|
+
}
|
195
|
+
|
196
|
+
hr {
|
197
|
+
border: none;
|
198
|
+
height: 1px;
|
199
|
+
background-color: var(--nord-border);
|
200
|
+
margin: calc(var(--screen-unit) * 2) 0;
|
201
|
+
}
|
202
|
+
|
203
|
+
#container {
|
204
|
+
width: 100%;
|
205
|
+
max-width: 100ch;
|
206
|
+
margin: calc(var(--screen-unit) * 3) auto;
|
207
|
+
padding: calc(var(--screen-unit) * 3) calc(var(--screen-unit) * 4);
|
208
|
+
border: 1px solid var(--nord-border);
|
209
|
+
background-color: var(--nord-surface);
|
210
|
+
box-shadow:
|
211
|
+
0 4px 6px rgba(46, 52, 64, 0.05),
|
212
|
+
0 10px 20px rgba(46, 52, 64, 0.1);
|
213
|
+
border-radius: 8px;
|
214
|
+
}
|
215
|
+
|
216
|
+
@media (max-width: 768px) {
|
217
|
+
#container {
|
218
|
+
margin: calc(var(--screen-unit) * 1) calc(var(--screen-unit) * 0.5);
|
219
|
+
padding: calc(var(--screen-unit) * 2) calc(var(--screen-unit) * 2);
|
220
|
+
border-radius: 0;
|
221
|
+
box-shadow: none;
|
222
|
+
border: none;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
@media print {
|
227
|
+
@page {
|
228
|
+
margin: 0.75in;
|
229
|
+
size: letter;
|
230
|
+
}
|
231
|
+
|
232
|
+
:root {
|
233
|
+
--print-font-size: 11pt;
|
234
|
+
--print-line-height: 16pt;
|
235
|
+
--screen-font-size: var(--print-font-size);
|
236
|
+
--screen-line-height: var(--print-line-height);
|
237
|
+
--screen-unit: var(--print-line-height);
|
238
|
+
}
|
239
|
+
|
240
|
+
body {
|
241
|
+
background-color: white !important;
|
242
|
+
color: #000 !important;
|
243
|
+
font-size: var(--print-font-size) !important;
|
244
|
+
line-height: var(--print-line-height) !important;
|
245
|
+
}
|
246
|
+
|
247
|
+
#container {
|
248
|
+
box-shadow: none !important;
|
249
|
+
border: none !important;
|
250
|
+
border-radius: 0 !important;
|
251
|
+
margin: 0 !important;
|
252
|
+
padding: 0 !important;
|
253
|
+
max-width: none !important;
|
254
|
+
background-color: white !important;
|
255
|
+
}
|
256
|
+
|
257
|
+
h1, h2, h3, h4, h5, h6 {
|
258
|
+
color: #000 !important;
|
259
|
+
page-break-after: avoid;
|
260
|
+
}
|
261
|
+
|
262
|
+
h1 {
|
263
|
+
font-size: 18pt !important;
|
264
|
+
line-height: 22pt !important;
|
265
|
+
}
|
266
|
+
|
267
|
+
h2 {
|
268
|
+
font-size: 14pt !important;
|
269
|
+
line-height: 18pt !important;
|
270
|
+
}
|
271
|
+
|
272
|
+
h3 {
|
273
|
+
font-size: 12pt !important;
|
274
|
+
line-height: 16pt !important;
|
275
|
+
}
|
276
|
+
|
277
|
+
h4, h5, h6 {
|
278
|
+
font-size: 11pt !important;
|
279
|
+
line-height: 16pt !important;
|
280
|
+
}
|
281
|
+
|
282
|
+
p, li {
|
283
|
+
orphans: 3;
|
284
|
+
widows: 3;
|
285
|
+
}
|
286
|
+
|
287
|
+
blockquote, pre {
|
288
|
+
page-break-inside: avoid;
|
289
|
+
}
|
290
|
+
|
291
|
+
a {
|
292
|
+
color: #000 !important;
|
293
|
+
text-decoration: underline !important;
|
294
|
+
}
|
295
|
+
|
296
|
+
code {
|
297
|
+
background-color: #f5f5f5 !important;
|
298
|
+
border-radius: 0 !important;
|
299
|
+
color: #000 !important;
|
300
|
+
font-size: 9pt !important;
|
301
|
+
}
|
302
|
+
|
303
|
+
pre {
|
304
|
+
background-color: #f8f8f8 !important;
|
305
|
+
border: 1px solid #ddd !important;
|
306
|
+
border-radius: 0 !important;
|
307
|
+
color: #000 !important;
|
308
|
+
}
|
309
|
+
|
310
|
+
pre code {
|
311
|
+
background-color: transparent !important;
|
312
|
+
font-size: 9pt !important;
|
313
|
+
}
|
314
|
+
|
315
|
+
table {
|
316
|
+
border-collapse: collapse !important;
|
317
|
+
border-radius: 0 !important;
|
318
|
+
background-color: white !important;
|
319
|
+
box-shadow: none !important;
|
320
|
+
}
|
321
|
+
|
322
|
+
th, td {
|
323
|
+
border: 1px solid #000 !important;
|
324
|
+
color: #000 !important;
|
325
|
+
}
|
326
|
+
|
327
|
+
th {
|
328
|
+
background-color: #f0f0f0 !important;
|
329
|
+
}
|
330
|
+
|
331
|
+
table, table tr td, table tr th {
|
332
|
+
page-break-inside: avoid;
|
333
|
+
}
|
334
|
+
|
335
|
+
img {
|
336
|
+
max-width: 100% !important;
|
337
|
+
page-break-inside: avoid;
|
338
|
+
}
|
339
|
+
}
|