@vendure/admin-ui 3.2.0 → 3.2.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/LICENSE.md +42 -42
- package/core/common/version.d.ts +1 -1
- package/fesm2022/vendure-admin-ui-catalog.mjs +257 -257
- package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-core.mjs +4140 -4140
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-customer.mjs +119 -119
- package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-dashboard.mjs +58 -58
- package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-login.mjs +2 -2
- package/fesm2022/vendure-admin-ui-login.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-marketing.mjs +35 -35
- package/fesm2022/vendure-admin-ui-marketing.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-order.mjs +186 -186
- package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs +8 -8
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-settings.mjs +441 -441
- package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-system.mjs +6 -6
- package/fesm2022/vendure-admin-ui-system.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui.mjs.map +1 -1
- package/package.json +13 -9
- package/static/fonts/fonts.scss +253 -253
- package/static/i18n-messages/ar.json +813 -813
- package/static/i18n-messages/cs.json +813 -813
- package/static/i18n-messages/de.json +813 -813
- package/static/i18n-messages/en.json +817 -817
- package/static/i18n-messages/es.json +813 -813
- package/static/i18n-messages/fa.json +813 -813
- package/static/i18n-messages/fr.json +813 -813
- package/static/i18n-messages/he.json +813 -813
- package/static/i18n-messages/hr.json +813 -813
- package/static/i18n-messages/it.json +813 -813
- package/static/i18n-messages/ja.json +818 -818
- package/static/i18n-messages/nb.json +811 -811
- package/static/i18n-messages/ne.json +813 -813
- package/static/i18n-messages/pl.json +813 -813
- package/static/i18n-messages/pt_BR.json +813 -813
- package/static/i18n-messages/pt_PT.json +814 -814
- package/static/i18n-messages/ru.json +813 -813
- package/static/i18n-messages/sv.json +806 -806
- package/static/i18n-messages/tr.json +814 -814
- package/static/i18n-messages/uk.json +813 -813
- package/static/i18n-messages/zh_Hans.json +813 -813
- package/static/i18n-messages/zh_Hant.json +813 -813
- package/static/index.html +14 -14
- package/static/polyfills.ts +66 -66
- package/static/styles/_mixins.scss +60 -60
- package/static/styles/_variables.scss +11 -11
- package/static/styles/component/prosemirror.scss +513 -513
- package/static/styles/global/_buttons.scss +147 -147
- package/static/styles/global/_clarity.scss +140 -140
- package/static/styles/global/_forms.scss +187 -187
- package/static/styles/global/_global.scss +41 -41
- package/static/styles/global/_overrides.scss +165 -165
- package/static/styles/global/_sass-overrides.scss +7 -7
- package/static/styles/global/_utilities.scss +155 -155
- package/static/styles/rtl.scss +143 -143
- package/static/styles/styles.scss +19 -19
- package/static/styles/theme/dark.scss +591 -591
- package/static/styles/theme/default.scss +254 -254
- package/static/styles/ui-extension-theme.scss +13 -13
- package/static/vendure-ui-config.json +289 -289
|
@@ -1,165 +1,165 @@
|
|
|
1
|
-
@import 'variables';
|
|
2
|
-
@import 'forms';
|
|
3
|
-
@import 'mixins';
|
|
4
|
-
|
|
5
|
-
.main-container {
|
|
6
|
-
background-color: var(--clr-global-app-background);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
h1:not([cds-text]),
|
|
10
|
-
h2:not([cds-text]),
|
|
11
|
-
h3:not([cds-text]),
|
|
12
|
-
h4:not([cds-text]),
|
|
13
|
-
h5:not([cds-text]),
|
|
14
|
-
h6:not([cds-text]) {
|
|
15
|
-
font-family: Inter, sans-serif !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.p0:not([cds-text]),
|
|
19
|
-
.p1:not([cds-text]),
|
|
20
|
-
.p2:not([cds-text]),
|
|
21
|
-
.p3:not([cds-text]),
|
|
22
|
-
.p4:not([cds-text]),
|
|
23
|
-
.p5:not([cds-text]),
|
|
24
|
-
.p6:not([cds-text]) {
|
|
25
|
-
font-family: Inter, sans-serif !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
a:link,
|
|
29
|
-
a:visited {
|
|
30
|
-
text-decoration: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.content-area img,
|
|
34
|
-
.modal-content img {
|
|
35
|
-
object-fit: cover;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.modal-header .close,
|
|
41
|
-
.modal-header--accessible .close {
|
|
42
|
-
border: none;
|
|
43
|
-
background: none;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
a:focus,
|
|
48
|
-
button:focus {
|
|
49
|
-
outline-color: var(--color-primary-400);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.align-center {
|
|
53
|
-
align-items: center;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.btn-link.btn-warning {
|
|
57
|
-
color: var(--color-warning-500);
|
|
58
|
-
|
|
59
|
-
&:hover {
|
|
60
|
-
color: var(--color-warning-600);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.table {
|
|
65
|
-
border: none;
|
|
66
|
-
margin: 0;
|
|
67
|
-
background-color: transparent;
|
|
68
|
-
td {
|
|
69
|
-
border: none;
|
|
70
|
-
}
|
|
71
|
-
@include table-base-styles;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.full-label,
|
|
75
|
-
.compact-label {
|
|
76
|
-
margin-inline-start: 6px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.full-label {
|
|
80
|
-
display: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.compact-label {
|
|
84
|
-
display: initial;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
button.icon-button {
|
|
88
|
-
border: none;
|
|
89
|
-
background: none;
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
color: var(--color-icon-button);
|
|
92
|
-
border-radius: var(--border-radius);
|
|
93
|
-
&:hover {
|
|
94
|
-
color: var(--color-icon-button-hover);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@media screen and (min-width: $breakpoint-small) {
|
|
99
|
-
.full-label {
|
|
100
|
-
display: initial;
|
|
101
|
-
}
|
|
102
|
-
.compact-label {
|
|
103
|
-
display: none;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.cdk-overlay-container {
|
|
108
|
-
z-index: 1050;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.card {
|
|
112
|
-
margin-top: 0;
|
|
113
|
-
box-shadow: none;
|
|
114
|
-
|
|
115
|
-
.card-header, .card-title {
|
|
116
|
-
font-size: var(--font-size-sm);
|
|
117
|
-
font-weight: 500;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// clr tabs
|
|
122
|
-
.btn.btn-link.nav-link {
|
|
123
|
-
background-color: transparent;
|
|
124
|
-
}
|
|
125
|
-
clr-tabs .btn.btn-link {
|
|
126
|
-
box-shadow: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
.alert {
|
|
131
|
-
border: 1px solid var(--color-primary-150);
|
|
132
|
-
background-color: var(--color-primary-100);
|
|
133
|
-
color: var(--color-primary-900);
|
|
134
|
-
border-radius: var(--border-radius);
|
|
135
|
-
padding: var(--space-unit);
|
|
136
|
-
|
|
137
|
-
.alert-item {
|
|
138
|
-
display: flex;
|
|
139
|
-
align-items: flex-start;
|
|
140
|
-
gap: 4px;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&.alert-danger {
|
|
144
|
-
border-color: var(--color-chip-error-border);
|
|
145
|
-
background-color: var(--color-chip-error-bg);
|
|
146
|
-
color: var(--color-chip-error-text);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&.alert-warning {
|
|
150
|
-
border-color: var(--color-chip-warning-border);
|
|
151
|
-
background-color: var(--color-chip-warning-bg);
|
|
152
|
-
color: var(--color-chip-warning-text);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.dropdown {
|
|
157
|
-
.dropdown-item {
|
|
158
|
-
color: var(--color-text-200);
|
|
159
|
-
font-size: var(--font-size-sm);
|
|
160
|
-
gap: 2px;
|
|
161
|
-
}
|
|
162
|
-
.dropdown-divider {
|
|
163
|
-
margin: 0.3rem 0;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
1
|
+
@import 'variables';
|
|
2
|
+
@import 'forms';
|
|
3
|
+
@import 'mixins';
|
|
4
|
+
|
|
5
|
+
.main-container {
|
|
6
|
+
background-color: var(--clr-global-app-background);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
h1:not([cds-text]),
|
|
10
|
+
h2:not([cds-text]),
|
|
11
|
+
h3:not([cds-text]),
|
|
12
|
+
h4:not([cds-text]),
|
|
13
|
+
h5:not([cds-text]),
|
|
14
|
+
h6:not([cds-text]) {
|
|
15
|
+
font-family: Inter, sans-serif !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p0:not([cds-text]),
|
|
19
|
+
.p1:not([cds-text]),
|
|
20
|
+
.p2:not([cds-text]),
|
|
21
|
+
.p3:not([cds-text]),
|
|
22
|
+
.p4:not([cds-text]),
|
|
23
|
+
.p5:not([cds-text]),
|
|
24
|
+
.p6:not([cds-text]) {
|
|
25
|
+
font-family: Inter, sans-serif !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a:link,
|
|
29
|
+
a:visited {
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.content-area img,
|
|
34
|
+
.modal-content img {
|
|
35
|
+
object-fit: cover;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.modal-header .close,
|
|
41
|
+
.modal-header--accessible .close {
|
|
42
|
+
border: none;
|
|
43
|
+
background: none;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
a:focus,
|
|
48
|
+
button:focus {
|
|
49
|
+
outline-color: var(--color-primary-400);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.align-center {
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.btn-link.btn-warning {
|
|
57
|
+
color: var(--color-warning-500);
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
color: var(--color-warning-600);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.table {
|
|
65
|
+
border: none;
|
|
66
|
+
margin: 0;
|
|
67
|
+
background-color: transparent;
|
|
68
|
+
td {
|
|
69
|
+
border: none;
|
|
70
|
+
}
|
|
71
|
+
@include table-base-styles;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.full-label,
|
|
75
|
+
.compact-label {
|
|
76
|
+
margin-inline-start: 6px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.full-label {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.compact-label {
|
|
84
|
+
display: initial;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button.icon-button {
|
|
88
|
+
border: none;
|
|
89
|
+
background: none;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
color: var(--color-icon-button);
|
|
92
|
+
border-radius: var(--border-radius);
|
|
93
|
+
&:hover {
|
|
94
|
+
color: var(--color-icon-button-hover);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media screen and (min-width: $breakpoint-small) {
|
|
99
|
+
.full-label {
|
|
100
|
+
display: initial;
|
|
101
|
+
}
|
|
102
|
+
.compact-label {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.cdk-overlay-container {
|
|
108
|
+
z-index: 1050;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.card {
|
|
112
|
+
margin-top: 0;
|
|
113
|
+
box-shadow: none;
|
|
114
|
+
|
|
115
|
+
.card-header, .card-title {
|
|
116
|
+
font-size: var(--font-size-sm);
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// clr tabs
|
|
122
|
+
.btn.btn-link.nav-link {
|
|
123
|
+
background-color: transparent;
|
|
124
|
+
}
|
|
125
|
+
clr-tabs .btn.btn-link {
|
|
126
|
+
box-shadow: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
.alert {
|
|
131
|
+
border: 1px solid var(--color-primary-150);
|
|
132
|
+
background-color: var(--color-primary-100);
|
|
133
|
+
color: var(--color-primary-900);
|
|
134
|
+
border-radius: var(--border-radius);
|
|
135
|
+
padding: var(--space-unit);
|
|
136
|
+
|
|
137
|
+
.alert-item {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: flex-start;
|
|
140
|
+
gap: 4px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.alert-danger {
|
|
144
|
+
border-color: var(--color-chip-error-border);
|
|
145
|
+
background-color: var(--color-chip-error-bg);
|
|
146
|
+
color: var(--color-chip-error-text);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.alert-warning {
|
|
150
|
+
border-color: var(--color-chip-warning-border);
|
|
151
|
+
background-color: var(--color-chip-warning-bg);
|
|
152
|
+
color: var(--color-chip-warning-text);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.dropdown {
|
|
157
|
+
.dropdown-item {
|
|
158
|
+
color: var(--color-text-200);
|
|
159
|
+
font-size: var(--font-size-sm);
|
|
160
|
+
gap: 2px;
|
|
161
|
+
}
|
|
162
|
+
.dropdown-divider {
|
|
163
|
+
margin: 0.3rem 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Note: variables defined in this file should use the !default flag so they can be
|
|
2
|
-
// overridden by custom Admin UI applications
|
|
3
|
-
$clr-sidenav-width: 10.8rem !default;
|
|
4
|
-
|
|
5
|
-
$clr-link-visited-color: var(--color-weight-700) !default;
|
|
6
|
-
$clr-link-hover-color: var(--color-weight-700) !default;
|
|
7
|
-
$clr-link-active-color: var(--color-weight-700) !default;
|
|
1
|
+
// Note: variables defined in this file should use the !default flag so they can be
|
|
2
|
+
// overridden by custom Admin UI applications
|
|
3
|
+
$clr-sidenav-width: 10.8rem !default;
|
|
4
|
+
|
|
5
|
+
$clr-link-visited-color: var(--color-weight-700) !default;
|
|
6
|
+
$clr-link-hover-color: var(--color-weight-700) !default;
|
|
7
|
+
$clr-link-active-color: var(--color-weight-700) !default;
|
|
8
8
|
$clr-link-color: var(--color-weight-700) !default;
|
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
/////////////// layout ///////////////
|
|
2
|
-
.block {
|
|
3
|
-
display: block !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.flex {
|
|
7
|
-
display: flex !important;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.flex.center {
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.flex.items-center {
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.flex.wrap {
|
|
20
|
-
flex-wrap: wrap;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.flex-spacer {
|
|
24
|
-
flex: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.max-w-layout {
|
|
28
|
-
max-width: var(--layout-content-max-width);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.sm\:hidden {
|
|
32
|
-
@media screen and (max-width: $breakpoint-small) {
|
|
33
|
-
display: none !important;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.md\:hidden {
|
|
38
|
-
@media screen and (max-width: $breakpoint-medium) {
|
|
39
|
-
display: none !important;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.ml-auto {
|
|
44
|
-
margin-inline-start: auto;
|
|
45
|
-
}
|
|
46
|
-
.mr-auto {
|
|
47
|
-
margin-inline-end: auto;
|
|
48
|
-
}
|
|
49
|
-
.mx-auto {
|
|
50
|
-
margin-inline-start: auto;
|
|
51
|
-
margin-inline-end: auto;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
$spacings: (1, 2, 3, 4, 5, auto);
|
|
55
|
-
|
|
56
|
-
$sides: (
|
|
57
|
-
't': 'top',
|
|
58
|
-
'b': 'bottom',
|
|
59
|
-
'l': 'inline-start',
|
|
60
|
-
'r': 'inline-end',
|
|
61
|
-
'': (
|
|
62
|
-
'top',
|
|
63
|
-
'inline-start',
|
|
64
|
-
'bottom',
|
|
65
|
-
'inline-end',
|
|
66
|
-
),
|
|
67
|
-
'x': (
|
|
68
|
-
'inline-start',
|
|
69
|
-
'inline-end',
|
|
70
|
-
),
|
|
71
|
-
'y': (
|
|
72
|
-
'top',
|
|
73
|
-
'bottom',
|
|
74
|
-
),
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
$breakpoints: (
|
|
78
|
-
'': '',
|
|
79
|
-
'sm': var(--breakpoint-sm),
|
|
80
|
-
'md': var(--breakpoint-md),
|
|
81
|
-
'lg': var(--breakpoint-lg),
|
|
82
|
-
'xl': var(--breakpoint-xl),
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
$breakpoint-glue: '\\:' !default;
|
|
86
|
-
@each $breakName, $breakValue in $breakpoints {
|
|
87
|
-
@if $breakName != '' {
|
|
88
|
-
@media (min-width: $breakValue) {
|
|
89
|
-
@each $space in $spacings {
|
|
90
|
-
@each $prefix, $positions in $sides {
|
|
91
|
-
.#{$breakName}\:p#{$prefix}-#{$space} {
|
|
92
|
-
@each $pos in $positions {
|
|
93
|
-
padding-#{$pos}: if(
|
|
94
|
-
$space == auto,
|
|
95
|
-
$space,
|
|
96
|
-
calc(#{$space} * var(--space-unit))
|
|
97
|
-
) !important;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.#{$breakName}\:m#{$prefix}-#{$space} {
|
|
101
|
-
@each $pos in $positions {
|
|
102
|
-
margin-#{$pos}: if(
|
|
103
|
-
$space == auto,
|
|
104
|
-
$space,
|
|
105
|
-
calc(#{$space} * var(--space-unit))
|
|
106
|
-
) !important;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
} @else {
|
|
113
|
-
@each $space in $spacings {
|
|
114
|
-
@each $prefix, $positions in $sides {
|
|
115
|
-
.p#{$prefix}-#{$space} {
|
|
116
|
-
@each $pos in $positions {
|
|
117
|
-
padding-#{$pos}: if(
|
|
118
|
-
$space == auto,
|
|
119
|
-
$space,
|
|
120
|
-
calc(#{$space} * var(--space-unit))
|
|
121
|
-
) !important;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.m#{$prefix}-#{$space} {
|
|
125
|
-
@each $pos in $positions {
|
|
126
|
-
margin-#{$pos}: if(
|
|
127
|
-
$space == auto,
|
|
128
|
-
$space,
|
|
129
|
-
calc(#{$space} * var(--space-unit))
|
|
130
|
-
) !important;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// colour classes
|
|
139
|
-
$colors: ('weight', 'primary', 'secondary', 'success', 'warning', 'error');
|
|
140
|
-
$scale: (100, 125, 150, 200, 300, 400, 500, 600, 700, 800, 900, 950, 975, 1000);
|
|
141
|
-
$properties: (
|
|
142
|
-
'color': 'color',
|
|
143
|
-
'bg': 'background-color',
|
|
144
|
-
'border': 'border-color',
|
|
145
|
-
);
|
|
146
|
-
// create the classes
|
|
147
|
-
@each $color in $colors {
|
|
148
|
-
@each $scale in $scale {
|
|
149
|
-
@each $property, $cssProperty in $properties {
|
|
150
|
-
.#{$property}-#{$color}-#{$scale} {
|
|
151
|
-
#{$cssProperty}: var(--color-#{$color}-#{$scale});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
1
|
+
/////////////// layout ///////////////
|
|
2
|
+
.block {
|
|
3
|
+
display: block !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.flex {
|
|
7
|
+
display: flex !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.flex.center {
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.flex.items-center {
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.flex.wrap {
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.flex-spacer {
|
|
24
|
+
flex: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.max-w-layout {
|
|
28
|
+
max-width: var(--layout-content-max-width);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sm\:hidden {
|
|
32
|
+
@media screen and (max-width: $breakpoint-small) {
|
|
33
|
+
display: none !important;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.md\:hidden {
|
|
38
|
+
@media screen and (max-width: $breakpoint-medium) {
|
|
39
|
+
display: none !important;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ml-auto {
|
|
44
|
+
margin-inline-start: auto;
|
|
45
|
+
}
|
|
46
|
+
.mr-auto {
|
|
47
|
+
margin-inline-end: auto;
|
|
48
|
+
}
|
|
49
|
+
.mx-auto {
|
|
50
|
+
margin-inline-start: auto;
|
|
51
|
+
margin-inline-end: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
$spacings: (1, 2, 3, 4, 5, auto);
|
|
55
|
+
|
|
56
|
+
$sides: (
|
|
57
|
+
't': 'top',
|
|
58
|
+
'b': 'bottom',
|
|
59
|
+
'l': 'inline-start',
|
|
60
|
+
'r': 'inline-end',
|
|
61
|
+
'': (
|
|
62
|
+
'top',
|
|
63
|
+
'inline-start',
|
|
64
|
+
'bottom',
|
|
65
|
+
'inline-end',
|
|
66
|
+
),
|
|
67
|
+
'x': (
|
|
68
|
+
'inline-start',
|
|
69
|
+
'inline-end',
|
|
70
|
+
),
|
|
71
|
+
'y': (
|
|
72
|
+
'top',
|
|
73
|
+
'bottom',
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
$breakpoints: (
|
|
78
|
+
'': '',
|
|
79
|
+
'sm': var(--breakpoint-sm),
|
|
80
|
+
'md': var(--breakpoint-md),
|
|
81
|
+
'lg': var(--breakpoint-lg),
|
|
82
|
+
'xl': var(--breakpoint-xl),
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
$breakpoint-glue: '\\:' !default;
|
|
86
|
+
@each $breakName, $breakValue in $breakpoints {
|
|
87
|
+
@if $breakName != '' {
|
|
88
|
+
@media (min-width: $breakValue) {
|
|
89
|
+
@each $space in $spacings {
|
|
90
|
+
@each $prefix, $positions in $sides {
|
|
91
|
+
.#{$breakName}\:p#{$prefix}-#{$space} {
|
|
92
|
+
@each $pos in $positions {
|
|
93
|
+
padding-#{$pos}: if(
|
|
94
|
+
$space == auto,
|
|
95
|
+
$space,
|
|
96
|
+
calc(#{$space} * var(--space-unit))
|
|
97
|
+
) !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.#{$breakName}\:m#{$prefix}-#{$space} {
|
|
101
|
+
@each $pos in $positions {
|
|
102
|
+
margin-#{$pos}: if(
|
|
103
|
+
$space == auto,
|
|
104
|
+
$space,
|
|
105
|
+
calc(#{$space} * var(--space-unit))
|
|
106
|
+
) !important;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
} @else {
|
|
113
|
+
@each $space in $spacings {
|
|
114
|
+
@each $prefix, $positions in $sides {
|
|
115
|
+
.p#{$prefix}-#{$space} {
|
|
116
|
+
@each $pos in $positions {
|
|
117
|
+
padding-#{$pos}: if(
|
|
118
|
+
$space == auto,
|
|
119
|
+
$space,
|
|
120
|
+
calc(#{$space} * var(--space-unit))
|
|
121
|
+
) !important;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.m#{$prefix}-#{$space} {
|
|
125
|
+
@each $pos in $positions {
|
|
126
|
+
margin-#{$pos}: if(
|
|
127
|
+
$space == auto,
|
|
128
|
+
$space,
|
|
129
|
+
calc(#{$space} * var(--space-unit))
|
|
130
|
+
) !important;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// colour classes
|
|
139
|
+
$colors: ('weight', 'primary', 'secondary', 'success', 'warning', 'error');
|
|
140
|
+
$scale: (100, 125, 150, 200, 300, 400, 500, 600, 700, 800, 900, 950, 975, 1000);
|
|
141
|
+
$properties: (
|
|
142
|
+
'color': 'color',
|
|
143
|
+
'bg': 'background-color',
|
|
144
|
+
'border': 'border-color',
|
|
145
|
+
);
|
|
146
|
+
// create the classes
|
|
147
|
+
@each $color in $colors {
|
|
148
|
+
@each $scale in $scale {
|
|
149
|
+
@each $property, $cssProperty in $properties {
|
|
150
|
+
.#{$property}-#{$color}-#{$scale} {
|
|
151
|
+
#{$cssProperty}: var(--color-#{$color}-#{$scale});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|