clampography 0.9.1 → 0.9.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.
Files changed (2) hide show
  1. package/clampography.css +19 -21
  2. package/package.json +1 -1
package/clampography.css CHANGED
@@ -223,32 +223,33 @@
223
223
 
224
224
  li {
225
225
  position: relative;
226
- margin-bottom: var(--spacing-xs);
227
226
  padding-left: 0.375em; /* Space between marker and text */
228
227
  }
229
228
 
230
- /*
231
- * CUSTOM BULLETS (UL)
232
- * Perfectly centered dot relative to the first line of text.
233
- */
229
+ /* Spacing between list items */
230
+ li + li {
231
+ margin-top: var(--spacing-xs);
232
+ }
233
+
234
+ /* Spacing before nested lists */
235
+ li > :where(ul, ol) {
236
+ margin-top: var(--spacing-xs);
237
+ }
238
+
239
+ /* Perfectly centered dot relative to the first line of text */
234
240
  ul > li::before {
235
241
  content: '';
236
242
  position: absolute;
237
- /* Positioning relative to the li padding */
238
243
  left: -1.125em;
239
- /* Vertically aligns with the first line (assuming line-height 1.75) */
240
244
  top: calc(0.875em - 0.1875em);
241
245
  width: 0.375em;
242
246
  height: 0.375em;
243
247
  background-color: currentColor;
244
248
  border-radius: 50%;
245
- opacity: 0.4; /* Subtle visual weight */
249
+ opacity: 0.4;
246
250
  }
247
251
 
248
- /*
249
- * CUSTOM NUMBERS (OL)
250
- * Right-aligned numbers for professional look (e.g. "9." aligns with "10.")
251
- */
252
+ /* Right-aligned numbers for professional look (e.g. "9." aligns with "10.") */
252
253
  ol {
253
254
  counter-reset: list-counter;
254
255
  }
@@ -260,18 +261,17 @@
260
261
  ol > li::before {
261
262
  content: counter(list-counter) '.';
262
263
  position: absolute;
263
- left: -2.5em; /* More space for numbers */
264
- width: 1.75em; /* Fixed width container for alignment */
264
+ left: -2.5em;
265
+ width: 1.75em;
265
266
  text-align: right;
266
- font-weight: 600; /* Make numbers stand out structurally */
267
+ font-weight: 600;
267
268
  color: currentColor;
268
- opacity: 0.6; /* Slightly lighter than text */
269
+ opacity: 0.6;
269
270
  }
270
271
 
271
- /* Nested lists spacing */
272
+ /* Nested lists - indentation only, spacing handled by li rules above */
272
273
  :where(ul, ol) :where(ul, ol) {
273
- margin-top: 0.5rem;
274
- margin-bottom: 0.5rem;
274
+ margin-bottom: 0; /* Parent li spacing already handles this */
275
275
  padding-left: var(--spacing-md);
276
276
  }
277
277
 
@@ -370,7 +370,6 @@
370
370
  }
371
371
 
372
372
  figcaption {
373
- margin-top: var(--spacing-xs);
374
373
  font-size: 0.875em;
375
374
  line-height: 1.5;
376
375
  }
@@ -451,7 +450,6 @@
451
450
  summary {
452
451
  cursor: pointer;
453
452
  font-weight: 600;
454
- margin-bottom: var(--spacing-xs);
455
453
  }
456
454
 
457
455
  dialog {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clampography",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Fluid typography system based on CSS clamp() for Tailwind CSS v4",
5
5
  "main": "clampography.css",
6
6
  "style": "clampography.css",