compostrap 0.0.0-stage → 1.0.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/dist/css/auth.css +166 -0
- package/dist/css/blog.css +512 -0
- package/dist/css/chart.css +99 -0
- package/dist/css/compostrap.css +5052 -0
- package/dist/css/dashboard.css +360 -0
- package/dist/css/datagrid.css +64 -0
- package/dist/css/datepicker.css +514 -0
- package/dist/css/dialogs.css +185 -0
- package/dist/css/dropzone.css +86 -0
- package/dist/css/elements.css +181 -0
- package/dist/css/empty.css +94 -0
- package/dist/css/gallery.css +122 -0
- package/dist/css/lightbox.css +144 -0
- package/dist/css/number-input.css +100 -0
- package/dist/css/otp-input.css +177 -0
- package/dist/css/password-toggle.css +52 -0
- package/dist/css/rating.css +95 -0
- package/dist/css/selection.css +59 -0
- package/dist/css/settings.css +85 -0
- package/dist/css/shop.css +1026 -0
- package/dist/css/sidebar-menu.css +439 -0
- package/dist/css/sidebar.css +95 -0
- package/dist/css/spinner.css +102 -0
- package/dist/css/strength.css +118 -0
- package/dist/css/theme-switcher.css +5 -0
- package/dist/css/theme.css +13034 -0
- package/dist/css/tooltip.css +158 -0
- package/dist/js/chart.js +257 -0
- package/dist/js/datepicker.js +82 -0
- package/dist/js/dialogs.js +7 -0
- package/dist/js/dropzone.js +15 -0
- package/dist/js/index.js +24 -0
- package/dist/js/lightbox.js +77 -0
- package/dist/js/number-input.js +44 -0
- package/dist/js/otp-input.js +182 -0
- package/dist/js/password-toggle.js +16 -0
- package/dist/js/selection.js +32 -0
- package/dist/js/sidebar-menu.js +76 -0
- package/dist/js/sidebar.js +120 -0
- package/dist/js/spinner.js +27 -0
- package/dist/js/strength.js +87 -0
- package/dist/js/theme-switcher.js +98 -0
- package/dist/js/tooltip.js +17 -0
- package/docs/auth.md +25 -0
- package/docs/blog.md +85 -0
- package/docs/chart.md +39 -0
- package/docs/datagrid.md +64 -0
- package/docs/datepicker.md +35 -0
- package/docs/dialogs.md +81 -0
- package/docs/dropzone.md +23 -0
- package/docs/elements.md +38 -0
- package/docs/empty.md +25 -0
- package/docs/gallery.md +23 -0
- package/docs/layout.md +143 -0
- package/docs/lightbox.md +18 -0
- package/docs/number-input.md +19 -0
- package/docs/otp-input.md +52 -0
- package/docs/password-toggle.md +21 -0
- package/docs/rating.md +15 -0
- package/docs/selection.md +52 -0
- package/docs/settings.md +25 -0
- package/docs/shop.md +140 -0
- package/docs/spinner.md +51 -0
- package/docs/strength.md +26 -0
- package/docs/theme-switcher.md +60 -0
- package/docs/theme.md +100 -0
- package/docs/tooltip.md +30 -0
- package/license +21 -0
- package/package.json +106 -6
- package/readme.md +198 -0
- package/src/illustrations/empty.svg +15 -0
- package/src/illustrations/forbidden.svg +16 -0
- package/src/illustrations/maintenance.svg +14 -0
- package/src/illustrations/not-found.svg +22 -0
- package/src/illustrations/server-error.svg +21 -0
- package/src/js/chart.js +359 -0
- package/src/js/datepicker.js +154 -0
- package/src/js/dialogs.js +25 -0
- package/src/js/dropzone.js +35 -0
- package/src/js/index.js +29 -0
- package/src/js/lightbox.js +165 -0
- package/src/js/number-input.js +87 -0
- package/src/js/otp-input.js +401 -0
- package/src/js/password-toggle.js +45 -0
- package/src/js/selection.js +114 -0
- package/src/js/sidebar-menu.js +178 -0
- package/src/js/sidebar.js +326 -0
- package/src/js/spinner.js +76 -0
- package/src/js/strength.js +115 -0
- package/src/js/theme-switcher.js +197 -0
- package/src/js/tooltip.js +46 -0
- package/src/scss/_bootstrap.scss +9 -0
- package/src/scss/_variables.scss +58 -0
- package/src/scss/auth/_index.scss +210 -0
- package/src/scss/auth.scss +5 -0
- package/src/scss/blog/_article.scss +181 -0
- package/src/scss/blog/_comments.scss +108 -0
- package/src/scss/blog/_index.scss +18 -0
- package/src/scss/blog/_list.scss +246 -0
- package/src/scss/blog/_page.scss +138 -0
- package/src/scss/blog.scss +5 -0
- package/src/scss/chart/_index.scss +114 -0
- package/src/scss/chart.scss +5 -0
- package/src/scss/compostrap.scss +29 -0
- package/src/scss/dashboard/_content.scss +25 -0
- package/src/scss/dashboard/_dropdown.scss +71 -0
- package/src/scss/dashboard/_index.scss +9 -0
- package/src/scss/dashboard/_nanobar.scss +34 -0
- package/src/scss/dashboard/_navbar.scss +314 -0
- package/src/scss/dashboard/_theme.scss +27 -0
- package/src/scss/dashboard.scss +5 -0
- package/src/scss/datagrid/_index.scss +111 -0
- package/src/scss/datagrid.scss +5 -0
- package/src/scss/datepicker/_index.scss +557 -0
- package/src/scss/datepicker.scss +5 -0
- package/src/scss/dialogs/_index.scss +8 -0
- package/src/scss/dialogs/_modal.scss +82 -0
- package/src/scss/dialogs/_offcanvas.scss +13 -0
- package/src/scss/dialogs/_search.scss +79 -0
- package/src/scss/dialogs/_toast.scss +61 -0
- package/src/scss/dialogs.scss +5 -0
- package/src/scss/dropzone/_index.scss +111 -0
- package/src/scss/dropzone.scss +5 -0
- package/src/scss/elements/_datagrid-filter.scss +21 -0
- package/src/scss/elements/_index.scss +9 -0
- package/src/scss/elements/_list-row.scss +40 -0
- package/src/scss/elements/_loading.scss +47 -0
- package/src/scss/elements/_stat.scss +73 -0
- package/src/scss/elements/_status-dot.scss +38 -0
- package/src/scss/elements.scss +5 -0
- package/src/scss/empty/_index.scss +117 -0
- package/src/scss/empty.scss +5 -0
- package/src/scss/gallery/_index.scss +162 -0
- package/src/scss/gallery.scss +5 -0
- package/src/scss/lightbox/_index.scss +171 -0
- package/src/scss/lightbox.scss +5 -0
- package/src/scss/number-input/_index.scss +143 -0
- package/src/scss/number-input.scss +5 -0
- package/src/scss/otp-input/_index.scss +214 -0
- package/src/scss/otp-input.scss +5 -0
- package/src/scss/password-toggle/_index.scss +82 -0
- package/src/scss/password-toggle.scss +5 -0
- package/src/scss/rating/_index.scss +121 -0
- package/src/scss/rating.scss +5 -0
- package/src/scss/selection/_index.scss +84 -0
- package/src/scss/selection.scss +5 -0
- package/src/scss/settings/_index.scss +6 -0
- package/src/scss/settings/_nav-list.scss +52 -0
- package/src/scss/settings/_setting-row.scss +50 -0
- package/src/scss/settings.scss +5 -0
- package/src/scss/shop/_bar.scss +64 -0
- package/src/scss/shop/_catalog.scss +308 -0
- package/src/scss/shop/_checkout.scss +204 -0
- package/src/scss/shop/_filters.scss +116 -0
- package/src/scss/shop/_hero.scss +130 -0
- package/src/scss/shop/_index.scss +22 -0
- package/src/scss/shop/_page.scss +154 -0
- package/src/scss/shop/_reviews.scss +165 -0
- package/src/scss/shop/_stepper.scss +159 -0
- package/src/scss/shop.scss +5 -0
- package/src/scss/sidebar/_body.scss +8 -0
- package/src/scss/sidebar/_index.scss +8 -0
- package/src/scss/sidebar/_sidebar.scss +89 -0
- package/src/scss/sidebar/_theme.scss +7 -0
- package/src/scss/sidebar/_wrapper.scss +17 -0
- package/src/scss/sidebar-menu/_compact.scss +174 -0
- package/src/scss/sidebar-menu/_index.scss +9 -0
- package/src/scss/sidebar-menu/_list.scss +131 -0
- package/src/scss/sidebar-menu/_pills.scss +82 -0
- package/src/scss/sidebar-menu/_scrollbar.scss +53 -0
- package/src/scss/sidebar-menu/_theme.scss +109 -0
- package/src/scss/sidebar-menu.scss +5 -0
- package/src/scss/sidebar.scss +5 -0
- package/src/scss/spinner/_index.scss +130 -0
- package/src/scss/spinner.scss +5 -0
- package/src/scss/strength/_index.scss +118 -0
- package/src/scss/strength.scss +5 -0
- package/src/scss/theme/_accordion.scss +20 -0
- package/src/scss/theme/_alerts.scss +24 -0
- package/src/scss/theme/_avatar.scss +37 -0
- package/src/scss/theme/_badges.scss +53 -0
- package/src/scss/theme/_base.scss +9 -0
- package/src/scss/theme/_breadcrumb.scss +64 -0
- package/src/scss/theme/_buttons.scss +200 -0
- package/src/scss/theme/_cards.scss +17 -0
- package/src/scss/theme/_colors.scss +139 -0
- package/src/scss/theme/_forms.scss +175 -0
- package/src/scss/theme/_index.scss +18 -0
- package/src/scss/theme/_navs.scss +15 -0
- package/src/scss/theme/_overlays.scss +128 -0
- package/src/scss/theme/_tables.scss +59 -0
- package/src/scss/theme/_variables.scss +194 -0
- package/src/scss/theme-switcher/_index.scss +9 -0
- package/src/scss/theme-switcher.scss +5 -0
- package/src/scss/theme.scss +9 -0
- package/src/scss/tooltip/_index.scss +177 -0
- package/src/scss/tooltip.scss +5 -0
- package/README.md +0 -3
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// a thin colored line at the top of a modal: <div class="modal-status"></div> as the first child of .modal-content;
|
|
2
|
+
// its color comes from a .theme-* class of the dialog (or a bg-* utility on the line itself)
|
|
3
|
+
.modal-status {
|
|
4
|
+
background-color: var(--theme-bg, var(--bs-primary));
|
|
5
|
+
position: absolute;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
height: 3px;
|
|
10
|
+
border-radius: var(--bs-modal-border-radius) var(--bs-modal-border-radius) 0 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// a confirmation or a message: narrow, centered, a large icon over the title and the text, buttons of the same width;
|
|
14
|
+
// a .theme-* class colors the line and the icon
|
|
15
|
+
// <div class="modal-dialog modal-dialog-centered modal-confirm theme-danger">…<i class="bi bi-exclamation-triangle
|
|
16
|
+
// modal-confirm-icon"></i><h2 class="modal-title">Are you sure?</h2><p>…</p>…</div>
|
|
17
|
+
.modal-confirm {
|
|
18
|
+
--bs-modal-width: 26rem;
|
|
19
|
+
|
|
20
|
+
.modal-content {
|
|
21
|
+
text-align: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.btn-close {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 1rem;
|
|
27
|
+
right: 1rem;
|
|
28
|
+
z-index: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.modal-body {
|
|
32
|
+
padding: 2rem 1.75rem 1.5rem;
|
|
33
|
+
|
|
34
|
+
> :last-child {
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.modal-title {
|
|
40
|
+
margin-bottom: .5rem;
|
|
41
|
+
font-size: 1.0625rem;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.modal-body p {
|
|
46
|
+
color: var(--bs-secondary-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.modal-footer {
|
|
50
|
+
flex-wrap: nowrap;
|
|
51
|
+
gap: .75rem;
|
|
52
|
+
padding: 1rem 1.75rem;
|
|
53
|
+
|
|
54
|
+
> * {
|
|
55
|
+
flex: 1;
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// the buttons inside a form (a confirmation sent by a form, e.g. of Nette: Cancel and the action) share the
|
|
60
|
+
// width like buttons that stand in the footer themselves; an empty element a validation script adds takes no room
|
|
61
|
+
> form {
|
|
62
|
+
display: flex;
|
|
63
|
+
gap: .75rem;
|
|
64
|
+
|
|
65
|
+
> .btn {
|
|
66
|
+
flex: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
> span:empty {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.modal-confirm-icon {
|
|
77
|
+
display: block;
|
|
78
|
+
color: var(--theme-fg, inherit);
|
|
79
|
+
margin-bottom: 1rem;
|
|
80
|
+
font-size: 3rem;
|
|
81
|
+
line-height: 1;
|
|
82
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// buttons of a form in an offcanvas, stuck to its bottom while the content scrolls (it reaches over the bottom padding
|
|
2
|
+
// of the offcanvas body, so nothing shows below it)
|
|
3
|
+
.offcanvas-actions {
|
|
4
|
+
position: sticky;
|
|
5
|
+
bottom: calc(-1 * var(--bs-offcanvas-padding-y));
|
|
6
|
+
z-index: 2;
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: .5rem;
|
|
9
|
+
justify-content: flex-end;
|
|
10
|
+
padding-top: 1rem;
|
|
11
|
+
padding-bottom: calc(1rem + var(--bs-offcanvas-padding-y));
|
|
12
|
+
background-color: var(--bs-offcanvas-bg, var(--bs-body-bg));
|
|
13
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// a search of the whole administration as a dialog (opened by a .navbar-icon button with a magnifier): one large
|
|
2
|
+
// field without a frame at the top, the results as .list-row links under it in groups with a small title. The field
|
|
3
|
+
// has no focus ring: it is the only field of the dialog and holds the focus while the dialog is open
|
|
4
|
+
// <div class="modal-dialog modal-search"><div class="modal-content">
|
|
5
|
+
// <form class="modal-search-form" role="search"><i class="bi bi-search"></i>
|
|
6
|
+
// <input type="search" class="modal-search-input" placeholder="Search…" aria-label="Search"><kbd>Esc</kbd></form>
|
|
7
|
+
// <div class="modal-search-results"><p class="modal-search-title">Articles</p>
|
|
8
|
+
// <a class="list-row" href="...">…</a>
|
|
9
|
+
// <p class="modal-search-empty">Nothing found.</p></div>
|
|
10
|
+
// </div></div>
|
|
11
|
+
.modal-search {
|
|
12
|
+
--bs-modal-width: 36rem;
|
|
13
|
+
|
|
14
|
+
.modal-content {
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.modal-search-form {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: .75rem;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: .875rem 1.25rem;
|
|
24
|
+
// a faint line under the field, drawn as a shadow
|
|
25
|
+
box-shadow: inset 0 -1px 0 rgba(var(--bs-body-color-rgb), .08);
|
|
26
|
+
|
|
27
|
+
> .bi {
|
|
28
|
+
font-size: 1.125rem;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
color: var(--bs-secondary-color);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.modal-search-input {
|
|
35
|
+
flex: 1;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
color: var(--bs-body-color);
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
border: 0;
|
|
42
|
+
outline: 0;
|
|
43
|
+
|
|
44
|
+
&::placeholder {
|
|
45
|
+
color: var(--bs-secondary-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// the cross of the browser; the dialog closes by Esc
|
|
49
|
+
&::-webkit-search-cancel-button {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// the results scroll inside the dialog, the field stays at the top
|
|
55
|
+
.modal-search-results {
|
|
56
|
+
max-height: min(24rem, 60vh);
|
|
57
|
+
padding: .5rem 1.25rem .75rem;
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
|
|
60
|
+
&:empty {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.modal-search-title {
|
|
66
|
+
margin: .75rem 0 .25rem;
|
|
67
|
+
font-size: .75rem;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
color: rgba(var(--bs-body-color-rgb), .6);
|
|
70
|
+
text-transform: uppercase;
|
|
71
|
+
letter-spacing: .02em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.modal-search-empty {
|
|
75
|
+
padding: 1.5rem 0;
|
|
76
|
+
margin: 0;
|
|
77
|
+
color: var(--bs-secondary-color);
|
|
78
|
+
text-align: center;
|
|
79
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// a message of a state (a flash message: saved, deleted, failed) as a toast in the look of the modals: a thin colored
|
|
2
|
+
// line at the top, an icon in the color, a title and a quiet text; a .theme-* class colors the line and the icon
|
|
3
|
+
// <div class="toast-container position-fixed bottom-0 end-0 p-3">
|
|
4
|
+
// <div class="toast toast-status theme-success" role="status" aria-live="polite" aria-atomic="true">
|
|
5
|
+
// <i class="bi bi-check-circle toast-status-icon" aria-hidden="true"></i>
|
|
6
|
+
// <div class="toast-status-body"><strong class="toast-status-title">Saved</strong><p>The article was saved.</p></div>
|
|
7
|
+
// <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
|
|
8
|
+
// </div>
|
|
9
|
+
// </div>
|
|
10
|
+
.toast-status {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: .75rem;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
padding: 1rem 1rem .875rem;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
|
|
18
|
+
// the line of .modal-status; the corners of the toast cut it
|
|
19
|
+
&::before {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
height: 3px;
|
|
25
|
+
content: '';
|
|
26
|
+
background-color: var(--theme-bg, var(--bs-primary));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
> .btn-close {
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
padding: .25rem;
|
|
32
|
+
margin: .125rem 0 0 auto;
|
|
33
|
+
font-size: .75rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.toast-status-icon {
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
font-size: 1.5rem;
|
|
40
|
+
line-height: 1;
|
|
41
|
+
color: var(--theme-fg, inherit);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.toast-status-body {
|
|
45
|
+
flex: 1;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
// the first line stands in the middle of the icon
|
|
48
|
+
padding-top: .0625rem;
|
|
49
|
+
|
|
50
|
+
p {
|
|
51
|
+
margin-bottom: 0;
|
|
52
|
+
color: var(--bs-secondary-color);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.toast-status-title {
|
|
57
|
+
display: block;
|
|
58
|
+
margin-bottom: .125rem;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
color: var(--bs-emphasis-color);
|
|
61
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
//
|
|
2
|
+
// dropzone: a large area to drop files on or to click, made of a plain file input (it stays the input of the form,
|
|
3
|
+
// so validation and AJAX forms work as before); no border, a soft background that turns to the primary color while
|
|
4
|
+
// files are dragged over it (the class is-dragover, set by the script DropzoneInput)
|
|
5
|
+
//
|
|
6
|
+
// <label class="dropzone">
|
|
7
|
+
// <input type="file" name="images[]" multiple class="dropzone-input">
|
|
8
|
+
// <i class="bi bi-cloud-arrow-up dropzone-icon" aria-hidden="true"></i>
|
|
9
|
+
// <span class="dropzone-title">Drop images here or <span class="dropzone-link">choose them</span></span>
|
|
10
|
+
// <span class="dropzone-hint">JPEG, PNG, GIF or WebP, at most 8 MB each.</span>
|
|
11
|
+
// <span class="dropzone-files" data-dropzone-files></span>
|
|
12
|
+
// </label>
|
|
13
|
+
//
|
|
14
|
+
|
|
15
|
+
.dropzone {
|
|
16
|
+
position: relative;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: .25rem;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
min-height: 9rem;
|
|
23
|
+
padding: 1.5rem 1rem;
|
|
24
|
+
color: var(--bs-secondary-color);
|
|
25
|
+
text-align: center;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
background-color: rgba(var(--bs-body-color-rgb), .03);
|
|
28
|
+
border-radius: var(--bs-border-radius-lg);
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
background-color: rgba(var(--bs-body-color-rgb), .05);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// the input covers the whole area, so a drop anywhere lands in it and a click opens the file chooser
|
|
35
|
+
.dropzone-input {
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: 0;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:has(.dropzone-input:focus-visible) {
|
|
45
|
+
box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), .6), 0 0 0 2px rgba(var(--bs-primary-rgb), .3);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.is-dragover {
|
|
49
|
+
color: var(--bs-primary);
|
|
50
|
+
background-color: rgba(var(--bs-primary-rgb), .08);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:has(.dropzone-input.is-invalid) {
|
|
54
|
+
background-color: rgba(var(--bs-danger-rgb), .06);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:has(.dropzone-input:disabled) {
|
|
58
|
+
cursor: default;
|
|
59
|
+
opacity: .65;
|
|
60
|
+
|
|
61
|
+
.dropzone-input {
|
|
62
|
+
cursor: default;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dropzone-icon {
|
|
68
|
+
margin-bottom: .25rem;
|
|
69
|
+
font-size: 2rem;
|
|
70
|
+
line-height: 1;
|
|
71
|
+
transition: transform .15s ease-in-out;
|
|
72
|
+
|
|
73
|
+
.dropzone.is-dragover & {
|
|
74
|
+
transform: translateY(-.25rem);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dropzone-title {
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
color: var(--bs-body-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dropzone-link {
|
|
84
|
+
color: var(--bs-primary);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dropzone-hint {
|
|
88
|
+
font-size: 1em;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// names of the chosen files, one line
|
|
92
|
+
.dropzone-files {
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
font-size: 1em;
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
color: var(--bs-body-color);
|
|
98
|
+
text-overflow: ellipsis;
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
|
|
101
|
+
&:empty {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media (prefers-reduced-motion: reduce) {
|
|
107
|
+
.dropzone,
|
|
108
|
+
.dropzone-icon {
|
|
109
|
+
transition: none;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// the button that clears an active filter of a datagrid column (the markup of drago DataGrid.latte): a gray cross
|
|
2
|
+
// button joined to its field, in $gray-600 with a white cross in both themes (the light gray of the secondary button
|
|
3
|
+
// was too light next to a field)
|
|
4
|
+
// <div class="datagrid-filter-control input-group input-group-sm">
|
|
5
|
+
// <input type="text" class="form-control form-control-sm" value="…">
|
|
6
|
+
// <a href="…" class="btn btn-secondary btn-sm datagrid-filter-clear" aria-label="Clear filter" data-tooltip>×</a>
|
|
7
|
+
// </div>
|
|
8
|
+
|
|
9
|
+
@use '../bootstrap' as bs;
|
|
10
|
+
|
|
11
|
+
.btn.datagrid-filter-clear {
|
|
12
|
+
--bs-btn-color: #{bs.$white};
|
|
13
|
+
--bs-btn-bg: #{bs.$gray-600};
|
|
14
|
+
--bs-btn-border-color: #{bs.$gray-600};
|
|
15
|
+
--bs-btn-hover-color: #{bs.$white};
|
|
16
|
+
--bs-btn-hover-bg: #{bs.$gray-700};
|
|
17
|
+
--bs-btn-hover-border-color: #{bs.$gray-700};
|
|
18
|
+
--bs-btn-active-color: #{bs.$white};
|
|
19
|
+
--bs-btn-active-bg: #{bs.$gray-700};
|
|
20
|
+
--bs-btn-active-border-color: #{bs.$gray-700};
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// a row of a list in a box (what waits, the latest items): an icon, the text, something on the right; no lines between
|
|
2
|
+
// the rows, a quiet tint on hover when the row is a link
|
|
3
|
+
// <a class="list-row" href="..."><span class="stat-icon theme-warning"><i class="bi bi-chat"></i></span>
|
|
4
|
+
// <span class="list-row-text">Comments to approve<small>Blog</small></span><span class="badge ...">3</span></a>
|
|
5
|
+
.list-row {
|
|
6
|
+
display: flex;
|
|
7
|
+
gap: .75rem;
|
|
8
|
+
align-items: center;
|
|
9
|
+
padding: .625rem .75rem;
|
|
10
|
+
margin-inline: -.75rem;
|
|
11
|
+
color: var(--bs-body-color);
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
border-radius: var(--bs-border-radius);
|
|
14
|
+
|
|
15
|
+
> .stat-icon {
|
|
16
|
+
width: 2.25rem;
|
|
17
|
+
height: 2.25rem;
|
|
18
|
+
font-size: 1rem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
a.list-row:hover {
|
|
23
|
+
color: var(--bs-body-color);
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
background-color: rgba(var(--bs-body-color-rgb), .04);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.list-row-text {
|
|
29
|
+
flex: 1;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
text-overflow: ellipsis;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
|
|
35
|
+
> small {
|
|
36
|
+
display: block;
|
|
37
|
+
font-size: 1em;
|
|
38
|
+
color: var(--bs-secondary-color);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// a box (or a card, a snippet) that loads: its content fades and cannot be clicked, a small ring turns over it;
|
|
2
|
+
// set aria-busy="true" while an AJAX request runs and remove it afterwards
|
|
3
|
+
:is(.content-box, .card, [data-loading-area])[aria-busy='true'] {
|
|
4
|
+
position: relative;
|
|
5
|
+
cursor: progress;
|
|
6
|
+
|
|
7
|
+
> * {
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
opacity: .45;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// in the middle of the box, at most 10rem from its top, so it is seen in a long list too
|
|
13
|
+
&::after {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: min(50%, 10rem);
|
|
16
|
+
left: 50%;
|
|
17
|
+
width: 1.5rem;
|
|
18
|
+
height: 1.5rem;
|
|
19
|
+
margin: -.75rem 0 0 -.75rem;
|
|
20
|
+
content: '';
|
|
21
|
+
border: 2px solid var(--bs-border-color);
|
|
22
|
+
border-top-color: var(--bs-primary);
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
animation: cs-busy .7s linear infinite;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes cs-busy {
|
|
29
|
+
to {
|
|
30
|
+
transform: rotate(360deg);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// forced colors (the high contrast of Windows) give every border one color, so the turning would not be seen
|
|
35
|
+
@media (forced-colors: active) {
|
|
36
|
+
:is(.content-box, .card, [data-loading-area])[aria-busy='true']::after {
|
|
37
|
+
forced-color-adjust: none;
|
|
38
|
+
border-color: Canvas;
|
|
39
|
+
border-top-color: CanvasText;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {
|
|
44
|
+
:is(.content-box, .card, [data-loading-area])[aria-busy='true']::after {
|
|
45
|
+
animation-duration: 2s;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//
|
|
2
|
+
// stat tile: a number of the overview with its label and a colored icon, a link to its page when it is an <a>;
|
|
3
|
+
// a .theme-* class gives the color of the icon
|
|
4
|
+
// <a href="..." class="stat-tile theme-primary"><span class="stat-icon"><i class="bi bi-box-seam"></i></span>
|
|
5
|
+
// <span><span class="stat-value">128</span><span class="stat-label">Products</span></span></a>
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
.stat-tile {
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 1rem;
|
|
11
|
+
align-items: center;
|
|
12
|
+
height: 100%;
|
|
13
|
+
padding: 1rem 1.25rem;
|
|
14
|
+
color: var(--bs-body-color);
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
background-color: rgba(var(--bs-body-color-rgb), .03);
|
|
17
|
+
border-radius: var(--bs-border-radius-lg);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
a.stat-tile:hover {
|
|
21
|
+
color: var(--bs-body-color);
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
background-color: rgba(var(--bs-body-color-rgb), .06);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.stat-icon {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
width: 2.75rem;
|
|
32
|
+
height: 2.75rem;
|
|
33
|
+
font-size: 1.25rem;
|
|
34
|
+
color: var(--theme-fg, var(--bs-secondary-color));
|
|
35
|
+
background-color: var(--theme-bg-subtle, var(--bs-secondary-bg));
|
|
36
|
+
border-radius: var(--bs-border-radius-lg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.stat-value {
|
|
40
|
+
display: block;
|
|
41
|
+
font-size: 1.375rem;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
font-variant-numeric: tabular-nums;
|
|
44
|
+
line-height: 1.2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.stat-label {
|
|
48
|
+
display: block;
|
|
49
|
+
font-size: 1em;
|
|
50
|
+
color: var(--bs-secondary-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// on phones two tiles fit side by side (columns col-6): a smaller icon and number
|
|
54
|
+
@media (max-width: 575.98px) {
|
|
55
|
+
.stat-tile {
|
|
56
|
+
gap: .625rem;
|
|
57
|
+
padding: .75rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.stat-icon {
|
|
61
|
+
width: 2.25rem;
|
|
62
|
+
height: 2.25rem;
|
|
63
|
+
font-size: 1rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.stat-value {
|
|
67
|
+
font-size: 1.0625rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.stat-label {
|
|
71
|
+
font-size: 1em;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// a small colored dot of a state, e.g. on the bell of notifications: <span class="status-dot theme-danger"></span>;
|
|
2
|
+
// status-dot-pulse adds a ring that keeps spreading from it
|
|
3
|
+
.status-dot {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
width: .5rem;
|
|
8
|
+
height: .5rem;
|
|
9
|
+
background-color: var(--theme-bg, var(--bs-danger));
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.status-dot-pulse::after {
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset: 0;
|
|
16
|
+
content: '';
|
|
17
|
+
background-color: inherit;
|
|
18
|
+
border-radius: inherit;
|
|
19
|
+
animation: cs-status-pulse 1.6s ease-out infinite;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@keyframes cs-status-pulse {
|
|
23
|
+
0% {
|
|
24
|
+
opacity: .7;
|
|
25
|
+
transform: scale(1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
100% {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
transform: scale(2.75);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (prefers-reduced-motion: reduce) {
|
|
35
|
+
.status-dot-pulse::after {
|
|
36
|
+
animation: none;
|
|
37
|
+
}
|
|
38
|
+
}
|