@ternarytech-io/gears-ui 0.7.0 → 0.8.0
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 +1 -1
- package/src/styles/gears.css +18 -0
package/package.json
CHANGED
package/src/styles/gears.css
CHANGED
|
@@ -668,6 +668,24 @@
|
|
|
668
668
|
[data-t-density] .t-app-sidebar.navbar-vertical[class*=navbar-expand] .navbar-nav { --tblr-sidebar-nav-padding-y: calc(0.75rem * var(--t-scale)); }
|
|
669
669
|
/* Tabler sizes an input's icon for a default-sized input; here it takes its own input's height, so it stays centred at every size. */
|
|
670
670
|
[data-t-density] .input-icon-addon { height: auto; }
|
|
671
|
+
/* A pager's buttons: square, as high as a control of their size (a field or button beside them). */
|
|
672
|
+
[data-t-density] .pagination {
|
|
673
|
+
--tblr-pagination-padding-y: calc((var(--t-control-height) - 1.25rem - 2 * var(--tblr-border-width)) / 2);
|
|
674
|
+
--tblr-pagination-link-min-width: var(--t-control-height);
|
|
675
|
+
}
|
|
676
|
+
[data-t-density] .pagination-sm {
|
|
677
|
+
--tblr-pagination-padding-y: calc((var(--t-control-height-sm) - 1.25rem - 2 * var(--tblr-border-width)) / 2);
|
|
678
|
+
--tblr-pagination-link-min-width: var(--t-control-height-sm);
|
|
679
|
+
}
|
|
680
|
+
[data-t-density] .pagination-lg {
|
|
681
|
+
--tblr-pagination-padding-y: calc((var(--t-control-height-lg) - 1.25rem - 2 * var(--tblr-border-width)) / 2);
|
|
682
|
+
--tblr-pagination-link-min-width: var(--t-control-height-lg);
|
|
683
|
+
}
|
|
684
|
+
/* Each one that high, numbers and arrows alike, its content in the middle. */
|
|
685
|
+
[data-t-density] .page-link { display: flex; align-items: center; justify-content: center; min-height: var(--tblr-pagination-link-min-width); }
|
|
686
|
+
/* Tabs and pills: their padding on the scale. A segmented control is as high as a field, so they line up. */
|
|
687
|
+
[data-t-density] .nav { --tblr-nav-link-padding-y: calc(0.5rem * var(--t-scale)); --tblr-nav-link-padding-x: calc(0.75rem * var(--t-scale)); }
|
|
688
|
+
[data-t-density] .nav-segmented { --tblr-nav-height: var(--t-control-height); --tblr-nav-link-padding-x: calc(0.75rem * var(--t-scale)); }
|
|
671
689
|
|
|
672
690
|
/* Spacing classes on the density's scale (t-p-3, t-mb-2, t-gap-1, …: 0 to 6): Tabler's p-3 or gap-2 are
|
|
673
691
|
fixed sizes, so what an app draws uses these instead. */
|