@parallelogram-js/dashboard 0.1.2 → 0.1.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.
- package/CHANGELOG.md +28 -1
- package/README.md +56 -1
- package/dist/parallelogram-dashboard.css +294 -3
- package/dist/parallelogram-dashboard.css.map +1 -1
- package/dist/parallelogram-dashboard.min.css +1 -1
- package/package.json +1 -1
- package/scss/_index.scss +2 -0
- package/scss/_tokens.scss +5 -2
- package/scss/_variables.scss +3 -0
- package/scss/components/_bulkactions.scss +129 -0
- package/scss/components/_button.scss +30 -0
- package/scss/components/_recordgrid.scss +181 -0
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,32 @@ section can be taken with a version bump and a rebuild.
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [0.1.3] - 2026-10-16
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `btn--warning`, `btn--success` and `btn--info`, coloured buttons beside `btn--destructive` for
|
|
19
|
+
an action that matches a status, such as a Fix button next to a Warning badge. They read the
|
|
20
|
+
new `--warning-hover`, `--success-hover` and `--info-hover` tokens.
|
|
21
|
+
- Record Grid, the picture view of a record list: a `.recordgrid` of `recordgrid__item` tiles
|
|
22
|
+
(`recordgrid--sm`, `recordgrid--square`), each led by a `recordgrid__thumb` (`--contain` for
|
|
23
|
+
logos and product shots, or an icon when there is no image), with `recordgrid__title`,
|
|
24
|
+
`recordgrid__meta` and a `recordgrid__footer` holding `recordgrid__status` badges and the action
|
|
25
|
+
menu. A `recordgrid__select` checkbox lets the grid share the table's bulk actions; checked tiles
|
|
26
|
+
are outlined and `aria-disabled="true"` dims a tile.
|
|
27
|
+
- Bulk Actions, the bar for acting on selected rows: `.bulkactions` (`--inline` to sit in the flow
|
|
28
|
+
rather than float over the bottom of the viewport) with `bulkactions__count`,
|
|
29
|
+
`bulkactions__actions` and `bulkactions__clear`. The page toggles it with `hidden` and it slides
|
|
30
|
+
in when shown. It was in the demo stylesheet, so a site had to copy it; it now ships in the
|
|
31
|
+
library. Both have a component page, and the Records demo uses them for its grid view and
|
|
32
|
+
selection bar.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- `--success-fg` is dark in the light theme too, as it already was in dark, and `--info-fg` is
|
|
37
|
+
dark in both. Light text on green-500 and blue-500 fell short of WCAG AA contrast, so
|
|
38
|
+
`badge--success` and `badge--info` now have dark text.
|
|
39
|
+
|
|
14
40
|
## [0.1.2] - 2026-10-16
|
|
15
41
|
|
|
16
42
|
### Added
|
|
@@ -118,7 +144,8 @@ The first tagged release, covering everything on `main` to date.
|
|
|
118
144
|
`overflow-y: auto`; the page itself scrolls. Templates that relied on the content area
|
|
119
145
|
scrolling inside a fixed-height shell need their own scrolling wrapper.
|
|
120
146
|
|
|
121
|
-
[Unreleased]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.
|
|
147
|
+
[Unreleased]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.3...HEAD
|
|
148
|
+
[0.1.3]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.2...v0.1.3
|
|
122
149
|
[0.1.2]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.1...v0.1.2
|
|
123
150
|
[0.1.1]: https://github.com/parallelogram-dev/parallelogram-dashboard/compare/v0.1.0...v0.1.1
|
|
124
151
|
[0.1.0]: https://github.com/parallelogram-dev/parallelogram-dashboard/releases/tag/v0.1.0
|
package/README.md
CHANGED
|
@@ -108,6 +108,7 @@ parallelogram-dashboard/
|
|
|
108
108
|
│ │ ├── _badge.scss
|
|
109
109
|
│ │ ├── _banner.scss
|
|
110
110
|
│ │ ├── _breadcrumb.scss
|
|
111
|
+
│ │ ├── _bulkactions.scss
|
|
111
112
|
│ │ ├── _button.scss
|
|
112
113
|
│ │ ├── _card.scss
|
|
113
114
|
│ │ ├── _command.scss
|
|
@@ -122,6 +123,7 @@ parallelogram-dashboard/
|
|
|
122
123
|
│ │ ├── _pageheader.scss
|
|
123
124
|
│ │ ├── _pagination.scss
|
|
124
125
|
│ │ ├── _progress.scss
|
|
126
|
+
│ │ ├── _recordgrid.scss
|
|
125
127
|
│ │ ├── _separator.scss
|
|
126
128
|
│ │ ├── _sheet.scss
|
|
127
129
|
│ │ ├── _sidebar.scss
|
|
@@ -421,6 +423,9 @@ warns when a playground spec or demo page renders one. The list lives in
|
|
|
421
423
|
<button class="btn btn--primary">Primary</button>
|
|
422
424
|
<button class="btn btn--secondary">Secondary</button>
|
|
423
425
|
<button class="btn btn--destructive">Destructive</button>
|
|
426
|
+
<button class="btn btn--warning">Warning</button>
|
|
427
|
+
<button class="btn btn--success">Success</button>
|
|
428
|
+
<button class="btn btn--info">Info</button>
|
|
424
429
|
<button class="btn btn--outline">Outline</button>
|
|
425
430
|
<button class="btn btn--ghost">Ghost</button>
|
|
426
431
|
<button class="btn btn--link">Link</button>
|
|
@@ -704,6 +709,56 @@ Form parts are elements of the `.form` block. A `.form__field` bundles a label,
|
|
|
704
709
|
</th>
|
|
705
710
|
```
|
|
706
711
|
|
|
712
|
+
### Record Grid `.recordgrid`
|
|
713
|
+
|
|
714
|
+
The picture view of a record list. Tiles fill the row at a minimum of 14rem (`recordgrid--sm`:
|
|
715
|
+
10rem); thumbnails are 4:3 (`recordgrid--square`: 1:1) and fill the frame, or sit whole with
|
|
716
|
+
`recordgrid__thumb--contain`. A record with no image puts an `.icon` in the thumbnail instead.
|
|
717
|
+
|
|
718
|
+
```html
|
|
719
|
+
<ul class="recordgrid">
|
|
720
|
+
<li class="recordgrid__item">
|
|
721
|
+
<label class="checkbox recordgrid__select">
|
|
722
|
+
<input type="checkbox" class="checkbox__input" value="42" aria-label="Select Spring launch">
|
|
723
|
+
</label>
|
|
724
|
+
<a href="/records/42" class="recordgrid__thumb" tabindex="-1" aria-hidden="true"><img src="..." alt=""></a>
|
|
725
|
+
<div class="recordgrid__body">
|
|
726
|
+
<a href="/records/42" class="recordgrid__title">Spring launch</a>
|
|
727
|
+
<p class="recordgrid__meta">News · Modified 2 hours ago</p>
|
|
728
|
+
<div class="recordgrid__footer">
|
|
729
|
+
<div class="recordgrid__status"><span class="badge badge--success-muted">Published</span></div>
|
|
730
|
+
<div class="dropdown dropdown--right">...</div>
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
</li>
|
|
734
|
+
</ul>
|
|
735
|
+
```
|
|
736
|
+
|
|
737
|
+
The selection checkbox shows while a tile is hovered or focused, and on every tile once any is
|
|
738
|
+
checked. A checked tile is outlined, and `aria-disabled="true"` on `recordgrid__item` dims an
|
|
739
|
+
unpublished or locked record while its controls stay usable.
|
|
740
|
+
|
|
741
|
+
### Bulk Actions `.bulkactions`
|
|
742
|
+
|
|
743
|
+
Acts on the rows selected in a table or record grid. Keep it in the page with `hidden`; the
|
|
744
|
+
page's script sets the count and toggles `hidden` as the selection changes, and the bar slides in
|
|
745
|
+
each time it appears. It floats over the bottom of the viewport, so dropdowns in it open upwards
|
|
746
|
+
(`dropdown--top`); `bulkactions--inline` sits in the flow instead, e.g. above the table.
|
|
747
|
+
|
|
748
|
+
```html
|
|
749
|
+
<div class="bulkactions" role="region" aria-label="Bulk actions" hidden>
|
|
750
|
+
<span class="bulkactions__count"><strong>3</strong> selected</span>
|
|
751
|
+
<div class="bulkactions__actions">
|
|
752
|
+
<div class="dropdown dropdown--top">...</div>
|
|
753
|
+
<button type="button" class="btn btn--ghost btn--sm">Archive</button>
|
|
754
|
+
<button type="button" class="btn btn--destructive btn--sm">Delete</button>
|
|
755
|
+
</div>
|
|
756
|
+
<button type="button" class="btn btn--ghost btn--icon btn--sm bulkactions__clear" aria-label="Clear selection">
|
|
757
|
+
<svg class="icon">...</svg>
|
|
758
|
+
</button>
|
|
759
|
+
</div>
|
|
760
|
+
```
|
|
761
|
+
|
|
707
762
|
### Tabs `.tabs`
|
|
708
763
|
|
|
709
764
|
```html
|
|
@@ -1230,7 +1285,7 @@ Use these as starting templates:
|
|
|
1230
1285
|
|------|------|-------------|
|
|
1231
1286
|
| Component Library | `index.html` | All components showcase |
|
|
1232
1287
|
| Dashboard | `dashboard.html` | Stats, charts, activity feed |
|
|
1233
|
-
| Records List | `records.html` | Data table with search, filters, pagination |
|
|
1288
|
+
| Records List | `records.html` | Data table and picture grid with search, filters, bulk actions, pagination |
|
|
1234
1289
|
| Record Form | `record-form.html` | Create/edit form with validation |
|
|
1235
1290
|
| Record Delete | `record-delete.html` | Confirmation pattern |
|
|
1236
1291
|
| Settings Index | `settings.html` | Settings category cards |
|
|
@@ -21,15 +21,18 @@
|
|
|
21
21
|
--destructive-muted: light-dark(#fef2f2, #7f1d1d);
|
|
22
22
|
--destructive-muted-fg: light-dark(#7f1d1d, #fee2e2);
|
|
23
23
|
--success: #22c55e;
|
|
24
|
-
--success-fg:
|
|
24
|
+
--success-fg: #09090b;
|
|
25
|
+
--success-hover: light-dark(#16a34a, #4ade80);
|
|
25
26
|
--success-muted: light-dark(#f0fdf4, #14532d);
|
|
26
27
|
--success-muted-fg: light-dark(#14532d, #dcfce7);
|
|
27
28
|
--warning: #f59e0b;
|
|
28
29
|
--warning-fg: #09090b;
|
|
30
|
+
--warning-hover: light-dark(#d97706, #fbbf24);
|
|
29
31
|
--warning-muted: light-dark(#fffbeb, #78350f);
|
|
30
32
|
--warning-muted-fg: light-dark(#78350f, #fef3c7);
|
|
31
33
|
--info: #3b82f6;
|
|
32
|
-
--info-fg: #
|
|
34
|
+
--info-fg: #09090b;
|
|
35
|
+
--info-hover: #60a5fa;
|
|
33
36
|
--info-muted: light-dark(#eff6ff, #1e3a8a);
|
|
34
37
|
--info-muted-fg: light-dark(#1e3a8a, #dbeafe);
|
|
35
38
|
--accent: light-dark(#f4f4f5, #27272a);
|
|
@@ -246,7 +249,7 @@
|
|
|
246
249
|
--tracking-tight: -0.025em;
|
|
247
250
|
}
|
|
248
251
|
|
|
249
|
-
.filebrowser__search .form__control:focus, .filebrowser__checkbox:focus-visible + .filebrowser__label, .asset__input:focus, .media__remove:focus-visible, .media__copy:focus-visible, .media__btn:focus-visible, .chart__plot:focus-visible, .accordion__trigger:focus-visible, .toolbar__input:focus, .filter__label:focus-visible, .pagination__item:focus-visible, .pagination__prev:focus-visible, .pagination__next:focus-visible, .navmenu__item:focus-visible, .navmenu__avatar:focus-visible, .subnav__action:focus-visible, .subnav__search-input:focus, .subnav__section-action:focus-visible, .subnav__item:focus-visible, .subnav__subitem:focus-visible, .breadcrumb__link:focus-visible, .breadcrumb__ellipsis:focus-visible, .breadcrumb__dropdown-trigger:focus-visible, .breadcrumb__dropdown-item:focus-visible, .tabs__trigger:focus-visible, .segmented-control__item:focus-visible, .modal__close:focus-visible, .dropdown__item:focus-visible, .contextmenu__item:focus-visible, .navbar__item:focus-visible, .navbar__toggle:focus-visible, .navbar__search-input:focus, .navbarmobile__close:focus-visible, .navbarmobile__item:focus-visible, .sidebar__item:focus-visible, .table__head--sortable:focus-visible, .table__control:focus, .alert__close:focus-visible, .card--interactive:focus-visible, .input:focus, .textarea:focus, .select:focus, .checkbox__input:focus-visible,
|
|
252
|
+
.recordgrid__title:is(a):focus-visible, .filebrowser__search .form__control:focus, .filebrowser__checkbox:focus-visible + .filebrowser__label, .asset__input:focus, .media__remove:focus-visible, .media__copy:focus-visible, .media__btn:focus-visible, .chart__plot:focus-visible, .accordion__trigger:focus-visible, .toolbar__input:focus, .filter__label:focus-visible, .pagination__item:focus-visible, .pagination__prev:focus-visible, .pagination__next:focus-visible, .navmenu__item:focus-visible, .navmenu__avatar:focus-visible, .subnav__action:focus-visible, .subnav__search-input:focus, .subnav__section-action:focus-visible, .subnav__item:focus-visible, .subnav__subitem:focus-visible, .breadcrumb__link:focus-visible, .breadcrumb__ellipsis:focus-visible, .breadcrumb__dropdown-trigger:focus-visible, .breadcrumb__dropdown-item:focus-visible, .tabs__trigger:focus-visible, .segmented-control__item:focus-visible, .modal__close:focus-visible, .dropdown__item:focus-visible, .contextmenu__item:focus-visible, .navbar__item:focus-visible, .navbar__toggle:focus-visible, .navbar__search-input:focus, .navbarmobile__close:focus-visible, .navbarmobile__item:focus-visible, .sidebar__item:focus-visible, .table__head--sortable:focus-visible, .table__control:focus, .alert__close:focus-visible, .card--interactive:focus-visible, .input:focus, .textarea:focus, .select:focus, .checkbox__input:focus-visible,
|
|
250
253
|
.radio__input:focus-visible, .switch__input:focus-visible, .btn:focus-visible {
|
|
251
254
|
outline: var(--framework-focus-width) solid var(--framework-focus-color);
|
|
252
255
|
outline-offset: var(--framework-focus-offset);
|
|
@@ -1448,6 +1451,27 @@ code.code--sm {
|
|
|
1448
1451
|
.btn--destructive:hover:not(:disabled) {
|
|
1449
1452
|
background-color: var(--destructive-hover);
|
|
1450
1453
|
}
|
|
1454
|
+
.btn--warning {
|
|
1455
|
+
background-color: var(--warning);
|
|
1456
|
+
color: var(--warning-fg);
|
|
1457
|
+
}
|
|
1458
|
+
.btn--warning:hover:not(:disabled) {
|
|
1459
|
+
background-color: var(--warning-hover);
|
|
1460
|
+
}
|
|
1461
|
+
.btn--success {
|
|
1462
|
+
background-color: var(--success);
|
|
1463
|
+
color: var(--success-fg);
|
|
1464
|
+
}
|
|
1465
|
+
.btn--success:hover:not(:disabled) {
|
|
1466
|
+
background-color: var(--success-hover);
|
|
1467
|
+
}
|
|
1468
|
+
.btn--info {
|
|
1469
|
+
background-color: var(--info);
|
|
1470
|
+
color: var(--info-fg);
|
|
1471
|
+
}
|
|
1472
|
+
.btn--info:hover:not(:disabled) {
|
|
1473
|
+
background-color: var(--info-hover);
|
|
1474
|
+
}
|
|
1451
1475
|
.btn--link {
|
|
1452
1476
|
background-color: transparent;
|
|
1453
1477
|
color: var(--primary);
|
|
@@ -9475,4 +9499,271 @@ dl.descriptionlist dd {
|
|
|
9475
9499
|
background-color: var(--primary-hover);
|
|
9476
9500
|
}
|
|
9477
9501
|
|
|
9502
|
+
/**
|
|
9503
|
+
* Record grid
|
|
9504
|
+
*
|
|
9505
|
+
* The picture view of a record list: a responsive grid of tiles, each led by a thumbnail
|
|
9506
|
+
* (.recordgrid__thumb, an image or a placeholder icon), with a title, a meta line and a footer
|
|
9507
|
+
* holding the status badges and the record's action menu.
|
|
9508
|
+
*
|
|
9509
|
+
* A tile can carry a selection checkbox (.recordgrid__select) over its thumbnail, so the same
|
|
9510
|
+
* bulk actions work as in the table view. It shows while the tile is hovered or focused, and on
|
|
9511
|
+
* every tile once anything in the grid is selected. A checked tile is outlined; a tile with
|
|
9512
|
+
* aria-disabled="true" (unpublished, locked) is dimmed but its controls stay usable.
|
|
9513
|
+
*
|
|
9514
|
+
* Tiles never clip their contents, so the action menu can open past the tile's edge.
|
|
9515
|
+
*/
|
|
9516
|
+
.recordgrid {
|
|
9517
|
+
--recordgrid-min: 14rem;
|
|
9518
|
+
--recordgrid-ratio: 4 / 3;
|
|
9519
|
+
display: grid;
|
|
9520
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--recordgrid-min), 100%), 1fr));
|
|
9521
|
+
gap: 1rem;
|
|
9522
|
+
margin: 0;
|
|
9523
|
+
padding: 0;
|
|
9524
|
+
list-style: none;
|
|
9525
|
+
}
|
|
9526
|
+
.recordgrid--sm {
|
|
9527
|
+
--recordgrid-min: 10rem;
|
|
9528
|
+
gap: 0.75rem;
|
|
9529
|
+
}
|
|
9530
|
+
.recordgrid--square {
|
|
9531
|
+
--recordgrid-ratio: 1;
|
|
9532
|
+
}
|
|
9533
|
+
.recordgrid__item {
|
|
9534
|
+
position: relative;
|
|
9535
|
+
display: flex;
|
|
9536
|
+
flex-direction: column;
|
|
9537
|
+
min-width: 0;
|
|
9538
|
+
color: var(--card-fg);
|
|
9539
|
+
background-color: var(--card);
|
|
9540
|
+
border: 1px solid var(--border);
|
|
9541
|
+
border-radius: var(--radius-lg);
|
|
9542
|
+
transition: var(--transition-colors);
|
|
9543
|
+
}
|
|
9544
|
+
.recordgrid__item:hover {
|
|
9545
|
+
border-color: var(--fg-subtle);
|
|
9546
|
+
}
|
|
9547
|
+
.recordgrid__item:has(.recordgrid__select :checked) {
|
|
9548
|
+
border-color: var(--primary);
|
|
9549
|
+
box-shadow: 0 0 0 1px var(--primary);
|
|
9550
|
+
}
|
|
9551
|
+
.recordgrid__item[aria-disabled=true] :is(.recordgrid__thumb, .recordgrid__title) {
|
|
9552
|
+
opacity: 0.55;
|
|
9553
|
+
}
|
|
9554
|
+
.recordgrid__thumb {
|
|
9555
|
+
position: relative;
|
|
9556
|
+
display: flex;
|
|
9557
|
+
align-items: center;
|
|
9558
|
+
justify-content: center;
|
|
9559
|
+
aspect-ratio: var(--recordgrid-ratio);
|
|
9560
|
+
margin: 0;
|
|
9561
|
+
overflow: hidden;
|
|
9562
|
+
color: var(--fg-subtle);
|
|
9563
|
+
background-color: var(--bg-muted);
|
|
9564
|
+
border-bottom: 1px solid var(--border);
|
|
9565
|
+
border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
|
|
9566
|
+
}
|
|
9567
|
+
.recordgrid__thumb img,
|
|
9568
|
+
.recordgrid__thumb picture {
|
|
9569
|
+
display: block;
|
|
9570
|
+
width: 100%;
|
|
9571
|
+
height: 100%;
|
|
9572
|
+
}
|
|
9573
|
+
.recordgrid__thumb img {
|
|
9574
|
+
object-fit: cover;
|
|
9575
|
+
}
|
|
9576
|
+
.recordgrid__thumb > .icon {
|
|
9577
|
+
width: 1.5rem;
|
|
9578
|
+
height: 1.5rem;
|
|
9579
|
+
}
|
|
9580
|
+
.recordgrid__thumb:is(a):focus-visible {
|
|
9581
|
+
outline: 2px solid var(--ring);
|
|
9582
|
+
outline-offset: -2px;
|
|
9583
|
+
}
|
|
9584
|
+
.recordgrid__thumb--contain img {
|
|
9585
|
+
padding: 0.75rem;
|
|
9586
|
+
object-fit: contain;
|
|
9587
|
+
}
|
|
9588
|
+
.recordgrid__select {
|
|
9589
|
+
position: absolute;
|
|
9590
|
+
top: 0.5rem;
|
|
9591
|
+
left: 0.5rem;
|
|
9592
|
+
z-index: 1;
|
|
9593
|
+
display: inline-flex;
|
|
9594
|
+
padding: 0.25rem;
|
|
9595
|
+
background-color: var(--card);
|
|
9596
|
+
border-radius: var(--radius-sm);
|
|
9597
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
9598
|
+
opacity: 0;
|
|
9599
|
+
transition: var(--transition-opacity);
|
|
9600
|
+
}
|
|
9601
|
+
@media (hover: none) {
|
|
9602
|
+
.recordgrid__select {
|
|
9603
|
+
opacity: 1;
|
|
9604
|
+
}
|
|
9605
|
+
}
|
|
9606
|
+
.recordgrid__item:is(:hover, :focus-within) .recordgrid__select, .recordgrid:has(.recordgrid__select :checked) .recordgrid__select {
|
|
9607
|
+
opacity: 1;
|
|
9608
|
+
}
|
|
9609
|
+
.recordgrid__body {
|
|
9610
|
+
display: flex;
|
|
9611
|
+
flex: 1;
|
|
9612
|
+
flex-direction: column;
|
|
9613
|
+
gap: 0.25rem;
|
|
9614
|
+
min-width: 0;
|
|
9615
|
+
padding: 0.75rem;
|
|
9616
|
+
}
|
|
9617
|
+
.recordgrid__title {
|
|
9618
|
+
margin: 0;
|
|
9619
|
+
font-size: 0.875rem;
|
|
9620
|
+
font-weight: 500;
|
|
9621
|
+
line-height: 1.375;
|
|
9622
|
+
color: inherit;
|
|
9623
|
+
text-decoration: none;
|
|
9624
|
+
display: -webkit-box;
|
|
9625
|
+
-webkit-line-clamp: 2;
|
|
9626
|
+
-webkit-box-orient: vertical;
|
|
9627
|
+
overflow: hidden;
|
|
9628
|
+
}
|
|
9629
|
+
.recordgrid__title:is(a):hover {
|
|
9630
|
+
text-decoration: underline;
|
|
9631
|
+
}
|
|
9632
|
+
.recordgrid__meta {
|
|
9633
|
+
margin: 0;
|
|
9634
|
+
font-size: 0.75rem;
|
|
9635
|
+
color: var(--fg-muted);
|
|
9636
|
+
overflow: hidden;
|
|
9637
|
+
text-overflow: ellipsis;
|
|
9638
|
+
white-space: nowrap;
|
|
9639
|
+
}
|
|
9640
|
+
.recordgrid__footer {
|
|
9641
|
+
display: flex;
|
|
9642
|
+
align-items: center;
|
|
9643
|
+
justify-content: space-between;
|
|
9644
|
+
gap: 0.5rem;
|
|
9645
|
+
margin-top: auto;
|
|
9646
|
+
padding-top: 0.5rem;
|
|
9647
|
+
}
|
|
9648
|
+
.recordgrid__status {
|
|
9649
|
+
display: flex;
|
|
9650
|
+
flex-wrap: wrap;
|
|
9651
|
+
gap: 0.25rem;
|
|
9652
|
+
min-width: 0;
|
|
9653
|
+
}
|
|
9654
|
+
|
|
9655
|
+
/**
|
|
9656
|
+
* Bulk actions bar
|
|
9657
|
+
*
|
|
9658
|
+
* Acts on the records selected in a table or record grid: a count of the selection
|
|
9659
|
+
* (.bulkactions__count), then buttons and dropdowns (.bulkactions__actions), and optionally a
|
|
9660
|
+
* button to clear the selection (.bulkactions__clear).
|
|
9661
|
+
*
|
|
9662
|
+
* The bar is markup on the page from the start, kept out of sight with the hidden attribute. The
|
|
9663
|
+
* page's script updates the count and removes hidden once something is selected, and puts it back
|
|
9664
|
+
* when the selection empties; the bar slides in each time it appears.
|
|
9665
|
+
*
|
|
9666
|
+
* By default it floats over the bottom of the viewport, so dropdowns inside it should open
|
|
9667
|
+
* upwards (dropdown--top). .bulkactions--inline sits in the flow instead, such as above the table in
|
|
9668
|
+
* place of its toolbar.
|
|
9669
|
+
*/
|
|
9670
|
+
.bulkactions {
|
|
9671
|
+
position: fixed;
|
|
9672
|
+
bottom: 1.5rem;
|
|
9673
|
+
left: 50%;
|
|
9674
|
+
z-index: 200;
|
|
9675
|
+
display: flex;
|
|
9676
|
+
flex-wrap: wrap;
|
|
9677
|
+
align-items: center;
|
|
9678
|
+
gap: 0.5rem 0.75rem;
|
|
9679
|
+
width: max-content;
|
|
9680
|
+
max-width: calc(100vw - 2rem);
|
|
9681
|
+
padding: 0.5rem 0.75rem;
|
|
9682
|
+
color: var(--card-fg);
|
|
9683
|
+
background-color: var(--card);
|
|
9684
|
+
border: 1px solid var(--border);
|
|
9685
|
+
border-radius: var(--radius-lg);
|
|
9686
|
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
9687
|
+
transform: translateX(-50%);
|
|
9688
|
+
animation: bulkactions-float-in 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
9689
|
+
}
|
|
9690
|
+
@media (max-width: 639px) {
|
|
9691
|
+
.bulkactions {
|
|
9692
|
+
right: 1rem;
|
|
9693
|
+
left: 1rem;
|
|
9694
|
+
width: auto;
|
|
9695
|
+
max-width: none;
|
|
9696
|
+
transform: none;
|
|
9697
|
+
animation-name: bulkactions-in;
|
|
9698
|
+
}
|
|
9699
|
+
.bulkactions .bulkactions__count {
|
|
9700
|
+
border-right: 0;
|
|
9701
|
+
}
|
|
9702
|
+
.bulkactions .bulkactions__actions {
|
|
9703
|
+
order: 1;
|
|
9704
|
+
flex-basis: 100%;
|
|
9705
|
+
}
|
|
9706
|
+
}
|
|
9707
|
+
@media (max-width: 767px) {
|
|
9708
|
+
.dashboard .bulkactions {
|
|
9709
|
+
bottom: calc(4rem + 0.5rem);
|
|
9710
|
+
}
|
|
9711
|
+
}
|
|
9712
|
+
.bulkactions--inline {
|
|
9713
|
+
position: static;
|
|
9714
|
+
width: auto;
|
|
9715
|
+
max-width: none;
|
|
9716
|
+
background-color: color-mix(in srgb, var(--primary) 6%, var(--card));
|
|
9717
|
+
box-shadow: none;
|
|
9718
|
+
transform: none;
|
|
9719
|
+
animation-name: bulkactions-in;
|
|
9720
|
+
}
|
|
9721
|
+
.bulkactions__count {
|
|
9722
|
+
display: inline-flex;
|
|
9723
|
+
align-items: center;
|
|
9724
|
+
align-self: stretch;
|
|
9725
|
+
padding-right: 0.75rem;
|
|
9726
|
+
font-size: 0.875rem;
|
|
9727
|
+
white-space: nowrap;
|
|
9728
|
+
border-right: 1px solid var(--border);
|
|
9729
|
+
}
|
|
9730
|
+
.bulkactions__count strong {
|
|
9731
|
+
font-weight: 600;
|
|
9732
|
+
}
|
|
9733
|
+
.bulkactions__actions {
|
|
9734
|
+
display: flex;
|
|
9735
|
+
flex-wrap: wrap;
|
|
9736
|
+
align-items: center;
|
|
9737
|
+
gap: 0.25rem;
|
|
9738
|
+
}
|
|
9739
|
+
.bulkactions__clear {
|
|
9740
|
+
margin-left: auto;
|
|
9741
|
+
}
|
|
9742
|
+
@media (prefers-reduced-motion: reduce) {
|
|
9743
|
+
.bulkactions {
|
|
9744
|
+
animation: none;
|
|
9745
|
+
}
|
|
9746
|
+
}
|
|
9747
|
+
|
|
9748
|
+
@keyframes bulkactions-float-in {
|
|
9749
|
+
from {
|
|
9750
|
+
opacity: 0;
|
|
9751
|
+
transform: translateX(-50%) translateY(1rem);
|
|
9752
|
+
}
|
|
9753
|
+
to {
|
|
9754
|
+
opacity: 1;
|
|
9755
|
+
transform: translateX(-50%) translateY(0);
|
|
9756
|
+
}
|
|
9757
|
+
}
|
|
9758
|
+
@keyframes bulkactions-in {
|
|
9759
|
+
from {
|
|
9760
|
+
opacity: 0;
|
|
9761
|
+
translate: 0 0.5rem;
|
|
9762
|
+
}
|
|
9763
|
+
to {
|
|
9764
|
+
opacity: 1;
|
|
9765
|
+
translate: 0 0;
|
|
9766
|
+
}
|
|
9767
|
+
}
|
|
9768
|
+
|
|
9478
9769
|
/*# sourceMappingURL=parallelogram-dashboard.css.map */
|