lutra 0.1.13 → 0.1.15

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.
@@ -109,6 +109,7 @@
109
109
  --inset-block: 0.5rem;
110
110
  --inset-inline: 1rem;
111
111
  border-radius: none;
112
+ white-space: nowrap;
112
113
  }
113
114
 
114
115
  li.rounded .Item,
@@ -128,10 +129,18 @@
128
129
  outline: none;
129
130
  }
130
131
 
132
+ li .Item span.Content {
133
+ display: inline-flex;
134
+ align-items: center;
135
+ white-space: nowrap;
136
+ gap: var(--menu-item-gap, var(--space-sm));
137
+ }
138
+
131
139
  li .Item span.Shortcut {
132
140
  font-size: max(0.75em, 9px);
133
141
  text-align: right;
134
142
  color: var(--menu-text-color-subtle);
143
+ white-space: nowrap;
135
144
  }
136
145
 
137
146
  li .Item:not(.Custom):active {
@@ -29,9 +29,3 @@
29
29
  {#if Comp}
30
30
  <Comp {...props} />
31
31
  {/if}
32
-
33
- <style>
34
- :global(.Icon) {
35
- margin-inline-end: var(--menu-item-icon-gap, var(--space-sm));
36
- }
37
- </style>
@@ -30,11 +30,14 @@
30
30
  --space-900: calc(var(--space-base) * 9);
31
31
  --space-1000: calc(var(--space-base) * 10);
32
32
 
33
- --space-xs: var(--space-025);
34
- --space-sm: var(--space-050);
33
+ --space-xxs: var(--space-025);
34
+ --space-xs: var(--space-050);
35
+ --space-sm: var(--space-075);
35
36
  --space-md: var(--space-100);
36
- --space-lg: var(--space-200);
37
- --space-xl: var(--space-300);
37
+ --space-lg: var(--space-150);
38
+ --space-xl: var(--space-200);
39
+ --space-xxl: var(--space-300);
40
+ --space-xxxl: var(--space-400);
38
41
 
39
42
  --font-scale: 1.175;
40
43
  --font-size-base: 1em;
@@ -1,7 +1,7 @@
1
1
  @scope (.PageContent) to (.UIContent) {
2
2
  /* Heading spacing for proper markdown hierarchy */
3
3
  h1, h2, h3, h4, h5, h6 {
4
- margin-block: var(--space-lg) var(--space-md);
4
+ margin-block: var(--space-xl) var(--space-md);
5
5
 
6
6
  /* No top margin for first heading or when following another heading */
7
7
  &:first-child,
@@ -11,7 +11,7 @@
11
11
 
12
12
  /* Larger spacing before headings that follow non-heading content */
13
13
  &:not(:first-child):not(:is(h1, h2, h3, h4, h5, h6) + *) {
14
- margin-block-start: var(--space-xl);
14
+ margin-block-start: var(--space-xxl);
15
15
  }
16
16
 
17
17
  & + * {
@@ -21,8 +21,8 @@
21
21
 
22
22
  /* h1 and h2 get extra spacing */
23
23
  h1, h2 {
24
- margin-block-start: var(--space-xl);
25
- margin-block-end: var(--space-lg);
24
+ margin-block-start: var(--space-xxl);
25
+ margin-block-end: var(--space-xl);
26
26
  }
27
27
 
28
28
  /* Paragraph spacing with smart adjustments */
@@ -31,7 +31,7 @@
31
31
 
32
32
  /* Paragraphs with images get extra spacing */
33
33
  &:has(img) {
34
- margin-block: var(--space-lg);
34
+ margin-block: var(--space-xl);
35
35
  }
36
36
 
37
37
  /* Paragraphs with only a small element get reduced spacing */
@@ -47,28 +47,28 @@
47
47
 
48
48
  /* Paragraphs immediately after lists get reduced spacing */
49
49
  :is(ul, ol) + & {
50
- margin-block-start: var(--space-sm);
50
+ margin-block-start: var(--space-xs);
51
51
  }
52
52
  }
53
53
 
54
54
  /* List spacing with contextual adjustments */
55
55
  :is(ul, ol) {
56
56
  margin-block: 0 var(--space-md);
57
- padding-inline-start: var(--space-xl);
57
+ padding-inline-start: var(--space-xxl);
58
58
 
59
59
  /* Lists following paragraphs get closer spacing */
60
60
  p + & {
61
- margin-block-start: var(--space-sm);
61
+ margin-block-start: var(--space-xs);
62
62
  }
63
63
 
64
64
  /* Nested lists */
65
65
  & :is(ul, ol) {
66
- margin-block: var(--space-sm) 0;
66
+ margin-block: var(--space-xs) 0;
67
67
  }
68
68
 
69
69
  /* Lists inside blockquotes */
70
70
  blockquote & {
71
- margin-block: var(--space-sm) 0;
71
+ margin-block: var(--space-xs) 0;
72
72
  }
73
73
  }
74
74
 
@@ -90,8 +90,8 @@
90
90
  blockquote {
91
91
  border-inline-start: var(--space-xs) solid var(--border-color);
92
92
  padding-inline-start: var(--space-md);
93
- padding-block: var(--space-sm);
94
- margin-block: var(--space-lg);
93
+ padding-block: var(--space-xs);
94
+ margin-block: var(--space-xl);
95
95
  margin-inline: 0;
96
96
  color: var(--text-color-p-subtle);
97
97
 
@@ -121,11 +121,11 @@
121
121
  border-radius: var(--code-border-radius);
122
122
  overflow-x: auto;
123
123
  line-height: var(--font-line-height);
124
- margin-block: var(--space-lg);
124
+ margin-block: var(--space-xl);
125
125
 
126
126
  /* Code blocks following lists get extra spacing */
127
127
  :is(ul, ol) + & {
128
- margin-block-start: var(--space-xl);
128
+ margin-block-start: var(--space-xxl);
129
129
  }
130
130
 
131
131
  /* Code blocks inside blockquotes */
@@ -164,7 +164,7 @@
164
164
  hr {
165
165
  border: none;
166
166
  border-block-start: var(--border-size-thick) var(--border-style) var(--border-color);
167
- margin-block: var(--space-xl);
167
+ margin-block: var(--space-xxl);
168
168
 
169
169
  /* HRs following headings get reduced spacing */
170
170
  :is(h1, h2, h3, h4, h5, h6) + & {
@@ -179,7 +179,7 @@
179
179
 
180
180
  /* Table with responsive and contextual styling */
181
181
  table {
182
- margin-block: var(--space-lg);
182
+ margin-block: var(--space-xl);
183
183
  border-collapse: collapse;
184
184
  width: 100%;
185
185
 
@@ -195,7 +195,7 @@
195
195
  }
196
196
 
197
197
  :is(th, td) {
198
- padding: var(--space-sm);
198
+ padding: var(--space-xs);
199
199
  border: var(--border-size-thin) var(--border-style) var(--border-color);
200
200
  text-align: start;
201
201
 
@@ -222,24 +222,24 @@
222
222
 
223
223
  /* Block images get more spacing */
224
224
  &:not(p *) {
225
- margin-block: var(--space-lg);
225
+ margin-block: var(--space-xl);
226
226
  display: block;
227
227
  }
228
228
 
229
229
  /* Images in lists */
230
230
  li & {
231
- margin-block: var(--space-sm);
231
+ margin-block: var(--space-xs);
232
232
  }
233
233
  }
234
234
 
235
235
  /* Figure with enhanced spacing logic */
236
236
  figure {
237
- margin-block: var(--space-lg);
237
+ margin-block: var(--space-xl);
238
238
  margin-inline: 0;
239
239
 
240
240
  /* Figures containing only images */
241
241
  &:has(> img:only-child) {
242
- margin-block: var(--space-xl);
242
+ margin-block: var(--space-xxl);
243
243
  }
244
244
 
245
245
  /* Figures in lists or blockquotes */
@@ -249,7 +249,7 @@
249
249
  }
250
250
 
251
251
  figcaption {
252
- margin-block-start: var(--space-sm);
252
+ margin-block-start: var(--space-xs);
253
253
  font-size: var(--font-size-sm);
254
254
  color: var(--text-color-p-subtle);
255
255
  text-align: center;
@@ -261,7 +261,7 @@
261
261
 
262
262
  /* DLs with many terms get more spacing */
263
263
  &:has(dt:nth-of-type(n+4)) {
264
- margin-block: var(--space-lg);
264
+ margin-block: var(--space-xl);
265
265
 
266
266
  dt {
267
267
  margin-block-start: var(--space-md);
@@ -272,14 +272,14 @@
272
272
 
273
273
  dt {
274
274
  font-weight: var(--font-weight-semibold);
275
- margin-block: var(--space-sm) var(--space-xs);
275
+ margin-block: var(--space-xs) var(--space-xs);
276
276
 
277
277
  &:first-child { margin-block-start: 0; }
278
278
  }
279
279
 
280
280
  dd {
281
- margin-inline-start: var(--space-xl);
282
- margin-block-end: var(--space-sm);
281
+ margin-inline-start: var(--space-xxl);
282
+ margin-block-end: var(--space-xs);
283
283
 
284
284
  &:last-child { margin-block-end: 0; }
285
285
 
@@ -345,12 +345,12 @@
345
345
 
346
346
  /* Content flow improvements */
347
347
  :is(p, li):has(+ :is(h2, h3, h4, h5, h6)) {
348
- margin-block-end: var(--space-sm); /* Reduce space before section headings */
348
+ margin-block-end: var(--space-xs); /* Reduce space before section headings */
349
349
  }
350
350
 
351
351
  /* Adjacent similar elements get reduced spacing */
352
352
  :is(ul, ol) + :is(ul, ol) {
353
- margin-block-start: var(--space-sm);
353
+ margin-block-start: var(--space-xs);
354
354
  }
355
355
 
356
356
  blockquote + blockquote {
@@ -188,20 +188,20 @@ import UiContent from "../components/UIContent.svelte";
188
188
  .Year {
189
189
  display: block;
190
190
  font-size: 2em;
191
- padding: var(--space-sm);
191
+ padding: var(--space-xs);
192
192
  text-box: trim-both cap alphabetic;
193
193
  }
194
194
  .Months {
195
195
  display: grid;
196
196
  grid-template-columns: auto 1fr;
197
- gap: var(--space-sm);
197
+ gap: var(--space-xs);
198
198
  }
199
199
  .Month {
200
200
  display: grid;
201
201
  grid-template-columns: subgrid;
202
202
  grid-column: span 2;
203
203
  line-height: 1;
204
- padding: var(--space-sm);
204
+ padding: var(--space-xs);
205
205
  text-align: right;
206
206
  white-space: nowrap;
207
207
  }
@@ -225,7 +225,7 @@ import UiContent from "../components/UIContent.svelte";
225
225
  flex-wrap: wrap;
226
226
  justify-content: start;
227
227
  align-items: start;
228
- gap: var(--space-sm);
228
+ gap: var(--space-xs);
229
229
  }
230
230
  .DayName {
231
231
  display: flex;
@@ -242,7 +242,7 @@ import UiContent from "../components/UIContent.svelte";
242
242
  align-items: center;
243
243
  border: var(--border-size-thin) solid var(--border-color);
244
244
  border-radius: calc(var(--border-radius-sm) / 2);
245
- padding: var(--space-050);
245
+ padding: var(--space-xs);
246
246
  line-height: 1;
247
247
  text-box: trim-both cap alphabetic;
248
248
  }
@@ -272,7 +272,7 @@ import UiContent from "../components/UIContent.svelte";
272
272
  font-size: 0.85em;
273
273
  font-weight: 400;
274
274
  opacity: 0.5;
275
- padding: var(--space-sm);
275
+ padding: var(--space-xs);
276
276
  margin: 0;
277
277
  height: 100%;
278
278
  line-height: 1.5;
@@ -283,7 +283,7 @@ import UiContent from "../components/UIContent.svelte";
283
283
  font-weight: 500;
284
284
  font-size: 1.5em;
285
285
  border: none;
286
- padding: var(--space-md) var(--space-sm);
286
+ padding: var(--space-md) var(--space-xs);
287
287
  line-height: 1.5;
288
288
  width: 100%;
289
289
  text-box: trim-both cap alphabetic;
@@ -105,11 +105,11 @@
105
105
  .FieldContentContainer {
106
106
  display: flex;
107
107
  flex-direction: column;
108
- gap: var(--form-field-gap, var(--space-sm));
108
+ gap: var(--form-field-gap, var(--space-xs));
109
109
  }
110
110
  .FieldContent {
111
111
  display: flex;
112
- gap: var(--form-label-gap, var(--space-sm));
112
+ gap: var(--form-label-gap, var(--space-xs));
113
113
  flex-direction: column;
114
114
  font-size: 1em;
115
115
  }
@@ -159,10 +159,10 @@
159
159
  border-color: var(--focus-ring-color-invalid);
160
160
  }
161
161
  .Field.hasPrefix :global(input) {
162
- padding-inline-start: var(--space-025);
162
+ padding-inline-start: var(--space-xxs);
163
163
  }
164
164
  .Field :global(button) {
165
- margin-right: var(--space-025);
165
+ margin-right: var(--space-xxs);
166
166
  }
167
167
  .Field :global(button:focus-visible) {
168
168
  outline: var(--focus-outline);
@@ -30,7 +30,7 @@
30
30
  .FormActions {
31
31
  display: grid;
32
32
  background: color-mix(in srgb, var(--form-background-actions) calc(var(--fcc) * 100%), transparent);
33
- padding: calc(var(--space-md) * var(--fcc)) calc(var(--space-lg) * var(--fcc));
33
+ padding: calc(var(--space-md) * var(--fcc)) calc(var(--space-xl) * var(--fcc));
34
34
  grid-column: 1 / -1;
35
35
  grid-template-columns: subgrid;
36
36
  border-bottom-left-radius: inherit;
@@ -66,7 +66,7 @@
66
66
  @container (max-width: 480px) {
67
67
  .FormActions {
68
68
  justify-content: center;
69
- gap: var(--space-sm);
69
+ gap: var(--space-xs);
70
70
  }
71
71
  .Info {
72
72
  order: 1;
@@ -48,7 +48,7 @@
48
48
  grid-column: 1 / -1;
49
49
  padding-block: calc(var(--fcc) * var(--form-padding-block));
50
50
  padding-inline: calc(var(--fcc) * var(--form-padding-inline));
51
- gap: var(--form-section-gap, var(--space-lg));
51
+ gap: var(--form-section-gap, var(--space-xl));
52
52
  }
53
53
  .FormSectionTitle {
54
54
  display: flex;
@@ -62,28 +62,28 @@
62
62
  }
63
63
  .FormSectionContent {
64
64
  display: grid;
65
- gap: var(--form-field-gap, var(--space-lg));
65
+ gap: var(--form-field-gap, var(--space-xl));
66
66
  }
67
67
  .FormSection.noTitle .FormSectionContent {
68
68
  grid-column: 1 / -1;
69
69
  }
70
70
  @media(max-width: 1280px) {
71
71
  .FormSection {
72
- padding: var(--space-lg);
72
+ padding: var(--space-xl);
73
73
  gap: var(--space-md);
74
74
  }
75
75
  .FormSectionTitle {
76
- gap: var(--space-sm);
76
+ gap: var(--space-xs);
77
77
  padding-block-end: var(--space-md);
78
78
  }
79
79
  }
80
80
  @media(max-width: 640px) {
81
81
  .FormSection {
82
- padding: var(--space-md);
82
+ padding: var(--space-xl);
83
83
  gap: var(--space-md);
84
84
  }
85
85
  .FormSectionTitle {
86
- gap: var(--space-sm);
86
+ gap: var(--space-xs);
87
87
  padding-block-end: var(--space-md);
88
88
  }
89
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lutra",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",