@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.
- package/LICENSE +21 -0
- package/README.md +60 -0
- package/less/_prelude.less +6 -0
- package/less/components/accordion/accordion.entry.less +2 -0
- package/less/components/accordion/accordion.less +36 -0
- package/less/components/appBar/appBar.entry.less +2 -0
- package/less/components/appBar/appBar.less +95 -0
- package/less/components/appLayout/appLayout.entry.less +2 -0
- package/less/components/appLayout/appLayout.less +112 -0
- package/less/components/avatar/avatar.entry.less +2 -0
- package/less/components/avatar/avatar.less +74 -0
- package/less/components/badge/badge.entry.less +2 -0
- package/less/components/badge/badge.less +66 -0
- package/less/components/bottomBar/bottomBar.entry.less +2 -0
- package/less/components/bottomBar/bottomBar.less +84 -0
- package/less/components/breadcrumbs/breadcrumbs.entry.less +2 -0
- package/less/components/breadcrumbs/breadcrumbs.less +57 -0
- package/less/components/button/button.entry.less +2 -0
- package/less/components/button/button.less +164 -0
- package/less/components/buttonGroup/buttonGroup.entry.less +2 -0
- package/less/components/buttonGroup/buttonGroup.less +95 -0
- package/less/components/card/card.entry.less +2 -0
- package/less/components/card/card.less +56 -0
- package/less/components/carousel/carousel.entry.less +2 -0
- package/less/components/carousel/carousel.less +75 -0
- package/less/components/chat/chat.entry.less +2 -0
- package/less/components/chat/chat.less +623 -0
- package/less/components/chat/chat.variables.less +9 -0
- package/less/components/checkbox/checkbox.entry.less +2 -0
- package/less/components/checkbox/checkbox.less +109 -0
- package/less/components/chip/chip.entry.less +2 -0
- package/less/components/chip/chip.less +121 -0
- package/less/components/datePicker/dataPicker.entry.less +2 -0
- package/less/components/datePicker/dataPicker.less +235 -0
- package/less/components/divider/divider.entry.less +2 -0
- package/less/components/divider/divider.less +69 -0
- package/less/components/expansionPanel/expansionPanel.entry.less +2 -0
- package/less/components/expansionPanel/expansionPanel.less +136 -0
- package/less/components/fileDrop/fileDrop.entry.less +2 -0
- package/less/components/fileDrop/fileDrop.less +67 -0
- package/less/components/fileInput/fileInput.entry.less +2 -0
- package/less/components/fileInput/fileInput.less +4 -0
- package/less/components/floatingButton/floatingButton.entry.less +2 -0
- package/less/components/floatingButton/floatingButton.less +94 -0
- package/less/components/grid/grid.entry.less +2 -0
- package/less/components/grid/grid.less +174 -0
- package/less/components/icon/icon.entry.less +2 -0
- package/less/components/icon/icon.less +27 -0
- package/less/components/imagesList/imagesList.entry.less +2 -0
- package/less/components/imagesList/imagesList.less +35 -0
- package/less/components/imagesList/imagesListItem/imagesListItem.entry.less +2 -0
- package/less/components/imagesList/imagesListItem/imagesListItem.less +117 -0
- package/less/components/list/list.entry.less +2 -0
- package/less/components/list/list.less +87 -0
- package/less/components/menu/menu.entry.less +2 -0
- package/less/components/menu/menu.less +121 -0
- package/less/components/message/message.entry.less +2 -0
- package/less/components/message/message.less +103 -0
- package/less/components/modal/modal.entry.less +2 -0
- package/less/components/modal/modal.less +215 -0
- package/less/components/page/page.entry.less +2 -0
- package/less/components/page/page.less +39 -0
- package/less/components/pageHeader/pageHeader.entry.less +2 -0
- package/less/components/pageHeader/pageHeader.less +49 -0
- package/less/components/pagination/pagination.entry.less +2 -0
- package/less/components/pagination/pagination.less +103 -0
- package/less/components/progressIndicator/progressIndicator.entry.less +2 -0
- package/less/components/progressIndicator/progressIndicator.less +107 -0
- package/less/components/radioButton/radioButton.entry.less +2 -0
- package/less/components/radioButton/radioButton.less +138 -0
- package/less/components/rating/rating.entry.less +2 -0
- package/less/components/rating/rating.less +65 -0
- package/less/components/ripple/ripple.entry.less +2 -0
- package/less/components/ripple/ripple.less +24 -0
- package/less/components/screenDivider/screenDivider.entry.less +2 -0
- package/less/components/screenDivider/screenDivider.less +56 -0
- package/less/components/selectField/selectField.entry.less +2 -0
- package/less/components/selectField/selectField.less +182 -0
- package/less/components/sheet/sheet.entry.less +2 -0
- package/less/components/sheet/sheet.less +243 -0
- package/less/components/sidebar/sidebar.entry.less +2 -0
- package/less/components/sidebar/sidebar.less +137 -0
- package/less/components/skeleton/skeleton.entry.less +2 -0
- package/less/components/skeleton/skeleton.less +67 -0
- package/less/components/slider/slider.entry.less +2 -0
- package/less/components/slider/slider.less +294 -0
- package/less/components/snackbar/snackbar.entry.less +2 -0
- package/less/components/snackbar/snackbar.less +157 -0
- package/less/components/stack/stack.entry.less +2 -0
- package/less/components/stack/stack.less +10 -0
- package/less/components/stepper/stepper.entry.less +2 -0
- package/less/components/stepper/stepper.less +142 -0
- package/less/components/table/table.entry.less +2 -0
- package/less/components/table/table.less +192 -0
- package/less/components/table/tablePagination/tablePagination.entry.less +2 -0
- package/less/components/table/tablePagination/tablePagination.less +62 -0
- package/less/components/tabs/tab/tab.entry.less +2 -0
- package/less/components/tabs/tab/tab.less +114 -0
- package/less/components/tabs/tabs.entry.less +2 -0
- package/less/components/tabs/tabs.less +44 -0
- package/less/components/textField/textField.entry.less +2 -0
- package/less/components/textField/textField.less +373 -0
- package/less/components/timePicker/timePicker.entry.less +2 -0
- package/less/components/timePicker/timePicker.less +95 -0
- package/less/components/toggle/toggle.entry.less +2 -0
- package/less/components/toggle/toggle.less +110 -0
- package/less/components/tooltip/tooltip.entry.less +2 -0
- package/less/components/tooltip/tooltip.less +36 -0
- package/less/components/treeView/treeView.entry.less +2 -0
- package/less/components/treeView/treeView.less +71 -0
- package/less/components/typography/typography.entry.less +2 -0
- package/less/components/typography/typography.less +86 -0
- package/less/components.less +59 -0
- package/less/connects/rt/table.less +26 -0
- package/less/connects.less +1 -0
- package/less/default/globals/default.variables.less +584 -0
- package/less/foundation/breakpoints.less +80 -0
- package/less/foundation/elevation.less +61 -0
- package/less/foundation/palette.less +310 -0
- package/less/foundation/radius.less +21 -0
- package/less/foundation/sizing.less +35 -0
- package/less/foundation/spacing.less +164 -0
- package/less/foundation/typography.less +25 -0
- package/less/foundation.less +18 -0
- package/less/headless-base.less +2 -0
- package/less/responsive.less +41 -0
- package/less/site/globals/site.variables.less +25 -0
- package/less/templates/adminDashboard/adminDashboard.less +27 -0
- package/less/templates/summer-ui/auth.less +30 -0
- package/less/templates/summer-ui/authCard.less +33 -0
- package/less/templates/summer-ui/authLayout.less +11 -0
- package/less/templates.less +4 -0
- package/less/theme.less +30 -0
- package/less/themes/material/variables.less +370 -0
- package/less/themes/summer/variables.less +380 -0
- package/less/variables.less +260 -0
- package/normalize.css +484 -0
- package/package.json +21 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
.smwb-menu {
|
|
2
|
+
background-color: var(--smui-surfaceBackground);
|
|
3
|
+
border-radius: @menuBorderRadius;
|
|
4
|
+
|
|
5
|
+
&--floating {
|
|
6
|
+
box-shadow: @menuBoxShadow;
|
|
7
|
+
z-index: 1300;
|
|
8
|
+
min-width: 112px;
|
|
9
|
+
cursor: default;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__list {
|
|
13
|
+
color: var(--smui-onSurfaceColor);
|
|
14
|
+
|
|
15
|
+
&--static {
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--floating {
|
|
20
|
+
padding: @menuListPaddingY 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__item {
|
|
25
|
+
position: relative;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
user-select: none;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
height: 48px;
|
|
30
|
+
|
|
31
|
+
&:not(&--selected):not(:active) {
|
|
32
|
+
&:hover {
|
|
33
|
+
&:before {
|
|
34
|
+
opacity: @menuOpacityHover;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:before {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: 0;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
background-color: var(--smui-onSurfaceColor);
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transition: opacity 15ms linear;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&--dense {
|
|
50
|
+
height: 32px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--disabled {
|
|
54
|
+
color: var(--smui-menuDisabledTextColor);
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--selected {
|
|
59
|
+
&:before {
|
|
60
|
+
opacity: @menuOpacitySelected;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:active {
|
|
65
|
+
&:before {
|
|
66
|
+
opacity: @menuOpacityActive;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__item-inner {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
padding: 0 @menuItemPaddingX;
|
|
75
|
+
height: 100%;
|
|
76
|
+
color: currentColor;
|
|
77
|
+
gap: @menuItemGap;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__text {
|
|
81
|
+
flex-grow: 1;
|
|
82
|
+
|
|
83
|
+
&--inset {
|
|
84
|
+
margin-left: @menuTextInset;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&--inset&--dense {
|
|
88
|
+
margin-left: @menuTextInsetDense;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&__icon {
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
flex-shrink: 0;
|
|
95
|
+
font-size: 24px;
|
|
96
|
+
|
|
97
|
+
&--dense {
|
|
98
|
+
font-size: 20px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&--start {
|
|
102
|
+
margin-right: @menuIconGap;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&--end {
|
|
106
|
+
margin-left: @menuIconGap;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__divider {
|
|
111
|
+
&:not(&--vertical) {
|
|
112
|
+
margin: @menuDividerSpacing 0;
|
|
113
|
+
border-bottom: 1px solid var(--smui-menuDividerColor);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&--vertical {
|
|
117
|
+
margin: 0 @menuDividerSpacing;
|
|
118
|
+
border-right: 1px solid var(--smui-menuDividerColor);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
.smwb-message {
|
|
2
|
+
padding: @messagePadding;
|
|
3
|
+
min-height: 1rem;
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-radius: @messageBorderRadius;
|
|
8
|
+
line-height: 1.5;
|
|
9
|
+
position: relative;
|
|
10
|
+
&_filled {
|
|
11
|
+
background-color: var(--smui-messageBackground);
|
|
12
|
+
&.smwb-message_success {
|
|
13
|
+
color: var(--smui-successColor);
|
|
14
|
+
background-color: ~"color-mix(in srgb, var(--smui-successColor) 10%, transparent)";
|
|
15
|
+
}
|
|
16
|
+
&.smwb-message_info {
|
|
17
|
+
color: var(--smui-infoColor);
|
|
18
|
+
background-color: ~"color-mix(in srgb, var(--smui-infoColor) 10%, transparent)";
|
|
19
|
+
}
|
|
20
|
+
&.smwb-message_error {
|
|
21
|
+
color: var(--smui-errorColor);
|
|
22
|
+
background-color: ~"color-mix(in srgb, var(--smui-errorColor) 10%, transparent)";
|
|
23
|
+
}
|
|
24
|
+
&.smwb-message_warning {
|
|
25
|
+
color: var(--smui-warningColor);
|
|
26
|
+
background-color: ~"color-mix(in srgb, var(--smui-warningColor) 10%, transparent)";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&_outlined {
|
|
30
|
+
border: 1px solid var(--smui-outlineColor);
|
|
31
|
+
&.smwb-message_success {
|
|
32
|
+
border-color: var(--smui-successColor);
|
|
33
|
+
color: var(--smui-successColor);
|
|
34
|
+
background-color: ~"color-mix(in srgb, var(--smui-successColor) 8%, transparent)";
|
|
35
|
+
}
|
|
36
|
+
&.smwb-message_info {
|
|
37
|
+
border-color: var(--smui-infoColor);
|
|
38
|
+
color: var(--smui-infoColor);
|
|
39
|
+
background-color: ~"color-mix(in srgb, var(--smui-infoColor) 8%, transparent)";
|
|
40
|
+
}
|
|
41
|
+
&.smwb-message_error {
|
|
42
|
+
border-color: var(--smui-errorColor);
|
|
43
|
+
color: var(--smui-errorColor);
|
|
44
|
+
background-color: ~"color-mix(in srgb, var(--smui-errorColor) 8%, transparent)";
|
|
45
|
+
}
|
|
46
|
+
&.smwb-message_warning {
|
|
47
|
+
border-color: var(--smui-warningColor);
|
|
48
|
+
color: var(--smui-warningColor);
|
|
49
|
+
background-color: ~"color-mix(in srgb, var(--smui-warningColor) 8%, transparent)";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
&_left-accent {
|
|
53
|
+
background-color: var(--smui-messageBackground);
|
|
54
|
+
border-left: 2px solid var(--smui-outlineColor);
|
|
55
|
+
border-radius: 0;
|
|
56
|
+
&.smwb-message_success {
|
|
57
|
+
border-color: var(--smui-successColor);
|
|
58
|
+
color: var(--smui-successColor);
|
|
59
|
+
background-color: ~"color-mix(in srgb, var(--smui-successColor) 8%, transparent)";
|
|
60
|
+
}
|
|
61
|
+
&.smwb-message_info {
|
|
62
|
+
border-color: var(--smui-infoColor);
|
|
63
|
+
color: var(--smui-infoColor);
|
|
64
|
+
background-color: ~"color-mix(in srgb, var(--smui-infoColor) 8%, transparent)";
|
|
65
|
+
}
|
|
66
|
+
&.smwb-message_error {
|
|
67
|
+
border-color: var(--smui-errorColor);
|
|
68
|
+
color: var(--smui-errorColor);
|
|
69
|
+
background-color: ~"color-mix(in srgb, var(--smui-errorColor) 8%, transparent)";
|
|
70
|
+
}
|
|
71
|
+
&.smwb-message_warning {
|
|
72
|
+
border-color: var(--smui-warningColor);
|
|
73
|
+
color: var(--smui-warningColor);
|
|
74
|
+
background-color: ~"color-mix(in srgb, var(--smui-warningColor) 8%, transparent)";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&__header {
|
|
78
|
+
font-size: 1.1em;
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: @messageGap;
|
|
83
|
+
margin-bottom: @messageTitleMarginBottom;
|
|
84
|
+
width: 100%;
|
|
85
|
+
position: relative;
|
|
86
|
+
}
|
|
87
|
+
&__close-btn {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
background: transparent;
|
|
92
|
+
position: absolute;
|
|
93
|
+
right: 10px;
|
|
94
|
+
top: 10px;
|
|
95
|
+
z-index: 2;
|
|
96
|
+
opacity: 0.8;
|
|
97
|
+
transition: opacity 0.2s ease-in-out;
|
|
98
|
+
color: currentColor;
|
|
99
|
+
&:hover {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
.smwb-modal {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-height: 150px;
|
|
5
|
+
border-radius: @modalBorderRadius;
|
|
6
|
+
line-height: 1.5;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
color: var(--smui-onSurfaceColor);
|
|
9
|
+
background-color: var(--smui-surfaceBackground);
|
|
10
|
+
box-shadow: 0 11px 15px -7px rgb(0 0 0 / 20%), 0px 24px 38px 3px rgb(0 0 0 / 14%), 0px 9px 46px 8px rgb(0 0 0 / 12%);
|
|
11
|
+
|
|
12
|
+
&__header {
|
|
13
|
+
padding: @modalHeaderPadding;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__content {
|
|
17
|
+
padding: @modalContentPadding;
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
overflow: hidden auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__footer {
|
|
23
|
+
padding: @modalActionsPadding;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.smwb-small {
|
|
27
|
+
width: 25%;
|
|
28
|
+
height: 25%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.smwb-medium {
|
|
32
|
+
width: min(480px, 90vw);
|
|
33
|
+
height: auto;
|
|
34
|
+
max-height: min(560px, 90vh);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.smwb-large {
|
|
38
|
+
width: 50%;
|
|
39
|
+
height: 50%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.smwb-fullscreen {
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
border-radius: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__overlay {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
position: fixed;
|
|
53
|
+
inset: 0;
|
|
54
|
+
min-width: 100%;
|
|
55
|
+
min-height: 100%;
|
|
56
|
+
z-index: 1001;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
|
|
59
|
+
&-appear,
|
|
60
|
+
&-enter {
|
|
61
|
+
.smwb-modal {
|
|
62
|
+
&.smwb-fade {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.smwb-scale {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
transform: scale(0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.smwb-drop {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
transform: translateY(-100%);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-active {
|
|
78
|
+
@media (min-width: 800px) {
|
|
79
|
+
&:not(.smwb-fullscreen) {
|
|
80
|
+
&.smwb-dark {
|
|
81
|
+
background-color: @modalOverlayBg;
|
|
82
|
+
transition: background-color 225ms ease-in-out;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.smwb-blured {
|
|
86
|
+
backdrop-filter: blur(5px);
|
|
87
|
+
transition: backdrop-filter 225ms ease-in-out;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.smwb-darkBlured {
|
|
91
|
+
background-color: @modalOverlayBg;
|
|
92
|
+
backdrop-filter: blur(5px);
|
|
93
|
+
transition: backdrop-filter 225ms ease-in-out, background-color 225ms ease-in-out;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.smwb-modal {
|
|
99
|
+
&.smwb-fade {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
transition: opacity 225ms ease-in-out;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.smwb-scale {
|
|
105
|
+
opacity: 1;
|
|
106
|
+
transform: scale(1);
|
|
107
|
+
transition: opacity 225ms ease-in-out, transform 225ms ease-in-out;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.smwb-drop {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
transform: translateY(0);
|
|
113
|
+
transition: opacity 225ms ease-in-out, transform 225ms ease-in-out;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-appear-done,
|
|
120
|
+
&-enter-done,
|
|
121
|
+
&-exit {
|
|
122
|
+
@media (min-width: 800px) {
|
|
123
|
+
&:not(.smwb-fullscreen) {
|
|
124
|
+
&.smwb-dark {
|
|
125
|
+
background-color: @modalOverlayBg;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.smwb-blured {
|
|
129
|
+
backdrop-filter: blur(5px);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.smwb-darkBlured {
|
|
133
|
+
background-color: @modalOverlayBg;
|
|
134
|
+
backdrop-filter: blur(5px);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&-exit {
|
|
141
|
+
&-active {
|
|
142
|
+
@media (min-width: 800px) {
|
|
143
|
+
&:not(.smwb-fullscreen) {
|
|
144
|
+
&.smwb-dark {
|
|
145
|
+
background-color: transparent;
|
|
146
|
+
transition: background-color 150ms ease-in-out;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.smwb-blured {
|
|
150
|
+
backdrop-filter: blur(0);
|
|
151
|
+
transition: backdrop-filter 150ms ease-in-out;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&.smwb-darkBlured {
|
|
155
|
+
background-color: transparent;
|
|
156
|
+
backdrop-filter: blur(0);
|
|
157
|
+
transition: backdrop-filter 150ms ease-in-out, background-color 150ms ease-in-out;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.smwb-modal {
|
|
163
|
+
&.smwb-fade {
|
|
164
|
+
opacity: 0;
|
|
165
|
+
transition: opacity 150ms ease-in-out;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.smwb-scale {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
transform: scale(0);
|
|
171
|
+
transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.smwb-drop {
|
|
175
|
+
opacity: 0;
|
|
176
|
+
transform: translateY(-100%);
|
|
177
|
+
transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@media (max-width: 800px) {
|
|
185
|
+
&.smwb-small,
|
|
186
|
+
&.smwb-medium,
|
|
187
|
+
&.smwb-large,
|
|
188
|
+
&.smwb-fullscreen {
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: 100%;
|
|
191
|
+
border-radius: 0;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@media (max-height: 600px) {
|
|
196
|
+
min-height: 250px;
|
|
197
|
+
min-width: 280px;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.smwb-scrollbar {
|
|
202
|
+
&::-webkit-scrollbar-thumb {
|
|
203
|
+
background-color: var(--smui-scrollThumbColor);
|
|
204
|
+
border-radius: 999px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&::-webkit-scrollbar {
|
|
208
|
+
width: 6px;
|
|
209
|
+
height: 6px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&::-webkit-scrollbar-track {
|
|
213
|
+
background-color: transparent;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.smwb-page {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: @smui-space-xxl;
|
|
6
|
+
color: var(--smui-onSurfaceColor);
|
|
7
|
+
|
|
8
|
+
&_gutterless {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__inner {
|
|
13
|
+
width: 100%;
|
|
14
|
+
margin-left: auto;
|
|
15
|
+
margin-right: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&_max-sm &__inner {
|
|
19
|
+
max-width: @smui-bp-sm;
|
|
20
|
+
}
|
|
21
|
+
&_max-md &__inner {
|
|
22
|
+
max-width: @smui-bp-md;
|
|
23
|
+
}
|
|
24
|
+
&_max-lg &__inner {
|
|
25
|
+
max-width: @smui-bp-lg;
|
|
26
|
+
}
|
|
27
|
+
&_max-xl &__inner {
|
|
28
|
+
max-width: @smui-bp-xl;
|
|
29
|
+
}
|
|
30
|
+
&_max-full &__inner {
|
|
31
|
+
max-width: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.smui-media-down(sm; {
|
|
36
|
+
.smwb-page {
|
|
37
|
+
padding: @smui-space-lg;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.smwb-page-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
// Keep natural height as a flex child: never grow or shrink. Without
|
|
5
|
+
// this, a height-constrained flex-column parent (e.g. a page hosting a
|
|
6
|
+
// virtualized list) redistributes height through the header and
|
|
7
|
+
// destabilizes the sibling's scroll-height contract.
|
|
8
|
+
flex: 0 0 auto;
|
|
9
|
+
gap: @smui-space-sm;
|
|
10
|
+
width: 100%;
|
|
11
|
+
margin-bottom: @smui-space-xl;
|
|
12
|
+
|
|
13
|
+
&_divider {
|
|
14
|
+
padding-bottom: @smui-space-lg;
|
|
15
|
+
border-bottom: 1px solid var(--smui-dividerColor);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__row {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
gap: @smui-space-lg;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__titles {
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__subtitle {
|
|
31
|
+
margin-top: @smui-space-xxs;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__actions {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: @smui-space-sm;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.smui-media-down(sm; {
|
|
43
|
+
.smwb-page-header__row {
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
}
|
|
46
|
+
.smwb-page-header__actions {
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
.smwb-pagination {
|
|
2
|
+
&__list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: @paginationGap;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
list-style: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__item {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
min-width: @paginationItemSize;
|
|
18
|
+
height: @paginationItemSize;
|
|
19
|
+
padding: 0 @paginationItemPaddingX;
|
|
20
|
+
border: 0;
|
|
21
|
+
border-radius: @circleBorderRadius;
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
color: var(--smui-onSurfaceColor);
|
|
24
|
+
font: inherit;
|
|
25
|
+
font-size: 0.875rem;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
user-select: none;
|
|
28
|
+
transition: background-color 0.15s ease-in-out;
|
|
29
|
+
|
|
30
|
+
&:hover:not(:disabled) {
|
|
31
|
+
background-color: var(--smui-onSurfaceHover);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:disabled {
|
|
35
|
+
color: var(--smui-disabledTextColor);
|
|
36
|
+
cursor: default;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&_selected {
|
|
40
|
+
background-color: var(--smui-primaryColor);
|
|
41
|
+
color: var(--smui-onPrimaryColor);
|
|
42
|
+
|
|
43
|
+
&:hover:not(:disabled) {
|
|
44
|
+
background-color: var(--smui-primaryColor);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__nav {
|
|
50
|
+
color: var(--smui-onSurfaceVariant);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__ellipsis {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
min-width: @paginationItemSize;
|
|
58
|
+
height: @paginationItemSize;
|
|
59
|
+
color: var(--smui-onSurfaceVariant);
|
|
60
|
+
user-select: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&_small {
|
|
64
|
+
.smwb-pagination__item,
|
|
65
|
+
.smwb-pagination__ellipsis {
|
|
66
|
+
min-width: @paginationItemSizeSmall;
|
|
67
|
+
height: @paginationItemSizeSmall;
|
|
68
|
+
font-size: 0.8125rem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&_disabled {
|
|
73
|
+
opacity: 0.6;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// additive: variant / shape / color (defaults filled+circular+default unchanged)
|
|
78
|
+
&_outlined .smwb-pagination__item {
|
|
79
|
+
border: 1px solid var(--smui-dividerColor);
|
|
80
|
+
background: transparent;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&_shape-rounded .smwb-pagination__item,
|
|
84
|
+
&_shape-rounded .smwb-pagination__ellipsis {
|
|
85
|
+
border-radius: @smui-radius-md;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.smui-pag-color(@n; @c; @on) {
|
|
89
|
+
&_color-@{n} .smwb-pagination__item_selected {
|
|
90
|
+
background-color: @c;
|
|
91
|
+
color: @on;
|
|
92
|
+
&:hover:not(:disabled) {
|
|
93
|
+
background-color: @c;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.smui-pag-color(primary; var(--smui-primaryColor); var(--smui-onPrimaryColor));
|
|
98
|
+
.smui-pag-color(secondary; var(--smui-secondaryColor); var(--smui-onSecondaryColor));
|
|
99
|
+
.smui-pag-color(error; var(--smui-errorColor); var(--smui-onErrorColor));
|
|
100
|
+
.smui-pag-color(success; var(--smui-successColor); var(--smui-onSuccessColor));
|
|
101
|
+
.smui-pag-color(warning; var(--smui-warningColor); var(--smui-onWarningColor));
|
|
102
|
+
.smui-pag-color(info; var(--smui-infoColor); var(--smui-onInfoColor));
|
|
103
|
+
}
|