@smwb/ui-styles 1.0.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.
Files changed (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +60 -0
  3. package/less/_prelude.less +6 -0
  4. package/less/components/accordion/accordion.entry.less +2 -0
  5. package/less/components/accordion/accordion.less +36 -0
  6. package/less/components/appBar/appBar.entry.less +2 -0
  7. package/less/components/appBar/appBar.less +95 -0
  8. package/less/components/appLayout/appLayout.entry.less +2 -0
  9. package/less/components/appLayout/appLayout.less +112 -0
  10. package/less/components/avatar/avatar.entry.less +2 -0
  11. package/less/components/avatar/avatar.less +74 -0
  12. package/less/components/badge/badge.entry.less +2 -0
  13. package/less/components/badge/badge.less +66 -0
  14. package/less/components/bottomBar/bottomBar.entry.less +2 -0
  15. package/less/components/bottomBar/bottomBar.less +84 -0
  16. package/less/components/breadcrumbs/breadcrumbs.entry.less +2 -0
  17. package/less/components/breadcrumbs/breadcrumbs.less +57 -0
  18. package/less/components/button/button.entry.less +2 -0
  19. package/less/components/button/button.less +164 -0
  20. package/less/components/buttonGroup/buttonGroup.entry.less +2 -0
  21. package/less/components/buttonGroup/buttonGroup.less +95 -0
  22. package/less/components/card/card.entry.less +2 -0
  23. package/less/components/card/card.less +56 -0
  24. package/less/components/carousel/carousel.entry.less +2 -0
  25. package/less/components/carousel/carousel.less +75 -0
  26. package/less/components/chat/chat.entry.less +2 -0
  27. package/less/components/chat/chat.less +623 -0
  28. package/less/components/chat/chat.variables.less +9 -0
  29. package/less/components/checkbox/checkbox.entry.less +2 -0
  30. package/less/components/checkbox/checkbox.less +109 -0
  31. package/less/components/chip/chip.entry.less +2 -0
  32. package/less/components/chip/chip.less +121 -0
  33. package/less/components/datePicker/dataPicker.entry.less +2 -0
  34. package/less/components/datePicker/dataPicker.less +235 -0
  35. package/less/components/divider/divider.entry.less +2 -0
  36. package/less/components/divider/divider.less +69 -0
  37. package/less/components/expansionPanel/expansionPanel.entry.less +2 -0
  38. package/less/components/expansionPanel/expansionPanel.less +136 -0
  39. package/less/components/fileDrop/fileDrop.entry.less +2 -0
  40. package/less/components/fileDrop/fileDrop.less +67 -0
  41. package/less/components/fileInput/fileInput.entry.less +2 -0
  42. package/less/components/fileInput/fileInput.less +4 -0
  43. package/less/components/floatingButton/floatingButton.entry.less +2 -0
  44. package/less/components/floatingButton/floatingButton.less +94 -0
  45. package/less/components/grid/grid.entry.less +2 -0
  46. package/less/components/grid/grid.less +174 -0
  47. package/less/components/icon/icon.entry.less +2 -0
  48. package/less/components/icon/icon.less +27 -0
  49. package/less/components/imagesList/imagesList.entry.less +2 -0
  50. package/less/components/imagesList/imagesList.less +35 -0
  51. package/less/components/imagesList/imagesListItem/imagesListItem.entry.less +2 -0
  52. package/less/components/imagesList/imagesListItem/imagesListItem.less +117 -0
  53. package/less/components/list/list.entry.less +2 -0
  54. package/less/components/list/list.less +87 -0
  55. package/less/components/menu/menu.entry.less +2 -0
  56. package/less/components/menu/menu.less +121 -0
  57. package/less/components/message/message.entry.less +2 -0
  58. package/less/components/message/message.less +103 -0
  59. package/less/components/modal/modal.entry.less +2 -0
  60. package/less/components/modal/modal.less +215 -0
  61. package/less/components/page/page.entry.less +2 -0
  62. package/less/components/page/page.less +39 -0
  63. package/less/components/pageHeader/pageHeader.entry.less +2 -0
  64. package/less/components/pageHeader/pageHeader.less +49 -0
  65. package/less/components/pagination/pagination.entry.less +2 -0
  66. package/less/components/pagination/pagination.less +103 -0
  67. package/less/components/progressIndicator/progressIndicator.entry.less +2 -0
  68. package/less/components/progressIndicator/progressIndicator.less +107 -0
  69. package/less/components/radioButton/radioButton.entry.less +2 -0
  70. package/less/components/radioButton/radioButton.less +138 -0
  71. package/less/components/rating/rating.entry.less +2 -0
  72. package/less/components/rating/rating.less +65 -0
  73. package/less/components/ripple/ripple.entry.less +2 -0
  74. package/less/components/ripple/ripple.less +24 -0
  75. package/less/components/screenDivider/screenDivider.entry.less +2 -0
  76. package/less/components/screenDivider/screenDivider.less +56 -0
  77. package/less/components/selectField/selectField.entry.less +2 -0
  78. package/less/components/selectField/selectField.less +182 -0
  79. package/less/components/sheet/sheet.entry.less +2 -0
  80. package/less/components/sheet/sheet.less +243 -0
  81. package/less/components/sidebar/sidebar.entry.less +2 -0
  82. package/less/components/sidebar/sidebar.less +137 -0
  83. package/less/components/skeleton/skeleton.entry.less +2 -0
  84. package/less/components/skeleton/skeleton.less +67 -0
  85. package/less/components/slider/slider.entry.less +2 -0
  86. package/less/components/slider/slider.less +294 -0
  87. package/less/components/snackbar/snackbar.entry.less +2 -0
  88. package/less/components/snackbar/snackbar.less +157 -0
  89. package/less/components/stack/stack.entry.less +2 -0
  90. package/less/components/stack/stack.less +10 -0
  91. package/less/components/stepper/stepper.entry.less +2 -0
  92. package/less/components/stepper/stepper.less +142 -0
  93. package/less/components/table/table.entry.less +2 -0
  94. package/less/components/table/table.less +192 -0
  95. package/less/components/table/tablePagination/tablePagination.entry.less +2 -0
  96. package/less/components/table/tablePagination/tablePagination.less +62 -0
  97. package/less/components/tabs/tab/tab.entry.less +2 -0
  98. package/less/components/tabs/tab/tab.less +114 -0
  99. package/less/components/tabs/tabs.entry.less +2 -0
  100. package/less/components/tabs/tabs.less +44 -0
  101. package/less/components/textField/textField.entry.less +2 -0
  102. package/less/components/textField/textField.less +373 -0
  103. package/less/components/timePicker/timePicker.entry.less +2 -0
  104. package/less/components/timePicker/timePicker.less +95 -0
  105. package/less/components/toggle/toggle.entry.less +2 -0
  106. package/less/components/toggle/toggle.less +110 -0
  107. package/less/components/tooltip/tooltip.entry.less +2 -0
  108. package/less/components/tooltip/tooltip.less +36 -0
  109. package/less/components/treeView/treeView.entry.less +2 -0
  110. package/less/components/treeView/treeView.less +71 -0
  111. package/less/components/typography/typography.entry.less +2 -0
  112. package/less/components/typography/typography.less +86 -0
  113. package/less/components.less +59 -0
  114. package/less/connects/rt/table.less +26 -0
  115. package/less/connects.less +1 -0
  116. package/less/default/globals/default.variables.less +584 -0
  117. package/less/foundation/breakpoints.less +80 -0
  118. package/less/foundation/elevation.less +61 -0
  119. package/less/foundation/palette.less +310 -0
  120. package/less/foundation/radius.less +21 -0
  121. package/less/foundation/sizing.less +35 -0
  122. package/less/foundation/spacing.less +164 -0
  123. package/less/foundation/typography.less +25 -0
  124. package/less/foundation.less +18 -0
  125. package/less/headless-base.less +2 -0
  126. package/less/responsive.less +41 -0
  127. package/less/site/globals/site.variables.less +25 -0
  128. package/less/templates/adminDashboard/adminDashboard.less +27 -0
  129. package/less/templates/summer-ui/auth.less +30 -0
  130. package/less/templates/summer-ui/authCard.less +33 -0
  131. package/less/templates/summer-ui/authLayout.less +11 -0
  132. package/less/templates.less +4 -0
  133. package/less/theme.less +30 -0
  134. package/less/themes/material/variables.less +370 -0
  135. package/less/themes/summer/variables.less +380 -0
  136. package/less/variables.less +260 -0
  137. package/normalize.css +484 -0
  138. package/package.json +21 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 - Summerweb LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # @smwb/ui-styles
2
+
3
+ Framework-agnostic **LESS source** and design tokens for the `@smwb` design system — the single
4
+ source of truth for component styles (`smwb-*` classes), foundation tokens, and runtime
5
+ `--smui-*` CSS variables. Consumed by [`@smwb/ui-react`](https://www.npmjs.com/package/@smwb/ui-react),
6
+ [`@smwb/ui-solid`](https://www.npmjs.com/package/@smwb/ui-solid), and compiled into
7
+ [`@smwb/ui-css`](https://www.npmjs.com/package/@smwb/ui-css).
8
+
9
+ This package ships **LESS source only** — no JavaScript. For a ready-to-use stylesheet, use
10
+ `@smwb/ui-css`.
11
+
12
+ ![license](https://img.shields.io/badge/license-MIT-blue.svg)
13
+
14
+ ## Install
15
+
16
+ ```sh
17
+ npm install @smwb/ui-styles
18
+ ```
19
+
20
+ ## What's inside
21
+
22
+ | Path | Purpose |
23
+ | --- | --- |
24
+ | `less/components.less` | Aggregate entry — `@import`s foundation + every component |
25
+ | `less/foundation/*` | Tokens: palette, spacing, radius, elevation, breakpoints, sizing |
26
+ | `less/default/globals/default.variables.less` | Semantic colors + per-component LESS variables |
27
+ | `less/variables.less` | Emits `:root { --smui-* }` (light) + `[data-theme="dark"]` |
28
+ | `less/components/<name>/<name>.entry.less` | Per-component entry (self-contained) |
29
+ | `less/headless-base.less` | Foundation + theme variables only (no component rules) |
30
+ | `less/themes/*` | Built-in theme packs (`summer`, `material`) |
31
+ | `normalize.css` | Optional CSS reset |
32
+
33
+ ## Usage
34
+
35
+ ### Compile the full stylesheet
36
+
37
+ ```sh
38
+ lessc -rp=/ node_modules/@smwb/ui-styles/less/components.less app.css
39
+ ```
40
+
41
+ ### Selective bundle (only the components you use)
42
+
43
+ ```less
44
+ @import (less) "node_modules/@smwb/ui-styles/less/headless-base.less";
45
+ @import (less) "node_modules/@smwb/ui-styles/less/components/button/button.entry.less";
46
+ @import (less) "node_modules/@smwb/ui-styles/less/components/textField/textField.entry.less";
47
+ ```
48
+
49
+ Import `<name>.entry.less` (not bare `components/<name>/<name>.less`) so LESS variables resolve
50
+ without duplicating the global `:root` output.
51
+
52
+ ### Theming
53
+
54
+ Override tokens at compile time via a `theme.config` (imported last, so your values win), or at
55
+ runtime via the `--smui-*` CSS variables. Exports: `./components.less`, `./headless-base.less`,
56
+ `./less/*`, `./normalize.css`.
57
+
58
+ ## License
59
+
60
+ [MIT](./LICENSE)
@@ -0,0 +1,6 @@
1
+ // Reference-only prelude: exposes foundation + theme variables/mixins
2
+ // to a component .less compiled standalone, WITHOUT emitting any CSS
3
+ // (the global :root / normalize / foundation base ship once via the
4
+ // aggregate summer-ui.css or base.css).
5
+ @import (reference) "./foundation.less";
6
+ @import (reference) "./theme.less";
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./accordion.less";
@@ -0,0 +1,36 @@
1
+ .smwb-accordion {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-self: flex-start;
5
+ box-shadow: 0px 2px 2px -1px rgb(0 0 0 / 20%), 0px 1px 2px 0px rgb(0 0 0 / 14%), 0px 1px 11px 0px rgb(0 0 0 / 12%);
6
+ &__header {
7
+ background-color: var(--smui-appBarBg);
8
+ color: var(--smui-appBarContentColor);
9
+ height: @appBarHeight;
10
+ display: flex;
11
+ align-items: center;
12
+ padding: 0 @accordionSummaryPaddingX;
13
+ cursor: pointer;
14
+ gap: @accordionSummaryGap;
15
+ width: 100%;
16
+ arrow-icon {
17
+ flex-shrink: 0;
18
+ }
19
+ }
20
+ &__title {
21
+ white-space: nowrap;
22
+ }
23
+
24
+ &__content {
25
+ background-color: var(--smui-surfaceBackground);
26
+ }
27
+
28
+ &__arrow-icon {
29
+ transform: rotate(0);
30
+ transition: transform 0.3s ease-in-out;
31
+ margin-left: auto;
32
+ &_opened {
33
+ transform: rotate(-180deg);
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./appBar.less";
@@ -0,0 +1,95 @@
1
+ .smwb-appbar {
2
+ padding: 0 @appBarPaddingX;
3
+ display: flex;
4
+ align-items: center;
5
+ top: 0;
6
+ left: 0;
7
+ right: 0;
8
+ min-width: 100%;
9
+ background-color: var(--smui-appBarBg);
10
+ color: var(--smui-appBarContentColor);
11
+ font-size: 1rem;
12
+ bottom: auto;
13
+ height: @appBarHeight;
14
+ &.smwb-bottom {
15
+ bottom: 0;
16
+ top: auto;
17
+ }
18
+ &.smwb-relative {
19
+ position: relative;
20
+ }
21
+ &.smwb-static {
22
+ position: static;
23
+ }
24
+ &.smwb-sticky {
25
+ position: sticky;
26
+ }
27
+ &.smwb-fixed {
28
+ position: fixed;
29
+ }
30
+ &.smwb-absolute {
31
+ position: absolute;
32
+ }
33
+ &.smwb-dense {
34
+ padding: @appBarActionPadding;
35
+ height: 48px;
36
+ }
37
+ &__inner {
38
+ display: flex;
39
+ align-items: center;
40
+ width: 100%;
41
+ justify-content: space-between;
42
+ flex-wrap: nowrap;
43
+ }
44
+ &__left {
45
+ display: flex;
46
+ align-items: center;
47
+ gap: @appBarActionsGap;
48
+ white-space: nowrap;
49
+ }
50
+ &__right {
51
+ white-space: nowrap;
52
+ }
53
+ &__mid {
54
+ width: 100%;
55
+ display: flex;
56
+ flex: 1 1 auto;
57
+ flex-direction: column;
58
+ flex-wrap: nowrap;
59
+
60
+ &.smwb-middle {
61
+ align-items: center;
62
+ }
63
+ &.smwb-right {
64
+ align-items: flex-end;
65
+ }
66
+ &.smwb-left {
67
+ align-items: flex-start;
68
+ }
69
+ }
70
+ }
71
+
72
+ .smwb-appbar_color-primary {
73
+ background-color: var(--smui-primaryColor);
74
+ color: var(--smui-onPrimaryColor);
75
+ }
76
+ .smwb-appbar_color-secondary {
77
+ background-color: var(--smui-secondaryColor);
78
+ color: var(--smui-onSecondaryColor);
79
+ }
80
+ .smwb-appbar_color-error {
81
+ background-color: var(--smui-errorColor);
82
+ color: var(--smui-onErrorColor);
83
+ }
84
+ .smwb-appbar_color-success {
85
+ background-color: var(--smui-successColor);
86
+ color: var(--smui-onSuccessColor);
87
+ }
88
+ .smwb-appbar_color-warning {
89
+ background-color: var(--smui-warningColor);
90
+ color: var(--smui-onWarningColor);
91
+ }
92
+ .smwb-appbar_color-info {
93
+ background-color: var(--smui-infoColor);
94
+ color: var(--smui-onInfoColor);
95
+ }
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./appLayout.less";
@@ -0,0 +1,112 @@
1
+ .smwb-app-layout {
2
+ display: flex;
3
+ flex-direction: column;
4
+ min-height: 100vh;
5
+ width: 100%;
6
+ background-color: var(--smui-pageBackground);
7
+ color: var(--smui-onSurfaceColor);
8
+
9
+ &__header {
10
+ flex-shrink: 0;
11
+ z-index: 10;
12
+ }
13
+
14
+ &_sticky-header &__header {
15
+ position: sticky;
16
+ top: 0;
17
+ }
18
+
19
+ &__body {
20
+ position: relative;
21
+ display: flex;
22
+ flex: 1 1 auto;
23
+ min-height: 0;
24
+ }
25
+
26
+ &__sidebar {
27
+ position: relative;
28
+ flex: 0 0 var(--smui-app-sidebar-w, 260px);
29
+ width: var(--smui-app-sidebar-w, 260px);
30
+ overflow-y: auto;
31
+ transition: flex-basis 0.2s ease-in-out, width 0.2s ease-in-out;
32
+
33
+ // A <Sidebar> dropped into the slot is viewport-fixed by default
34
+ // (standalone usage). Inside AppLayout it must flow within this
35
+ // reserved column, which already sits below the sticky header —
36
+ // otherwise it slides up behind the header and hides its toggle.
37
+ > .smwb-sidebar {
38
+ position: static;
39
+ top: auto;
40
+ left: auto;
41
+ width: 100%;
42
+ height: 100%;
43
+ min-height: 0;
44
+ }
45
+ }
46
+
47
+ &__content {
48
+ display: flex;
49
+ flex-direction: column;
50
+ flex: 1 1 auto;
51
+ min-width: 0;
52
+ overflow-x: hidden;
53
+ }
54
+
55
+ &__footer {
56
+ margin-top: auto;
57
+ flex-shrink: 0;
58
+ border-top: 1px solid var(--smui-dividerColor);
59
+ }
60
+ }
61
+
62
+ .smui-media-down(md; {
63
+ // Mobile drawer: overlay the body area only. Anchored to
64
+ // __body (which sits below the sticky header) instead of the
65
+ // viewport, so the rail reaches down to the header, never
66
+ // slides up behind it.
67
+ .smwb-app-layout__sidebar {
68
+ position: absolute;
69
+ top: 0;
70
+ bottom: 0;
71
+ left: 0;
72
+ z-index: 20;
73
+ }
74
+ });
75
+
76
+ .smwb-app-layout__collapse {
77
+ display: flex;
78
+ justify-content: flex-end;
79
+ padding: 8px;
80
+ }
81
+
82
+ .smwb-app-layout_collapsed .smwb-app-layout__collapse {
83
+ justify-content: center;
84
+ }
85
+
86
+ .smwb-app-layout__collapse-btn {
87
+ display: inline-flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ width: 32px;
91
+ height: 32px;
92
+ padding: 0;
93
+ border: 0;
94
+ border-radius: 8px;
95
+ cursor: pointer;
96
+ color: var(--smui-onSurfaceColor);
97
+ background-color: transparent;
98
+ transition: background-color 0.15s ease-in-out;
99
+
100
+ &:hover {
101
+ background-color: var(--smui-onSurfaceHover);
102
+ }
103
+
104
+ &:active {
105
+ background-color: var(--smui-onSurfaceActive);
106
+ }
107
+
108
+ &:focus-visible {
109
+ outline: 2px solid var(--smui-primaryColor);
110
+ outline-offset: 2px;
111
+ }
112
+ }
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./avatar.less";
@@ -0,0 +1,74 @@
1
+ .smwb-avatar {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ flex-shrink: 0;
6
+ overflow: hidden;
7
+ user-select: none;
8
+ width: @avatarSizeMedium;
9
+ height: @avatarSizeMedium;
10
+ font-size: (@avatarSizeMedium / 2.5);
11
+ font-weight: 500;
12
+ line-height: 1;
13
+ color: var(--smui-onPrimaryColor);
14
+ background-color: var(--smui-primaryColor);
15
+
16
+ &_small {
17
+ width: @avatarSizeSmall;
18
+ height: @avatarSizeSmall;
19
+ font-size: (@avatarSizeSmall / 2.5);
20
+ }
21
+
22
+ &_large {
23
+ width: @avatarSizeLarge;
24
+ height: @avatarSizeLarge;
25
+ font-size: (@avatarSizeLarge / 2.5);
26
+ }
27
+
28
+ &_circular {
29
+ border-radius: @circleBorderRadius;
30
+ }
31
+
32
+ &_rounded {
33
+ border-radius: @smui-radius-lg;
34
+ }
35
+
36
+ &_square {
37
+ border-radius: 0;
38
+ }
39
+
40
+ &__img {
41
+ width: 100%;
42
+ height: 100%;
43
+ object-fit: cover;
44
+ color: transparent;
45
+ text-align: center;
46
+ }
47
+
48
+ &__fallback {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ }
53
+ }
54
+
55
+ .smwb-avatar-group {
56
+ display: inline-flex;
57
+ flex-direction: row-reverse;
58
+ align-items: center;
59
+
60
+ .smwb-avatar {
61
+ border: @avatarGroupBorder solid var(--smui-surfaceBackground);
62
+ box-sizing: content-box;
63
+
64
+ &:not(:last-child) {
65
+ margin-left: (-1 * @avatarGroupOverlap);
66
+ }
67
+ }
68
+
69
+ &__surplus {
70
+ background-color: var(--smui-surfaceVariant);
71
+ color: var(--smui-onSurfaceVariant);
72
+ font-size: 0.8rem;
73
+ }
74
+ }
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./badge.less";
@@ -0,0 +1,66 @@
1
+ .smwb-badge {
2
+ border-radius: 10px;
3
+ z-index: 2;
4
+ font-weight: 500;
5
+ font-size: 0.75rem;
6
+ padding: 0 @badgePaddingX;
7
+ color: #fff;
8
+ display: inline-flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ white-space: nowrap;
12
+ height: 20px;
13
+ min-width: 20px;
14
+ &_outside {
15
+ position: absolute;
16
+ &_top {
17
+ top: 0;
18
+ &_left {
19
+ transform: scale(1) translate(-50%, -50%);
20
+ left: -2px;
21
+ }
22
+ &_right {
23
+ right: -2px;
24
+ transform: scale(1) translate(50%, -50%);
25
+ }
26
+ }
27
+ &_bottom {
28
+ bottom: 0;
29
+ &_right {
30
+ right: -2px;
31
+ transform: scale(1) translate(50%, 50%);
32
+ }
33
+ &_left {
34
+ transform: scale(1) translate(-50%, 50%);
35
+ left: -2px;
36
+ }
37
+ }
38
+ }
39
+ &_inside {
40
+ position: static;
41
+ }
42
+
43
+ &_success {
44
+ background-color: var(--smui-successColor);
45
+ }
46
+
47
+ &_danger {
48
+ background-color: var(--smui-errorColor);
49
+ }
50
+ &_primary {
51
+ background-color: var(--smui-primaryColor);
52
+ }
53
+
54
+ &_no-content {
55
+ padding: 0;
56
+ width: 8px;
57
+ height: 8px;
58
+ min-width: auto;
59
+ }
60
+
61
+ &__wrapper {
62
+ position: relative;
63
+ display: inline-flex;
64
+ align-items: center;
65
+ }
66
+ }
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./bottomBar.less";
@@ -0,0 +1,84 @@
1
+ .smwb-bottom-bar {
2
+ position: fixed;
3
+ left: 0;
4
+ right: 0;
5
+ bottom: 0;
6
+ z-index: 2;
7
+ color: var(--smui-onSurfaceVariant);
8
+ background-color: var(--smui-surfaceBackground);
9
+ box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
10
+ padding-bottom: env(safe-area-inset-bottom, 0);
11
+
12
+ &__nav {
13
+ display: flex;
14
+ align-items: stretch;
15
+ width: 100%;
16
+ min-height: 56px;
17
+ }
18
+
19
+ &__item {
20
+ position: relative;
21
+ flex: 1 1 0;
22
+ min-width: 0;
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: center;
26
+ justify-content: center;
27
+ gap: @smui-space-xs;
28
+ padding: @smui-space-sm @smui-space-xs;
29
+ border: 0;
30
+ background: transparent;
31
+ color: var(--smui-primaryTextColor);
32
+ cursor: pointer;
33
+ text-decoration: none;
34
+ transition: background-color 0.2s ease-in-out;
35
+
36
+ &:hover {
37
+ background-color: var(--smui-onSurfaceHover);
38
+ }
39
+
40
+ &:active {
41
+ background-color: var(--smui-onSurfaceActive);
42
+ }
43
+
44
+ &:focus-visible {
45
+ outline: 2px solid var(--smui-primaryColor);
46
+ outline-offset: -2px;
47
+ }
48
+
49
+ &_active {
50
+ color: var(--smui-primaryColor);
51
+ background-color: var(--smui-navItemActiveBg);
52
+
53
+ .smwb-bottom-bar__item-icon,
54
+ .smwb-bottom-bar__item-title {
55
+ color: var(--smui-primaryColor);
56
+ }
57
+
58
+ &:hover {
59
+ background-color: var(--smui-primaryColorHover);
60
+ }
61
+
62
+ &:active {
63
+ background-color: var(--smui-primaryColorActive);
64
+ }
65
+ }
66
+ }
67
+
68
+ &__item-icon {
69
+ display: inline-flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ line-height: 1;
73
+ }
74
+
75
+ &__item-title {
76
+ font-size: 0.75rem;
77
+ line-height: 1.2;
78
+ max-width: 100%;
79
+ overflow: hidden;
80
+ text-overflow: ellipsis;
81
+ white-space: nowrap;
82
+ text-align: center;
83
+ }
84
+ }
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./breadcrumbs.less";
@@ -0,0 +1,57 @@
1
+ .smwb-breadcrumbs {
2
+ color: var(--smui-onSurfaceVariant);
3
+ font-size: 0.875rem;
4
+
5
+ &__list {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ gap: @breadcrumbsGap;
10
+ margin: 0;
11
+ padding: 0;
12
+ list-style: none;
13
+ }
14
+
15
+ &__item {
16
+ display: inline-flex;
17
+ align-items: center;
18
+
19
+ a {
20
+ color: inherit;
21
+ text-decoration: none;
22
+ transition: color 0.15s ease-in-out;
23
+
24
+ &:hover {
25
+ color: var(--smui-primaryColor);
26
+ text-decoration: underline;
27
+ }
28
+ }
29
+
30
+ &:last-child {
31
+ color: var(--smui-onSurfaceColor);
32
+ font-weight: 500;
33
+ }
34
+ }
35
+
36
+ &__separator {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ user-select: none;
40
+ opacity: 0.6;
41
+ }
42
+
43
+ &__expand {
44
+ border: 0;
45
+ background-color: var(--smui-onSurfaceHover);
46
+ color: inherit;
47
+ cursor: pointer;
48
+ border-radius: @smui-radius-sm;
49
+ padding: 0 @smui-space-xs;
50
+ line-height: 1.4;
51
+ transition: background-color 0.15s ease-in-out;
52
+
53
+ &:hover {
54
+ background-color: var(--smui-onSurfaceActive);
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,2 @@
1
+ @import (reference) "../../_prelude.less";
2
+ @import "./button.less";