@formixru/b2b-ui 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/CONTRIBUTING.md +61 -0
- package/README.md +30 -0
- package/package.json +110 -0
- package/src/base.scss +89 -0
- package/src/components/action-list/index.scss +38 -0
- package/src/components/banner/index.scss +30 -0
- package/src/components/breadcrumbs/index.js +8 -0
- package/src/components/breadcrumbs/index.scss +55 -0
- package/src/components/button/index.scss +223 -0
- package/src/components/checkbox/index.scss +94 -0
- package/src/components/color-input/index.scss +88 -0
- package/src/components/color-input/index.vue +156 -0
- package/src/components/date-input/index.scss +126 -0
- package/src/components/date-input/index.vue +240 -0
- package/src/components/delete-all/index.scss +44 -0
- package/src/components/dialog/index.js +221 -0
- package/src/components/dialog/index.scss +198 -0
- package/src/components/empty-list/index.scss +97 -0
- package/src/components/file-input/index.scss +119 -0
- package/src/components/file-input/index.vue +333 -0
- package/src/components/font-input/index.scss +47 -0
- package/src/components/font-input/index.vue +154 -0
- package/src/components/form/index.js +228 -0
- package/src/components/form/index.scss +398 -0
- package/src/components/header-announcement/index.scss +48 -0
- package/src/components/input/index.js +85 -0
- package/src/components/input/index.scss +87 -0
- package/src/components/link/index.scss +266 -0
- package/src/components/loader/index.js +65 -0
- package/src/components/loader/index.scss +99 -0
- package/src/components/nobr/index.scss +5 -0
- package/src/components/overlay/index.js +82 -0
- package/src/components/overlay/index.scss +29 -0
- package/src/components/pagination/index.scss +59 -0
- package/src/components/pagination-group/index.js +5 -0
- package/src/components/pagination-group/index.scss +86 -0
- package/src/components/quantity-input/index.scss +179 -0
- package/src/components/quantity-input/index.vue +141 -0
- package/src/components/radio/index.scss +80 -0
- package/src/components/radio-list/index.scss +79 -0
- package/src/components/range-input/index.scss +109 -0
- package/src/components/range-input/index.vue +185 -0
- package/src/components/rating-input/index.js +32 -0
- package/src/components/rating-input/index.scss +36 -0
- package/src/components/select/index.js +6 -0
- package/src/components/select/index.scss +84 -0
- package/src/components/sidebar/index.js +174 -0
- package/src/components/sidebar/index.scss +398 -0
- package/src/components/simple-page/index.scss +32 -0
- package/src/components/slider-nav/index.scss +82 -0
- package/src/components/slider-pagination/index.scss +130 -0
- package/src/components/spinner/index.scss +35 -0
- package/src/components/sr-only/index.scss +25 -0
- package/src/components/steps/index.scss +155 -0
- package/src/components/suggest-input/index.scss +141 -0
- package/src/components/suggest-input/index.vue +324 -0
- package/src/components/tabs/index.js +192 -0
- package/src/components/tabs/index.scss +137 -0
- package/src/components/time-select/index.scss +27 -0
- package/src/components/toggle/index.scss +76 -0
- package/src/components/tooltip/index.js +69 -0
- package/src/components/tooltip/index.scss +112 -0
- package/src/components/total/index.scss +162 -0
- package/src/components/warning-message/index.scss +170 -0
- package/src/components/warning-message/index.vue +94 -0
- package/src/components/wysiwyg/index.scss +344 -0
- package/src/helpers/css-var.js +8 -0
- package/src/helpers/error-handler.js +61 -0
- package/src/helpers/get-smart-captcha.js +7 -0
- package/src/helpers/is-in-viewport.js +10 -0
- package/src/helpers/mm.js +52 -0
- package/src/helpers/scroll-to.js +21 -0
- package/src/variables.scss +1295 -0
|
@@ -0,0 +1,1295 @@
|
|
|
1
|
+
/* stylelint-disable length-zero-no-unit, scss/dollar-variable-empty-line-before, order/order */
|
|
2
|
+
|
|
3
|
+
@use 'sass:color';
|
|
4
|
+
@use 'sass:list';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
@use 'sass:math';
|
|
7
|
+
@use 'sass:meta';
|
|
8
|
+
|
|
9
|
+
$dark: false !default;
|
|
10
|
+
|
|
11
|
+
// https://www.w3.org/TR/WCAG21/#dfn-relative-luminance
|
|
12
|
+
@function get-relative-luminance($color) {
|
|
13
|
+
/* stylelint-disable number-max-precision, scss/dollar-variable-pattern */
|
|
14
|
+
$RsRGB: math.div(color.channel($color, "red", $space: rgb), 255);
|
|
15
|
+
$GsRGB: math.div(color.channel($color, "green", $space: rgb), 255);
|
|
16
|
+
$BsRGB: math.div(color.channel($color, "blue", $space: rgb), 255);
|
|
17
|
+
|
|
18
|
+
$R: math.div($RsRGB, 12.92);
|
|
19
|
+
$G: math.div($GsRGB, 12.92);
|
|
20
|
+
$B: math.div($BsRGB, 12.92);
|
|
21
|
+
|
|
22
|
+
@if $RsRGB > 0.03928 {
|
|
23
|
+
$R: math.pow(math.div($RsRGB + 0.055, 1.055), 2.4);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@if $GsRGB > 0.03928 {
|
|
27
|
+
$G: math.pow(math.div($GsRGB + 0.055, 1.055), 2.4);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@if $BsRGB > 0.03928 {
|
|
31
|
+
$B: math.pow(math.div($BsRGB + 0.055, 1.055), 2.4);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@return 0.2126 * $R + 0.7152 * $G + 0.0722 * $B;
|
|
35
|
+
|
|
36
|
+
/* eslint-enable number-max-precision, scss/dollar-variable-pattern */
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// https://www.w3.org/TR/WCAG21/#dfn-contrast-ratio
|
|
40
|
+
@function get-contrast-ratio($light, $dark) {
|
|
41
|
+
@return math.div(get-relative-luminance($light) + 0.05, get-relative-luminance($dark) + 0.05);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@function get-offset-color($color, $is-light-color) {
|
|
45
|
+
$offset: 0.05;
|
|
46
|
+
$modifier: 1; // Для тёмного фона мы делаем цвет более светлым
|
|
47
|
+
$light-color: color.adjust($color, $lightness: math.percentage($offset * $modifier));
|
|
48
|
+
$dark-color: $color;
|
|
49
|
+
|
|
50
|
+
@if $is-light-color {
|
|
51
|
+
$modifier: -1; // Для светлого фона мы делаем цвет более тёмным
|
|
52
|
+
$light-color: $color;
|
|
53
|
+
$dark-color: color.adjust($color, $lightness: math.percentage($offset * $modifier));
|
|
54
|
+
}
|
|
55
|
+
// Если < 2 - контраста недостаточно, если > 2 - получается слишком чёрный/белый цвет, а нам нужно сохранить изначальный оттенок
|
|
56
|
+
@while get-contrast-ratio($light-color, $dark-color) < 2 {
|
|
57
|
+
$offset: $offset + 0.05;
|
|
58
|
+
|
|
59
|
+
@if $is-light-color {
|
|
60
|
+
$dark-color: color.adjust($color, $lightness: math.percentage($offset * $modifier));
|
|
61
|
+
} @else {
|
|
62
|
+
$light-color: color.adjust($color, $lightness: math.percentage($offset * $modifier));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@return color.adjust($color, $lightness: math.percentage($offset * $modifier));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@function is-light-color($color) {
|
|
70
|
+
$r: color.channel($color, "red", $space: rgb);
|
|
71
|
+
$g: color.channel($color, "green", $space: rgb);
|
|
72
|
+
$b: color.channel($color, "blue", $space: rgb);
|
|
73
|
+
$luminance: 0.2126 * $r + 0.7152 * $g + 0.0722 * $b;
|
|
74
|
+
|
|
75
|
+
@return $luminance >= 128;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@function autocolor($color, $background, $autocorrect: true) {
|
|
79
|
+
@if meta.type-of($background) == 'list' {
|
|
80
|
+
@if color.alpha(list.nth($background, 2)) > 0.5 {
|
|
81
|
+
$background: list.nth($background, 2);
|
|
82
|
+
} @else {
|
|
83
|
+
$background: list.nth($background, 1);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
$is-light-color: is-light-color($background);
|
|
87
|
+
|
|
88
|
+
@if meta.type-of($color) == 'map' {
|
|
89
|
+
$c: map.get($color, 'dark');
|
|
90
|
+
|
|
91
|
+
@if $dark and $c != $color-white and map.get($color, 'light') != $background {
|
|
92
|
+
$c: map.get($color, 'light');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@if $is-light-color {
|
|
96
|
+
$c: map.get($color, 'light');
|
|
97
|
+
|
|
98
|
+
@if $dark and $c != $color-black and map.get($color, 'dark') != $background {
|
|
99
|
+
$c: map.get($color, 'dark');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// Корректируем слишком схожие цвета. Коэффициент 1.5 выбран, чтобы быть максимально толерантным к решениям дизайнеров и т. п., но есть возможность вообще выключить автоматическую корректировку
|
|
103
|
+
@if $autocorrect {
|
|
104
|
+
$min-ratio: 1.5;
|
|
105
|
+
$ratio: get-contrast-ratio($background, $c);
|
|
106
|
+
|
|
107
|
+
@if $ratio < $min-ratio {
|
|
108
|
+
@if $ratio < 1 {
|
|
109
|
+
@if get-contrast-ratio($c, $background) < $min-ratio {
|
|
110
|
+
$c: get-offset-color($c, $is-light-color);
|
|
111
|
+
}
|
|
112
|
+
} @else {
|
|
113
|
+
$c: get-offset-color($c, $is-light-color);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@return $c;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@return $color;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@function alphagrey($grey, $background) {
|
|
125
|
+
$offset: 0;
|
|
126
|
+
// https://www.viget.com/articles/equating-color-and-transparency/
|
|
127
|
+
$alpha: math.div((color.channel($grey, "red", $space: rgb) - 255), (0 - 255));
|
|
128
|
+
|
|
129
|
+
@if $background == white {
|
|
130
|
+
$alpha: math.div((color.channel($grey, "red", $space: rgb) - 0), (255 - 0));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@if $dark and $background == black {
|
|
134
|
+
$offset: 0.075;
|
|
135
|
+
} @else if not $dark and $background == white {
|
|
136
|
+
$offset: 0.025;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@return color.change($background, $alpha: $alpha - $offset);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/********** Основные **********/
|
|
143
|
+
|
|
144
|
+
$color-primary: #0e81c9 !default;
|
|
145
|
+
|
|
146
|
+
@if $dark {
|
|
147
|
+
$color-primary: #1091e1 !default;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
$color-primary-80: color.scale($color-primary, $lightness: 85%) !default;
|
|
151
|
+
$color-primary-70: color.scale($color-primary, $lightness: 20%) !default;
|
|
152
|
+
$color-primary-60: color.scale($color-primary, $lightness: 10%) !default;
|
|
153
|
+
$color-primary-40: color.scale($color-primary, $lightness: -15%) !default;
|
|
154
|
+
$color-primary-30: color.scale($color-primary, $lightness: -25%) !default;
|
|
155
|
+
$color-primary-20: color.scale($color-primary, $lightness: -35%) !default;
|
|
156
|
+
|
|
157
|
+
@if $dark {
|
|
158
|
+
$color-primary-80: color.scale($color-primary, $lightness: -55%) !default;
|
|
159
|
+
$color-primary-70: color.scale($color-primary, $lightness: -45%) !default;
|
|
160
|
+
$color-primary-60: color.scale($color-primary, $lightness: -35%) !default;
|
|
161
|
+
$color-primary-40: color.scale($color-primary, $lightness: 20%) !default;
|
|
162
|
+
$color-primary-30: color.scale($color-primary, $lightness: 40%) !default;
|
|
163
|
+
$color-primary-20: color.scale($color-primary, $lightness: 65%) !default;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
$color-secondary: #1c2225 !default;
|
|
167
|
+
|
|
168
|
+
@if $dark {
|
|
169
|
+
$color-secondary: #3e4549 !default;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
$color-secondary-80: color.scale($color-secondary, $lightness: 85%) !default;
|
|
173
|
+
$color-secondary-70: color.scale($color-secondary, $lightness: 20%) !default;
|
|
174
|
+
$color-secondary-60: color.scale($color-secondary, $lightness: 10%) !default;
|
|
175
|
+
$color-secondary-40: color.scale($color-secondary, $lightness: -15%) !default;
|
|
176
|
+
$color-secondary-30: color.scale($color-secondary, $lightness: -25%) !default;
|
|
177
|
+
$color-secondary-20: color.scale($color-secondary, $lightness: -35%) !default;
|
|
178
|
+
|
|
179
|
+
@if $dark {
|
|
180
|
+
$color-secondary-80: color.scale($color-secondary, $lightness: -55%) !default;
|
|
181
|
+
$color-secondary-70: color.scale($color-secondary, $lightness: -45%) !default;
|
|
182
|
+
$color-secondary-60: color.scale($color-secondary, $lightness: -35%) !default;
|
|
183
|
+
$color-secondary-40: color.scale($color-secondary, $lightness: 20%) !default;
|
|
184
|
+
$color-secondary-30: color.scale($color-secondary, $lightness: 40%) !default;
|
|
185
|
+
$color-secondary-20: color.scale($color-secondary, $lightness: 65%) !default;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
$color-grey: #888888 !default;
|
|
189
|
+
$color-grey-100: #ffffff !default;
|
|
190
|
+
$color-grey-90: #f3f3f3 !default;
|
|
191
|
+
$color-grey-80: #dbdbdb !default;
|
|
192
|
+
$color-grey-70: #bbbbbb !default;
|
|
193
|
+
$color-grey-40: #727272 !default;
|
|
194
|
+
$color-grey-20: #333333 !default;
|
|
195
|
+
$color-grey-0: #0a0a0a !default;
|
|
196
|
+
|
|
197
|
+
@if $dark {
|
|
198
|
+
// При добавлении !default возникает ошибка, поэтому пока что без него
|
|
199
|
+
$color-grey: #8c8c8c;
|
|
200
|
+
$color-grey-100: #080808;
|
|
201
|
+
$color-grey-90: #262626;
|
|
202
|
+
$color-grey-80: #565656;
|
|
203
|
+
$color-grey-70: #666666;
|
|
204
|
+
$color-grey-40: #a4a4a4;
|
|
205
|
+
$color-grey-20: #b6b6b6;
|
|
206
|
+
$color-grey-0: #e6e6e6;
|
|
207
|
+
|
|
208
|
+
// Были получены так:
|
|
209
|
+
// $color-grey: color.scale(#bbbbbb, $lightness: -25%);
|
|
210
|
+
// $color-grey-100: color.scale(#0a0a0a, $lightness: -25%);
|
|
211
|
+
// $color-grey-90: color.scale(#333333, $lightness: -25%);
|
|
212
|
+
// $color-grey-80: color.scale(#727272, $lightness: -25%);
|
|
213
|
+
// $color-grey-70: color.scale(#888888, $lightness: -25%);
|
|
214
|
+
// $color-grey-40: color.scale(#dbdbdb, $lightness: -25%);
|
|
215
|
+
// $color-grey-20: color.scale(#f3f3f3, $lightness: -25%);
|
|
216
|
+
// $color-grey-0: color.scale(#ffffff, $lightness: -10%);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
$color-grey-alpha: alphagrey($color-grey, black) !default;
|
|
220
|
+
$color-grey-alpha-90: alphagrey($color-grey-90, black) !default;
|
|
221
|
+
$color-grey-alpha-80: alphagrey($color-grey-80, black) !default;
|
|
222
|
+
$color-grey-alpha-70: alphagrey($color-grey-70, black) !default;
|
|
223
|
+
$color-grey-alpha-40: alphagrey($color-grey-40, black) !default;
|
|
224
|
+
$color-grey-alpha-20: alphagrey($color-grey-20, black) !default;
|
|
225
|
+
|
|
226
|
+
$color-grey-alpha-i: alphagrey($color-grey-70, white) !default;
|
|
227
|
+
$color-grey-alpha-i-90: alphagrey($color-grey-20, white) !default;
|
|
228
|
+
$color-grey-alpha-i-80: alphagrey($color-grey-40, white) !default;
|
|
229
|
+
$color-grey-alpha-i-70: alphagrey($color-grey, white) !default;
|
|
230
|
+
$color-grey-alpha-i-40: alphagrey($color-grey-80, white) !default;
|
|
231
|
+
$color-grey-alpha-i-20: alphagrey($color-grey-90, white) !default;
|
|
232
|
+
|
|
233
|
+
@if $dark {
|
|
234
|
+
$color-grey-alpha: alphagrey($color-grey, white) !default;
|
|
235
|
+
$color-grey-alpha-90: alphagrey($color-grey-90, white) !default;
|
|
236
|
+
$color-grey-alpha-80: alphagrey($color-grey-80, white) !default;
|
|
237
|
+
$color-grey-alpha-70: alphagrey($color-grey-70, white) !default;
|
|
238
|
+
$color-grey-alpha-40: alphagrey($color-grey-40, white) !default;
|
|
239
|
+
$color-grey-alpha-20: alphagrey($color-grey-20, white) !default;
|
|
240
|
+
|
|
241
|
+
$color-grey-alpha-i: alphagrey($color-grey-70, black) !default;
|
|
242
|
+
$color-grey-alpha-i-90: alphagrey($color-grey-20, black) !default;
|
|
243
|
+
$color-grey-alpha-i-80: alphagrey($color-grey-40, black) !default;
|
|
244
|
+
$color-grey-alpha-i-70: alphagrey($color-grey, black) !default;
|
|
245
|
+
$color-grey-alpha-i-40: alphagrey($color-grey-80, black) !default;
|
|
246
|
+
$color-grey-alpha-i-20: alphagrey($color-grey-90, black) !default;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
$color-black: $color-grey-0 !default;
|
|
250
|
+
$color-white: $color-grey-100 !default;
|
|
251
|
+
|
|
252
|
+
@if $dark {
|
|
253
|
+
$color-black: $color-grey-100 !default;
|
|
254
|
+
$color-white: $color-grey-0 !default;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
$color-error: #d70909 !default;
|
|
258
|
+
$color-warning: #ff8f00 !default;
|
|
259
|
+
$color-success: #4bb250 !default;
|
|
260
|
+
|
|
261
|
+
$bg-color-primary: $color-grey-100 !default;
|
|
262
|
+
$bg-color-secondary: $color-grey-90 !default;
|
|
263
|
+
$bg-color-tertiary: $color-grey-100 !default;
|
|
264
|
+
$bg-color-dark: $color-black !default;
|
|
265
|
+
$bg-color-info: $color-primary !default;
|
|
266
|
+
|
|
267
|
+
@if $dark {
|
|
268
|
+
$bg-color-tertiary: #212223 !default;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
$backdrop-color: rgba($color-black, 30%) !default;
|
|
272
|
+
|
|
273
|
+
@if $dark {
|
|
274
|
+
$backdrop-color: rgba($color-black, 75%) !default;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
$font-color-primary: $color-grey-20 !default;
|
|
278
|
+
$font-color-secondary: $color-grey-40 !default;
|
|
279
|
+
$font-color-tertiary: $color-grey-70 !default;
|
|
280
|
+
$font-color-action: $color-primary !default;
|
|
281
|
+
$font-color-inverted: $color-grey-100 !default;
|
|
282
|
+
$font-color-error: $color-error !default;
|
|
283
|
+
|
|
284
|
+
@if $dark {
|
|
285
|
+
$font-color-primary: $color-grey-0 !default;
|
|
286
|
+
$font-color-tertiary: $color-grey-80 !default;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
$font-family: 'PT Sans', system-ui !default;
|
|
290
|
+
|
|
291
|
+
$font-size: 16px !default;
|
|
292
|
+
$font-size-3xs: 8px !default; // Надо будет избавиться от этого размера
|
|
293
|
+
$font-size-2xs: 10px !default;
|
|
294
|
+
$font-size-xs: 12px !default;
|
|
295
|
+
$font-size-s: 14px !default;
|
|
296
|
+
$font-size-l: 20px !default;
|
|
297
|
+
$font-size-xl: 24px !default;
|
|
298
|
+
$font-size-2xl: 28px !default;
|
|
299
|
+
|
|
300
|
+
$line-height: 1.4 !default;
|
|
301
|
+
$line-height-s: 1.2 !default;
|
|
302
|
+
$line-height-l: 1.6 !default;
|
|
303
|
+
|
|
304
|
+
$font-h1-mobile: ('font-style': normal, 'font-weight': bold, 'font-size': $font-size-xl, 'line-height': $line-height-s) !default;
|
|
305
|
+
$font-h1-desktop: ('font-size': $font-size-2xl) !default;
|
|
306
|
+
|
|
307
|
+
$font-h2-mobile: ('font-style': normal, 'font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
308
|
+
$font-h2-desktop: ('font-size': $font-size-xl) !default;
|
|
309
|
+
|
|
310
|
+
$font-h3-mobile: ('font-style': normal, 'font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
311
|
+
$font-h3-desktop: () !default;
|
|
312
|
+
|
|
313
|
+
$font-h4-mobile: ('font-style': normal, 'font-weight': bold, 'font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
314
|
+
$font-h4-desktop: () !default;
|
|
315
|
+
|
|
316
|
+
$font: ('font-size': $font-size, 'line-height': $line-height) !default;
|
|
317
|
+
|
|
318
|
+
$radius: 4px * 2 !default;
|
|
319
|
+
$radius-s: 4px !default;
|
|
320
|
+
$radius-l: 10000px !default;
|
|
321
|
+
|
|
322
|
+
$shadow: 0 2px 16px 0 rgba($color-black, 10%) !default;
|
|
323
|
+
$shadow-s: 0 2px 8px 0 rgba($color-black, 10%) !default;
|
|
324
|
+
|
|
325
|
+
@if $dark {
|
|
326
|
+
$shadow: none !default;
|
|
327
|
+
$shadow-s: none !default;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/********** Цвета для кастомного скроллбара **********/
|
|
331
|
+
|
|
332
|
+
$custom-scroll-color: $color-primary !default;
|
|
333
|
+
$custom-scroll-track-color: $color-grey-90 !default;
|
|
334
|
+
|
|
335
|
+
/********** Общие токены для таблиц **********/
|
|
336
|
+
|
|
337
|
+
$table-font: ('font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
338
|
+
$table-border-width: 1px !default;
|
|
339
|
+
$table-border-color: transparent !default;
|
|
340
|
+
$table-radius: $radius !default;
|
|
341
|
+
$table-shadow: $shadow !default;
|
|
342
|
+
|
|
343
|
+
$table-header-bg: $color-grey-40 !default;
|
|
344
|
+
$table-header-color: $color-white !default;
|
|
345
|
+
$table-header-font: ('font-weight': bold, 'font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
346
|
+
$table-header-small-font: ('font-size': $font-size-xs) !default;
|
|
347
|
+
$table-header-icon-bg: $color-grey-20 !default;
|
|
348
|
+
$table-header-icon-color: $color-white !default;
|
|
349
|
+
|
|
350
|
+
$table-resizer-active-color: $color-grey !default;
|
|
351
|
+
$table-resizer-color: color.change($table-resizer-active-color, $alpha: 0.25) !default;
|
|
352
|
+
|
|
353
|
+
$table-line-bg: $bg-color-tertiary !default;
|
|
354
|
+
$table-line-even-bg: $color-grey-90 !default;
|
|
355
|
+
|
|
356
|
+
// .table-sort
|
|
357
|
+
|
|
358
|
+
$table-sort-color: $color-grey-70 !default;
|
|
359
|
+
$table-sort-selected-color: $color-white !default;
|
|
360
|
+
|
|
361
|
+
// .table-settings
|
|
362
|
+
|
|
363
|
+
$table-settings-item-bg: $color-grey-90 !default;
|
|
364
|
+
|
|
365
|
+
$table-settings-icon-color: $color-grey-40 !default;
|
|
366
|
+
|
|
367
|
+
$table-settings-dnd-color: $color-grey-70 !default;
|
|
368
|
+
|
|
369
|
+
$table-settings-pin-color: $color-grey-70 !default;
|
|
370
|
+
$table-settings-pin-selected-color: $color-primary !default;
|
|
371
|
+
|
|
372
|
+
/********** Стили визуального редактора (.wysiwyg) **********/
|
|
373
|
+
|
|
374
|
+
$wysiwyg-color: $font-color-secondary !default;
|
|
375
|
+
$wysiwyg-font: $font !default;
|
|
376
|
+
|
|
377
|
+
$wysiwyg-link-color: $color-primary !default;
|
|
378
|
+
$wysiwyg-link-active-color: $color-primary-40 !default;
|
|
379
|
+
|
|
380
|
+
$wysiwyg-h1-color: $font-color-primary !default;
|
|
381
|
+
$wysiwyg-h1-mobile-font: $font-h1-mobile !default;
|
|
382
|
+
$wysiwyg-h1-desktop-font: $font-h1-desktop !default;
|
|
383
|
+
|
|
384
|
+
$wysiwyg-h2-color: $font-color-primary !default;
|
|
385
|
+
$wysiwyg-h2-mobile-font: $font-h2-mobile !default;
|
|
386
|
+
$wysiwyg-h2-desktop-font: $font-h2-desktop !default;
|
|
387
|
+
|
|
388
|
+
$wysiwyg-h3-color: $font-color-primary !default;
|
|
389
|
+
$wysiwyg-h3-mobile-font: $font-h3-mobile !default;
|
|
390
|
+
$wysiwyg-h3-desktop-font: $font-h3-desktop !default;
|
|
391
|
+
|
|
392
|
+
$wysiwyg-h4-color: $font-color-primary !default;
|
|
393
|
+
$wysiwyg-h4-mobile-font: $font-h4-mobile !default;
|
|
394
|
+
$wysiwyg-h4-desktop-font: $font-h4-desktop !default;
|
|
395
|
+
|
|
396
|
+
$wysiwyg-image-radius: $radius !default;
|
|
397
|
+
|
|
398
|
+
$wysiwyg-table-font: ('font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
399
|
+
$wysiwyg-table-radius: $radius !default;
|
|
400
|
+
$wysiwyg-table-header-bg: $color-grey-40 !default;
|
|
401
|
+
$wysiwyg-table-header-color: $color-white !default;
|
|
402
|
+
$wysiwyg-table-header-font: ('font-weight': bold) !default;
|
|
403
|
+
$wysiwyg-table-separator-color: $color-grey-80 !default;
|
|
404
|
+
$wysiwyg-table-separator-width: 1px !default;
|
|
405
|
+
$wysiwyg-table-zebra-bg: $bg-color-tertiary !default;
|
|
406
|
+
$wysiwyg-table-zebra-td-bg: $color-grey-90 !default;
|
|
407
|
+
$wysiwyg-table-zebra-shadow: $shadow !default;
|
|
408
|
+
|
|
409
|
+
$wysiwyg-alert-bg: $color-grey-40 !default;
|
|
410
|
+
$wysiwyg-alert-warning-bg: $color-primary !default;
|
|
411
|
+
$wysiwyg-alert-color: $color-white !default;
|
|
412
|
+
$wysiwyg-alert-radius: $radius !default;
|
|
413
|
+
$wysiwyg-alert-link-color: $wysiwyg-alert-color !default;
|
|
414
|
+
$wysiwyg-alert-active-link-color: $color-primary-40 !default;
|
|
415
|
+
|
|
416
|
+
/********** Встроенные изображения (.image) **********/
|
|
417
|
+
|
|
418
|
+
$image-bg: $bg-color-secondary !default;
|
|
419
|
+
$image-fill: $bg-color-tertiary !default;
|
|
420
|
+
$image-line: $color-grey-0 !default;
|
|
421
|
+
$image-primary: $color-primary !default;
|
|
422
|
+
|
|
423
|
+
/********** Ссылка (.link) **********/
|
|
424
|
+
|
|
425
|
+
// Primary
|
|
426
|
+
|
|
427
|
+
$link-color: $font-color-primary !default;
|
|
428
|
+
$link-active-color: $color-primary-40 !default;
|
|
429
|
+
|
|
430
|
+
// Secondary (.link_alt)
|
|
431
|
+
|
|
432
|
+
$link-alt-color: $color-primary !default;
|
|
433
|
+
$link-alt-active-color: $color-primary-40 !default;
|
|
434
|
+
|
|
435
|
+
// Grey (.link_grey)
|
|
436
|
+
|
|
437
|
+
$link-grey-color: $font-color-secondary !default;
|
|
438
|
+
$link-grey-active-color: $color-primary-40 !default;
|
|
439
|
+
|
|
440
|
+
// Inverted (.link_inverted)
|
|
441
|
+
|
|
442
|
+
$link-inverted-color: $font-color-inverted !default;
|
|
443
|
+
$link-inverted-active-color: $color-primary-40 !default;
|
|
444
|
+
|
|
445
|
+
/********** Кнопка (.button) **********/
|
|
446
|
+
|
|
447
|
+
// Primary
|
|
448
|
+
|
|
449
|
+
$button-bg: $color-primary !default;
|
|
450
|
+
$button-border-width: 1px !default;
|
|
451
|
+
$button-border-color: $color-primary !default;
|
|
452
|
+
$button-radius: $radius-l !default;
|
|
453
|
+
$button-color: $color-white !default;
|
|
454
|
+
$button-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': 1) !default;
|
|
455
|
+
$button-height: 4px * 12 !default;
|
|
456
|
+
$button-min-width: 4px * 38 !default;
|
|
457
|
+
$button-padding: 0 4px * 7 !default;
|
|
458
|
+
|
|
459
|
+
$button-disabled-bg: rgba($color-primary, 35%) !default;
|
|
460
|
+
$button-disabled-border-color: rgba($color-primary, 35%) !default;
|
|
461
|
+
$button-disabled-color: $color-white !default;
|
|
462
|
+
|
|
463
|
+
$button-active-bg: $color-primary-40 !default;
|
|
464
|
+
$button-active-border-color: $color-primary-40 !default;
|
|
465
|
+
$button-active-color: $color-white !default;
|
|
466
|
+
|
|
467
|
+
$button-icon-size: 4px * 6 !default;
|
|
468
|
+
$button-icon-space-before: 4px * 2 !default;
|
|
469
|
+
$button-icon-space-after: 4px * 2 !default;
|
|
470
|
+
|
|
471
|
+
$button-small-font: ('font-weight': bold, 'font-size': $font-size-s, 'line-height': 1) !default;
|
|
472
|
+
$button-small-height: 4px * 10 !default;
|
|
473
|
+
$button-small-min-width: 4px * 18 !default;
|
|
474
|
+
$button-small-padding: 0 4px * 4 !default;
|
|
475
|
+
|
|
476
|
+
$button-square-radius: $radius !default;
|
|
477
|
+
|
|
478
|
+
$button-wide-min-width: 4px * 52 !default;
|
|
479
|
+
$button-small-wide-min-width: 4px * 32 !default;
|
|
480
|
+
|
|
481
|
+
// Secondary (.button_alt)
|
|
482
|
+
|
|
483
|
+
$button-alt-bg: transparent !default;
|
|
484
|
+
$button-alt-border-width: 1px !default;
|
|
485
|
+
$button-alt-border-color: $color-primary !default;
|
|
486
|
+
$button-alt-color: $color-primary !default;
|
|
487
|
+
|
|
488
|
+
$button-alt-disabled-bg: transparent !default;
|
|
489
|
+
$button-alt-disabled-border-color: rgba($color-primary, 35%) !default;
|
|
490
|
+
$button-alt-disabled-color: rgba($color-primary, 35%) !default;
|
|
491
|
+
|
|
492
|
+
$button-alt-active-bg: $color-primary-40 !default;
|
|
493
|
+
$button-alt-active-border-color: $color-primary-40 !default;
|
|
494
|
+
$button-alt-active-color: $color-white !default;
|
|
495
|
+
|
|
496
|
+
// Ghost (.button_ghost)
|
|
497
|
+
|
|
498
|
+
$button-ghost-bg: $color-grey-90 !default;
|
|
499
|
+
$button-ghost-border-width: 1px !default;
|
|
500
|
+
$button-ghost-border-color: $color-grey-90 !default;
|
|
501
|
+
$button-ghost-color: $color-primary !default;
|
|
502
|
+
|
|
503
|
+
$button-ghost-disabled-bg: $color-grey-90 !default;
|
|
504
|
+
$button-ghost-disabled-border-color: $color-grey-90 !default;
|
|
505
|
+
$button-ghost-disabled-color: rgba($color-primary, 35%) !default;
|
|
506
|
+
|
|
507
|
+
$button-ghost-active-bg: $color-primary-80 !default;
|
|
508
|
+
$button-ghost-active-border-color: $color-primary-80 !default;
|
|
509
|
+
$button-ghost-active-color: $color-primary !default;
|
|
510
|
+
|
|
511
|
+
// Grey (.button_grey)
|
|
512
|
+
|
|
513
|
+
$button-grey-bg: $color-grey-40 !default;
|
|
514
|
+
$button-grey-border-width: 1px !default;
|
|
515
|
+
$button-grey-border-color: $color-grey-40 !default;
|
|
516
|
+
$button-grey-color: $color-white !default;
|
|
517
|
+
|
|
518
|
+
$button-grey-disabled-bg: $color-grey-80 !default;
|
|
519
|
+
$button-grey-disabled-border-color: $color-grey-80 !default;
|
|
520
|
+
$button-grey-disabled-color: $color-white !default;
|
|
521
|
+
|
|
522
|
+
$button-grey-active-bg: $color-primary-40 !default;
|
|
523
|
+
$button-grey-active-border-color: $color-primary-40 !default;
|
|
524
|
+
$button-grey-active-color: $color-white !default;
|
|
525
|
+
|
|
526
|
+
// Inverted (.button_inverted)
|
|
527
|
+
|
|
528
|
+
$button-inverted-bg: transparent !default;
|
|
529
|
+
$button-inverted-border-width: 1px !default;
|
|
530
|
+
$button-inverted-border-color: $color-white !default;
|
|
531
|
+
$button-inverted-color: $color-white !default;
|
|
532
|
+
|
|
533
|
+
$button-inverted-disabled-bg: transparent !default;
|
|
534
|
+
$button-inverted-disabled-border-color: rgba($color-white, 50%) !default;
|
|
535
|
+
$button-inverted-disabled-color: rgba($color-white, 50%) !default;
|
|
536
|
+
|
|
537
|
+
$button-inverted-active-bg: $color-white !default;
|
|
538
|
+
$button-inverted-active-border-color: $color-white !default;
|
|
539
|
+
$button-inverted-active-color: $color-primary !default;
|
|
540
|
+
|
|
541
|
+
/********** Поле ввода (.input) **********/
|
|
542
|
+
|
|
543
|
+
$input-bg: $bg-color-tertiary !default;
|
|
544
|
+
$input-border-width: 1px !default;
|
|
545
|
+
$input-border-color: $color-grey-80 !default;
|
|
546
|
+
$input-radius: $radius !default;
|
|
547
|
+
$input-color: $font-color-primary !default;
|
|
548
|
+
$input-font: ('font-size': $font-size, 'line-height': $line-height-s, 'font-family': $font-family) !default;
|
|
549
|
+
$input-placeholder-color: rgba($input-color, 50%) !default;
|
|
550
|
+
$input-height: 4px * 12 !default;
|
|
551
|
+
$input-padding-x: 4px * 4 !default;
|
|
552
|
+
$input-padding-y: 4px * 3 !default;
|
|
553
|
+
|
|
554
|
+
$input-filled-border-color: $color-primary !default;
|
|
555
|
+
|
|
556
|
+
$input-active-bg: $input-bg !default;
|
|
557
|
+
$input-active-border-color: $color-primary !default;
|
|
558
|
+
$input-active-outline-color: $input-active-border-color !default;
|
|
559
|
+
$input-active-color: $input-color !default;
|
|
560
|
+
|
|
561
|
+
$input-disabled-bg: rgba($color-primary-20, 7%) !default;
|
|
562
|
+
$input-disabled-border-color: $color-grey-90 !default;
|
|
563
|
+
$input-disabled-color: rgba($input-color, 50%) !default;
|
|
564
|
+
$input-disabled-placeholder-color: rgba($input-color, 25%) !default;
|
|
565
|
+
|
|
566
|
+
$input-error-bg: $input-bg !default;
|
|
567
|
+
$input-error-border-color: $color-error !default;
|
|
568
|
+
$input-error-color: $input-color !default;
|
|
569
|
+
|
|
570
|
+
$input-small-font: () !default;
|
|
571
|
+
$input-small-height: 4px * 10 !default;
|
|
572
|
+
$input-small-padding-x: 4px * 4 !default;
|
|
573
|
+
$input-small-padding-y: 4px !default;
|
|
574
|
+
|
|
575
|
+
$input-textarea-font: ('line-height': $line-height) !default;
|
|
576
|
+
$input-textarea-min-height: 4px * 36 !default;
|
|
577
|
+
|
|
578
|
+
$input-textarea-small-min-height: 4px * 18 !default;
|
|
579
|
+
|
|
580
|
+
/********** Поле ввода с подсказкамми (.suggest-input) **********/
|
|
581
|
+
|
|
582
|
+
$suggest-input-item-height: 4px * 10 !default;
|
|
583
|
+
$suggest-input-item-color: $color-grey-20 !default;
|
|
584
|
+
$suggest-input-item-font: ('font-size': $font-size, 'line-height': $line-height) !default;
|
|
585
|
+
$suggest-input-item-mark-color: inherit !default;
|
|
586
|
+
$suggest-input-item-mark-font: ('font-weight': bold) !default;
|
|
587
|
+
|
|
588
|
+
$suggest-input-item-active-bg: $color-grey-90 !default;
|
|
589
|
+
$suggest-input-item-active-color: $font-color-action !default;
|
|
590
|
+
|
|
591
|
+
$suggest-input-list-bg: $bg-color-primary !default;
|
|
592
|
+
$suggest-input-list-radius: $input-radius !default;
|
|
593
|
+
$suggest-input-list-shadow: $shadow-s !default;
|
|
594
|
+
|
|
595
|
+
$suggest-input-not-found-color: $color-grey-20 !default;
|
|
596
|
+
$suggest-input-not-found-font: ('font-style': italic, 'font-size': $font-size, 'line-height': $line-height) !default;
|
|
597
|
+
|
|
598
|
+
$suggest-input-clear-color: $color-grey-70 !default;
|
|
599
|
+
$suggest-input-clear-active-color: $color-grey-40 !default;
|
|
600
|
+
|
|
601
|
+
/********** Поле ввода даты (.date-input) **********/
|
|
602
|
+
|
|
603
|
+
$date-input-icon-color: $color-grey-70 !default;
|
|
604
|
+
$date-input-disabled-icon-color: $color-grey-80 !default;
|
|
605
|
+
$date-input-icon-size: 4px * 6 !default;
|
|
606
|
+
$date-input-small-icon-size: 4px * 5 !default;
|
|
607
|
+
|
|
608
|
+
$date-input-bg: $bg-color-primary !default;
|
|
609
|
+
$date-input-radius: $input-radius !default;
|
|
610
|
+
$date-input-shadow: $shadow-s !default;
|
|
611
|
+
$date-input-color: $font-color-primary !default;
|
|
612
|
+
$date-input-disabled-color: $font-color-tertiary !default;
|
|
613
|
+
|
|
614
|
+
$date-input-title-color: $date-input-color !default;
|
|
615
|
+
$date-input-weekday-color: $font-color-secondary !default;
|
|
616
|
+
|
|
617
|
+
$date-input-arrow-color: $color-grey-40 !default;
|
|
618
|
+
$date-input-arrow-active-bg: $color-grey-90 !default;
|
|
619
|
+
|
|
620
|
+
$date-input-solid-bg: $color-primary !default;
|
|
621
|
+
$date-input-solid-color: $font-color-inverted !default;
|
|
622
|
+
|
|
623
|
+
$date-input-light-bg: $color-primary-80 !default;
|
|
624
|
+
$date-input-light-color: $date-input-color !default;
|
|
625
|
+
|
|
626
|
+
$date-input-outline-bg: $color-primary-80 !default;
|
|
627
|
+
$date-input-outline-border-color: $color-primary !default;
|
|
628
|
+
$date-input-outline-color: $date-input-color !default;
|
|
629
|
+
|
|
630
|
+
/********** Чекбокс (.checkbox) **********/
|
|
631
|
+
|
|
632
|
+
$checkbox-bg: $input-bg !default;
|
|
633
|
+
$checkbox-border-width: $input-border-width !default;
|
|
634
|
+
$checkbox-border-color: $color-grey-70 !default;
|
|
635
|
+
$checkbox-radius: 2px !default;
|
|
636
|
+
$checkbox-size: 16px !default;
|
|
637
|
+
|
|
638
|
+
$checkbox-disabled-bg: $input-disabled-bg !default;
|
|
639
|
+
$checkbox-disabled-border-color: $input-disabled-border-color !default;
|
|
640
|
+
|
|
641
|
+
$checkbox-active-bg: $color-grey-90 !default;
|
|
642
|
+
$checkbox-active-border-color: $color-grey !default;
|
|
643
|
+
|
|
644
|
+
$checkbox-check-color: $color-success !default;
|
|
645
|
+
|
|
646
|
+
$checkbox-label-color: $font-color-secondary !default;
|
|
647
|
+
$checkbox-label-font: ('font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
648
|
+
|
|
649
|
+
$checkbox-disabled-label-color: $input-disabled-color !default;
|
|
650
|
+
|
|
651
|
+
/********** Радикнопка (.radio) **********/
|
|
652
|
+
|
|
653
|
+
$radio-bg: $input-bg !default;
|
|
654
|
+
$radio-border-width: $input-border-width !default;
|
|
655
|
+
$radio-border-color: $color-grey-70 !default;
|
|
656
|
+
$radio-size: 16px !default;
|
|
657
|
+
|
|
658
|
+
$radio-disabled-bg: $input-disabled-bg !default;
|
|
659
|
+
$radio-disabled-border-color: $input-disabled-border-color !default;
|
|
660
|
+
|
|
661
|
+
$radio-active-bg: $color-grey-90 !default;
|
|
662
|
+
$radio-active-border-color: $color-grey !default;
|
|
663
|
+
|
|
664
|
+
$radio-dot-color: $color-success !default;
|
|
665
|
+
|
|
666
|
+
$radio-label-color: $font-color-secondary !default;
|
|
667
|
+
$radio-label-font: ('font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
668
|
+
|
|
669
|
+
$radio-disabled-label-color: $input-disabled-color !default;
|
|
670
|
+
|
|
671
|
+
/********** Выпадающий список (.select) **********/
|
|
672
|
+
|
|
673
|
+
$select-bg: $input-bg !default;
|
|
674
|
+
$select-border-width: $input-border-width !default;
|
|
675
|
+
$select-border-color: $input-border-color !default;
|
|
676
|
+
$select-radius: $input-radius !default;
|
|
677
|
+
$select-color: $input-color !default;
|
|
678
|
+
$select-font: $input-font !default;
|
|
679
|
+
$select-placeholder-color: $input-placeholder-color !default;
|
|
680
|
+
$select-height: $input-height !default;
|
|
681
|
+
$select-padding: $input-padding-x !default;
|
|
682
|
+
|
|
683
|
+
$select-active-bg: $input-active-bg !default;
|
|
684
|
+
$select-active-border-color: $input-active-border-color !default;
|
|
685
|
+
$select-active-color: $input-active-color !default;
|
|
686
|
+
|
|
687
|
+
$select-disabled-bg: $input-disabled-bg !default;
|
|
688
|
+
$select-disabled-border-color: $input-disabled-border-color !default;
|
|
689
|
+
$select-disabled-color: $input-disabled-color !default;
|
|
690
|
+
|
|
691
|
+
$select-error-bg: $input-error-bg !default;
|
|
692
|
+
$select-error-border-color: $input-error-border-color !default;
|
|
693
|
+
$select-error-color: $input-error-color !default;
|
|
694
|
+
|
|
695
|
+
$select-small-font: $input-small-font !default;
|
|
696
|
+
$select-small-height: $input-small-height !default;
|
|
697
|
+
$select-small-padding: $input-small-padding-x !default;
|
|
698
|
+
|
|
699
|
+
/********** Выбор времени (.time-select) **********/
|
|
700
|
+
|
|
701
|
+
$time-select-dash-color: $color-grey-40 !default;
|
|
702
|
+
|
|
703
|
+
/********** Выбор файла (.file-input) **********/
|
|
704
|
+
|
|
705
|
+
$file-input-bg: $input-bg !default;
|
|
706
|
+
$file-input-border-width: $input-border-width !default;
|
|
707
|
+
$file-input-border-color: $input-border-color !default;
|
|
708
|
+
$file-input-radius: $input-radius !default;
|
|
709
|
+
$file-input-dragover-bg: $color-grey-90 !default;
|
|
710
|
+
$file-input-dragover-border-color: $file-input-dragover-bg !default;
|
|
711
|
+
|
|
712
|
+
$file-input-descr-font: ('font-size': $font-size-s, 'line-height': $line-height) !default;
|
|
713
|
+
$file-input-descr-color: $font-color-secondary !default;
|
|
714
|
+
|
|
715
|
+
$file-input-file-bg: $color-grey-90 !default;
|
|
716
|
+
$file-input-file-radius: $file-input-radius !default;
|
|
717
|
+
$file-input-dragover-file-bg: $color-grey-80 !default;
|
|
718
|
+
|
|
719
|
+
$file-input-file-name-color: $font-color-secondary !default;
|
|
720
|
+
$file-input-file-name-font: ('font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
721
|
+
|
|
722
|
+
$file-input-file-error-color: $color-error !default;
|
|
723
|
+
$file-input-file-error-font: ('font-style': italic, 'font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
724
|
+
|
|
725
|
+
$file-input-remove-color: $color-grey-70 !default;
|
|
726
|
+
$file-input-remove-active-color: $color-primary-40 !default;
|
|
727
|
+
|
|
728
|
+
/********** Выбор цвета (.color-input) **********/
|
|
729
|
+
|
|
730
|
+
$color-input-radius: $radius-l !default;
|
|
731
|
+
$color-input-border-width: 2px !default;
|
|
732
|
+
$color-input-border-color: $color-grey-80 !default;
|
|
733
|
+
|
|
734
|
+
$color-input-active-border-color: $color-primary !default;
|
|
735
|
+
|
|
736
|
+
$color-input-icon-dark-color: $color-black !default;
|
|
737
|
+
$color-input-icon-light-color: $color-white !default;
|
|
738
|
+
|
|
739
|
+
/********** Выбор шрифта (.font-input) **********/
|
|
740
|
+
|
|
741
|
+
$font-input-label-color: $font-color-secondary !default;
|
|
742
|
+
$font-input-label-font: ('font-size': $font-size-xs) !default;
|
|
743
|
+
|
|
744
|
+
/********** Список радиокнопок (.radio-list) **********/
|
|
745
|
+
|
|
746
|
+
$radio-list-bg: $bg-color-tertiary !default;
|
|
747
|
+
$radio-list-border-width: 1px !default;
|
|
748
|
+
$radio-list-border-color: $color-primary !default;
|
|
749
|
+
$radio-list-radius: $radius-l !default;
|
|
750
|
+
$radio-list-color: $color-primary !default;
|
|
751
|
+
$radio-list-font: ('font-weight': bold, 'font-size': $font-size-s, 'line-height': 1) !default;
|
|
752
|
+
|
|
753
|
+
$radio-list-disabled-bg: $bg-color-tertiary !default;
|
|
754
|
+
$radio-list-disabled-border-color: rgba($color-primary, 35%) !default;
|
|
755
|
+
$radio-list-disabled-color: rgba($color-primary, 35%) !default;
|
|
756
|
+
|
|
757
|
+
$radio-list-active-bg: $color-primary !default;
|
|
758
|
+
$radio-list-active-border-color: $color-primary !default;
|
|
759
|
+
$radio-list-active-color: $color-white !default;
|
|
760
|
+
|
|
761
|
+
$radio-list-selected-bg: $color-primary-40 !default;
|
|
762
|
+
$radio-list-selected-border-color: $color-primary-40 !default;
|
|
763
|
+
$radio-list-selected-color: $color-white !default;
|
|
764
|
+
|
|
765
|
+
$radio-list-selected-disabled-bg: rgba($color-primary, 35%) !default;
|
|
766
|
+
$radio-list-selected-disabled-border-color: rgba($color-primary, 35%) !default;
|
|
767
|
+
$radio-list-selected-disabled-color: $color-white !default;
|
|
768
|
+
|
|
769
|
+
/********** Переключатель (.toggle) **********/
|
|
770
|
+
|
|
771
|
+
$toggle-bg: $bg-color-tertiary !default;
|
|
772
|
+
$toggle-border-width: 1px !default;
|
|
773
|
+
$toggle-border-color: $color-grey-70 !default;
|
|
774
|
+
$toggle-radius: $radius-l !default;
|
|
775
|
+
$toggle-check-color: $color-grey-70 !default;
|
|
776
|
+
$toggle-check-radius: $radius-l !default;
|
|
777
|
+
|
|
778
|
+
$toggle-disabled-bg: $input-disabled-bg !default;
|
|
779
|
+
$toggle-disabled-border-color: $input-disabled-border-color !default;
|
|
780
|
+
$toggle-disabled-check-color: $color-grey-80 !default;
|
|
781
|
+
|
|
782
|
+
$toggle-active-bg: $color-success !default;
|
|
783
|
+
$toggle-active-border-color: $color-success !default;
|
|
784
|
+
$toggle-active-check-color: $color-white !default;
|
|
785
|
+
|
|
786
|
+
$toggle-active-disabled-bg: $color-success !default;
|
|
787
|
+
$toggle-active-disabled-border-color: $color-success !default;
|
|
788
|
+
$toggle-active-disabled-check-color: rgba($color-white, 50%) !default;
|
|
789
|
+
|
|
790
|
+
$toggle-label-color: $font-color-secondary !default;
|
|
791
|
+
$toggle-label-font: ('font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
792
|
+
|
|
793
|
+
/********** Ползунок (.range-input) **********/
|
|
794
|
+
|
|
795
|
+
$range-input-track-height: 4px !default;
|
|
796
|
+
$range-input-track-color: $color-grey-80 !default;
|
|
797
|
+
$range-input-track-disabled-color: $input-disabled-bg !default;
|
|
798
|
+
|
|
799
|
+
$range-input-connect-color: $color-grey-20 !default;
|
|
800
|
+
$range-input-connect-disabled-color: $color-grey-80 !default;
|
|
801
|
+
|
|
802
|
+
$range-input-handle-size: 16px !default;
|
|
803
|
+
$range-input-handle-color: $color-primary !default;
|
|
804
|
+
$range-input-handle-disabled-color: $color-grey-80 !default;
|
|
805
|
+
$range-input-handle-active-color: $color-primary-40 !default;
|
|
806
|
+
|
|
807
|
+
$range-input-separator-color: $input-border-color !default;
|
|
808
|
+
|
|
809
|
+
/********** Установка рейтинга (.rating-input) **********/
|
|
810
|
+
|
|
811
|
+
$rating-input-star-icon-color: $color-grey-80 !default;
|
|
812
|
+
$rating-input-star-icon-active-color: $color-primary !default;
|
|
813
|
+
|
|
814
|
+
/********** Ввод количества (.quantity) **********/
|
|
815
|
+
|
|
816
|
+
$quantity-input-radius: $radius !default;
|
|
817
|
+
$quantity-input-medium-radius: $radius-l !default;
|
|
818
|
+
$quantity-input-big-radius: $radius-l !default;
|
|
819
|
+
|
|
820
|
+
$quantity-input-button-bg: $color-primary !default;
|
|
821
|
+
$quantity-input-button-border-color: $color-primary !default;
|
|
822
|
+
$quantity-input-button-border-disabled-color: $color-grey-80 !default;
|
|
823
|
+
$quantity-input-button-border-active-color: $color-primary-40 !default;
|
|
824
|
+
$quantity-input-button-border-width: 1px !default;
|
|
825
|
+
$quantity-input-button-color: $color-white !default;
|
|
826
|
+
$quantity-input-button-disabled-bg: $color-grey-80 !default;
|
|
827
|
+
|
|
828
|
+
$quantity-input-bg: $input-bg !default;
|
|
829
|
+
$quantity-input-color: $font-color-primary !default;
|
|
830
|
+
$quantity-input-font: ('font-size': $font-size-s, 'line-height': 1, 'font-family': $font-family) !default;
|
|
831
|
+
$quantity-input-border-color: $color-grey-80 !default;
|
|
832
|
+
$quantity-input-border-width: 1px !default;
|
|
833
|
+
$quantity-input-disabled-border-color: $color-grey-90 !default;
|
|
834
|
+
$quantity-input-disabled-color: $color-grey-80 !default;
|
|
835
|
+
$quantity-input-disabled-focus-visible-border-color: $color-grey-70 !default;
|
|
836
|
+
|
|
837
|
+
$quantity-input-medium-font: ('font-weight': bold) !default;
|
|
838
|
+
|
|
839
|
+
$quantity-input-big-font: ('font-weight': bold) !default;
|
|
840
|
+
|
|
841
|
+
/********** Оверлей (.overlay) **********/
|
|
842
|
+
|
|
843
|
+
$overlay-bg: $backdrop-color !default;
|
|
844
|
+
|
|
845
|
+
/********** Глобальный индикатор загрузки (.loader) **********/
|
|
846
|
+
|
|
847
|
+
$loader-bg: $backdrop-color !default;
|
|
848
|
+
$loader-color: $color-primary !default;
|
|
849
|
+
|
|
850
|
+
$loader-label-color: $color-white !default;
|
|
851
|
+
$loader-label-mobile-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': $line-height) !default;
|
|
852
|
+
$loader-label-desktop-font: ('font-size': $font-size-xl) !default;
|
|
853
|
+
|
|
854
|
+
/********** Локальный индикатор загрузки (.spinner) **********/
|
|
855
|
+
|
|
856
|
+
$spinner-speed: 500ms !default;
|
|
857
|
+
|
|
858
|
+
$spinner-size: 2px !default;
|
|
859
|
+
$spinner-l-container-size: 20px !default;
|
|
860
|
+
$spinner-l-size: 3px !default;
|
|
861
|
+
|
|
862
|
+
$spinner-color: $color-primary !default;
|
|
863
|
+
$spinner-inverted-color: $color-grey-100 !default;
|
|
864
|
+
|
|
865
|
+
/********** Форма (.form) **********/
|
|
866
|
+
|
|
867
|
+
$form-group-title-color: $font-color-primary !default;
|
|
868
|
+
$form-group-title-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
869
|
+
|
|
870
|
+
$form-label-color: $font-color-secondary !default;
|
|
871
|
+
$form-label-font: ('font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
872
|
+
|
|
873
|
+
$form-required-color: $color-error !default;
|
|
874
|
+
$form-required-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
875
|
+
|
|
876
|
+
$form-value-color: $font-color-primary !default;
|
|
877
|
+
$form-value-font: ('font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
878
|
+
|
|
879
|
+
$form-help-icon-color: $color-grey-70 !default;
|
|
880
|
+
$form-help-icon-active-color: $color-primary-40 !default;
|
|
881
|
+
|
|
882
|
+
$form-input-error-color: $font-color-error !default;
|
|
883
|
+
$form-input-error-font: ('font-size': $font-size-xs, 'line-height': $line-height-s) !default;
|
|
884
|
+
|
|
885
|
+
$form-input-descr-color: $font-color-tertiary !default;
|
|
886
|
+
$form-input-descr-font: ('font-size': $font-size-xs, 'line-height': $line-height-s) !default;
|
|
887
|
+
|
|
888
|
+
$form-submit-descr-color: $font-color-secondary !default;
|
|
889
|
+
$form-submit-descr-font: ('font-size': $font-size-xs, 'line-height': $line-height-s) !default;
|
|
890
|
+
|
|
891
|
+
$form-submit-error-bg: $bg-color-tertiary !default;
|
|
892
|
+
$form-submit-error-radius: $radius !default;
|
|
893
|
+
$form-submit-error-shadow: $shadow !default;
|
|
894
|
+
$form-submit-error-color: $font-color-error !default;
|
|
895
|
+
$form-submit-error-mobile-font: ('font-size': $font-size-xs, 'line-height': $line-height) !default;
|
|
896
|
+
$form-submit-error-desktop-font: ('font-size': $font-size-s) !default;
|
|
897
|
+
$form-submit-error-padding: 4px * 4 4px * 6 !default;
|
|
898
|
+
|
|
899
|
+
/********** Диалоговое окно (.dialog) **********/
|
|
900
|
+
|
|
901
|
+
$dialog-backdrop-color: $backdrop-color !default;
|
|
902
|
+
$dialog-bg: $bg-color-tertiary !default;
|
|
903
|
+
$dialog-color: $font-color-primary !default;
|
|
904
|
+
$dialog-shadow: $shadow !default;
|
|
905
|
+
$dialog-radius: $radius !default;
|
|
906
|
+
$dialog-s-max-width: 592px !default;
|
|
907
|
+
$dialog-m-max-width: 672px !default;
|
|
908
|
+
$dialog-l-max-width: 912px !default;
|
|
909
|
+
|
|
910
|
+
$dialog-close-radius: 50% !default;
|
|
911
|
+
$dialog-close-color: $color-grey-40 !default;
|
|
912
|
+
$dialog-close-active-color: $color-primary !default;
|
|
913
|
+
|
|
914
|
+
$dialog-header-image-border-width: 1px !default;
|
|
915
|
+
$dialog-header-image-border-color: $color-grey-80 !default;
|
|
916
|
+
|
|
917
|
+
$dialog-title-mobile-font: ('font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
918
|
+
$dialog-title-desktop-font: ('font-size': $font-size-2xl) !default;
|
|
919
|
+
|
|
920
|
+
/********** Боковая панель **********/
|
|
921
|
+
|
|
922
|
+
// .sidebar
|
|
923
|
+
|
|
924
|
+
$sidebar-bg: $bg-color-tertiary !default;
|
|
925
|
+
|
|
926
|
+
$sidebar-button-bg: $color-grey-90 !default;
|
|
927
|
+
$sidebar-button-color: $color-grey-70 !default;
|
|
928
|
+
$sidebar-button-label-color: $color-grey-20 !default;
|
|
929
|
+
$sidebar-button-label-font: ('line-height': $line-height-s) !default;
|
|
930
|
+
$sidebar-disabled-button-bg: $color-primary !default;
|
|
931
|
+
$sidebar-disabled-button-color: $color-white !default;
|
|
932
|
+
$sidebar-disabled-button-label-color: $sidebar-disabled-button-color !default;
|
|
933
|
+
$sidebar-active-button-bg: $sidebar-button-bg !default;
|
|
934
|
+
$sidebar-active-button-color: $color-primary !default;
|
|
935
|
+
$sidebar-active-button-label-color: $sidebar-active-button-color !default;
|
|
936
|
+
|
|
937
|
+
$sidebar-close-bg: $sidebar-button-bg !default;
|
|
938
|
+
$sidebar-close-color: $color-grey-20 !default;
|
|
939
|
+
|
|
940
|
+
$sidebar-notification-bg: $color-error !default;
|
|
941
|
+
$sidebar-notification-color: $color-white !default;
|
|
942
|
+
$sidebar-notification-font: ('font-weight': bold, 'font-size': $font-size-3xs, 'line-height': 1) !default;
|
|
943
|
+
|
|
944
|
+
$sidebar-header-separator-color: autocolor(('light': $color-grey-alpha-80, 'dark': $color-grey-alpha-i-90), $sidebar-bg) !default;
|
|
945
|
+
$sidebar-header-separator-width: 1px !default;
|
|
946
|
+
$sidebar-header-icon-border-color: $color-primary !default;
|
|
947
|
+
$sidebar-header-icon-border-width: 1px !default;
|
|
948
|
+
$sidebar-header-icon-bg: $color-primary-80 !default;
|
|
949
|
+
$sidebar-header-icon-color: $color-primary !default;
|
|
950
|
+
$sidebar-header-title-color: $color-primary !default;
|
|
951
|
+
$sidebar-header-title-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': $line-height) !default;
|
|
952
|
+
|
|
953
|
+
$sidebar-sub-title-bg: $color-primary !default;
|
|
954
|
+
$sidebar-sub-title-color: $color-white !default;
|
|
955
|
+
$sidebar-sub-title-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': $line-height) !default;
|
|
956
|
+
|
|
957
|
+
$sidebar-title-mobile-font: ('font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
958
|
+
$sidebar-title-desktop-font: ('font-size': $font-size-xl) !default;
|
|
959
|
+
|
|
960
|
+
$sidebar-descr-color: $font-color-secondary !default;
|
|
961
|
+
$sidebar-descr-font: ('font-size': $font-size, 'line-height': $line-height) !default;
|
|
962
|
+
$sidebar-descr-icon-color: $color-grey-70 !default;
|
|
963
|
+
|
|
964
|
+
$sidebar-catalog-disabled-button-bg: $color-grey-80 !default;
|
|
965
|
+
$sidebar-catalog-disabled-button-color: $sidebar-button-label-color !default;
|
|
966
|
+
$sidebar-catalog-header-bg: $sidebar-button-bg !default;
|
|
967
|
+
|
|
968
|
+
/********** Табы (.tabs) **********/
|
|
969
|
+
|
|
970
|
+
$tabs-border-width: 2px !default;
|
|
971
|
+
$tabs-border-color: $color-grey-80 !default;
|
|
972
|
+
|
|
973
|
+
$tabs-line-color: $color-primary !default;
|
|
974
|
+
|
|
975
|
+
$tabs-label-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': 1) !default;
|
|
976
|
+
|
|
977
|
+
$tabs-counter-bg: $color-grey-80 !default;
|
|
978
|
+
$tabs-counter-color: $color-grey-100 !default;
|
|
979
|
+
$tabs-counter-font: ('font-weight': normal, 'font-size': $font-size-s) !default;
|
|
980
|
+
$tabs-counter-radius: $radius-s !default;
|
|
981
|
+
|
|
982
|
+
/********** Всплывающие подсказки / Tooltips **********/
|
|
983
|
+
|
|
984
|
+
$tooltip-shadow: $shadow !default;
|
|
985
|
+
$tooltip-radius: $radius !default;
|
|
986
|
+
|
|
987
|
+
$tooltip-font: ('font-size': $font-size, 'line-height': $line-height) !default;
|
|
988
|
+
$tooltip-small-font: ('font-size': $font-size-s, 'line-height': $line-height) !default;
|
|
989
|
+
|
|
990
|
+
$tooltip-light-bg: $bg-color-tertiary !default;
|
|
991
|
+
$tooltip-light-color: $font-color-secondary !default;
|
|
992
|
+
|
|
993
|
+
$tooltip-dark-bg: $color-grey-0 !default;
|
|
994
|
+
$tooltip-dark-color: $font-color-inverted !default;
|
|
995
|
+
|
|
996
|
+
$tooltip-title-font: ('font-size': $font-size) !default;
|
|
997
|
+
|
|
998
|
+
// .action-list
|
|
999
|
+
|
|
1000
|
+
$action-list-link-color: $color-grey-70 !default;
|
|
1001
|
+
|
|
1002
|
+
$action-list-link-separator-color: autocolor(('light': $color-grey-alpha-80, 'dark': $color-grey-alpha-i-90), $tooltip-light-bg) !default;
|
|
1003
|
+
$action-list-link-separator-width: 1px !default;
|
|
1004
|
+
|
|
1005
|
+
/********** Панель с предупреждением (.warning) **********/
|
|
1006
|
+
|
|
1007
|
+
$warning-message-bg: $bg-color-tertiary !default;
|
|
1008
|
+
$warning-message-radius: $radius !default;
|
|
1009
|
+
$warning-message-shadow: $shadow !default;
|
|
1010
|
+
$warning-message-color: $color-warning !default;
|
|
1011
|
+
|
|
1012
|
+
$warning-message-title-font: ('font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
1013
|
+
$warning-message-descr-font: ('font-size': $font-size, 'line-height': $line-height) !default;
|
|
1014
|
+
$warning-message-descr-color: $font-color-secondary !default;
|
|
1015
|
+
|
|
1016
|
+
$warning-message-small-title-font: ('font-weight': bold, 'font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
1017
|
+
$warning-message-small-descr-font: ('font-size': $font-size-xs, 'line-height': $line-height) !default;
|
|
1018
|
+
|
|
1019
|
+
$warning-message-success-color: $color-success !default;
|
|
1020
|
+
$warning-message-info-color: $color-primary !default;
|
|
1021
|
+
$warning-message-error-color: $color-error !default;
|
|
1022
|
+
|
|
1023
|
+
$warning-message-solid-color: $font-color-inverted !default;
|
|
1024
|
+
$warning-message-solid-descr-color: $warning-message-solid-color !default;
|
|
1025
|
+
|
|
1026
|
+
/********** Панель пустого состояния (.empty-list) **********/
|
|
1027
|
+
|
|
1028
|
+
$empty-list-bg: $bg-color-tertiary !default;
|
|
1029
|
+
$empty-list-radius: $radius !default;
|
|
1030
|
+
$empty-list-icon-color: $color-grey-90 !default;
|
|
1031
|
+
|
|
1032
|
+
$empty-list-title-mobile-font: ('font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
1033
|
+
$empty-list-title-desktop-font: ('font-size': $font-size-xl) !default;
|
|
1034
|
+
|
|
1035
|
+
$empty-list-footer-separator-color: autocolor(('light': $color-grey-alpha-80, 'dark': $color-grey-alpha-i-90), $empty-list-bg) !default;
|
|
1036
|
+
$empty-list-footer-separator-width: 1px !default;
|
|
1037
|
+
|
|
1038
|
+
$empty-list-action-icon-color: $color-grey-40 !default;
|
|
1039
|
+
$empty-list-action-icon-active-color: $color-primary-40 !default;
|
|
1040
|
+
|
|
1041
|
+
/********** Навигация слайдеров (.slider-nav) **********/
|
|
1042
|
+
|
|
1043
|
+
$slider-nav-button-bg: transparent !default;
|
|
1044
|
+
$slider-nav-button-border-color: transparent !default;
|
|
1045
|
+
$slider-nav-button-border-width: 1px !default;
|
|
1046
|
+
$slider-nav-button-radius: 50% !default;
|
|
1047
|
+
|
|
1048
|
+
$slider-nav-button-fill-white-bg: $color-white !default;
|
|
1049
|
+
$slider-nav-button-fill-white-border-color: $color-white !default;
|
|
1050
|
+
$slider-nav-button-fill-white-shadow: $shadow !default;
|
|
1051
|
+
$slider-nav-button-fill-white-color: $color-grey-70 !default;
|
|
1052
|
+
$slider-nav-button-fill-white-active-color: $color-grey-40 !default;
|
|
1053
|
+
|
|
1054
|
+
/********** Пагинация слайдеров (.slider-pagination) **********/
|
|
1055
|
+
|
|
1056
|
+
$slider-pagination-bullet-size: 8px !default;
|
|
1057
|
+
$slider-pagination-bullet-gap: 8px !default;
|
|
1058
|
+
|
|
1059
|
+
$slider-pagination-bullet-light-bg: $color-grey-90 !default;
|
|
1060
|
+
$slider-pagination-bullet-light-border-color: $color-grey-90 !default;
|
|
1061
|
+
$slider-pagination-bullet-light-active-bg: $slider-pagination-bullet-light-bg !default;
|
|
1062
|
+
$slider-pagination-bullet-light-active-border-color: $slider-pagination-bullet-light-border-color !default;
|
|
1063
|
+
$slider-pagination-bullet-light-selected-bg: $color-primary !default;
|
|
1064
|
+
$slider-pagination-bullet-light-selected-border-color: $color-primary !default;
|
|
1065
|
+
|
|
1066
|
+
$slider-pagination-bullet-dark-bg: $color-grey-80 !default;
|
|
1067
|
+
$slider-pagination-bullet-dark-border-color: $color-grey-80 !default;
|
|
1068
|
+
$slider-pagination-bullet-dark-active-bg: $slider-pagination-bullet-dark-bg !default;
|
|
1069
|
+
$slider-pagination-bullet-dark-active-border-color: $slider-pagination-bullet-dark-border-color !default;
|
|
1070
|
+
$slider-pagination-bullet-dark-selected-bg: $color-primary !default;
|
|
1071
|
+
$slider-pagination-bullet-dark-selected-border-color: $color-primary !default;
|
|
1072
|
+
|
|
1073
|
+
/********** Баннер (.banner) **********/
|
|
1074
|
+
|
|
1075
|
+
$banner-radius: $radius;
|
|
1076
|
+
|
|
1077
|
+
/********** Хлебные крошки (.breadcrumbs) **********/
|
|
1078
|
+
|
|
1079
|
+
$breadcrumbs-item-arrow-color: $color-grey-80 !default;
|
|
1080
|
+
$breadcrumbs-color: $link-grey-color !default;
|
|
1081
|
+
$breadcrumbs-font: ('font-size': $font-size-xs, 'line-height': $line-height) !default;
|
|
1082
|
+
|
|
1083
|
+
$breadcrumbs-mobile-toggle-color: $breadcrumbs-color !default;
|
|
1084
|
+
|
|
1085
|
+
/********** Пагинация **********/
|
|
1086
|
+
|
|
1087
|
+
// .pagination
|
|
1088
|
+
|
|
1089
|
+
$pagination-item-color: $font-color-primary !default;
|
|
1090
|
+
$pagination-item-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': 1) !default;
|
|
1091
|
+
$pagination-item-active-color: $color-primary !default;
|
|
1092
|
+
$pagination-item-disabled-color: $color-grey-70 !default;
|
|
1093
|
+
|
|
1094
|
+
// .pagination-group
|
|
1095
|
+
|
|
1096
|
+
$pagination-group-color: $font-color-secondary;
|
|
1097
|
+
|
|
1098
|
+
/********** Блок "Итого" (.total) **********/
|
|
1099
|
+
|
|
1100
|
+
$total-bg: $bg-color-tertiary !default;
|
|
1101
|
+
$total-radius: $radius !default;
|
|
1102
|
+
$total-font: ('font-size': $font-size, 'line-height': $line-height-s) !default;
|
|
1103
|
+
$total-shadow: $shadow !default;
|
|
1104
|
+
|
|
1105
|
+
$total-title-mobile-font: ('font-weight': bold, 'font-size': $font-size-l, 'line-height': $line-height-s) !default;
|
|
1106
|
+
$total-title-desktop-font: ('font-size': $font-size-xl) !default;
|
|
1107
|
+
|
|
1108
|
+
$total-specs-label-color: $font-color-secondary !default;
|
|
1109
|
+
$total-specs-label-font: ('font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
1110
|
+
|
|
1111
|
+
$total-specs-value-font: ('font-weight': bold) !default;
|
|
1112
|
+
$total-specs-value-error-color: $color-error !default;
|
|
1113
|
+
|
|
1114
|
+
$total-amount-list-separator-color: autocolor(('light': $color-grey-alpha-80, 'dark': $color-grey-alpha-i-90), $total-bg) !default;
|
|
1115
|
+
$total-amount-list-separator-width: 1px !default;
|
|
1116
|
+
|
|
1117
|
+
$total-amount-label-color: $font-color-secondary !default;
|
|
1118
|
+
$total-amount-label-font: ('font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
1119
|
+
|
|
1120
|
+
$total-amount-value-color: $font-color-secondary !default;
|
|
1121
|
+
$total-amount-value-font: ('font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
1122
|
+
|
|
1123
|
+
$total-amount-value-s-color: $font-color-secondary !default;
|
|
1124
|
+
$total-amount-value-s-font: ('font-size': $font-size-xs) !default;
|
|
1125
|
+
|
|
1126
|
+
$total-amount-value-b-color: $font-color-primary !default;
|
|
1127
|
+
$total-amount-value-b-mobile-font: ('font-weight': bold, 'font-size': $font-size-l) !default;
|
|
1128
|
+
$total-amount-value-b-desktop-font: ('font-size': $font-size-xl) !default;
|
|
1129
|
+
|
|
1130
|
+
$total-amount-tax-color: $font-color-tertiary !default;
|
|
1131
|
+
$total-amount-tax-font: ('font-size': $font-size-xs, 'line-height': $line-height-s) !default;
|
|
1132
|
+
|
|
1133
|
+
/********** Удалить всё (.delete-all) **********/
|
|
1134
|
+
|
|
1135
|
+
$delete-all-color: $font-color-secondary !default;
|
|
1136
|
+
$delete-all-active-color: $color-error !default;
|
|
1137
|
+
|
|
1138
|
+
$delete-all-icon-color: $color-grey-70 !default;
|
|
1139
|
+
$delete-all-icon-active-color: $delete-all-active-color !default;
|
|
1140
|
+
|
|
1141
|
+
$deleta-all-action-list-color: $link-grey-color !default;
|
|
1142
|
+
$delete-all-action-list-icon-color: $link-grey-color !default;
|
|
1143
|
+
|
|
1144
|
+
/********** Шаги (.steps) **********/
|
|
1145
|
+
|
|
1146
|
+
$steps-item-number-border-width: 1px !default;
|
|
1147
|
+
$steps-item-number-border-color: $color-grey-90 !default;
|
|
1148
|
+
$steps-item-number-bg: $bg-color-tertiary !default;
|
|
1149
|
+
$steps-item-number-color: $font-color-secondary !default;
|
|
1150
|
+
|
|
1151
|
+
$steps-item-active-number-bg: $color-primary !default;
|
|
1152
|
+
$steps-item-active-number-color: $color-white !default;
|
|
1153
|
+
|
|
1154
|
+
$steps-item-arrow-bg: $color-grey-70 !default;
|
|
1155
|
+
|
|
1156
|
+
$steps-item-active-arrow-bg: $color-grey-20 !default;
|
|
1157
|
+
|
|
1158
|
+
$steps-label-color: $font-color-primary !default;
|
|
1159
|
+
$steps-label-font: ('font-weight': bold, 'font-size': $font-size, 'line-height': $line-height) !default;
|
|
1160
|
+
|
|
1161
|
+
/********** Шапка **********/
|
|
1162
|
+
|
|
1163
|
+
// .header-announcement
|
|
1164
|
+
|
|
1165
|
+
$header-announcement-bg: $color-primary-60 !default;
|
|
1166
|
+
$header-announcement-color: autocolor(('light': $font-color-primary, 'dark': $font-color-inverted), $header-announcement-bg) !default;
|
|
1167
|
+
$header-announcement-font: ('font-size': $font-size-s, 'line-height': $line-height-s) !default;
|
|
1168
|
+
|
|
1169
|
+
$header-announcement-secondary-bg: $bg-color-secondary !default;
|
|
1170
|
+
$header-announcement-secondary-color: $font-color-primary !default;
|
|
1171
|
+
|
|
1172
|
+
$header-announcement-error-bg: $color-error !default;
|
|
1173
|
+
$header-announcement-error-color: $header-announcement-color !default;
|
|
1174
|
+
|
|
1175
|
+
$header-announcement-warning-bg: $color-warning !default;
|
|
1176
|
+
$header-announcement-warning-color: $header-announcement-color !default;
|
|
1177
|
+
|
|
1178
|
+
$header-announcement-success-bg: $color-success !default;
|
|
1179
|
+
$header-announcement-success-color: $header-announcement-color !default;
|
|
1180
|
+
|
|
1181
|
+
/********** Основной каркас (.content) **********/
|
|
1182
|
+
|
|
1183
|
+
$content-bg: $bg-color-primary !default;
|
|
1184
|
+
$content-bg-grey: $bg-color-secondary !default;
|
|
1185
|
+
|
|
1186
|
+
$content-header-link-mobile-font: ('font-size': $font-size-xs, 'line-height': 1) !default;
|
|
1187
|
+
$content-header-link-desktop-font: ('font-size': $font-size) !default;
|
|
1188
|
+
|
|
1189
|
+
$content-title-mobile-font: $font-h1-mobile !default;
|
|
1190
|
+
$content-title-desktop-font: $font-h1-desktop !default;
|
|
1191
|
+
$content-title-small-mobile-font: $font-h2-mobile !default;
|
|
1192
|
+
$content-title-small-desktop-font: $font-h2-desktop !default;
|
|
1193
|
+
|
|
1194
|
+
/********** Адаптивные точки **********/
|
|
1195
|
+
|
|
1196
|
+
// При изменении устройств изменить их так же в mm.js
|
|
1197
|
+
|
|
1198
|
+
$breakpoints: (
|
|
1199
|
+
'phone': 0,
|
|
1200
|
+
'tablet-portrait': 600px,
|
|
1201
|
+
'tablet-landscape': 900px,
|
|
1202
|
+
'desktop': 1200px,
|
|
1203
|
+
'big-desktop': 1500px,
|
|
1204
|
+
) !default;
|
|
1205
|
+
$breakpoints-keys: map.keys($breakpoints);
|
|
1206
|
+
|
|
1207
|
+
@each $key, $value in $breakpoints {
|
|
1208
|
+
$key-index: list.index($breakpoints-keys, $key);
|
|
1209
|
+
$next-value: 0;
|
|
1210
|
+
|
|
1211
|
+
@if $key-index < list.length($breakpoints-keys) {
|
|
1212
|
+
$next-value: map.get($breakpoints, list.nth($breakpoints-keys, $key-index + 1));
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
@if $key-index == 1 {
|
|
1216
|
+
@custom-media --#{$key}-only (max-width: #{$next-value - 1});
|
|
1217
|
+
} @else if $key-index == list.length($breakpoints-keys) {
|
|
1218
|
+
@custom-media --#{$key}-up (min-width: #{$value});
|
|
1219
|
+
} @else {
|
|
1220
|
+
@custom-media --#{$key}-only (min-width: #{$value}) and (max-width: #{$next-value - 1});
|
|
1221
|
+
@custom-media --#{$key}-up (min-width: #{$value});
|
|
1222
|
+
@custom-media --#{$key}-down (max-width: #{$next-value - 1});
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/********** Миксины **********/
|
|
1227
|
+
|
|
1228
|
+
@mixin font($font) {
|
|
1229
|
+
@each $prop, $value in $font {
|
|
1230
|
+
#{$prop}: $value;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
@mixin dark-border($width: 2px, $color: color.scale($bg-color-tertiary, $lightness: 10%)) {
|
|
1235
|
+
@if $dark {
|
|
1236
|
+
border: $width solid $color;
|
|
1237
|
+
} @else {
|
|
1238
|
+
border: none;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
@mixin dark-border-disable($sides: (top, right, bottom, left)) {
|
|
1243
|
+
@each $side in $sides {
|
|
1244
|
+
border-#{$side}-style: none;
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
@mixin ul-solid($color) {
|
|
1249
|
+
background-image: linear-gradient(90deg, $color, $color 100%);
|
|
1250
|
+
background-position-x: 0;
|
|
1251
|
+
background-position-y: 95%;
|
|
1252
|
+
background-repeat: repeat-x;
|
|
1253
|
+
background-size: 10px 1px;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
@mixin ul-dashed($color) {
|
|
1257
|
+
background-image: linear-gradient(90deg, $color, $color 50%, transparent 50%);
|
|
1258
|
+
background-position-x: 0;
|
|
1259
|
+
background-position-y: 95%;
|
|
1260
|
+
background-repeat: repeat-x;
|
|
1261
|
+
background-size: 6px 1px;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
@mixin ul-dotted($color) {
|
|
1265
|
+
background-image: linear-gradient(90deg, $color, $color 50%, transparent 50%);
|
|
1266
|
+
background-position-x: 0;
|
|
1267
|
+
background-position-y: 95%;
|
|
1268
|
+
background-repeat: repeat-x;
|
|
1269
|
+
background-size: 2px 1px;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
@mixin custom-scroll() {
|
|
1273
|
+
@media (--desktop-up) {
|
|
1274
|
+
scrollbar-color: $custom-scroll-color $custom-scroll-track-color;
|
|
1275
|
+
scrollbar-width: thin;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
&::-webkit-scrollbar {
|
|
1279
|
+
@media (--desktop-up) {
|
|
1280
|
+
width: 4px;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
&::-webkit-scrollbar-thumb {
|
|
1285
|
+
@media (--desktop-up) {
|
|
1286
|
+
background-color: $custom-scroll-color;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
&::-webkit-scrollbar-track {
|
|
1291
|
+
@media (--desktop-up) {
|
|
1292
|
+
background-color: $custom-scroll-track-color;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|