@loidolt/theme-styles 0.12.0 → 0.12.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.
@@ -1,4 +1,4 @@
1
- /* @loidolt/theme-styles 0.12.0 — Jost and Archivo as data URIs. Fonts: SIL Open Font License 1.1, see src/fonts/*-LICENSE.txt
1
+ /* @loidolt/theme-styles 0.12.2 — Jost and Archivo as data URIs. Fonts: SIL Open Font License 1.1, see src/fonts/*-LICENSE.txt
2
2
  Generated by scripts/build-standalone.mjs. Do not edit directly. MIT licensed. */
3
3
  @font-face {
4
4
  font-family: 'Jost';
@@ -1,4 +1,4 @@
1
- /* @loidolt/theme-styles 0.12.0 — core with dark-auto, no @import, no font files
1
+ /* @loidolt/theme-styles 0.12.2 — core with dark-auto, no @import, no font files
2
2
  Generated by scripts/build-standalone.mjs. Do not edit directly. MIT licensed. */
3
3
  @layer loidolt.tokens, loidolt.reset, loidolt.base, loidolt.vendor, loidolt.components,
4
4
  loidolt.utilities, loidolt.a11y;
@@ -478,6 +478,20 @@
478
478
  color: var(--loidolt-text);
479
479
  background: transparent;
480
480
  }
481
+
482
+ .ldt-input:is(
483
+ [type='date'],
484
+ [type='time'],
485
+ [type='datetime-local'],
486
+ [type='month'],
487
+ [type='week']
488
+ ) {
489
+ appearance: none;
490
+ }
491
+
492
+ .ldt-input::-webkit-date-and-time-value {
493
+ text-align: start;
494
+ }
481
495
  .ldt-input--boxed,
482
496
  .ldt-select--boxed,
483
497
  .ldt-textarea--boxed,
@@ -1,4 +1,4 @@
1
- /* @loidolt/theme-styles 0.12.0 — the whole stylesheet with dark-auto, no @import, no font files
1
+ /* @loidolt/theme-styles 0.12.2 — the whole stylesheet with dark-auto, no @import, no font files
2
2
  Generated by scripts/build-standalone.mjs. Do not edit directly. MIT licensed. */
3
3
  @layer loidolt.tokens, loidolt.reset, loidolt.base, loidolt.vendor, loidolt.components,
4
4
  loidolt.utilities, loidolt.a11y;
@@ -478,6 +478,20 @@
478
478
  color: var(--loidolt-text);
479
479
  background: transparent;
480
480
  }
481
+
482
+ .ldt-input:is(
483
+ [type='date'],
484
+ [type='time'],
485
+ [type='datetime-local'],
486
+ [type='month'],
487
+ [type='week']
488
+ ) {
489
+ appearance: none;
490
+ }
491
+
492
+ .ldt-input::-webkit-date-and-time-value {
493
+ text-align: start;
494
+ }
481
495
  .ldt-input--boxed,
482
496
  .ldt-select--boxed,
483
497
  .ldt-textarea--boxed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loidolt/theme-styles",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "Base styles, fonts, accessibility helpers, and utilities for Loidolt applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "prepack": "npm run build"
37
37
  },
38
38
  "dependencies": {
39
- "@loidolt/theme-tokens": "^0.12.0"
39
+ "@loidolt/theme-tokens": "^0.12.2"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",
@@ -39,6 +39,24 @@
39
39
  color: var(--loidolt-text);
40
40
  background: transparent;
41
41
  }
42
+ /*
43
+ * iOS sizes a native date or time control by its content box whatever `box-sizing` says, so
44
+ * `width: 100%` plus the padding ran past its column (iOS Safari and every Capacitor web view).
45
+ * Without the native appearance it sizes like any input; tapping it still opens the picker.
46
+ */
47
+ .ldt-input:is(
48
+ [type='date'],
49
+ [type='time'],
50
+ [type='datetime-local'],
51
+ [type='month'],
52
+ [type='week']
53
+ ) {
54
+ appearance: none;
55
+ }
56
+ /* iOS centres the value of a native date or time control; keep it where the other fields start. */
57
+ .ldt-input::-webkit-date-and-time-value {
58
+ text-align: start;
59
+ }
42
60
  .ldt-input--boxed,
43
61
  .ldt-select--boxed,
44
62
  .ldt-textarea--boxed,