@inchurch/matcha-theme 22.5.1 → 22.5.3
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.
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
.paginator-nav-button,
|
|
102
102
|
.page-button,
|
|
103
103
|
.paginator-progress__segment,
|
|
104
|
-
.paginator-
|
|
104
|
+
.paginator-jump__field,
|
|
105
105
|
.page-size-selector {
|
|
106
106
|
pointer-events: none;
|
|
107
107
|
opacity: var(--matcha-opacity-secondary, 0.54);
|
|
@@ -297,27 +297,19 @@
|
|
|
297
297
|
white-space: nowrap;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
border-radius: var(--matcha-radius-md, 4px);
|
|
307
|
-
color: var(--matcha-color-text-primary);
|
|
308
|
-
font-family: var(--matcha-font-family);
|
|
309
|
-
font-size: var(--matcha-text-body-md, 14px);
|
|
310
|
-
text-align: center;
|
|
311
|
-
outline: none;
|
|
300
|
+
// Chrome (borda/bg/foco) agora vem do próprio matcha-field — só controlamos
|
|
301
|
+
// a largura compacta (o field é width:100% por padrão) e cosméticos do
|
|
302
|
+
// <input> nativo renderizado dentro dele (compat visual com o canon anterior).
|
|
303
|
+
// 64px = mesma largura do page-size selector ao lado (matcha-field size="sm").
|
|
304
|
+
.paginator-jump__field {
|
|
305
|
+
width: 64px;
|
|
312
306
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
307
|
+
input[type="number"] {
|
|
308
|
+
text-align: center;
|
|
309
|
+
-moz-appearance: textfield;
|
|
316
310
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
320
|
-
outline-offset: 0;
|
|
311
|
+
&::-webkit-outer-spin-button,
|
|
312
|
+
&::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
|
|
321
313
|
}
|
|
322
314
|
}
|
|
323
315
|
|
|
@@ -541,7 +533,7 @@
|
|
|
541
533
|
}
|
|
542
534
|
|
|
543
535
|
// Page-jump input mobile: bigger pra targets touch.
|
|
544
|
-
.paginator-
|
|
536
|
+
.paginator-jump__field {
|
|
545
537
|
height: calc(var(--matcha-space-500, 40px) + var(--matcha-space-050, 4px)); // 44
|
|
546
538
|
width: var(--matcha-space-1000, 80px);
|
|
547
539
|
font-size: var(--matcha-text-body-md, 14px);
|
|
@@ -290,25 +290,20 @@
|
|
|
290
290
|
// ── Column width hints (aplicar em <th> — <td> herda pela coluna) ─────
|
|
291
291
|
thead th,
|
|
292
292
|
tbody td {
|
|
293
|
-
|
|
293
|
+
// min-width igual ao width — sem isso, a regra base thead th/tbody td
|
|
294
|
+
// (min-width:120px) vence e a coluna nunca encolhe pro valor pretendido
|
|
295
|
+
// (mesmo bug achado e corrigido em .col-actions).
|
|
296
|
+
&.col-checkbox { width: var(--matcha-table-col-checkbox-width); min-width: var(--matcha-table-col-checkbox-width); text-align: center; }
|
|
294
297
|
&.col-id { width: var(--matcha-table-col-id-width); }
|
|
295
298
|
&.col-narrow { width: var(--matcha-table-col-narrow-width); }
|
|
296
299
|
&.col-medium { width: var(--matcha-table-col-medium-width); }
|
|
297
|
-
// Actions / icon-buttons —
|
|
298
|
-
// Children inline
|
|
299
|
-
//
|
|
300
|
+
// Actions / icon-buttons — pinada em --matcha-table-col-actions-width (80px).
|
|
301
|
+
// Children inline-flex, centralizados (título "Ações" no header também
|
|
302
|
+
// centraliza — text-align: center vale pro conteúdo das duas linhas).
|
|
300
303
|
//
|
|
301
304
|
// Importante: `.matcha-button` tem `display: flex` (block-level) que faria
|
|
302
305
|
// os icon-buttons empilharem verticalmente. Override via selector descendant
|
|
303
306
|
// com specificity maior pra forçar inline-flex no contexto de actions cell.
|
|
304
|
-
//
|
|
305
|
-
// Padding-right ZERO no body — icon-button já tem click target padding
|
|
306
|
-
// interno; somar padding ao td empurraria os botões pra ESQUERDA do edge
|
|
307
|
-
// do header "Ações". Alinhamento perfeito: button box-right = cell-right.
|
|
308
|
-
// Actions / icon-buttons — shrink-to-content (1% truque de table layout).
|
|
309
|
-
// Children inline horizontal LEFT-aligned (header text "Ações" alinha
|
|
310
|
-
// naturalmente acima do primeiro ícone). Padding uniforme L/R com resto
|
|
311
|
-
// da table.
|
|
312
307
|
&.col-actions {
|
|
313
308
|
width: var(--matcha-table-col-actions-width);
|
|
314
309
|
// min-width base da tbody td/thead th é 120px (--matcha-table-cell-min-width)
|
|
@@ -316,7 +311,7 @@
|
|
|
316
311
|
// model. Sem este override, a coluna ficava presa em 120px (achado real).
|
|
317
312
|
min-width: var(--matcha-table-col-actions-width);
|
|
318
313
|
white-space: nowrap;
|
|
319
|
-
text-align:
|
|
314
|
+
text-align: center;
|
|
320
315
|
|
|
321
316
|
> .matcha-button,
|
|
322
317
|
> button[matcha-icon-button],
|