renusify 2.2.6 → 2.3.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/components/app/style.scss +6 -4
- package/components/app/toast/style.scss +4 -3
- package/components/avatar/style.scss +2 -2
- package/components/bar/bottomNavigationCircle.vue +8 -5
- package/components/bar/scss/bottomNav.scss +15 -12
- package/components/bar/scss/toolbar.scss +32 -30
- package/components/bar/toolbar/index.vue +5 -5
- package/components/bar/toolbar/laptop.vue +1 -1
- package/components/bar/toolbar/mobile.vue +1 -1
- package/components/breadcrumb/bredcrumbItem.vue +2 -2
- package/components/breadcrumb/style.scss +6 -6
- package/components/button/index.vue +1 -1
- package/components/button/style.scss +41 -36
- package/components/calendar/index.vue +4 -3
- package/components/card/index.vue +1 -1
- package/components/card/style.scss +14 -11
- package/components/chart/chart.vue +3 -3
- package/components/chart/worldMap.vue +2 -2
- package/components/chat/MessageList.vue +122 -119
- package/components/chat/chatInput.vue +3 -3
- package/components/chat/chatMsg.vue +23 -21
- package/components/chat/index.vue +2 -2
- package/components/chip/style.scss +21 -16
- package/components/codeEditor/highlightCss.vue +1 -1
- package/components/codeEditor/highlightHtml.vue +1 -1
- package/components/codeEditor/highlightJs.vue +1 -1
- package/components/codeEditor/index.vue +6 -6
- package/components/container/style.scss +12 -10
- package/components/content/index.vue +17 -14
- package/components/cropper/index.vue +2 -2
- package/components/float/index.vue +456 -454
- package/components/form/camInput/index.vue +2 -2
- package/components/form/checkInput/index.vue +2 -2
- package/components/form/checkboxInput/index.vue +5 -4
- package/components/form/colorInput/Alpha.vue +1 -1
- package/components/form/colorInput/Preview.vue +1 -1
- package/components/form/colorInput/Saturation.vue +1 -1
- package/components/form/colorInput/index.vue +2 -2
- package/components/form/colorInput/picker.vue +10 -8
- package/components/form/dateInput/index.vue +2 -2
- package/components/form/fileInput/index.vue +0 -3
- package/components/form/fileInput/single.vue +3 -3
- package/components/form/groupInput/index.vue +5 -4
- package/components/form/input/index.vue +31 -29
- package/components/form/jsonInput/JsonView.vue +5 -4
- package/components/form/jsonInput/index.vue +36 -34
- package/components/form/numberInput/index.vue +11 -8
- package/components/form/radioInput/index.vue +6 -4
- package/components/form/rangeInput/index.vue +11 -10
- package/components/form/ratingInput/index.vue +5 -5
- package/components/form/selectInput/index.vue +8 -6
- package/components/form/switchInput/index.vue +9 -7
- package/components/form/telInput/index.vue +2 -2
- package/components/form/text-editor/style.scss +10 -7
- package/components/form/textArea/index.vue +2 -2
- package/components/form/timeInput/timepicker.vue +4 -3
- package/components/form/unitInput/index.vue +8 -6
- package/components/icon/style.scss +5 -4
- package/components/img/index.vue +2 -2
- package/components/index.js +0 -2
- package/components/list/index.vue +1 -1
- package/components/list/style.scss +6 -5
- package/components/map/index.vue +3 -3
- package/components/map/route.vue +2 -2
- package/components/menu/index.vue +4 -3
- package/components/modal/style.scss +19 -15
- package/components/nestable/index.vue +4 -4
- package/components/notify/index.vue +55 -53
- package/components/notify/notification.vue +5 -3
- package/components/progress/style.scss +8 -5
- package/components/searchBox/index.vue +15 -12
- package/components/skeleton/index.vue +5 -3
- package/components/slider/index.vue +18 -15
- package/components/swiper/index.vue +2 -2
- package/components/table/crud/index.vue +2 -2
- package/components/table/style.scss +87 -82
- package/components/tabs/index.vue +2 -2
- package/components/timeline/index.vue +64 -61
- package/components/tree/index.vue +4 -4
- package/components/tree/tree-element.vue +2 -2
- package/directive/animate/style.scss +72 -41
- package/directive/drag/index.js +1 -1
- package/directive/ripple/style.scss +6 -4
- package/directive/skeleton/style.scss +7 -7
- package/directive/sortable/index.js +1 -1
- package/directive/sortable/style.scss +7 -3
- package/directive/title/style.scss +4 -2
- package/index.js +10 -10
- package/package.json +1 -1
- package/style/app.scss +70 -58
- package/style/colors.scss +26 -22
- package/style/functions/index.scss +8 -8
- package/style/mixins/container.scss +25 -19
- package/style/mixins/index.scss +19 -15
- package/style/mixins/utilities.scss +26 -21
- package/style/style.scss +5 -6
- package/style/transitions.scss +14 -13
- package/style/variables/base.scss +26 -24
- package/style/variables/utilities.scss +35 -34
- package/components/html2pdf/index.js +0 -4
- package/components/html2pdf/index.vue +0 -280
- package/components/html2pdf/pageBreak.js +0 -1
- package/components/html2pdf/pageBreak.vue +0 -12
- package/style/_include.scss +0 -3
- package/style/variables/index.scss +0 -3
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../style/variables/base";
|
|
3
|
+
@use "../../style/mixins";
|
|
4
|
+
|
|
2
5
|
|
|
3
6
|
.r-directive-sortable {
|
|
4
7
|
position: relative;
|
|
@@ -16,11 +19,12 @@
|
|
|
16
19
|
.sortable-holder {
|
|
17
20
|
background-color: rgba(20, 200, 255, 0.5);
|
|
18
21
|
}
|
|
22
|
+
|
|
19
23
|
.on-drag {
|
|
20
24
|
position: fixed;
|
|
21
25
|
z-index: 100;
|
|
22
|
-
@include elevation('xl');
|
|
23
|
-
border-radius:
|
|
26
|
+
@include mixins.elevation('xl');
|
|
27
|
+
border-radius: map.get(base.$borders, 'md');
|
|
24
28
|
user-select: none;
|
|
25
29
|
cursor: grabbing;
|
|
26
30
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../style/variables/base";
|
|
3
|
+
|
|
2
4
|
|
|
3
5
|
#r-directive-title {
|
|
4
6
|
transition: all .2s ease-in-out;
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
background: #181818;
|
|
8
10
|
color: #FFF;
|
|
9
11
|
position: fixed;
|
|
10
|
-
border-radius: map
|
|
12
|
+
border-radius: map.get(base.$borders, 'sm');
|
|
11
13
|
font-size: 14px;
|
|
12
14
|
font-family: inherit;
|
|
13
15
|
transform: translateX(-50%);
|
package/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {reactive} from 'vue'
|
|
2
|
-
import * as helper from './tools/helper';
|
|
3
|
-
import Translate from './plugins/trans/Translate';
|
|
4
|
-
import Storage from './plugins/storage/index';
|
|
5
|
-
import DateTime from './plugins/trans/DateTime';
|
|
6
|
-
import Currency from './plugins/trans/Currency';
|
|
2
|
+
import * as helper from './tools/helper.js';
|
|
3
|
+
import Translate from './plugins/trans/Translate.js';
|
|
4
|
+
import Storage from './plugins/storage/index.js';
|
|
5
|
+
import DateTime from './plugins/trans/DateTime.js';
|
|
6
|
+
import Currency from './plugins/trans/Currency.js';
|
|
7
7
|
import Notify from './components/notify/notify.js';
|
|
8
|
-
import valid from './plugins/validation/Validate';
|
|
8
|
+
import valid from './plugins/validation/Validate.js';
|
|
9
9
|
import Toast from './components/app/toast/toast.js';
|
|
10
|
-
import event from './plugins/event';
|
|
11
|
-
import {_register} from './components';
|
|
12
|
-
import {_registers} from './directive';
|
|
13
|
-
import {Icons} from "./tools/icons";
|
|
10
|
+
import event from './plugins/event.js';
|
|
11
|
+
import {_register} from './components/index.js';
|
|
12
|
+
import {_registers} from './directive/index.js';
|
|
13
|
+
import {Icons} from "./tools/icons.js";
|
|
14
14
|
|
|
15
15
|
window.renusifyBus = event;
|
|
16
16
|
|
package/package.json
CHANGED
package/style/app.scss
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
@use "functions";
|
|
4
|
+
@use "mixins";
|
|
5
|
+
@use "mixins/container";
|
|
6
|
+
@use "mixins/utilities" as utilities2;
|
|
7
|
+
@use "variables/base";
|
|
8
|
+
@use "variables/utilities";
|
|
9
|
+
|
|
2
10
|
|
|
3
11
|
html {
|
|
4
|
-
font-size:
|
|
5
|
-
@include media-breakpoint-down('md') {
|
|
6
|
-
font-size:
|
|
12
|
+
font-size: base.$font-size-root;
|
|
13
|
+
@include container.media-breakpoint-down('md') {
|
|
14
|
+
font-size: base.$font-size-root-mobile;
|
|
7
15
|
}
|
|
8
|
-
|
|
16
|
+
|
|
17
|
+
& {
|
|
18
|
+
text-rendering: optimizeLegibility;
|
|
9
19
|
-webkit-font-smoothing: antialiased;
|
|
10
20
|
-moz-osx-font-smoothing: grayscale;
|
|
11
21
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
@@ -13,7 +23,9 @@ html {
|
|
|
13
23
|
overflow-y: scroll;
|
|
14
24
|
overflow-x: hidden;
|
|
15
25
|
-webkit-text-size-adjust: 100%;
|
|
16
|
-
|
|
26
|
+
scroll-behavior: smooth;
|
|
27
|
+
}
|
|
28
|
+
;
|
|
17
29
|
}
|
|
18
30
|
|
|
19
31
|
body {
|
|
@@ -29,12 +41,12 @@ body {
|
|
|
29
41
|
|
|
30
42
|
::-webkit-scrollbar-track:hover {
|
|
31
43
|
border: 1px solid rgba(100, 100, 100, 0.4);
|
|
32
|
-
border-radius: map
|
|
44
|
+
border-radius: map.get(base.$borders, 'sm');
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
::-webkit-scrollbar-thumb {
|
|
36
48
|
background: rgba(100, 100, 100, 0.4);
|
|
37
|
-
border-radius: map
|
|
49
|
+
border-radius: map.get(base.$borders, 'sm');
|
|
38
50
|
}
|
|
39
51
|
|
|
40
52
|
::-webkit-scrollbar-thumb:hover {
|
|
@@ -54,9 +66,9 @@ $color-text: var(--color-on-one);
|
|
|
54
66
|
background: $color;
|
|
55
67
|
}
|
|
56
68
|
|
|
57
|
-
.#{
|
|
58
|
-
font-family:
|
|
59
|
-
line-height:
|
|
69
|
+
.#{base.$prefix}app {
|
|
70
|
+
font-family: base.$body-font-family;
|
|
71
|
+
line-height: base.$line-height-root;
|
|
60
72
|
|
|
61
73
|
|
|
62
74
|
::-ms-clear,
|
|
@@ -86,8 +98,8 @@ $color-text: var(--color-on-one);
|
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
//curser
|
|
89
|
-
.#{
|
|
90
|
-
@each $name in
|
|
101
|
+
.#{base.$prefix}app {
|
|
102
|
+
@each $name in base.$cursor {
|
|
91
103
|
.cursor-#{$name} {
|
|
92
104
|
cursor: #{$name};
|
|
93
105
|
}
|
|
@@ -95,8 +107,8 @@ $color-text: var(--color-on-one);
|
|
|
95
107
|
}
|
|
96
108
|
|
|
97
109
|
//display
|
|
98
|
-
.#{
|
|
99
|
-
@each $size, $media_query in
|
|
110
|
+
.#{base.$prefix}app {
|
|
111
|
+
@each $size, $media_query in base.$display-breakpoints {
|
|
100
112
|
.hidden {
|
|
101
113
|
&-#{$size} {
|
|
102
114
|
@media #{$media_query}{
|
|
@@ -108,8 +120,8 @@ $color-text: var(--color-on-one);
|
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
//text
|
|
111
|
-
.#{
|
|
112
|
-
@each $name, $weight in
|
|
123
|
+
.#{base.$prefix}app {
|
|
124
|
+
@each $name, $weight in base.$font-weights {
|
|
113
125
|
.font-weight {
|
|
114
126
|
&-#{$name} {
|
|
115
127
|
font-weight: $weight !important
|
|
@@ -123,84 +135,84 @@ $color-text: var(--color-on-one);
|
|
|
123
135
|
}
|
|
124
136
|
|
|
125
137
|
//typography
|
|
126
|
-
.#{
|
|
127
|
-
@include typography(
|
|
138
|
+
.#{base.$prefix}app {
|
|
139
|
+
@include mixins.typography(base.$headings, 'body-2');
|
|
128
140
|
|
|
129
141
|
.display-1 {
|
|
130
|
-
@include typography(
|
|
142
|
+
@include mixins.typography(base.$headings, 'display-1')
|
|
131
143
|
}
|
|
132
144
|
|
|
133
145
|
.display-2 {
|
|
134
|
-
@include typography(
|
|
146
|
+
@include mixins.typography(base.$headings, 'display-2')
|
|
135
147
|
}
|
|
136
148
|
|
|
137
149
|
.display-3 {
|
|
138
|
-
@include typography(
|
|
150
|
+
@include mixins.typography(base.$headings, 'display-3')
|
|
139
151
|
}
|
|
140
152
|
|
|
141
153
|
.headline-1 {
|
|
142
|
-
@include typography(
|
|
154
|
+
@include mixins.typography(base.$headings, 'headline-1')
|
|
143
155
|
}
|
|
144
156
|
|
|
145
157
|
.headline-2 {
|
|
146
|
-
@include typography(
|
|
158
|
+
@include mixins.typography(base.$headings, 'headline-2')
|
|
147
159
|
}
|
|
148
160
|
|
|
149
161
|
.headline-3 {
|
|
150
|
-
@include typography(
|
|
162
|
+
@include mixins.typography(base.$headings, 'headline-3')
|
|
151
163
|
}
|
|
152
164
|
|
|
153
165
|
.title-1 {
|
|
154
|
-
@include typography(
|
|
166
|
+
@include mixins.typography(base.$headings, 'title-1')
|
|
155
167
|
}
|
|
156
168
|
|
|
157
169
|
.title-2 {
|
|
158
|
-
@include typography(
|
|
170
|
+
@include mixins.typography(base.$headings, 'title-2');
|
|
159
171
|
}
|
|
160
172
|
|
|
161
173
|
.title-3 {
|
|
162
|
-
@include typography(
|
|
174
|
+
@include mixins.typography(base.$headings, 'title-3');
|
|
163
175
|
}
|
|
164
176
|
|
|
165
177
|
.body-1 {
|
|
166
|
-
@include typography(
|
|
178
|
+
@include mixins.typography(base.$headings, 'body-1');
|
|
167
179
|
}
|
|
168
180
|
|
|
169
181
|
.body-2 {
|
|
170
|
-
@include typography(
|
|
182
|
+
@include mixins.typography(base.$headings, 'body-2');
|
|
171
183
|
}
|
|
172
184
|
|
|
173
185
|
.body-3 {
|
|
174
|
-
@include typography(
|
|
186
|
+
@include mixins.typography(base.$headings, 'body-3');
|
|
175
187
|
}
|
|
176
188
|
|
|
177
189
|
|
|
178
190
|
.label-1 {
|
|
179
|
-
@include typography(
|
|
191
|
+
@include mixins.typography(base.$headings, 'label-1')
|
|
180
192
|
}
|
|
181
193
|
|
|
182
194
|
.label-2 {
|
|
183
|
-
@include typography(
|
|
195
|
+
@include mixins.typography(base.$headings, 'label-2')
|
|
184
196
|
}
|
|
185
197
|
|
|
186
198
|
.label-3 {
|
|
187
|
-
@include typography(
|
|
199
|
+
@include mixins.typography(base.$headings, 'label-3')
|
|
188
200
|
}
|
|
189
201
|
|
|
190
202
|
p {
|
|
191
|
-
margin-bottom:
|
|
203
|
+
margin-bottom: base.$spacer * 4
|
|
192
204
|
}
|
|
193
205
|
|
|
194
206
|
}
|
|
195
207
|
|
|
196
208
|
//width
|
|
197
|
-
.#{
|
|
198
|
-
@each $name, $value in
|
|
209
|
+
.#{base.$prefix}app {
|
|
210
|
+
@each $name, $value in base.$widths {
|
|
199
211
|
.w-#{$name} {
|
|
200
212
|
width: $value !important
|
|
201
213
|
}
|
|
202
214
|
}
|
|
203
|
-
@each $name, $value in
|
|
215
|
+
@each $name, $value in base.$heights {
|
|
204
216
|
.h-#{$name} {
|
|
205
217
|
height: $value !important
|
|
206
218
|
}
|
|
@@ -208,8 +220,8 @@ $color-text: var(--color-on-one);
|
|
|
208
220
|
}
|
|
209
221
|
|
|
210
222
|
//transition
|
|
211
|
-
.#{
|
|
212
|
-
@each $name, $bezier in
|
|
223
|
+
.#{base.$prefix}app {
|
|
224
|
+
@each $name, $bezier in base.$transition {
|
|
213
225
|
.timing-#{$name} {
|
|
214
226
|
transition-timing-function: $bezier !important
|
|
215
227
|
}
|
|
@@ -217,8 +229,8 @@ $color-text: var(--color-on-one);
|
|
|
217
229
|
}
|
|
218
230
|
|
|
219
231
|
//z-index
|
|
220
|
-
.#{
|
|
221
|
-
@each $name, $value in
|
|
232
|
+
.#{base.$prefix}app {
|
|
233
|
+
@each $name, $value in base.$z-index {
|
|
222
234
|
.z-#{$name} {
|
|
223
235
|
z-index: $value !important;
|
|
224
236
|
}
|
|
@@ -226,12 +238,12 @@ $color-text: var(--color-on-one);
|
|
|
226
238
|
}
|
|
227
239
|
|
|
228
240
|
// Utilities
|
|
229
|
-
@each $breakpoint in map
|
|
230
|
-
@include media-breakpoint-up($breakpoint) {
|
|
231
|
-
$infix: breakpoint-min-name($breakpoint,
|
|
232
|
-
@each $key, $utility in
|
|
233
|
-
@if type-of($utility) == "map" and (map
|
|
234
|
-
@include build-utility($utility, $infix)
|
|
241
|
+
@each $breakpoint in map.keys(base.$grid-breakpoints) {
|
|
242
|
+
@include container.media-breakpoint-up($breakpoint) {
|
|
243
|
+
$infix: functions.breakpoint-min-name($breakpoint, base.$grid-breakpoints);
|
|
244
|
+
@each $key, $utility in utilities.$utilities {
|
|
245
|
+
@if meta.type-of($utility) == "map" and (map.get($utility, responsive) or $infix == "") {
|
|
246
|
+
@include utilities2.build-utility($utility, $infix)
|
|
235
247
|
}
|
|
236
248
|
}
|
|
237
249
|
}
|
|
@@ -241,23 +253,23 @@ $color-text: var(--color-on-one);
|
|
|
241
253
|
|
|
242
254
|
// Print utilities
|
|
243
255
|
@media print {
|
|
244
|
-
@each $key, $utility in
|
|
245
|
-
@if type-of($utility) == "map" and map
|
|
246
|
-
@include build-utility($utility, "-print")
|
|
256
|
+
@each $key, $utility in utilities.$utilities {
|
|
257
|
+
@if meta.type-of($utility) == "map" and map.get($utility, print) == true {
|
|
258
|
+
@include utilities2.build-utility($utility, "-print")
|
|
247
259
|
}
|
|
248
260
|
|
|
249
261
|
}
|
|
250
262
|
}
|
|
251
263
|
|
|
252
|
-
.#{
|
|
253
|
-
@each $name, $value in
|
|
264
|
+
.#{base.$prefix}app {
|
|
265
|
+
@each $name, $value in base.$box-shadows {
|
|
254
266
|
.elevation-#{$name} {
|
|
255
|
-
@include elevation($name, $important: true);
|
|
267
|
+
@include mixins.elevation($name, $important: true);
|
|
256
268
|
}
|
|
257
269
|
}
|
|
258
270
|
}
|
|
259
271
|
|
|
260
|
-
.#{
|
|
272
|
+
.#{base.$prefix}app {
|
|
261
273
|
* {
|
|
262
274
|
scroll-margin: 100px;
|
|
263
275
|
}
|
|
@@ -277,7 +289,7 @@ $color-text: var(--color-on-one);
|
|
|
277
289
|
font-size: 17px;
|
|
278
290
|
line-height: 22px;
|
|
279
291
|
border: 2px solid grey;
|
|
280
|
-
border-radius: map
|
|
292
|
+
border-radius: map.get(base.$borders, 'sm');
|
|
281
293
|
background-color: #283739;
|
|
282
294
|
color: white;
|
|
283
295
|
padding: 0em 1em;
|
|
@@ -349,7 +361,7 @@ $color-text: var(--color-on-one);
|
|
|
349
361
|
transition: .2s all ease-in-out, .4s transform ease-in-out;
|
|
350
362
|
}
|
|
351
363
|
|
|
352
|
-
@include ltr() {
|
|
364
|
+
@include mixins.ltr() {
|
|
353
365
|
border-right-width: 0;
|
|
354
366
|
border-bottom-width: 0;
|
|
355
367
|
border-top-width: 0;
|
|
@@ -360,7 +372,7 @@ $color-text: var(--color-on-one);
|
|
|
360
372
|
left: -0.5em;
|
|
361
373
|
}
|
|
362
374
|
}
|
|
363
|
-
@include rtl() {
|
|
375
|
+
@include mixins.rtl() {
|
|
364
376
|
border-bottom-width: 0;
|
|
365
377
|
border-left-width: 0;
|
|
366
378
|
border-top-width: 0;
|
package/style/colors.scss
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "mixins";
|
|
3
|
+
@use "variables/base";
|
|
4
|
+
@use "variables/color";
|
|
5
|
+
|
|
2
6
|
//Surface – A role used for backgrounds and large, low-emphasis areas of the screen.
|
|
3
7
|
//Primary, Secondary, Tertiary – Accent color roles used to emphasize or de-emphasize foreground elements.
|
|
4
8
|
//Container – Roles used as a fill color for foreground elements like buttons. They should not be used for text or icons.
|
|
@@ -55,48 +59,48 @@ $colorsList: (
|
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
@each $color_name, $color_value in
|
|
59
|
-
.#{
|
|
60
|
-
background: linear-gradient(
|
|
62
|
+
@each $color_name, $color_value in color.$gradient {
|
|
63
|
+
.#{base.$prefix}app .color-gradient-#{$color_name} {
|
|
64
|
+
background: linear-gradient(map.get($color_value, '0'), map.get($color_value, '1')) !important;
|
|
61
65
|
color: white !important;
|
|
62
66
|
}
|
|
63
|
-
.#{
|
|
64
|
-
background: linear-gradient(45deg,
|
|
67
|
+
.#{base.$prefix}app .color-gradient-#{$color_name}-45 {
|
|
68
|
+
background: linear-gradient(45deg, map.get($color_value, '0'), map.get($color_value, '1')) !important;
|
|
65
69
|
color: white !important;
|
|
66
70
|
}
|
|
67
|
-
.#{
|
|
68
|
-
background: linear-gradient(90deg,
|
|
71
|
+
.#{base.$prefix}app .color-gradient-#{$color_name}-90 {
|
|
72
|
+
background: linear-gradient(90deg, map.get($color_value, '0'), map.get($color_value, '1')) !important;
|
|
69
73
|
color: white !important;
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
|
|
73
|
-
@each $color_name, $color_value in
|
|
74
|
-
.#{
|
|
75
|
-
@include background-color($color_value, true);
|
|
77
|
+
@each $color_name, $color_value in color.$shades {
|
|
78
|
+
.#{base.$prefix}app .color-#{$color_name} {
|
|
79
|
+
@include mixins.background-color($color_value, true);
|
|
76
80
|
}
|
|
77
81
|
|
|
78
|
-
.#{
|
|
79
|
-
@include text-color($color_value, true);
|
|
82
|
+
.#{base.$prefix}app .color-#{$color_name}-text {
|
|
83
|
+
@include mixins.text-color($color_value, true);
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
|
|
83
|
-
@each $color_name, $color_value in
|
|
84
|
-
.#{
|
|
85
|
-
@include background-color($color_value, true);
|
|
87
|
+
@each $color_name, $color_value in color.$grey {
|
|
88
|
+
.#{base.$prefix}app .color-grey-#{$color_name} {
|
|
89
|
+
@include mixins.background-color($color_value, true);
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
.#{
|
|
89
|
-
@include text-color($color_value, true);
|
|
92
|
+
.#{base.$prefix}app .color-grey-#{$color_name}-text {
|
|
93
|
+
@include mixins.text-color($color_value, true);
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
|
|
93
|
-
@each $color_name, $color_value in
|
|
97
|
+
@each $color_name, $color_value in color.$colorMain {
|
|
94
98
|
.color-#{$color_name} {
|
|
95
|
-
@include background-color(var(--color-#{$color_name}), true);
|
|
96
|
-
@include text-color(var(--color-on-#{$color_name}), true);
|
|
99
|
+
@include mixins.background-color(var(--color-#{$color_name}), true);
|
|
100
|
+
@include mixins.text-color(var(--color-on-#{$color_name}), true);
|
|
97
101
|
}
|
|
98
102
|
.color-#{$color_name}-text {
|
|
99
|
-
@include text-color(var(--color-#{$color_name}), true);
|
|
103
|
+
@include mixins.text-color(var(--color-#{$color_name}), true);
|
|
100
104
|
}
|
|
101
105
|
}
|
|
102
106
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@use
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@use "../variables/base";
|
|
2
|
+
|
|
3
|
+
@use "sass:map";
|
|
4
|
+
|
|
5
5
|
|
|
6
|
-
@function breakpoint-min-width($name, $breakpoints:
|
|
7
|
-
$min: map
|
|
6
|
+
@function breakpoint-min-width($name, $breakpoints: base.$grid-breakpoints) {
|
|
7
|
+
$min: map.get($breakpoints, $name);
|
|
8
8
|
@return if($min != 0, $min, null)
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
@function breakpoint-min-name($name, $breakpoints:
|
|
11
|
+
@function breakpoint-min-name($name, $breakpoints: base.$grid-breakpoints,$prefix:'-') {
|
|
12
12
|
@return if(breakpoint-min-width($name, $breakpoints) == null, "", "#{$prefix}#{$name}")
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@function map-metro-get($map, $keys...) {
|
|
16
16
|
@each $key in $keys {
|
|
17
|
-
$map: map
|
|
17
|
+
$map: map.get($map, $key);
|
|
18
18
|
}
|
|
19
19
|
@return $map
|
|
20
20
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
1
|
+
@use "../functions";
|
|
2
|
+
@use "../variables/base";
|
|
3
|
+
|
|
4
|
+
@use "sass:math";
|
|
5
|
+
@use "sass:map";
|
|
6
|
+
|
|
7
|
+
@mixin media-breakpoint-up($name, $breakpoints: base.$grid-breakpoints) {
|
|
8
|
+
$min: functions.breakpoint-min-width($name, $breakpoints) ;
|
|
3
9
|
@if $min {
|
|
4
10
|
@media (min-width: $min) {
|
|
5
11
|
@content
|
|
@@ -9,8 +15,8 @@
|
|
|
9
15
|
}
|
|
10
16
|
}
|
|
11
17
|
|
|
12
|
-
@mixin media-breakpoint-down($name, $breakpoints:
|
|
13
|
-
$min: breakpoint-min-width($name, $breakpoints) ;
|
|
18
|
+
@mixin media-breakpoint-down($name, $breakpoints: base.$grid-breakpoints) {
|
|
19
|
+
$min: functions.breakpoint-min-width($name, $breakpoints) ;
|
|
14
20
|
@if $min {
|
|
15
21
|
@media (max-width: $min) {
|
|
16
22
|
@content
|
|
@@ -20,7 +26,7 @@
|
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
|
|
23
|
-
@mixin make-container-max-widths($max-widths:
|
|
29
|
+
@mixin make-container-max-widths($max-widths: base.$container-max-widths, $breakpoints: base.$grid-breakpoints) {
|
|
24
30
|
@each $breakpoint, $container-max-width in $max-widths {
|
|
25
31
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
26
32
|
max-width: $container-max-width
|
|
@@ -28,35 +34,35 @@
|
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
36
|
|
|
31
|
-
@mixin make-row($gutter:
|
|
37
|
+
@mixin make-row($gutter: base.$grid-gutter) {
|
|
32
38
|
display: flex;
|
|
33
|
-
margin-right: div($gutter, -2);
|
|
34
|
-
margin-left: div($gutter
|
|
39
|
+
margin-right: math.div($gutter, -2);
|
|
40
|
+
margin-left: math.div($gutter, -2);
|
|
35
41
|
flex-wrap: wrap;
|
|
36
42
|
flex: 1 1 auto;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
|
-
@mixin make-col($size, $columns:
|
|
40
|
-
max-width: percentage(div($size
|
|
41
|
-
flex: 0 0 percentage(div($size
|
|
45
|
+
@mixin make-col($size, $columns: base.$grid-columns) {
|
|
46
|
+
max-width: math.percentage(math.div($size, $columns));
|
|
47
|
+
flex: 0 0 math.percentage(math.div($size, $columns));
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
|
|
45
|
-
@mixin make-grid-columns($columns:
|
|
46
|
-
@each $breakpoint in map
|
|
47
|
-
$bName: breakpoint-min-name($breakpoint, $breakpoints);
|
|
48
|
-
$bNameClear: breakpoint-min-name($breakpoint, $breakpoints, '');
|
|
51
|
+
@mixin make-grid-columns($columns: base.$grid-columns, $gutter: base.$grid-gutter, $breakpoints: base.$grid-breakpoints) {
|
|
52
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
53
|
+
$bName: functions.breakpoint-min-name($breakpoint, $breakpoints);
|
|
54
|
+
$bNameClear: functions.breakpoint-min-name($breakpoint, $breakpoints, '');
|
|
49
55
|
|
|
50
56
|
@for $i from 1 through $columns {
|
|
51
57
|
@if ($bName=='') {
|
|
52
58
|
.col.col-#{$i} {
|
|
53
59
|
width: 100%;
|
|
54
|
-
padding: div($gutter
|
|
60
|
+
padding: math.div($gutter, 2);
|
|
55
61
|
}
|
|
56
62
|
} @else {
|
|
57
63
|
.col.#{$bNameClear}-#{$i} {
|
|
58
64
|
width: 100%;
|
|
59
|
-
padding: div($gutter
|
|
65
|
+
padding: math.div($gutter, 2);
|
|
60
66
|
}
|
|
61
67
|
}
|
|
62
68
|
|
|
@@ -66,13 +72,13 @@
|
|
|
66
72
|
.col,
|
|
67
73
|
.col-auto {
|
|
68
74
|
width: 100%;
|
|
69
|
-
padding: div($gutter, 2);
|
|
75
|
+
padding: math.div($gutter, 2);
|
|
70
76
|
}
|
|
71
77
|
} @else {
|
|
72
78
|
.col.#{$bNameClear},
|
|
73
79
|
.col.#{$bNameClear}-auto {
|
|
74
80
|
width: 100%;
|
|
75
|
-
padding: div($gutter, 2);
|
|
81
|
+
padding: math.div($gutter, 2);
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
package/style/mixins/index.scss
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "utilities";
|
|
3
|
+
@use 'container';
|
|
4
|
+
@use "../functions";
|
|
5
|
+
@use "../variables/base";
|
|
6
|
+
|
|
3
7
|
|
|
4
8
|
@mixin rtl() {
|
|
5
9
|
.app-rtl & {
|
|
@@ -24,23 +28,23 @@
|
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
@mixin typography($headings,$key) {
|
|
27
|
-
font-size: map-metro-get($headings, $key, 'size');
|
|
28
|
-
font-weight: map-metro-get($headings, $key, 'weight');
|
|
29
|
-
line-height: map-metro-get($headings, $key, 'line-height');
|
|
30
|
-
letter-spacing: map-metro-get($headings, $key, 'letter-spacing');
|
|
31
|
+
font-size: functions.map-metro-get($headings, $key, 'size');
|
|
32
|
+
font-weight: functions.map-metro-get($headings, $key, 'weight');
|
|
33
|
+
line-height: functions.map-metro-get($headings, $key, 'line-height');
|
|
34
|
+
letter-spacing: functions.map-metro-get($headings, $key, 'letter-spacing');
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
@mixin elevation($name, $important: false) {
|
|
34
|
-
box-shadow: map
|
|
35
|
-
-webkit-box-shadow: map
|
|
38
|
+
box-shadow: map.get(base.$box-shadows, $name) if($important, !important, null);
|
|
39
|
+
-webkit-box-shadow: map.get(base.$box-shadows, $name) if($important, !important, null)
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
@mixin states() {
|
|
39
43
|
&:hover::before {
|
|
40
|
-
opacity: map-metro-get(
|
|
44
|
+
opacity: functions.map-metro-get(base.$states, 'hover', 'state', 'opacity')
|
|
41
45
|
}
|
|
42
46
|
&:focus::before {
|
|
43
|
-
opacity: map-metro-get(
|
|
47
|
+
opacity: functions.map-metro-get(base.$states, 'focus', 'state', 'opacity')
|
|
44
48
|
}
|
|
45
49
|
&-active {
|
|
46
50
|
@include active-states()
|
|
@@ -49,19 +53,19 @@
|
|
|
49
53
|
|
|
50
54
|
@mixin active-states() {
|
|
51
55
|
&:hover::before, &::before {
|
|
52
|
-
opacity: map-metro-get(
|
|
56
|
+
opacity: functions.map-metro-get(base.$states, 'activated', 'state', 'opacity')
|
|
53
57
|
}
|
|
54
58
|
&:focus::before {
|
|
55
|
-
opacity: map-metro-get(
|
|
59
|
+
opacity: functions.map-metro-get(base.$states, 'pressed', 'state', 'opacity')
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
@mixin disable-states() {
|
|
60
64
|
&::before {
|
|
61
|
-
opacity: map-metro-get(
|
|
65
|
+
opacity: functions.map-metro-get(base.$states, 'disabled', 'state', 'opacity') !important;
|
|
62
66
|
}
|
|
63
|
-
opacity: map-metro-get(
|
|
64
|
-
color: var(--color-#{map-metro-get(
|
|
67
|
+
opacity: functions.map-metro-get(base.$states, 'disabled', 'text', 'opacity') !important;
|
|
68
|
+
color: var(--color-#{functions.map-metro-get(base.$states, 'disabled','text','color')}) !important;
|
|
65
69
|
pointer-events: none;
|
|
66
70
|
user-select: none;
|
|
67
71
|
box-shadow: none;
|