@omnitend/dashboard-for-laravel 0.19.0 → 0.19.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnitend/dashboard-for-laravel",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "Vue 3 dashboard components for Laravel with Bootstrap Vue Next",
5
5
  "type": "module",
6
6
  "main": "./dist/dashboard-for-laravel.umd.cjs",
@@ -91,6 +91,19 @@ $input-focus-box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
91
91
  // Gray-300) text inputs. Share the input border colour across all controls.
92
92
  $form-check-input-border: 1px solid $input-border-color;
93
93
 
94
+ // Bigger check/radio boxes (Bootstrap's 1em default reads small next to the
95
+ // theme's inputs and is a fiddly touch target). Drive it through Bootstrap's own
96
+ // `$form-check-input-width` — NOT a raw `.form-check-input { width }` override —
97
+ // so the container's `padding-left` and the input's negative `margin-left` (both
98
+ // derived from `$form-check-padding-start`) track the larger box. Overriding just
99
+ // the CSS width left the padding at `1em + .5em`, which the ~20px box then filled
100
+ // almost entirely, collapsing the box↔label gap to ~1px (cramped/flush). The
101
+ // explicit padding-start keeps a real gap and avoids a rem+em unit mix in
102
+ // Bootstrap's default `$form-check-input-width + .5em`. Switches are unaffected
103
+ // (they use the independent `$form-switch-*` variables).
104
+ $form-check-input-width: 1.25rem;
105
+ $form-check-padding-start: $form-check-input-width + 0.5rem;
106
+
94
107
  // ----------------------------------------------------------------------------
95
108
  // Cards
96
109
  // ----------------------------------------------------------------------------
@@ -193,13 +206,6 @@ $bootstrap-icons-font-src: url("bootstrap-icons/font/fonts/bootstrap-icons.woff2
193
206
  );
194
207
  }
195
208
 
196
- // Bigger check/radio boxes — Bootstrap's 1em default reads small next to the
197
- // theme's inputs and is a fiddly touch target.
198
- .form-check-input {
199
- width: 1.25rem;
200
- height: 1.25rem;
201
- }
202
-
203
209
  // Horizontal ("label-left") forms: a compact settings-form rhythm, with the
204
210
  // label + control top-aligned so a checkbox/switch sits on the label's first
205
211
  // line rather than floating above it (the label column carries a top offset to
@@ -68,4 +68,26 @@ defineOptions({
68
68
  --bs-btn-active-color: var(--bs-body-color);
69
69
  flex: 0 0 auto;
70
70
  }
71
+
72
+ /*
73
+ The clear affordance renders as Bootstrap's `.btn-close` — a bold, filled ✕
74
+ that reads as a heavy black mark against a light field (and is noisy when
75
+ several autocompletes sit in a row, e.g. a table's column filters). Scale it
76
+ down via `font-size` (btn-close sizes both its box and its background SVG in
77
+ `em`, so this shrinks it proportionally without clipping) and rest it at a
78
+ lower opacity so it's a quiet clear affordance that only asserts on
79
+ hover/focus. Matches the softened trigger above.
80
+ */
81
+ .d-autocomplete :deep(.b-autocomplete-clear.btn-close) {
82
+ font-size: 0.8em;
83
+ opacity: 0.4;
84
+ }
85
+
86
+ .d-autocomplete :deep(.b-autocomplete-clear.btn-close:hover) {
87
+ opacity: 0.7;
88
+ }
89
+
90
+ .d-autocomplete :deep(.b-autocomplete-clear.btn-close:focus) {
91
+ opacity: 0.9;
92
+ }
71
93
  </style>