vgapp 1.4.3 → 1.4.5
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/README.md +251 -162
- package/app/modules/vgalert/scss/_variables.scss +6 -4
- package/app/modules/vgalert/scss/vgalert.scss +7 -8
- package/app/modules/vgcollapse/scss/_variables.scss +7 -5
- package/app/modules/vgcollapse/scss/vgcollapse.scss +5 -6
- package/app/modules/vgdropdown/scss/_variables.scss +14 -12
- package/app/modules/vgdropdown/scss/vgdropdown.scss +5 -6
- package/app/modules/vgdynamictable/scss/_actions.scss +19 -16
- package/app/modules/vgdynamictable/scss/_pagination.scss +5 -2
- package/app/modules/vgdynamictable/scss/_skeleton.scss +5 -2
- package/app/modules/vgdynamictable/scss/_sortable.scss +4 -1
- package/app/modules/vgdynamictable/scss/_table.scss +4 -1
- package/app/modules/vgdynamictable/scss/_variables.scss +46 -38
- package/app/modules/vgdynamictable/scss/vgdynamictable.scss +14 -10
- package/app/modules/vgfilepreview/scss/_variables.scss +20 -18
- package/app/modules/vgfilepreview/scss/vgfilepreview.scss +4 -5
- package/app/modules/vgfiles/scss/_mixins.scss +9 -9
- package/app/modules/vgfiles/scss/_variables.scss +28 -26
- package/app/modules/vgfiles/scss/vgfiles.scss +13 -14
- package/app/modules/vgformsender/js/hideshowpass.js +6 -1
- package/app/modules/vgformsender/js/vgformsender.js +7 -9
- package/app/modules/vgformsender/readme.md +1 -1
- package/app/modules/vgformsender/scss/_variables.scss +5 -3
- package/app/modules/vgformsender/scss/vgformsender.scss +10 -11
- package/app/modules/vglawcookie/js/vglawcookie.js +19 -16
- package/app/modules/vglawcookie/scss/_variables.scss +13 -11
- package/app/modules/vglawcookie/scss/vglawcookie.scss +5 -6
- package/app/modules/vgmodal/scss/_variables.scss +17 -15
- package/app/modules/vgmodal/scss/vgmodal.scss +10 -11
- package/app/modules/vgnav/scss/_breakpoints.scss +36 -20
- package/app/modules/vgnav/scss/_hamburger.scss +5 -2
- package/app/modules/vgnav/scss/_placement.scss +5 -2
- package/app/modules/vgnav/scss/_toggle.scss +5 -2
- package/app/modules/vgnav/scss/_variables.scss +26 -23
- package/app/modules/vgnav/scss/vgnav.scss +20 -16
- package/app/modules/vgnestable/scss/_variables.scss +29 -27
- package/app/modules/vgnestable/scss/vgnestable.scss +4 -5
- package/app/modules/vgrangeslider/scss/_variables.scss +23 -21
- package/app/modules/vgrangeslider/scss/vgrangeslider.scss +4 -5
- package/app/modules/vgrollup/scss/_variables.scss +15 -8
- package/app/modules/vgrollup/scss/vgrollup.scss +6 -7
- package/app/modules/vgselect/scss/_variables.scss +50 -48
- package/app/modules/vgselect/scss/vgselect.scss +26 -27
- package/app/modules/vgsidebar/scss/_variables.scss +10 -8
- package/app/modules/vgsidebar/scss/vgsidebar.scss +5 -6
- package/app/modules/vgtabs/scss/_variables.scss +23 -20
- package/app/modules/vgtabs/scss/vgtabs.scss +5 -6
- package/app/modules/vgtoast/scss/_variables.scss +13 -11
- package/app/modules/vgtoast/scss/vgtoast.scss +5 -6
- package/app/modules/vgtooltip/scss/_variables.scss +10 -8
- package/app/modules/vgtooltip/scss/vgtooltip.scss +5 -6
- package/app/utils/scss/_backdrop.scss +19 -0
- package/app/utils/scss/_closable.scss +22 -0
- package/app/utils/scss/_collapsable.scss +13 -0
- package/app/utils/scss/_loaders.scss +22 -0
- package/app/utils/scss/_theme-default.scss +12 -0
- package/app/utils/scss/_theme.scss +7 -0
- package/app/utils/scss/_tokens.scss +170 -0
- package/app/utils/scss/default.scss +11 -78
- package/app/utils/scss/functions.scss +21 -39
- package/app/utils/scss/index.scss +4 -0
- package/app/utils/scss/mixin.scss +16 -13
- package/app/utils/scss/variables.scss +105 -77
- package/build/vgapp.css +2 -4492
- package/build/vgapp.css.map +1 -1
- package/build/vgapp.js +3 -32145
- package/build/vgapp.js.map +1 -1
- package/index.scss +20 -23
- package/package.json +4 -1
- /package/app/utils/scss/{animation.scss → _animation.scss} +0 -0
- /package/app/utils/scss/{placement.scss → _placement.scss} +0 -0
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*--------------------------------------------------------------------------
|
|
7
7
|
**/
|
|
8
8
|
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@import 'variables';
|
|
9
|
+
@forward "variables";
|
|
10
|
+
@use "../../../utils/scss" as vg;
|
|
11
|
+
@use "variables" as vars;
|
|
13
12
|
|
|
14
13
|
.vg-form-sender {
|
|
15
|
-
@include mix-vars('form-sender',
|
|
14
|
+
@include vg.mix-vars('form-sender', vars.$form-sender-map);
|
|
16
15
|
|
|
17
16
|
&-modal {
|
|
18
17
|
.vg-modal-content {
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
&--content {
|
|
24
23
|
position: relative;
|
|
25
24
|
|
|
26
|
-
&-pass {
|
|
25
|
+
&-pass-focus-offset {
|
|
27
26
|
&:focus-within {
|
|
28
27
|
input {
|
|
29
28
|
padding-right: 5rem;
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
width: 22px;
|
|
44
43
|
height: 22px;
|
|
45
44
|
cursor: pointer;
|
|
46
|
-
transition:
|
|
45
|
+
transition: vg.$transition-base;
|
|
47
46
|
|
|
48
47
|
svg {
|
|
49
48
|
path {
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
right: 34px;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
.vg-form-sender--content-pass {
|
|
59
|
+
.vg-form-sender--content-pass-focus-offset {
|
|
61
60
|
&:focus-within {
|
|
62
61
|
input {
|
|
63
62
|
padding-right: 6.25rem;
|
|
@@ -72,15 +71,15 @@
|
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
.vg-form-sender-alert {
|
|
75
|
-
@include mix-alert-color-mode($class: vg-form-sender-alert);
|
|
74
|
+
@include vg.mix-alert-color-mode($class: vg-form-sender-alert);
|
|
76
75
|
background-color: var(--vg-form-sender-alert-background-color);
|
|
77
76
|
border: 1px solid var(--vg-form-sender-alert-border-color) ;
|
|
78
|
-
border-radius: var(--vg-border-radius);
|
|
77
|
+
border-radius: var(--vg-border-radius, #{vg.$border-radius});
|
|
79
78
|
|
|
80
79
|
.vg-btn-close {
|
|
81
80
|
svg {
|
|
82
81
|
path {
|
|
83
|
-
fill: var(--vg-form-sender-alert-close)
|
|
82
|
+
fill: var(--vg-form-sender-alert-close);
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
}
|
|
@@ -23,7 +23,6 @@ const SELECTOR_DATA_TOGGLE_CLEAR = '[data-vg-toggle="lawcookie-clear"]';
|
|
|
23
23
|
const EVENT_KEY_CLICK_DATA_API = `click.${NAME_KEY}.data.api`;
|
|
24
24
|
|
|
25
25
|
class VGLawCookie extends BaseModule {
|
|
26
|
-
// Убрано статическое sParams — избыточно и небезопасно
|
|
27
26
|
|
|
28
27
|
constructor(element, params = {}) {
|
|
29
28
|
super(element, params);
|
|
@@ -147,13 +146,15 @@ class VGLawCookie extends BaseModule {
|
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
/**
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
static reset() {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
* Сбрасывает согласие, не затрагивая остальные данные хранилища
|
|
150
|
+
*/
|
|
151
|
+
static reset() {
|
|
152
|
+
const { name } = VGLawCookie.getDefaultParams().cookie;
|
|
153
|
+
|
|
154
|
+
Cookies.remove(name);
|
|
155
|
+
localStorage.removeItem(name);
|
|
156
|
+
location.reload();
|
|
157
|
+
}
|
|
157
158
|
|
|
158
159
|
/**
|
|
159
160
|
* Возвращает дефолтные параметры (для доступа без инстанса)
|
|
@@ -164,11 +165,13 @@ class VGLawCookie extends BaseModule {
|
|
|
164
165
|
}, {});
|
|
165
166
|
}
|
|
166
167
|
|
|
167
|
-
dispose() {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
dispose() {
|
|
169
|
+
const { name } = this._params.cookie;
|
|
170
|
+
|
|
171
|
+
Cookies.remove(name);
|
|
172
|
+
localStorage.removeItem(name);
|
|
173
|
+
super.dispose();
|
|
174
|
+
}
|
|
172
175
|
|
|
173
176
|
/**
|
|
174
177
|
* Инициализация модуля
|
|
@@ -213,7 +216,7 @@ EventHandler.on(document, EVENT_KEY_CLICK_DATA_API, SELECTOR_DATA_TOGGLE_CLEAR,
|
|
|
213
216
|
|
|
214
217
|
const instance = VGLawCookie.getOrCreateInstance(element);
|
|
215
218
|
instance.dispose();
|
|
216
|
-
VGLawCookie.reset(); //
|
|
217
|
-
});
|
|
219
|
+
VGLawCookie.reset(); // Сброс согласия
|
|
220
|
+
});
|
|
218
221
|
|
|
219
|
-
export default VGLawCookie;
|
|
222
|
+
export default VGLawCookie;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
@use "../../../utils/scss" as vg;
|
|
2
|
+
|
|
3
|
+
$lawcookie-map: (
|
|
4
|
+
background-color: var(--vg-surface-bg, #{vg.$surface-bg}),
|
|
5
|
+
color: var(--vg-text-color, #{vg.$color}),
|
|
6
|
+
box-shadow: var(--vg-box-shadow, #{vg.$box-shadow}),
|
|
7
|
+
padding: 1rem,
|
|
8
|
+
border: vg.$border-width vg.$border-style var(--vg-border-color, #{vg.$border-color}),
|
|
9
|
+
border-radius: vg.$border-radius,
|
|
10
|
+
z-index: vg.$lawcookie-index,
|
|
11
|
+
transition: vg.$transition-base,
|
|
10
12
|
max-width: 50%,
|
|
11
13
|
padding-outer: 1rem,
|
|
12
14
|
font-size: 14px,
|
|
13
|
-
title-font-size: 16px
|
|
14
|
-
);
|
|
15
|
+
title-font-size: 16px
|
|
16
|
+
) !default;
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*--------------------------------------------------------------------------
|
|
7
7
|
**/
|
|
8
8
|
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@import "variables";
|
|
9
|
+
@forward "variables";
|
|
10
|
+
@use "../../../utils/scss" as vg;
|
|
11
|
+
@use "variables" as vars;
|
|
13
12
|
|
|
14
13
|
.vg-lawcookie {
|
|
15
|
-
@include mix-vars('lawcookie',
|
|
14
|
+
@include vg.mix-vars('lawcookie', vars.$lawcookie-map);
|
|
16
15
|
position: fixed;
|
|
17
16
|
display: none;
|
|
18
17
|
padding: var(--vg-lawcookie-padding-outer);
|
|
@@ -88,4 +87,4 @@
|
|
|
88
87
|
font-size: var(--vg-lawcookie-title-font-size);
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
|
-
}
|
|
90
|
+
}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
@use "../../../utils/scss" as vg;
|
|
2
|
+
|
|
3
|
+
$modal-sm: 300px !default;
|
|
2
4
|
$modal-md: 500px !default;
|
|
3
5
|
$modal-lg: 800px !default;
|
|
4
6
|
$modal-xl: 1140px !default;
|
|
5
7
|
|
|
6
8
|
$modal-dialog-margin-y-sm-up: 1.75rem !default;
|
|
7
|
-
$modal-content-box-shadow-sm-up:
|
|
8
|
-
|
|
9
|
-
$modal-map: (
|
|
10
|
-
z-index:
|
|
9
|
+
$modal-content-box-shadow-sm-up: var(--vg-box-shadow, #{vg.$box-shadow}) !default;
|
|
10
|
+
|
|
11
|
+
$modal-map: (
|
|
12
|
+
z-index: vg.$modal-index,
|
|
11
13
|
margin: .5rem,
|
|
12
14
|
padding: 1rem,
|
|
13
15
|
width: $modal-md,
|
|
14
|
-
color:
|
|
15
|
-
background-color:
|
|
16
|
-
border-width:
|
|
17
|
-
border-color: transparent,
|
|
18
|
-
border-style:
|
|
19
|
-
border-radius:
|
|
20
|
-
box-shadow:
|
|
21
|
-
transition:
|
|
16
|
+
color: var(--vg-text-color, #{vg.$color}),
|
|
17
|
+
background-color: var(--vg-surface-bg, #{vg.$surface-bg}),
|
|
18
|
+
border-width: vg.$border-width,
|
|
19
|
+
border-color: transparent,
|
|
20
|
+
border-style: vg.$border-style,
|
|
21
|
+
border-radius: vg.$border-radius,
|
|
22
|
+
box-shadow: var(--vg-box-shadow, #{vg.$box-shadow}),
|
|
23
|
+
transition: vg.$transition-base,
|
|
22
24
|
fade-transform: translate(0, -50px),
|
|
23
25
|
show-transform: none,
|
|
24
|
-
scale-transform: scale(1.02),
|
|
25
|
-
);
|
|
26
|
+
scale-transform: scale(1.02),
|
|
27
|
+
) !default;
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*--------------------------------------------------------------------------
|
|
7
7
|
**/
|
|
8
8
|
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@import "variables";
|
|
9
|
+
@forward "variables";
|
|
10
|
+
@use "../../../utils/scss" as vg;
|
|
11
|
+
@use "variables" as vars;
|
|
13
12
|
|
|
14
13
|
.vg-modal {
|
|
15
|
-
@include mix-vars('modal',
|
|
14
|
+
@include vg.mix-vars('modal', vars.$modal-map);
|
|
16
15
|
position: fixed;
|
|
17
16
|
left: 0;
|
|
18
17
|
top: 0;
|
|
@@ -122,7 +121,7 @@
|
|
|
122
121
|
position: fixed;
|
|
123
122
|
right: 20px;
|
|
124
123
|
bottom: 20px;
|
|
125
|
-
z-index: calc(var(--vg-modal-z-index, #{
|
|
124
|
+
z-index: calc(var(--vg-modal-z-index, #{vg.$modal-index}) + 1);
|
|
126
125
|
display: flex;
|
|
127
126
|
flex-direction: column;
|
|
128
127
|
align-items: flex-end;
|
|
@@ -160,8 +159,8 @@
|
|
|
160
159
|
|
|
161
160
|
@media screen and (min-width: 576px){
|
|
162
161
|
.vg-modal {
|
|
163
|
-
--vg-modal-margin: #{
|
|
164
|
-
--vg-modal-box-shadow: #{
|
|
162
|
+
--vg-modal-margin: #{vars.$modal-dialog-margin-y-sm-up};
|
|
163
|
+
--vg-modal-box-shadow: #{vars.$modal-content-box-shadow-sm-up};
|
|
165
164
|
}
|
|
166
165
|
|
|
167
166
|
.vg-modal-dialog {
|
|
@@ -171,18 +170,18 @@
|
|
|
171
170
|
}
|
|
172
171
|
|
|
173
172
|
.vg-modal-sm {
|
|
174
|
-
--vg-modal-width: #{
|
|
173
|
+
--vg-modal-width: #{vars.$modal-sm};
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
@media screen and (min-width: 992px){
|
|
179
178
|
.vg-modal-lg, .vg-modal-xl {
|
|
180
|
-
--vg-modal-width: #{
|
|
179
|
+
--vg-modal-width: #{vars.$modal-lg};
|
|
181
180
|
}
|
|
182
181
|
}
|
|
183
182
|
|
|
184
183
|
@media screen and (min-width: 1399px) {
|
|
185
184
|
.vg-modal-xl {
|
|
186
|
-
--vg-modal-width: #{
|
|
185
|
+
--vg-modal-width: #{vars.$modal-xl};
|
|
187
186
|
}
|
|
188
187
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "variables" as vars;
|
|
4
|
+
|
|
5
|
+
// Breakpoint viewport sizes and media queries.
|
|
2
6
|
//
|
|
3
7
|
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
|
4
8
|
//
|
|
@@ -14,21 +18,27 @@
|
|
|
14
18
|
// md
|
|
15
19
|
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl xxl))
|
|
16
20
|
// md
|
|
17
|
-
@function breakpoint-next($name, $breakpoints:
|
|
18
|
-
$n: index($breakpoint-names, $name);
|
|
19
|
-
@if not $n {
|
|
20
|
-
@error "breakpoint `#{$name}` not found in `#{$breakpoints}`";
|
|
21
|
-
}
|
|
22
|
-
@
|
|
21
|
+
@function breakpoint-next($name, $breakpoints: vars.$grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) {
|
|
22
|
+
$n: list.index($breakpoint-names, $name);
|
|
23
|
+
@if not $n {
|
|
24
|
+
@error "breakpoint `#{$name}` not found in `#{$breakpoints}`";
|
|
25
|
+
}
|
|
26
|
+
@if $n < list.length($breakpoint-names) {
|
|
27
|
+
@return list.nth($breakpoint-names, $n + 1);
|
|
28
|
+
}
|
|
29
|
+
@return null;
|
|
23
30
|
}
|
|
24
31
|
|
|
25
32
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
26
33
|
//
|
|
27
34
|
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
28
35
|
// 576px
|
|
29
|
-
@function breakpoint-min($name, $breakpoints:
|
|
30
|
-
$min: map
|
|
31
|
-
@
|
|
36
|
+
@function breakpoint-min($name, $breakpoints: vars.$grid-breakpoints) {
|
|
37
|
+
$min: map.get($breakpoints, $name);
|
|
38
|
+
@if $min != 0 {
|
|
39
|
+
@return $min;
|
|
40
|
+
}
|
|
41
|
+
@return null;
|
|
32
42
|
}
|
|
33
43
|
|
|
34
44
|
// Maximum breakpoint width.
|
|
@@ -40,9 +50,12 @@
|
|
|
40
50
|
//
|
|
41
51
|
// >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
42
52
|
// 767.98px
|
|
43
|
-
@function breakpoint-max($name, $breakpoints:
|
|
44
|
-
$max: map
|
|
45
|
-
@
|
|
53
|
+
@function breakpoint-max($name, $breakpoints: vars.$grid-breakpoints) {
|
|
54
|
+
$max: map.get($breakpoints, $name);
|
|
55
|
+
@if $max and $max > 0 {
|
|
56
|
+
@return $max - .02;
|
|
57
|
+
}
|
|
58
|
+
@return null;
|
|
46
59
|
}
|
|
47
60
|
|
|
48
61
|
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
|
@@ -52,13 +65,16 @@
|
|
|
52
65
|
// "" (Returns a blank string)
|
|
53
66
|
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px))
|
|
54
67
|
// "-sm"
|
|
55
|
-
@function breakpoint-infix($name, $breakpoints:
|
|
56
|
-
@
|
|
68
|
+
@function breakpoint-infix($name, $breakpoints: vars.$grid-breakpoints) {
|
|
69
|
+
@if breakpoint-min($name, $breakpoints) == null {
|
|
70
|
+
@return "";
|
|
71
|
+
}
|
|
72
|
+
@return "-#{$name}";
|
|
57
73
|
}
|
|
58
74
|
|
|
59
75
|
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
60
76
|
// Makes the @content apply to the given breakpoint and wider.
|
|
61
|
-
@mixin media-breakpoint-up($name, $breakpoints:
|
|
77
|
+
@mixin media-breakpoint-up($name, $breakpoints: vars.$grid-breakpoints) {
|
|
62
78
|
$min: breakpoint-min($name, $breakpoints);
|
|
63
79
|
@if $min {
|
|
64
80
|
@media (min-width: $min) {
|
|
@@ -71,7 +87,7 @@
|
|
|
71
87
|
|
|
72
88
|
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
73
89
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
74
|
-
@mixin media-breakpoint-down($name, $breakpoints:
|
|
90
|
+
@mixin media-breakpoint-down($name, $breakpoints: vars.$grid-breakpoints) {
|
|
75
91
|
$max: breakpoint-max($name, $breakpoints);
|
|
76
92
|
@if $max {
|
|
77
93
|
@media (max-width: $max) {
|
|
@@ -84,7 +100,7 @@
|
|
|
84
100
|
|
|
85
101
|
// Media that spans multiple breakpoint widths.
|
|
86
102
|
// Makes the @content apply between the min and max breakpoints
|
|
87
|
-
@mixin media-breakpoint-between($lower, $upper, $breakpoints:
|
|
103
|
+
@mixin media-breakpoint-between($lower, $upper, $breakpoints: vars.$grid-breakpoints) {
|
|
88
104
|
$min: breakpoint-min($lower, $breakpoints);
|
|
89
105
|
$max: breakpoint-max($upper, $breakpoints);
|
|
90
106
|
|
|
@@ -106,7 +122,7 @@
|
|
|
106
122
|
// Media between the breakpoint's minimum and maximum widths.
|
|
107
123
|
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
108
124
|
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
109
|
-
@mixin media-breakpoint-only($name, $breakpoints:
|
|
125
|
+
@mixin media-breakpoint-only($name, $breakpoints: vars.$grid-breakpoints) {
|
|
110
126
|
$min: breakpoint-min($name, $breakpoints);
|
|
111
127
|
$next: breakpoint-next($name, $breakpoints);
|
|
112
128
|
$max: breakpoint-max($next, $breakpoints);
|
|
@@ -124,4 +140,4 @@
|
|
|
124
140
|
@content;
|
|
125
141
|
}
|
|
126
142
|
}
|
|
127
|
-
}
|
|
143
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../utils/scss" as vg;
|
|
3
|
+
|
|
4
|
+
$nav-map: (
|
|
5
|
+
transition: all .2s ease-in-out,
|
|
6
|
+
) !default;
|
|
4
7
|
|
|
5
8
|
$nav-item-map: (
|
|
6
9
|
margin: 0,
|
|
@@ -8,39 +11,39 @@ $nav-item-map: (
|
|
|
8
11
|
font-size: 1rem,
|
|
9
12
|
font-weight: 400,
|
|
10
13
|
line-height: 1.4,
|
|
11
|
-
color: #212529,
|
|
14
|
+
color: var(--vg-text-color, #212529),
|
|
12
15
|
decoration: none,
|
|
13
16
|
display: inline-block,
|
|
14
17
|
border: none,
|
|
15
18
|
border-radius: 0,
|
|
16
19
|
white-space: nowrap,
|
|
17
|
-
position: relative,
|
|
18
|
-
);
|
|
20
|
+
position: relative,
|
|
21
|
+
) !default;
|
|
19
22
|
|
|
20
23
|
$nav-drop-map: (
|
|
21
24
|
z-index: 10,
|
|
22
|
-
transition: map
|
|
25
|
+
transition: map.get($nav-map, transition),
|
|
23
26
|
width: 200px,
|
|
24
27
|
max-height: 650px,
|
|
25
|
-
border-color:
|
|
28
|
+
border-color: var(--vg-border-color, #{vg.$border-color}),
|
|
26
29
|
border-radius: 0,
|
|
27
30
|
padding: 0,
|
|
28
|
-
bg:
|
|
31
|
+
bg: var(--vg-surface-bg, #{vg.$surface-bg}),
|
|
29
32
|
overflow-y: auto,
|
|
30
|
-
overflow-x: visible,
|
|
31
|
-
);
|
|
33
|
+
overflow-x: visible,
|
|
34
|
+
) !default;
|
|
32
35
|
|
|
33
36
|
$nav-drop-mega-map: (
|
|
34
37
|
width: 100%,
|
|
35
38
|
min-height: 300px,
|
|
36
|
-
bg:
|
|
37
|
-
border-color:
|
|
39
|
+
bg: var(--vg-surface-bg, #{vg.$surface-bg}),
|
|
40
|
+
border-color: var(--vg-border-color, #{vg.$border-color}),
|
|
38
41
|
border-radius: 0,
|
|
39
42
|
padding: 1rem,
|
|
40
43
|
z-index: 10,
|
|
41
|
-
transition: map
|
|
42
|
-
max-height: 600px,
|
|
43
|
-
);
|
|
44
|
+
transition: map.get($nav-map, transition),
|
|
45
|
+
max-height: 600px,
|
|
46
|
+
) !default;
|
|
44
47
|
|
|
45
48
|
$nav-drop-item-map: (
|
|
46
49
|
padding: .75rem 1rem,
|
|
@@ -50,16 +53,16 @@ $nav-drop-item-map: (
|
|
|
50
53
|
bg-hover: transparent,
|
|
51
54
|
color: inherit,
|
|
52
55
|
color-hover: inherit,
|
|
53
|
-
transition: map
|
|
54
|
-
);
|
|
56
|
+
transition: map.get($nav-map, transition),
|
|
57
|
+
) !default;
|
|
55
58
|
|
|
56
59
|
$hamburger-map: (
|
|
57
60
|
height: 27px,
|
|
58
61
|
line-width: 35px,
|
|
59
|
-
line-color: #333333,
|
|
62
|
+
line-color: var(--vg-text-emphasis-color, #333333),
|
|
60
63
|
line-height: 3px,
|
|
61
|
-
line-indent-top: 7px
|
|
62
|
-
);
|
|
64
|
+
line-indent-top: 7px
|
|
65
|
+
) !default;
|
|
63
66
|
|
|
64
67
|
$grid-breakpoints: (
|
|
65
68
|
xs: 576px,
|
|
@@ -68,5 +71,5 @@ $grid-breakpoints: (
|
|
|
68
71
|
lg: 1200px,
|
|
69
72
|
xl: 1400px,
|
|
70
73
|
xxl: 1600px,
|
|
71
|
-
xxxl: 1800px
|
|
72
|
-
);
|
|
74
|
+
xxxl: 1800px
|
|
75
|
+
) !default;
|
|
@@ -6,19 +6,23 @@
|
|
|
6
6
|
*--------------------------------------------------------------------------
|
|
7
7
|
**/
|
|
8
8
|
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
9
|
+
@forward "variables";
|
|
10
|
+
@forward "breakpoints";
|
|
11
|
+
@use "sass:map";
|
|
12
|
+
@use "../../../utils/scss" as vg;
|
|
13
|
+
@use "breakpoints";
|
|
14
|
+
@use "hamburger";
|
|
15
|
+
@use "placement";
|
|
16
|
+
@use "toggle";
|
|
17
|
+
@use "variables" as vars;
|
|
14
18
|
|
|
15
19
|
.vg-nav {
|
|
16
|
-
@include mix-vars('nav',
|
|
17
|
-
@include mix-vars('nav-item',
|
|
18
|
-
@include mix-vars('nav-drop',
|
|
19
|
-
@include mix-vars('nav-drop-mega',
|
|
20
|
-
@include mix-vars('nav-drop-item',
|
|
21
|
-
@include mix-vars('nav-hamburger',
|
|
20
|
+
@include vg.mix-vars('nav', vars.$nav-map);
|
|
21
|
+
@include vg.mix-vars('nav-item', vars.$nav-item-map);
|
|
22
|
+
@include vg.mix-vars('nav-drop', vars.$nav-drop-map);
|
|
23
|
+
@include vg.mix-vars('nav-drop-mega', vars.$nav-drop-mega-map);
|
|
24
|
+
@include vg.mix-vars('nav-drop-item', vars.$nav-drop-item-map);
|
|
25
|
+
@include vg.mix-vars('nav-hamburger', vars.$hamburger-map);
|
|
22
26
|
|
|
23
27
|
.vg-nav-wrapper {
|
|
24
28
|
display: flex;
|
|
@@ -48,7 +52,7 @@
|
|
|
48
52
|
li {
|
|
49
53
|
a {
|
|
50
54
|
/** set toggle **/
|
|
51
|
-
@
|
|
55
|
+
@include toggle.toggle();
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
|
|
@@ -147,14 +151,14 @@
|
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
/** set placement **/
|
|
150
|
-
@
|
|
154
|
+
@include placement.placement();
|
|
151
155
|
|
|
152
156
|
/** set hamburger **/
|
|
153
|
-
@
|
|
157
|
+
@include hamburger.hamburger();
|
|
154
158
|
|
|
155
159
|
&:not(.vg-nav-expand) {
|
|
156
|
-
@each $breakpoint in map
|
|
157
|
-
@include media-breakpoint-down($breakpoint,
|
|
160
|
+
@each $breakpoint in map.keys(vars.$grid-breakpoints) {
|
|
161
|
+
@include breakpoints.media-breakpoint-down($breakpoint, vars.$grid-breakpoints) {
|
|
158
162
|
&.vg-nav-#{$breakpoint} {
|
|
159
163
|
.vg-nav-hamburger {
|
|
160
164
|
display: flex;
|