@ptsecurity/mosaic 14.2.2 → 14.2.4
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/_theming.scss +1140 -849
- package/esm2020/core/version.mjs +2 -2
- package/fesm2015/ptsecurity-mosaic-core.mjs +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/package.json +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
package/_theming.scss
CHANGED
@@ -1,4 +1,92 @@
|
|
1
1
|
// Import all the theming
|
2
|
+
@use '../../../../node_modules/@angular/cdk/overlay/index' as overlay;
|
3
|
+
@mixin cdk-a11y {
|
4
|
+
.cdk-visually-hidden {
|
5
|
+
border: 0;
|
6
|
+
clip: rect(0 0 0 0);
|
7
|
+
height: 1px;
|
8
|
+
margin: -1px;
|
9
|
+
overflow: hidden;
|
10
|
+
padding: 0;
|
11
|
+
position: absolute;
|
12
|
+
width: 1px;
|
13
|
+
|
14
|
+
// Avoid browsers rendering the focus ring in some cases.
|
15
|
+
outline: 0;
|
16
|
+
|
17
|
+
// Avoid some cases where the browser will still render the native controls (see #9049).
|
18
|
+
-webkit-appearance: none;
|
19
|
+
-moz-appearance: none;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
/// Emits the mixin's content nested under `$selector-context` if `$selector-context`
|
24
|
+
/// is non-empty.
|
25
|
+
/// @param selector-context The selector under which to nest the mixin's content.
|
26
|
+
@mixin _cdk-optionally-nest-content($selector-context) {
|
27
|
+
@if ($selector-context == '') {
|
28
|
+
@content;
|
29
|
+
}
|
30
|
+
@else {
|
31
|
+
#{$selector-context} {
|
32
|
+
@content;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
/// Applies styles for users in high contrast mode. Note that this only applies
|
38
|
+
/// to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
|
39
|
+
/// attribute, however Chrome handles high contrast differently.
|
40
|
+
///
|
41
|
+
/// @param target Which kind of high contrast setting to target. Defaults to `active`, can be
|
42
|
+
/// `white-on-black` or `black-on-white`.
|
43
|
+
/// @param encapsulation Whether to emit styles for view encapsulation. Values are:
|
44
|
+
/// * `on` - works for `Emulated`, `Native`, and `ShadowDom`
|
45
|
+
/// * `off` - works for `None`
|
46
|
+
/// * `any` - works for all encapsulation modes by emitting the CSS twice (default).
|
47
|
+
@mixin cdk-high-contrast($target: active, $encapsulation: 'any') {
|
48
|
+
@if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
|
49
|
+
@error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
|
50
|
+
'Allowed values are "active", "black-on-white", and "white-on-black"';
|
51
|
+
}
|
52
|
+
|
53
|
+
@if ($encapsulation != 'on' and $encapsulation != 'off' and $encapsulation != 'any') {
|
54
|
+
@error 'Unknown cdk-high-contrast encapsulation "#{$encapsulation}" provided. ' +
|
55
|
+
'Allowed values are "on", "off", and "any"';
|
56
|
+
}
|
57
|
+
|
58
|
+
// If the selector context has multiple parts, such as `.section, .region`, just doing
|
59
|
+
// `.cdk-high-contrast-xxx #{&}` will only apply the parent selector to the first part of the
|
60
|
+
// context. We address this by nesting the selector context under .cdk-high-contrast.
|
61
|
+
@at-root {
|
62
|
+
$selector-context: #{&};
|
63
|
+
|
64
|
+
@if ($encapsulation != 'on') {
|
65
|
+
.cdk-high-contrast-#{$target} {
|
66
|
+
@include _cdk-optionally-nest-content($selector-context) {
|
67
|
+
@content;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
@if ($encapsulation != 'off') {
|
73
|
+
.cdk-high-contrast-#{$target} :host {
|
74
|
+
@include _cdk-optionally-nest-content($selector-context) {
|
75
|
+
@content;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
// Mixin that renders all of the core styles that are not theme-dependent.
|
85
|
+
@mixin mc-core() {
|
86
|
+
@include cdk-a11y();
|
87
|
+
@include overlay.overlay();
|
88
|
+
}
|
89
|
+
|
2
90
|
|
3
91
|
// Do not edit directly
|
4
92
|
|
@@ -3740,6 +3828,10 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
3740
3828
|
}
|
3741
3829
|
|
3742
3830
|
|
3831
|
+
|
3832
|
+
|
3833
|
+
|
3834
|
+
|
3743
3835
|
@function mc-typography-level(
|
3744
3836
|
$font-size,
|
3745
3837
|
$line-height: $font-size,
|
@@ -3816,138 +3908,120 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
3816
3908
|
|
3817
3909
|
|
3818
3910
|
|
3911
|
+
@function mc-typography-config() {
|
3912
|
+
$font-family: $font-family-base;
|
3913
|
+
$typography: map-get($mosaic, typography);
|
3819
3914
|
|
3820
|
-
|
3821
|
-
|
3822
|
-
|
3823
|
-
|
3824
|
-
|
3825
|
-
|
3826
|
-
|
3827
|
-
|
3828
|
-
|
3829
|
-
|
3830
|
-
|
3831
|
-
|
3832
|
-
|
3833
|
-
|
3834
|
-
|
3835
|
-
|
3836
|
-
|
3837
|
-
|
3838
|
-
|
3839
|
-
|
3840
|
-
|
3841
|
-
|
3915
|
+
$config: (
|
3916
|
+
display-1: map-get($typography, display-1),
|
3917
|
+
display-2: map-get($typography, display-2),
|
3918
|
+
display-3: map-get($typography, display-3),
|
3919
|
+
|
3920
|
+
headline: map-get($typography, headline),
|
3921
|
+
subheading: map-get($typography, subheading),
|
3922
|
+
title: map-get($typography, title),
|
3923
|
+
|
3924
|
+
body: map-get($typography, body),
|
3925
|
+
body-strong: map-get($typography, body-strong),
|
3926
|
+
body-caps: map-get($typography, body-caps),
|
3927
|
+
body-mono: map-get($typography, body-mono),
|
3928
|
+
body-tabular: map-get($typography, body-tabular),
|
3929
|
+
|
3930
|
+
caption: map-get($typography, caption),
|
3931
|
+
caption-strong: map-get($typography, caption-strong),
|
3932
|
+
caption-caps: map-get($typography, caption-caps),
|
3933
|
+
caption-mono: map-get($typography, caption-mono),
|
3934
|
+
caption-tabular: map-get($typography, caption-tabular),
|
3935
|
+
|
3936
|
+
small-text: map-get($typography, small-text),
|
3937
|
+
extra-small-text: map-get($typography, extra-small-text),
|
3938
|
+
extra-small-text-caps: map-get($typography, extra-small-text-caps),
|
3939
|
+
extra-small-text-mono: map-get($typography, extra-small-text-mono)
|
3940
|
+
);
|
3842
3941
|
|
3843
|
-
|
3844
|
-
|
3845
|
-
|
3846
|
-
|
3847
|
-
border: {
|
3848
|
-
width: var(--mc-badge-size-mini-border-width, $badge-size-mini-border-width);
|
3849
|
-
radius: var(--mc-badge-size-mini-border-radius, $badge-size-mini-border-radius);
|
3942
|
+
@each $key, $level in $config {
|
3943
|
+
@if map-get($level, font-family) == null {
|
3944
|
+
$new-level: map-merge($level, (font-family: $font-family));
|
3945
|
+
$config: map-merge($config, ($key: $new-level));
|
3850
3946
|
}
|
3851
|
-
|
3852
3947
|
}
|
3853
|
-
}
|
3854
|
-
|
3855
3948
|
|
3856
|
-
|
3857
|
-
|
3858
|
-
border-color: map-get($params, border);
|
3859
|
-
background: map-get($params, background);
|
3949
|
+
// Add the base font family to the config.
|
3950
|
+
@return map-merge($config, (font-family: $font-family));
|
3860
3951
|
}
|
3861
3952
|
|
3862
|
-
@mixin mc-badge-theme($theme) {
|
3863
|
-
$foreground: map-get($theme, foreground);
|
3864
|
-
$badge: map-get(map-get($theme, components), badge);
|
3865
3953
|
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3954
|
+
@mixin mc-base-typography($config) {
|
3955
|
+
.mc-display-1 {
|
3956
|
+
@include mc-typography-level-to-styles($config, display-1);
|
3869
3957
|
}
|
3870
3958
|
|
3871
|
-
.mc-
|
3872
|
-
|
3873
|
-
|
3874
|
-
}
|
3875
|
-
|
3876
|
-
&.mc-badge_second {
|
3877
|
-
@include mc-badge-color(map-get($badge, second_solid));
|
3878
|
-
}
|
3879
|
-
|
3880
|
-
&.mc-badge_transparent {
|
3881
|
-
@include mc-badge-color(map-get($badge, transparent_solid));
|
3882
|
-
}
|
3959
|
+
.mc-display-2 {
|
3960
|
+
@include mc-typography-level-to-styles($config, display-2);
|
3961
|
+
}
|
3883
3962
|
|
3884
|
-
|
3885
|
-
|
3886
|
-
|
3963
|
+
.mc-display-3 {
|
3964
|
+
@include mc-typography-level-to-styles($config, display-3);
|
3965
|
+
}
|
3887
3966
|
|
3888
|
-
|
3889
|
-
|
3890
|
-
|
3967
|
+
.mc-headline {
|
3968
|
+
@include mc-typography-level-to-styles($config, headline);
|
3969
|
+
}
|
3891
3970
|
|
3892
|
-
|
3893
|
-
|
3894
|
-
|
3971
|
+
.mc-subheading {
|
3972
|
+
@include mc-typography-level-to-styles($config, subheading);
|
3973
|
+
}
|
3895
3974
|
|
3896
|
-
|
3897
|
-
|
3898
|
-
|
3975
|
+
.mc-title {
|
3976
|
+
@include mc-typography-level-to-styles($config, title);
|
3977
|
+
}
|
3899
3978
|
|
3900
|
-
|
3901
|
-
|
3902
|
-
}
|
3979
|
+
.mc-body {
|
3980
|
+
@include mc-typography-level-to-styles($config, body);
|
3903
3981
|
}
|
3904
3982
|
|
3905
|
-
.mc-
|
3906
|
-
|
3907
|
-
|
3908
|
-
}
|
3983
|
+
.mc-body_tabular {
|
3984
|
+
@include mc-typography-level-to-styles($config, body-tabular);
|
3985
|
+
}
|
3909
3986
|
|
3910
|
-
|
3911
|
-
|
3912
|
-
|
3987
|
+
.mc-body_strong {
|
3988
|
+
@include mc-typography-level-to-styles($config, body-strong);
|
3989
|
+
}
|
3913
3990
|
|
3914
|
-
|
3915
|
-
|
3916
|
-
|
3991
|
+
.mc-body_caps {
|
3992
|
+
@include mc-typography-level-to-styles($config, body-caps);
|
3993
|
+
}
|
3917
3994
|
|
3918
|
-
|
3919
|
-
|
3920
|
-
|
3995
|
+
.mc-body_mono {
|
3996
|
+
@include mc-typography-level-to-styles($config, body-mono);
|
3997
|
+
}
|
3921
3998
|
|
3922
|
-
|
3923
|
-
|
3924
|
-
}
|
3999
|
+
.mc-caption {
|
4000
|
+
@include mc-typography-level-to-styles($config, caption);
|
3925
4001
|
}
|
3926
|
-
}
|
3927
4002
|
|
3928
|
-
|
3929
|
-
|
3930
|
-
|
4003
|
+
.mc-caption_tabular {
|
4004
|
+
@include mc-typography-level-to-styles($config, caption-tabular);
|
4005
|
+
}
|
3931
4006
|
|
3932
|
-
|
3933
|
-
|
3934
|
-
|
4007
|
+
.mc-caption_strong {
|
4008
|
+
@include mc-typography-level-to-styles($config, caption-strong);
|
4009
|
+
}
|
3935
4010
|
|
3936
|
-
|
3937
|
-
|
3938
|
-
}
|
4011
|
+
.mc-caption_caps {
|
4012
|
+
@include mc-typography-level-to-styles($config, caption-caps);
|
3939
4013
|
}
|
3940
4014
|
|
3941
|
-
.mc-
|
3942
|
-
@include mc-typography-level-to-styles($config,
|
4015
|
+
.mc-caption_mono {
|
4016
|
+
@include mc-typography-level-to-styles($config, caption-mono);
|
4017
|
+
}
|
3943
4018
|
|
3944
|
-
|
3945
|
-
|
3946
|
-
|
4019
|
+
.mc-small-text {
|
4020
|
+
@include mc-typography-level-to-styles($config, small-text);
|
4021
|
+
}
|
3947
4022
|
|
3948
|
-
|
3949
|
-
|
3950
|
-
}
|
4023
|
+
.mc-extra-small-text {
|
4024
|
+
@include mc-typography-level-to-styles($config, extra-small-text);
|
3951
4025
|
}
|
3952
4026
|
}
|
3953
4027
|
|
@@ -3956,9 +4030,6 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
3956
4030
|
|
3957
4031
|
|
3958
4032
|
|
3959
|
-
|
3960
|
-
|
3961
|
-
|
3962
4033
|
.mc-alert {
|
3963
4034
|
display: flex;
|
3964
4035
|
align-items: baseline;
|
@@ -4115,79 +4186,261 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
4115
4186
|
}
|
4116
4187
|
|
4117
4188
|
|
4118
|
-
@mixin mc-pseudo-checkbox-color($states) {
|
4119
|
-
border-color: map-get($states, border);
|
4120
4189
|
|
4121
|
-
& .mc-checkbox-checkmark,
|
4122
|
-
& .mc-checkbox-mixedmark {
|
4123
|
-
color: map-get($states, color);
|
4124
|
-
}
|
4125
4190
|
|
4126
|
-
&.mc-checked,
|
4127
|
-
&.mc-indeterminate {
|
4128
|
-
border-color: map-get($states, checked, border);
|
4129
4191
|
|
4130
|
-
|
4131
|
-
|
4132
|
-
|
4192
|
+
.mc-badge {
|
4193
|
+
display: inline-flex;
|
4194
|
+
flex-direction: row;
|
4195
|
+
justify-content: flex-start;
|
4196
|
+
align-items: center;
|
4133
4197
|
|
4134
|
-
|
4135
|
-
|
4136
|
-
$background: map-get($theme, background);
|
4198
|
+
text-align: center;
|
4199
|
+
white-space: nowrap;
|
4137
4200
|
|
4138
|
-
|
4201
|
+
border-style: solid;
|
4139
4202
|
|
4140
|
-
|
4141
|
-
&.mc-primary {
|
4142
|
-
@include mc-pseudo-checkbox-color(map-get($checkbox, default));
|
4143
|
-
}
|
4203
|
+
box-sizing: border-box;
|
4144
4204
|
|
4145
|
-
|
4146
|
-
|
4205
|
+
&.mc-badge_default {
|
4206
|
+
height: var(--mc-badge-size-default-height, $badge-size-default-height);
|
4207
|
+
min-width: var(--mc-badge-size-default-min-width, $badge-size-default-min-width);
|
4208
|
+
padding: var(--mc-badge-size-default-padding, $badge-size-default-padding);
|
4209
|
+
border: {
|
4210
|
+
width: var(--mc-badge-size-default-border-width, $badge-size-default-border-width);
|
4211
|
+
radius: var(--mc-badge-size-default-border-radius, $badge-size-default-border-radius);
|
4147
4212
|
}
|
4213
|
+
}
|
4148
4214
|
|
4149
|
-
|
4150
|
-
|
4151
|
-
|
4152
|
-
|
4153
|
-
|
4154
|
-
|
4155
|
-
|
4156
|
-
& .mc-checkbox-checkmark,
|
4157
|
-
& .mc-checkbox-mixedmark {
|
4158
|
-
color: map-get($foreground, text-disabled);
|
4159
|
-
}
|
4215
|
+
&.mc-badge_mini {
|
4216
|
+
height: var(--mc-badge-size-mini-height, $badge-size-mini-height);
|
4217
|
+
min-width: var(--mc-badge-size-mini-min-width, $badge-size-mini-min-width);
|
4218
|
+
padding: var(--mc-badge-size-mini-padding, $badge-size-mini-padding);
|
4219
|
+
border: {
|
4220
|
+
width: var(--mc-badge-size-mini-border-width, $badge-size-mini-border-width);
|
4221
|
+
radius: var(--mc-badge-size-mini-border-radius, $badge-size-mini-border-radius);
|
4160
4222
|
}
|
4223
|
+
|
4161
4224
|
}
|
4162
4225
|
}
|
4163
4226
|
|
4164
|
-
@mixin popup-params($theme) {
|
4165
|
-
$popup: map-get(map-get($theme, components), popup);
|
4166
|
-
|
4167
|
-
box-shadow: map-get($popup, shadow);
|
4168
|
-
border-color: map-get($popup, border);
|
4169
4227
|
|
4170
|
-
|
4228
|
+
@mixin mc-badge-color($params) {
|
4229
|
+
color: map-get($params, color);
|
4230
|
+
border-color: map-get($params, border);
|
4231
|
+
background: map-get($params, background);
|
4171
4232
|
}
|
4172
4233
|
|
4173
|
-
|
4174
|
-
|
4175
|
-
|
4176
|
-
@mixin mc-autocomplete-theme($theme) {
|
4234
|
+
@mixin mc-badge-theme($theme) {
|
4177
4235
|
$foreground: map-get($theme, foreground);
|
4236
|
+
$badge: map-get(map-get($theme, components), badge);
|
4178
4237
|
|
4179
|
-
.mc-
|
4180
|
-
|
4181
|
-
|
4182
|
-
|
4183
|
-
|
4184
|
-
.mc-selected {
|
4185
|
-
$popup: map-get(map-get($theme, components), popup);
|
4238
|
+
.mc-badge {
|
4239
|
+
color: map-get($foreground, text);
|
4240
|
+
border-color: map-get($foreground, border);
|
4241
|
+
}
|
4186
4242
|
|
4187
|
-
|
4243
|
+
.mc-badge_solid {
|
4244
|
+
&.mc-badge_primary {
|
4245
|
+
@include mc-badge-color(map-get($badge, primary_solid));
|
4188
4246
|
}
|
4189
|
-
|
4190
|
-
|
4247
|
+
|
4248
|
+
&.mc-badge_second {
|
4249
|
+
@include mc-badge-color(map-get($badge, second_solid));
|
4250
|
+
}
|
4251
|
+
|
4252
|
+
&.mc-badge_transparent {
|
4253
|
+
@include mc-badge-color(map-get($badge, transparent_solid));
|
4254
|
+
}
|
4255
|
+
|
4256
|
+
&.mc-badge_success {
|
4257
|
+
@include mc-badge-color(map-get($badge, success_solid));
|
4258
|
+
}
|
4259
|
+
|
4260
|
+
&.mc-badge_info {
|
4261
|
+
@include mc-badge-color(map-get($badge, info_solid));
|
4262
|
+
}
|
4263
|
+
|
4264
|
+
&.mc-badge_warning {
|
4265
|
+
@include mc-badge-color(map-get($badge, warning_solid));
|
4266
|
+
}
|
4267
|
+
|
4268
|
+
&.mc-badge_error {
|
4269
|
+
@include mc-badge-color(map-get($badge, error_solid));
|
4270
|
+
}
|
4271
|
+
|
4272
|
+
&.mc-badge_light {
|
4273
|
+
@include mc-badge-color(map-get($badge, light_solid));
|
4274
|
+
}
|
4275
|
+
}
|
4276
|
+
|
4277
|
+
.mc-badge_pastel {
|
4278
|
+
&.mc-badge_primary {
|
4279
|
+
@include mc-badge-color(map-get($badge, primary_pastel));
|
4280
|
+
}
|
4281
|
+
|
4282
|
+
&.mc-badge_success {
|
4283
|
+
@include mc-badge-color(map-get($badge, success_pastel));
|
4284
|
+
}
|
4285
|
+
|
4286
|
+
&.mc-badge_info {
|
4287
|
+
@include mc-badge-color(map-get($badge, info_pastel));
|
4288
|
+
}
|
4289
|
+
|
4290
|
+
&.mc-badge_warning {
|
4291
|
+
@include mc-badge-color(map-get($badge, warning_pastel));
|
4292
|
+
}
|
4293
|
+
|
4294
|
+
&.mc-badge_error {
|
4295
|
+
@include mc-badge-color(map-get($badge, error_pastel));
|
4296
|
+
}
|
4297
|
+
}
|
4298
|
+
}
|
4299
|
+
|
4300
|
+
@mixin mc-badge-typography($config) {
|
4301
|
+
.mc-badge_default {
|
4302
|
+
@include mc-typography-level-to-styles($config, $badge-font-default-default);
|
4303
|
+
|
4304
|
+
&.mc-badge_caps {
|
4305
|
+
@include mc-typography-level-to-styles($config, $badge-font-default-caps);
|
4306
|
+
}
|
4307
|
+
|
4308
|
+
&.mc-badge_mono {
|
4309
|
+
@include mc-typography-level-to-styles($config, $badge-font-default-mono);
|
4310
|
+
}
|
4311
|
+
}
|
4312
|
+
|
4313
|
+
.mc-badge_mini {
|
4314
|
+
@include mc-typography-level-to-styles($config, $badge-font-mini-default);
|
4315
|
+
|
4316
|
+
&.mc-badge_caps {
|
4317
|
+
@include mc-typography-level-to-styles($config, $badge-font-mini-caps);
|
4318
|
+
}
|
4319
|
+
|
4320
|
+
&.mc-badge_mono {
|
4321
|
+
@include mc-typography-level-to-styles($config, $badge-font-mini-mono);
|
4322
|
+
}
|
4323
|
+
}
|
4324
|
+
}
|
4325
|
+
|
4326
|
+
|
4327
|
+
|
4328
|
+
|
4329
|
+
|
4330
|
+
@mixin mc-forms-theme($theme) {
|
4331
|
+
$foreground: map-get($theme, foreground);
|
4332
|
+
|
4333
|
+
$forms: map-get(map-get($theme, components), forms);
|
4334
|
+
|
4335
|
+
.mc-form__label {
|
4336
|
+
color: map-get($forms, label);
|
4337
|
+
}
|
4338
|
+
|
4339
|
+
.mc-form__legend {
|
4340
|
+
color: map-get($forms, legend);
|
4341
|
+
}
|
4342
|
+
}
|
4343
|
+
|
4344
|
+
@mixin mc-forms-typography($config) {
|
4345
|
+
.mc-form__label {
|
4346
|
+
@include mc-typography-level-to-styles($config, $forms-font-default-label);
|
4347
|
+
}
|
4348
|
+
|
4349
|
+
.mc-form__legend {
|
4350
|
+
@include mc-typography-level-to-styles($config, $forms-font-default-legend);
|
4351
|
+
}
|
4352
|
+
}
|
4353
|
+
|
4354
|
+
|
4355
|
+
|
4356
|
+
|
4357
|
+
|
4358
|
+
@mixin mc-option-theme($theme) {
|
4359
|
+
$foreground: map-get($theme, foreground);
|
4360
|
+
$background: map-get($theme, background);
|
4361
|
+
|
4362
|
+
$primary: map-get($theme, primary);
|
4363
|
+
|
4364
|
+
.mc-option {
|
4365
|
+
color: map-get($foreground, text);
|
4366
|
+
|
4367
|
+
&:hover:not(.mc-disabled) {
|
4368
|
+
.mc-option-overlay {
|
4369
|
+
background: map-get($background, overlay-hover);
|
4370
|
+
}
|
4371
|
+
}
|
4372
|
+
|
4373
|
+
&.mc-active {
|
4374
|
+
border-color: map-get(map-get($theme, states), focused-color);
|
4375
|
+
}
|
4376
|
+
|
4377
|
+
&.mc-selected {
|
4378
|
+
background: map-get(map-get($theme, states), selected-color);
|
4379
|
+
}
|
4380
|
+
|
4381
|
+
&.mc-disabled {
|
4382
|
+
background: transparent;
|
4383
|
+
|
4384
|
+
color: map-get($foreground, text-disabled);
|
4385
|
+
}
|
4386
|
+
}
|
4387
|
+
}
|
4388
|
+
|
4389
|
+
@mixin mc-option-typography($config) {
|
4390
|
+
.mc-option {
|
4391
|
+
@include mc-typography-level-to-styles($config, $option-font-default);
|
4392
|
+
}
|
4393
|
+
}
|
4394
|
+
|
4395
|
+
|
4396
|
+
|
4397
|
+
|
4398
|
+
|
4399
|
+
@mixin mc-optgroup-theme($theme) {
|
4400
|
+
$foreground: map-get($theme, foreground);
|
4401
|
+
|
4402
|
+
.mc-optgroup-label {
|
4403
|
+
color: map-get($foreground, text);
|
4404
|
+
}
|
4405
|
+
|
4406
|
+
.mc-disabled .mc-optgroup-label {
|
4407
|
+
color: map-get($foreground, text-disabled);
|
4408
|
+
}
|
4409
|
+
}
|
4410
|
+
|
4411
|
+
@mixin mc-optgroup-typography($config) {
|
4412
|
+
.mc-optgroup-label {
|
4413
|
+
@include mc-typography-level-to-styles($config, $optgroup-font-default);
|
4414
|
+
}
|
4415
|
+
}
|
4416
|
+
|
4417
|
+
@mixin popup-params($theme) {
|
4418
|
+
$popup: map-get(map-get($theme, components), popup);
|
4419
|
+
|
4420
|
+
box-shadow: map-get($popup, shadow);
|
4421
|
+
border-color: map-get($popup, border);
|
4422
|
+
|
4423
|
+
background-color: map-get($popup, background);
|
4424
|
+
}
|
4425
|
+
|
4426
|
+
|
4427
|
+
|
4428
|
+
|
4429
|
+
@mixin mc-autocomplete-theme($theme) {
|
4430
|
+
$foreground: map-get($theme, foreground);
|
4431
|
+
|
4432
|
+
.mc-autocomplete-panel {
|
4433
|
+
@include popup-params($theme);
|
4434
|
+
|
4435
|
+
color: mc-color($foreground, text);
|
4436
|
+
|
4437
|
+
.mc-selected {
|
4438
|
+
$popup: map-get(map-get($theme, components), popup);
|
4439
|
+
|
4440
|
+
background-color: map-get($popup, background);
|
4441
|
+
}
|
4442
|
+
}
|
4443
|
+
}
|
4191
4444
|
|
4192
4445
|
|
4193
4446
|
|
@@ -4339,65 +4592,6 @@ $dark-warning: mc-palette($dark-color-scheme-warning-palette, $dark-color-scheme
|
|
4339
4592
|
}
|
4340
4593
|
|
4341
4594
|
|
4342
|
-
@mixin card-type($card) {
|
4343
|
-
box-shadow:
|
4344
|
-
inset -1px 0 0 0 map-get($card, shadow),
|
4345
|
-
inset 0 1px 0 0 map-get($card, shadow),
|
4346
|
-
inset 0 -1px 0 0 map-get($card, shadow);
|
4347
|
-
|
4348
|
-
background-color: map-get($card, background);
|
4349
|
-
|
4350
|
-
border-left-color: map-get($card, vertical-line);
|
4351
|
-
}
|
4352
|
-
|
4353
|
-
@mixin mc-card-theme($theme) {
|
4354
|
-
$foreground: map-get($theme, foreground);
|
4355
|
-
$background: map-get($theme, background);
|
4356
|
-
|
4357
|
-
$card: map-get(map-get($theme, components), card);
|
4358
|
-
$popup: map-get(map-get($theme, components), popup);
|
4359
|
-
|
4360
|
-
$is-dark: map-get($theme, is-dark);
|
4361
|
-
|
4362
|
-
.mc-card {
|
4363
|
-
color: map-get($foreground, text);
|
4364
|
-
|
4365
|
-
&.mc-card_error {
|
4366
|
-
@include card-type(map-get($card, error));
|
4367
|
-
}
|
4368
|
-
|
4369
|
-
&.mc-card_warning {
|
4370
|
-
@include card-type(map-get($card, warning));
|
4371
|
-
}
|
4372
|
-
|
4373
|
-
&.mc-card_success {
|
4374
|
-
@include card-type(map-get($card, success));
|
4375
|
-
}
|
4376
|
-
|
4377
|
-
&.mc-card_info {
|
4378
|
-
@include card-type(map-get($card, info));
|
4379
|
-
}
|
4380
|
-
|
4381
|
-
&.mc-card_white {
|
4382
|
-
background-color: map-get($popup, background);
|
4383
|
-
}
|
4384
|
-
|
4385
|
-
&.mc-selected {
|
4386
|
-
background-color: map-get(map-get($theme, states), selected-color);
|
4387
|
-
}
|
4388
|
-
|
4389
|
-
&:not(.mc-card_readonly):hover {
|
4390
|
-
.mc-card__overlay {
|
4391
|
-
background: map-get($background, overlay-hover);
|
4392
|
-
}
|
4393
|
-
}
|
4394
|
-
|
4395
|
-
&.cdk-keyboard-focused {
|
4396
|
-
box-shadow: 0 0 0 2px map-get(map-get($theme, states), focused-color);
|
4397
|
-
}
|
4398
|
-
}
|
4399
|
-
}
|
4400
|
-
|
4401
4595
|
|
4402
4596
|
|
4403
4597
|
|
@@ -4603,15 +4797,41 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
4603
4797
|
}
|
4604
4798
|
}
|
4605
4799
|
|
4606
|
-
@mixin mc-divider-theme($theme) {
|
4607
|
-
$divider: map-get(map-get($theme, components), divider);
|
4608
4800
|
|
4609
|
-
|
4610
|
-
|
4801
|
+
|
4802
|
+
|
4803
|
+
|
4804
|
+
@mixin mc-dl-theme($theme) {
|
4805
|
+
$dl: map-get(map-get($theme, components), dl);
|
4806
|
+
|
4807
|
+
.mc-dt {
|
4808
|
+
color: map-get($dl, dt);
|
4611
4809
|
}
|
4612
4810
|
|
4613
|
-
.mc-
|
4614
|
-
|
4811
|
+
.mc-dd {
|
4812
|
+
color: map-get($dl, dd);
|
4813
|
+
}
|
4814
|
+
}
|
4815
|
+
|
4816
|
+
@mixin mc-dl-typography($config) {
|
4817
|
+
.mc-dl {
|
4818
|
+
& .mc-dt {
|
4819
|
+
@include mc-typography-level-to-styles($config, $description-list-font-horizontal-dt);
|
4820
|
+
}
|
4821
|
+
|
4822
|
+
& .mc-dd {
|
4823
|
+
@include mc-typography-level-to-styles($config, $description-list-font-horizontal-dd);
|
4824
|
+
}
|
4825
|
+
}
|
4826
|
+
|
4827
|
+
.mc-dl.mc-dl_vertical {
|
4828
|
+
& .mc-dt {
|
4829
|
+
@include mc-typography-level-to-styles($config, $description-list-font-vertical-dt);
|
4830
|
+
}
|
4831
|
+
|
4832
|
+
& .mc-dd {
|
4833
|
+
@include mc-typography-level-to-styles($config, $description-list-font-vertical-dd);
|
4834
|
+
}
|
4615
4835
|
}
|
4616
4836
|
}
|
4617
4837
|
|
@@ -4622,6 +4842,7 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
4622
4842
|
|
4623
4843
|
|
4624
4844
|
|
4845
|
+
|
4625
4846
|
@mixin mc-dropdown-theme($theme) {
|
4626
4847
|
$foreground: map-get($theme, foreground);
|
4627
4848
|
$background: map-get($theme, background);
|
@@ -4829,158 +5050,6 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
4829
5050
|
|
4830
5051
|
|
4831
5052
|
|
4832
|
-
@mixin mc-icon-theme($theme) {
|
4833
|
-
$foreground: map-get($theme, foreground);
|
4834
|
-
$second: map-get($theme, second);
|
4835
|
-
|
4836
|
-
$icon: map-get(map-get($theme, components), icon);
|
4837
|
-
|
4838
|
-
$primary: map-get($icon, primary);
|
4839
|
-
$secondary: map-get($icon, secondary);
|
4840
|
-
$error: map-get($icon, error);
|
4841
|
-
$success: map-get($icon, success);
|
4842
|
-
$warning: map-get($icon, warning);
|
4843
|
-
$info: map-get($icon, info);
|
4844
|
-
|
4845
|
-
// Дефолтные серые иконки default-icon: лупа в поле, иконки дропдаунов v, все иконки вне полей.
|
4846
|
-
.mc-icon {
|
4847
|
-
color: mc-color($foreground, icon);
|
4848
|
-
|
4849
|
-
&.mc-primary {
|
4850
|
-
color: map-get($primary, default);
|
4851
|
-
}
|
4852
|
-
|
4853
|
-
&.mc-second {
|
4854
|
-
color: map-get($secondary, default);
|
4855
|
-
}
|
4856
|
-
|
4857
|
-
&.mc-error {
|
4858
|
-
color: map-get($error, default);
|
4859
|
-
}
|
4860
|
-
|
4861
|
-
|
4862
|
-
&.mc-info {
|
4863
|
-
color: map-get($info, default);
|
4864
|
-
}
|
4865
|
-
|
4866
|
-
&.mc-warning {
|
4867
|
-
color: map-get($warning, default);
|
4868
|
-
}
|
4869
|
-
|
4870
|
-
&.mc-success {
|
4871
|
-
color: map-get($success, default);
|
4872
|
-
}
|
4873
|
-
|
4874
|
-
&[disabled],
|
4875
|
-
&.mc-disabled {
|
4876
|
-
cursor: default;
|
4877
|
-
}
|
4878
|
-
}
|
4879
|
-
|
4880
|
-
// Облегченные серые иконки less-contrast-icon нужны тогда, когда действие, которое они делают не дефолтное и
|
4881
|
-
// не самое важное. Не используются вне инпутов или селектов.
|
4882
|
-
.mc-icon.mc-icon_light {
|
4883
|
-
&.mc-primary {
|
4884
|
-
&:active,
|
4885
|
-
&.mc-active {
|
4886
|
-
color: map-get($primary, state-active);
|
4887
|
-
}
|
4888
|
-
|
4889
|
-
&:not([disabled], .mc-disabled):hover {
|
4890
|
-
color: map-get($primary, state-hover);
|
4891
|
-
}
|
4892
|
-
|
4893
|
-
&[disabled],
|
4894
|
-
&.mc-disabled {
|
4895
|
-
color: map-get($primary, state-disabled);
|
4896
|
-
}
|
4897
|
-
}
|
4898
|
-
|
4899
|
-
&.mc-second {
|
4900
|
-
&:active,
|
4901
|
-
&.mc-active {
|
4902
|
-
color: map-get($secondary, state-active);
|
4903
|
-
}
|
4904
|
-
|
4905
|
-
&:not([disabled], .mc-disabled):hover {
|
4906
|
-
color: map-get($secondary, state-hover);
|
4907
|
-
}
|
4908
|
-
|
4909
|
-
&[disabled],
|
4910
|
-
&.mc-disabled {
|
4911
|
-
color: map-get($secondary, state-disabled);
|
4912
|
-
}
|
4913
|
-
}
|
4914
|
-
|
4915
|
-
&.mc-error {
|
4916
|
-
&:active,
|
4917
|
-
&.mc-active {
|
4918
|
-
color: map-get($error, state-active);
|
4919
|
-
}
|
4920
|
-
|
4921
|
-
&:not([disabled], .mc-disabled):hover {
|
4922
|
-
color: map-get($error, state-hover);
|
4923
|
-
}
|
4924
|
-
|
4925
|
-
&[disabled],
|
4926
|
-
&.mc-disabled {
|
4927
|
-
color: map-get($error, state-disabled);
|
4928
|
-
}
|
4929
|
-
}
|
4930
|
-
|
4931
|
-
&.mc-info {
|
4932
|
-
&:active,
|
4933
|
-
&.mc-active {
|
4934
|
-
color: map-get($info, state-active);
|
4935
|
-
}
|
4936
|
-
|
4937
|
-
&:not([disabled], .mc-disabled):hover {
|
4938
|
-
color: map-get($info, state-hover);
|
4939
|
-
}
|
4940
|
-
|
4941
|
-
&[disabled],
|
4942
|
-
&.mc-disabled {
|
4943
|
-
color: map-get($info, state-disabled);
|
4944
|
-
}
|
4945
|
-
}
|
4946
|
-
|
4947
|
-
&.mc-warning {
|
4948
|
-
&:active,
|
4949
|
-
&.mc-active {
|
4950
|
-
color: map-get($warning, state-active);
|
4951
|
-
}
|
4952
|
-
|
4953
|
-
&:not([disabled], .mc-disabled):hover {
|
4954
|
-
color: map-get($warning, state-hover);
|
4955
|
-
}
|
4956
|
-
|
4957
|
-
&[disabled],
|
4958
|
-
&.mc-disabled {
|
4959
|
-
color: map-get($warning, state-disabled);
|
4960
|
-
}
|
4961
|
-
}
|
4962
|
-
|
4963
|
-
&.mc-success {
|
4964
|
-
&:active,
|
4965
|
-
&.mc-active {
|
4966
|
-
color: map-get($success, state-active);
|
4967
|
-
}
|
4968
|
-
|
4969
|
-
&:not([disabled], .mc-disabled):hover {
|
4970
|
-
color: map-get($success, state-hover);
|
4971
|
-
}
|
4972
|
-
|
4973
|
-
&[disabled],
|
4974
|
-
&.mc-disabled {
|
4975
|
-
color: map-get($success, state-disabled);
|
4976
|
-
}
|
4977
|
-
}
|
4978
|
-
}
|
4979
|
-
}
|
4980
|
-
|
4981
|
-
|
4982
|
-
|
4983
|
-
|
4984
5053
|
|
4985
5054
|
@mixin mc-input-theme($theme) {
|
4986
5055
|
$foreground: map-get($theme, foreground);
|
@@ -5277,150 +5346,61 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
5277
5346
|
|
5278
5347
|
|
5279
5348
|
|
5280
|
-
@
|
5281
|
-
$
|
5282
|
-
$
|
5349
|
+
@function mc-markdown-typography-config() {
|
5350
|
+
$font-family: $font-family-base;
|
5351
|
+
$md-typography: map-get($md-typography, md-typography);
|
5283
5352
|
|
5284
|
-
$
|
5285
|
-
|
5353
|
+
$config: (
|
5354
|
+
md-h1: map-get($md-typography, md-h1),
|
5355
|
+
md-h2: map-get($md-typography, md-h2),
|
5356
|
+
md-h3: map-get($md-typography, md-h3),
|
5357
|
+
md-h4: map-get($md-typography, md-h4),
|
5358
|
+
md-h5: map-get($md-typography, md-h5),
|
5359
|
+
md-h6: map-get($md-typography, md-h6),
|
5286
5360
|
|
5287
|
-
|
5288
|
-
|
5289
|
-
|
5290
|
-
|
5361
|
+
md-body: map-get($md-typography, md-body),
|
5362
|
+
md-body-mono: map-get($md-typography, md-body-mono),
|
5363
|
+
md-caption: map-get($md-typography, md-caption),
|
5364
|
+
md-table-cell: map-get($md-typography, md-table-cell),
|
5365
|
+
md-table-header: map-get($md-typography, md-table-header),
|
5366
|
+
);
|
5291
5367
|
|
5292
|
-
|
5368
|
+
@each $key, $level in $config {
|
5369
|
+
@if map-get($level, font-family) == null {
|
5370
|
+
$new-level: map-merge($level, (font-family: $font-family));
|
5371
|
+
$config: map-merge($config, ($key: $new-level));
|
5293
5372
|
}
|
5373
|
+
}
|
5294
5374
|
|
5295
|
-
|
5296
|
-
|
5297
|
-
|
5375
|
+
// Add the base font family to the config.
|
5376
|
+
@return map-merge($config, (font-family: $font-family));
|
5377
|
+
}
|
5298
5378
|
|
5299
|
-
|
5300
|
-
|
5301
|
-
|
5302
|
-
|
5379
|
+
@mixin mc-markdown-typography($config) {
|
5380
|
+
.mc-markdown {
|
5381
|
+
.mc-markdown__h1 {
|
5382
|
+
@include mc-typography-level-to-styles($config, $markdown-h1-font-default);
|
5303
5383
|
}
|
5304
5384
|
|
5305
|
-
.mc-
|
5306
|
-
|
5385
|
+
.mc-markdown__h2 {
|
5386
|
+
@include mc-typography-level-to-styles($config, $markdown-h2-font-default);
|
5307
5387
|
}
|
5308
5388
|
|
5309
|
-
.mc-
|
5310
|
-
|
5389
|
+
.mc-markdown__h3 {
|
5390
|
+
@include mc-typography-level-to-styles($config, $markdown-h3-font-default);
|
5311
5391
|
}
|
5312
5392
|
|
5313
|
-
.mc-
|
5314
|
-
|
5315
|
-
|
5316
|
-
border-top-color: map-get($modal, footer-border);
|
5393
|
+
.mc-markdown__h4 {
|
5394
|
+
@include mc-typography-level-to-styles($config, $markdown-h4-font-default);
|
5395
|
+
}
|
5317
5396
|
|
5318
|
-
|
5397
|
+
.mc-markdown__h5 {
|
5398
|
+
@include mc-typography-level-to-styles($config, $markdown-h5-font-default);
|
5319
5399
|
}
|
5320
5400
|
|
5321
|
-
.mc-
|
5322
|
-
|
5323
|
-
|
5324
|
-
&:hover {
|
5325
|
-
.mc-button-overlay {
|
5326
|
-
background: map-get($background, overlay-hover);
|
5327
|
-
}
|
5328
|
-
|
5329
|
-
.mc-icon {
|
5330
|
-
color: inherit;
|
5331
|
-
}
|
5332
|
-
}
|
5333
|
-
}
|
5334
|
-
}
|
5335
|
-
|
5336
|
-
.mc-modal-mask {
|
5337
|
-
background-color: map-get($modal, background-mask);
|
5338
|
-
}
|
5339
|
-
|
5340
|
-
.mc-confirm {
|
5341
|
-
.mc-confirm-btns {
|
5342
|
-
border-top-width: var(--mc-modal-size-border-width, $modal-size-border-width);
|
5343
|
-
border-top-style: solid;
|
5344
|
-
border-top-color: map-get($modal, footer-border);
|
5345
|
-
|
5346
|
-
background-color: map-get($popup, footer-background);
|
5347
|
-
}
|
5348
|
-
}
|
5349
|
-
}
|
5350
|
-
|
5351
|
-
@mixin mc-modal-typography($config) {
|
5352
|
-
.mc-modal-title {
|
5353
|
-
@include mc-typography-level-to-styles($config, $modal-header-font-default);
|
5354
|
-
}
|
5355
|
-
|
5356
|
-
.mc-modal-body {
|
5357
|
-
@include mc-typography-level-to-styles($config, $modal-body-font-default);
|
5358
|
-
}
|
5359
|
-
}
|
5360
|
-
|
5361
|
-
|
5362
|
-
|
5363
|
-
|
5364
|
-
|
5365
|
-
|
5366
|
-
|
5367
|
-
|
5368
|
-
|
5369
|
-
@function mc-markdown-typography-config() {
|
5370
|
-
$font-family: $font-family-base;
|
5371
|
-
$md-typography: map-get($md-typography, md-typography);
|
5372
|
-
|
5373
|
-
$config: (
|
5374
|
-
md-h1: map-get($md-typography, md-h1),
|
5375
|
-
md-h2: map-get($md-typography, md-h2),
|
5376
|
-
md-h3: map-get($md-typography, md-h3),
|
5377
|
-
md-h4: map-get($md-typography, md-h4),
|
5378
|
-
md-h5: map-get($md-typography, md-h5),
|
5379
|
-
md-h6: map-get($md-typography, md-h6),
|
5380
|
-
|
5381
|
-
md-body: map-get($md-typography, md-body),
|
5382
|
-
md-body-mono: map-get($md-typography, md-body-mono),
|
5383
|
-
md-caption: map-get($md-typography, md-caption),
|
5384
|
-
md-table-cell: map-get($md-typography, md-table-cell),
|
5385
|
-
md-table-header: map-get($md-typography, md-table-header),
|
5386
|
-
);
|
5387
|
-
|
5388
|
-
@each $key, $level in $config {
|
5389
|
-
@if map-get($level, font-family) == null {
|
5390
|
-
$new-level: map-merge($level, (font-family: $font-family));
|
5391
|
-
$config: map-merge($config, ($key: $new-level));
|
5392
|
-
}
|
5393
|
-
}
|
5394
|
-
|
5395
|
-
// Add the base font family to the config.
|
5396
|
-
@return map-merge($config, (font-family: $font-family));
|
5397
|
-
}
|
5398
|
-
|
5399
|
-
@mixin mc-markdown-typography($config) {
|
5400
|
-
.mc-markdown {
|
5401
|
-
.mc-markdown__h1 {
|
5402
|
-
@include mc-typography-level-to-styles($config, $markdown-h1-font-default);
|
5403
|
-
}
|
5404
|
-
|
5405
|
-
.mc-markdown__h2 {
|
5406
|
-
@include mc-typography-level-to-styles($config, $markdown-h2-font-default);
|
5407
|
-
}
|
5408
|
-
|
5409
|
-
.mc-markdown__h3 {
|
5410
|
-
@include mc-typography-level-to-styles($config, $markdown-h3-font-default);
|
5411
|
-
}
|
5412
|
-
|
5413
|
-
.mc-markdown__h4 {
|
5414
|
-
@include mc-typography-level-to-styles($config, $markdown-h4-font-default);
|
5415
|
-
}
|
5416
|
-
|
5417
|
-
.mc-markdown__h5 {
|
5418
|
-
@include mc-typography-level-to-styles($config, $markdown-h5-font-default);
|
5419
|
-
}
|
5420
|
-
|
5421
|
-
.mc-markdown__h6 {
|
5422
|
-
@include mc-typography-level-to-styles($config, $markdown-h6-font-default);
|
5423
|
-
}
|
5401
|
+
.mc-markdown__h6 {
|
5402
|
+
@include mc-typography-level-to-styles($config, $markdown-h6-font-default);
|
5403
|
+
}
|
5424
5404
|
|
5425
5405
|
.mc-markdown__p {
|
5426
5406
|
@include mc-typography-level-to-styles($config, $markdown-p-font-default);
|
@@ -5489,129 +5469,87 @@ $mc-datepicker-today-fade-amount: 0.2;
|
|
5489
5469
|
|
5490
5470
|
|
5491
5471
|
|
5492
|
-
@mixin mc-markdown-theme($theme) {
|
5493
|
-
$foreground: map-get($theme, foreground);
|
5494
|
-
$background: map-get($theme, background);
|
5495
|
-
|
5496
|
-
$markdown: map-get(map-get($theme, components), markdown);
|
5497
|
-
|
5498
|
-
.mc-markdown {
|
5499
|
-
color: map-get($foreground, text);
|
5500
|
-
background: map-get($background, background);;
|
5501
|
-
|
5502
|
-
.mc-markdown__h1 {
|
5503
|
-
color: map-get($markdown, h1-color);
|
5504
|
-
}
|
5505
5472
|
|
5506
|
-
.mc-markdown__h2 {
|
5507
|
-
color: map-get($markdown, h2-color);
|
5508
|
-
}
|
5509
5473
|
|
5510
|
-
|
5511
|
-
|
5512
|
-
|
5474
|
+
@mixin mc-modal-theme($theme) {
|
5475
|
+
$foreground: map-get($theme, foreground);
|
5476
|
+
$background: map-get($theme, background);
|
5513
5477
|
|
5514
|
-
|
5515
|
-
|
5516
|
-
}
|
5478
|
+
$modal: map-get(map-get($theme, components), modal);
|
5479
|
+
$popup: map-get(map-get($theme, components), popup);
|
5517
5480
|
|
5518
|
-
|
5519
|
-
|
5520
|
-
|
5481
|
+
.mc-modal {
|
5482
|
+
.mc-modal-content {
|
5483
|
+
// У модалки должен быть фон background. Чтобы поповеры и дропдауны было видно поверх модалки
|
5484
|
+
background-color: map-get($background, background);
|
5521
5485
|
|
5522
|
-
|
5523
|
-
color: map-get($markdown, h6-color);
|
5486
|
+
box-shadow: map-get($modal, shadow);
|
5524
5487
|
}
|
5525
5488
|
|
5526
|
-
.mc-
|
5527
|
-
color: map-get($
|
5489
|
+
.mc-modal-title {
|
5490
|
+
color: map-get($foreground, text);
|
5528
5491
|
}
|
5529
5492
|
|
5530
|
-
.mc-
|
5531
|
-
|
5532
|
-
|
5493
|
+
.mc-modal-header {
|
5494
|
+
border-bottom-width: var(--mc-modal-size-border-width, $modal-size-border-width);
|
5495
|
+
border-bottom-style: solid;
|
5496
|
+
border-bottom-color: map-get($modal, header-border);
|
5533
5497
|
}
|
5534
5498
|
|
5535
|
-
.mc-
|
5536
|
-
|
5537
|
-
background: map-get($markdown, blockquote-background);
|
5538
|
-
border-color: map-get($markdown, blockquote-border);
|
5539
|
-
border-left-color: map-get($markdown, blockquote-line);
|
5499
|
+
.mc-modal-header.mc-modal-body_top-overflow {
|
5500
|
+
box-shadow: map-get($modal, body-top-shadow);
|
5540
5501
|
}
|
5541
5502
|
|
5542
|
-
.mc-
|
5543
|
-
|
5544
|
-
color: map-get($markdown, code-text);
|
5545
|
-
background-color: map-get($markdown, code-background);
|
5546
|
-
border-color: map-get($markdown, code-border);
|
5503
|
+
.mc-modal-footer.mc-modal-body_bottom-overflow {
|
5504
|
+
box-shadow: map-get($modal, body-bottom-shadow);
|
5547
5505
|
}
|
5548
5506
|
|
5549
|
-
.mc-
|
5550
|
-
|
5551
|
-
|
5507
|
+
.mc-modal-footer {
|
5508
|
+
border-top-width: var(--mc-modal-size-border-width, $modal-size-border-width);
|
5509
|
+
border-top-style: solid;
|
5510
|
+
border-top-color: map-get($modal, footer-border);
|
5552
5511
|
|
5553
|
-
|
5554
|
-
color: map-get($markdown, image-caption-text);
|
5512
|
+
background-color: map-get($popup, footer-background);
|
5555
5513
|
}
|
5556
5514
|
|
5557
|
-
.mc-
|
5558
|
-
border
|
5559
|
-
}
|
5515
|
+
.mc-modal-close {
|
5516
|
+
border: var(--mc-modal-size-border-width, $modal-size-border-width) solid transparent;
|
5560
5517
|
|
5561
|
-
|
5562
|
-
|
5563
|
-
|
5564
|
-
|
5518
|
+
&:hover {
|
5519
|
+
.mc-button-overlay {
|
5520
|
+
background: map-get($background, overlay-hover);
|
5521
|
+
}
|
5565
5522
|
|
5566
|
-
|
5567
|
-
|
5523
|
+
.mc-icon {
|
5524
|
+
color: inherit;
|
5525
|
+
}
|
5526
|
+
}
|
5568
5527
|
}
|
5569
5528
|
}
|
5570
|
-
}
|
5571
|
-
|
5572
|
-
|
5573
|
-
// based on mc-link
|
5574
|
-
|
5575
|
-
@mixin md-link($foreground, $markdown) {
|
5576
|
-
display: inline-block;
|
5577
|
-
|
5578
|
-
color: map-get($markdown, link-text);
|
5579
|
-
text-decoration: none;
|
5580
|
-
cursor: pointer;
|
5581
|
-
|
5582
|
-
border-bottom-style: solid;
|
5583
|
-
border-bottom-width: 1px;
|
5584
|
-
border-bottom-color: map-get($markdown, link-border-bottom);
|
5585
|
-
|
5586
|
-
transition: color ease-out 300ms;
|
5587
5529
|
|
5588
|
-
|
5589
|
-
|
5530
|
+
.mc-modal-mask {
|
5531
|
+
background-color: map-get($modal, background-mask);
|
5590
5532
|
}
|
5591
5533
|
|
5592
|
-
|
5593
|
-
|
5594
|
-
|
5595
|
-
|
5596
|
-
|
5597
|
-
}
|
5534
|
+
.mc-confirm {
|
5535
|
+
.mc-confirm-btns {
|
5536
|
+
border-top-width: var(--mc-modal-size-border-width, $modal-size-border-width);
|
5537
|
+
border-top-style: solid;
|
5538
|
+
border-top-color: map-get($modal, footer-border);
|
5598
5539
|
|
5599
|
-
|
5600
|
-
|
5540
|
+
background-color: map-get($popup, footer-background);
|
5541
|
+
}
|
5601
5542
|
}
|
5602
5543
|
}
|
5603
5544
|
|
5604
|
-
|
5605
|
-
|
5606
|
-
|
5607
|
-
$markdown: map-get(map-get($theme, components), markdown);
|
5608
|
-
|
5609
|
-
&:visited {
|
5610
|
-
color: map-get($markdown, link-state-visited-text);
|
5611
|
-
border-bottom-color: map-get($markdown, link-state-visited-border-bottom);
|
5545
|
+
@mixin mc-modal-typography($config) {
|
5546
|
+
.mc-modal-title {
|
5547
|
+
@include mc-typography-level-to-styles($config, $modal-header-font-default);
|
5612
5548
|
}
|
5613
5549
|
|
5614
|
-
|
5550
|
+
.mc-modal-body {
|
5551
|
+
@include mc-typography-level-to-styles($config, $modal-body-font-default);
|
5552
|
+
}
|
5615
5553
|
}
|
5616
5554
|
|
5617
5555
|
|
@@ -5845,62 +5783,12 @@ button {
|
|
5845
5783
|
|
5846
5784
|
|
5847
5785
|
|
5848
|
-
@mixin mc-progress-bar-theme($theme) {
|
5849
|
-
$primary: map-get($theme, primary);
|
5850
|
-
$second: map-get($theme, second);
|
5851
|
-
$error: map-get($theme, error);
|
5852
5786
|
|
5853
|
-
|
5787
|
+
@mixin mc-radio-theme($theme) {
|
5788
|
+
$foreground: map-get($theme, foreground);
|
5789
|
+
$background: map-get($theme, background);
|
5854
5790
|
|
5855
|
-
|
5856
|
-
background-color: map-get($progress-bar, background);
|
5857
|
-
|
5858
|
-
&.mc-primary .mc-progress-bar__line {
|
5859
|
-
background-color: mc-color($primary);
|
5860
|
-
}
|
5861
|
-
|
5862
|
-
&.mc-second .mc-progress-bar__line {
|
5863
|
-
background-color: mc-color($second);
|
5864
|
-
}
|
5865
|
-
|
5866
|
-
&.mc-error .mc-progress-bar__line {
|
5867
|
-
background-color: mc-color($error);
|
5868
|
-
}
|
5869
|
-
}
|
5870
|
-
}
|
5871
|
-
|
5872
|
-
|
5873
|
-
|
5874
|
-
|
5875
|
-
@mixin mc-progress-spinner-theme($theme) {
|
5876
|
-
$primary: map-get($theme, primary);
|
5877
|
-
$second: map-get($theme, second);
|
5878
|
-
$error: map-get($theme, error);
|
5879
|
-
|
5880
|
-
.mc-progress-spinner {
|
5881
|
-
&.mc-primary .mc-progress-spinner__circle {
|
5882
|
-
stroke: mc-color($primary);
|
5883
|
-
}
|
5884
|
-
|
5885
|
-
&.mc-second .mc-progress-spinner__circle {
|
5886
|
-
stroke: mc-color($second);
|
5887
|
-
}
|
5888
|
-
|
5889
|
-
&.mc-error .mc-progress-spinner__circle {
|
5890
|
-
stroke: mc-color($error);
|
5891
|
-
}
|
5892
|
-
}
|
5893
|
-
}
|
5894
|
-
|
5895
|
-
|
5896
|
-
|
5897
|
-
|
5898
|
-
|
5899
|
-
@mixin mc-radio-theme($theme) {
|
5900
|
-
$foreground: map-get($theme, foreground);
|
5901
|
-
$background: map-get($theme, background);
|
5902
|
-
|
5903
|
-
$radio: map-get(map-get($theme, components), radio);
|
5791
|
+
$radio: map-get(map-get($theme, components), radio);
|
5904
5792
|
|
5905
5793
|
.mc-radio-group {
|
5906
5794
|
color: map-get($foreground, text);
|
@@ -6103,33 +5991,6 @@ button {
|
|
6103
5991
|
}
|
6104
5992
|
}
|
6105
5993
|
|
6106
|
-
@mixin mc-splitter-theme($theme) {
|
6107
|
-
$background: map-get($theme, background);
|
6108
|
-
|
6109
|
-
.mc-gutter {
|
6110
|
-
cursor: col-resize;
|
6111
|
-
|
6112
|
-
&:hover,
|
6113
|
-
&.mc-gutter_dragged {
|
6114
|
-
background-color: map-get($background, background-disabled);
|
6115
|
-
}
|
6116
|
-
|
6117
|
-
&.mc-gutter_vertical {
|
6118
|
-
cursor: row-resize;
|
6119
|
-
}
|
6120
|
-
|
6121
|
-
&[disabled] {
|
6122
|
-
background-color: mc-color($background, overlay-disabled);
|
6123
|
-
|
6124
|
-
cursor: default;
|
6125
|
-
}
|
6126
|
-
}
|
6127
|
-
|
6128
|
-
.mc-gutter-ghost {
|
6129
|
-
background: mc-color($background, overlay-disabled);
|
6130
|
-
}
|
6131
|
-
}
|
6132
|
-
|
6133
5994
|
|
6134
5995
|
|
6135
5996
|
|
@@ -6366,6 +6227,95 @@ button {
|
|
6366
6227
|
|
6367
6228
|
|
6368
6229
|
|
6230
|
+
@mixin mc-timezone-option-theme($theme) {
|
6231
|
+
$timezone: map-get(map-get($theme, components), timezone);
|
6232
|
+
|
6233
|
+
.mc-timezone-option__offset,
|
6234
|
+
.mc-timezone-option__city {
|
6235
|
+
color: map-get($timezone, text);
|
6236
|
+
}
|
6237
|
+
|
6238
|
+
.mc-timezone-option__cities {
|
6239
|
+
color: map-get($timezone, caption);
|
6240
|
+
}
|
6241
|
+
}
|
6242
|
+
|
6243
|
+
@mixin mc-timezone-option-typography($config) {
|
6244
|
+
.mc-timezone-option__offset {
|
6245
|
+
@include mc-typography-level-to-styles($config, $timezone-option-font-offset-text);
|
6246
|
+
}
|
6247
|
+
|
6248
|
+
.mc-timezone-option__city {
|
6249
|
+
@include mc-typography-level-to-styles($config, $timezone-option-font-text);
|
6250
|
+
}
|
6251
|
+
|
6252
|
+
.mc-timezone-option__cities {
|
6253
|
+
@include mc-typography-level-to-styles($config, $timezone-option-font-caption);
|
6254
|
+
}
|
6255
|
+
}
|
6256
|
+
|
6257
|
+
|
6258
|
+
|
6259
|
+
|
6260
|
+
|
6261
|
+
@mixin mc-toast-theme($theme) {
|
6262
|
+
$foreground: map-get($theme, foreground);
|
6263
|
+
|
6264
|
+
$toast: map-get(map-get($theme, components), toast);
|
6265
|
+
|
6266
|
+
.mc-toast {
|
6267
|
+
&.mc-toast_info .mc-toast__icon {
|
6268
|
+
color: map-get($toast, icon_info);
|
6269
|
+
}
|
6270
|
+
|
6271
|
+
&.mc-toast_success .mc-toast__icon {
|
6272
|
+
color: map-get($toast, icon_success);
|
6273
|
+
}
|
6274
|
+
|
6275
|
+
&.mc-toast_warning .mc-toast__icon {
|
6276
|
+
color: map-get($toast, icon_warning);
|
6277
|
+
}
|
6278
|
+
|
6279
|
+
&.mc-toast_error .mc-toast__icon {
|
6280
|
+
color: map-get($toast, icon_error);
|
6281
|
+
}
|
6282
|
+
}
|
6283
|
+
|
6284
|
+
.mc-toast__wrapper {
|
6285
|
+
border-color: map-get($toast, border);
|
6286
|
+
|
6287
|
+
background: map-get($toast, background);
|
6288
|
+
|
6289
|
+
box-shadow: map-get($toast, shadow);
|
6290
|
+
}
|
6291
|
+
|
6292
|
+
.mc-toast__title {
|
6293
|
+
color: map-get($toast, text);
|
6294
|
+
}
|
6295
|
+
|
6296
|
+
.mc-toast__caption {
|
6297
|
+
color: map-get($toast, text-caption);
|
6298
|
+
}
|
6299
|
+
}
|
6300
|
+
|
6301
|
+
@mixin mc-toast-typography($config) {
|
6302
|
+
.mc-toast {
|
6303
|
+
@include mc-typography-level-to-styles($config, body);
|
6304
|
+
}
|
6305
|
+
|
6306
|
+
.mc-toast__title {
|
6307
|
+
@include mc-typography-level-to-styles($config, $toast-font-title);
|
6308
|
+
}
|
6309
|
+
|
6310
|
+
.mc-toast__caption {
|
6311
|
+
@include mc-typography-level-to-styles($config, $toast-font-caption);
|
6312
|
+
}
|
6313
|
+
}
|
6314
|
+
|
6315
|
+
|
6316
|
+
|
6317
|
+
|
6318
|
+
|
6369
6319
|
|
6370
6320
|
|
6371
6321
|
@mixin mc-tag-color($params) {
|
@@ -6524,95 +6474,6 @@ button {
|
|
6524
6474
|
|
6525
6475
|
|
6526
6476
|
|
6527
|
-
@mixin mc-timezone-option-theme($theme) {
|
6528
|
-
$timezone: map-get(map-get($theme, components), timezone);
|
6529
|
-
|
6530
|
-
.mc-timezone-option__offset,
|
6531
|
-
.mc-timezone-option__city {
|
6532
|
-
color: map-get($timezone, text);
|
6533
|
-
}
|
6534
|
-
|
6535
|
-
.mc-timezone-option__cities {
|
6536
|
-
color: map-get($timezone, caption);
|
6537
|
-
}
|
6538
|
-
}
|
6539
|
-
|
6540
|
-
@mixin mc-timezone-option-typography($config) {
|
6541
|
-
.mc-timezone-option__offset {
|
6542
|
-
@include mc-typography-level-to-styles($config, $timezone-option-font-offset-text);
|
6543
|
-
}
|
6544
|
-
|
6545
|
-
.mc-timezone-option__city {
|
6546
|
-
@include mc-typography-level-to-styles($config, $timezone-option-font-text);
|
6547
|
-
}
|
6548
|
-
|
6549
|
-
.mc-timezone-option__cities {
|
6550
|
-
@include mc-typography-level-to-styles($config, $timezone-option-font-caption);
|
6551
|
-
}
|
6552
|
-
}
|
6553
|
-
|
6554
|
-
|
6555
|
-
|
6556
|
-
|
6557
|
-
|
6558
|
-
@mixin mc-toast-theme($theme) {
|
6559
|
-
$foreground: map-get($theme, foreground);
|
6560
|
-
|
6561
|
-
$toast: map-get(map-get($theme, components), toast);
|
6562
|
-
|
6563
|
-
.mc-toast {
|
6564
|
-
&.mc-toast_info .mc-toast__icon {
|
6565
|
-
color: map-get($toast, icon_info);
|
6566
|
-
}
|
6567
|
-
|
6568
|
-
&.mc-toast_success .mc-toast__icon {
|
6569
|
-
color: map-get($toast, icon_success);
|
6570
|
-
}
|
6571
|
-
|
6572
|
-
&.mc-toast_warning .mc-toast__icon {
|
6573
|
-
color: map-get($toast, icon_warning);
|
6574
|
-
}
|
6575
|
-
|
6576
|
-
&.mc-toast_error .mc-toast__icon {
|
6577
|
-
color: map-get($toast, icon_error);
|
6578
|
-
}
|
6579
|
-
}
|
6580
|
-
|
6581
|
-
.mc-toast__wrapper {
|
6582
|
-
border-color: map-get($toast, border);
|
6583
|
-
|
6584
|
-
background: map-get($toast, background);
|
6585
|
-
|
6586
|
-
box-shadow: map-get($toast, shadow);
|
6587
|
-
}
|
6588
|
-
|
6589
|
-
.mc-toast__title {
|
6590
|
-
color: map-get($toast, text);
|
6591
|
-
}
|
6592
|
-
|
6593
|
-
.mc-toast__caption {
|
6594
|
-
color: map-get($toast, text-caption);
|
6595
|
-
}
|
6596
|
-
}
|
6597
|
-
|
6598
|
-
@mixin mc-toast-typography($config) {
|
6599
|
-
.mc-toast {
|
6600
|
-
@include mc-typography-level-to-styles($config, body);
|
6601
|
-
}
|
6602
|
-
|
6603
|
-
.mc-toast__title {
|
6604
|
-
@include mc-typography-level-to-styles($config, $toast-font-title);
|
6605
|
-
}
|
6606
|
-
|
6607
|
-
.mc-toast__caption {
|
6608
|
-
@include mc-typography-level-to-styles($config, $toast-font-caption);
|
6609
|
-
}
|
6610
|
-
}
|
6611
|
-
|
6612
|
-
|
6613
|
-
|
6614
|
-
|
6615
|
-
|
6616
6477
|
|
6617
6478
|
|
6618
6479
|
@mixin mc-toggle-theme($theme) {
|
@@ -7087,90 +6948,545 @@ button {
|
|
7087
6948
|
|
7088
6949
|
|
7089
6950
|
|
7090
|
-
@mixin
|
7091
|
-
|
6951
|
+
@mixin mosaic-typography($config: null) {
|
6952
|
+
@if $config == null {
|
6953
|
+
$config: mc-typography-config();
|
6954
|
+
}
|
6955
|
+
|
6956
|
+
@include mc-base-typography($config);
|
6957
|
+
|
6958
|
+
$md-config: mc-markdown-typography-config();
|
6959
|
+
@include mc-markdown-base-typography($md-config);
|
6960
|
+
|
6961
|
+
@include mc-alert-typography($config);
|
6962
|
+
@include mc-badge-typography($config);
|
6963
|
+
@include mc-button-typography($config);
|
6964
|
+
@include mc-checkbox-typography($config);
|
6965
|
+
@include mc-datepicker-typography($config);
|
6966
|
+
@include mc-dropdown-typography($config);
|
6967
|
+
@include mc-dl-typography($config);
|
6968
|
+
@include mc-form-field-typography($config);
|
6969
|
+
@include mc-forms-typography($config);
|
6970
|
+
@include mc-input-typography($config);
|
6971
|
+
@include mc-link-typography($config);
|
6972
|
+
@include mc-list-typography($config);
|
6973
|
+
@include mc-loader-overlay-typography($config);
|
6974
|
+
@include mc-markdown-typography($md-config);
|
6975
|
+
@include mc-modal-typography($config);
|
6976
|
+
@include mc-navbar-typography($config);
|
6977
|
+
@include mc-option-typography($config);
|
6978
|
+
@include mc-optgroup-typography($config);
|
6979
|
+
@include mc-popover-typography($config);
|
6980
|
+
@include mc-radio-typography($config);
|
6981
|
+
@include mc-select-typography($config);
|
6982
|
+
@include mc-sidepanel-typography($config);
|
6983
|
+
@include mc-tabs-typography($config);
|
6984
|
+
@include mc-tag-typography($config);
|
6985
|
+
@include mc-textarea-typography($config);
|
6986
|
+
@include mc-timezone-option-typography($config);
|
6987
|
+
@include mc-toast-typography($config);
|
6988
|
+
@include mc-toggle-typography($config);
|
6989
|
+
@include mc-tooltip-typography($config);
|
6990
|
+
@include mc-tree-select-typography($config);
|
6991
|
+
@include mc-tree-typography($config);
|
6992
|
+
@include mc-table-typography($config);
|
6993
|
+
}
|
7092
6994
|
|
7093
|
-
$forms: map-get(map-get($theme, components), forms);
|
7094
6995
|
|
7095
|
-
|
7096
|
-
|
6996
|
+
|
6997
|
+
|
6998
|
+
|
6999
|
+
@mixin mc-pseudo-checkbox-color($states) {
|
7000
|
+
border-color: map-get($states, border);
|
7001
|
+
|
7002
|
+
& .mc-checkbox-checkmark,
|
7003
|
+
& .mc-checkbox-mixedmark {
|
7004
|
+
color: map-get($states, color);
|
7005
|
+
}
|
7006
|
+
|
7007
|
+
&.mc-checked,
|
7008
|
+
&.mc-indeterminate {
|
7009
|
+
border-color: map-get($states, checked, border);
|
7010
|
+
|
7011
|
+
background: map-get($states, checked, background);
|
7012
|
+
}
|
7013
|
+
}
|
7014
|
+
|
7015
|
+
@mixin mc-pseudo-checkbox-theme($theme) {
|
7016
|
+
$foreground: map-get($theme, foreground);
|
7017
|
+
$background: map-get($theme, background);
|
7018
|
+
|
7019
|
+
$checkbox: map-get(map-get($theme, components), checkbox);
|
7020
|
+
|
7021
|
+
.mc-pseudo-checkbox {
|
7022
|
+
&.mc-primary {
|
7023
|
+
@include mc-pseudo-checkbox-color(map-get($checkbox, default));
|
7024
|
+
}
|
7025
|
+
|
7026
|
+
&.mc-error {
|
7027
|
+
@include mc-pseudo-checkbox-color(map-get($checkbox, error));
|
7028
|
+
}
|
7029
|
+
|
7030
|
+
&.mc-disabled,
|
7031
|
+
&.mc-primary.mc-disabled,
|
7032
|
+
&.mc-error.mc-disabled {
|
7033
|
+
border-color: map-get($foreground, border);
|
7034
|
+
|
7035
|
+
background-color: map-get($background, background-disabled);
|
7036
|
+
|
7037
|
+
& .mc-checkbox-checkmark,
|
7038
|
+
& .mc-checkbox-mixedmark {
|
7039
|
+
color: map-get($foreground, text-disabled);
|
7040
|
+
}
|
7041
|
+
}
|
7042
|
+
}
|
7043
|
+
}
|
7044
|
+
|
7045
|
+
|
7046
|
+
|
7047
|
+
@mixin card-type($card) {
|
7048
|
+
box-shadow:
|
7049
|
+
inset -1px 0 0 0 map-get($card, shadow),
|
7050
|
+
inset 0 1px 0 0 map-get($card, shadow),
|
7051
|
+
inset 0 -1px 0 0 map-get($card, shadow);
|
7052
|
+
|
7053
|
+
background-color: map-get($card, background);
|
7054
|
+
|
7055
|
+
border-left-color: map-get($card, vertical-line);
|
7056
|
+
}
|
7057
|
+
|
7058
|
+
@mixin mc-card-theme($theme) {
|
7059
|
+
$foreground: map-get($theme, foreground);
|
7060
|
+
$background: map-get($theme, background);
|
7061
|
+
|
7062
|
+
$card: map-get(map-get($theme, components), card);
|
7063
|
+
$popup: map-get(map-get($theme, components), popup);
|
7064
|
+
|
7065
|
+
$is-dark: map-get($theme, is-dark);
|
7066
|
+
|
7067
|
+
.mc-card {
|
7068
|
+
color: map-get($foreground, text);
|
7069
|
+
|
7070
|
+
&.mc-card_error {
|
7071
|
+
@include card-type(map-get($card, error));
|
7072
|
+
}
|
7073
|
+
|
7074
|
+
&.mc-card_warning {
|
7075
|
+
@include card-type(map-get($card, warning));
|
7076
|
+
}
|
7077
|
+
|
7078
|
+
&.mc-card_success {
|
7079
|
+
@include card-type(map-get($card, success));
|
7080
|
+
}
|
7081
|
+
|
7082
|
+
&.mc-card_info {
|
7083
|
+
@include card-type(map-get($card, info));
|
7084
|
+
}
|
7085
|
+
|
7086
|
+
&.mc-card_white {
|
7087
|
+
background-color: map-get($popup, background);
|
7088
|
+
}
|
7089
|
+
|
7090
|
+
&.mc-selected {
|
7091
|
+
background-color: map-get(map-get($theme, states), selected-color);
|
7092
|
+
}
|
7093
|
+
|
7094
|
+
&:not(.mc-card_readonly):hover {
|
7095
|
+
.mc-card__overlay {
|
7096
|
+
background: map-get($background, overlay-hover);
|
7097
|
+
}
|
7098
|
+
}
|
7099
|
+
|
7100
|
+
&.cdk-keyboard-focused {
|
7101
|
+
box-shadow: 0 0 0 2px map-get(map-get($theme, states), focused-color);
|
7102
|
+
}
|
7103
|
+
}
|
7104
|
+
}
|
7105
|
+
|
7106
|
+
|
7107
|
+
|
7108
|
+
@mixin mc-divider-theme($theme) {
|
7109
|
+
$divider: map-get(map-get($theme, components), divider);
|
7110
|
+
|
7111
|
+
.mc-divider_horizontal {
|
7112
|
+
border-top-color: map-get($divider, color);
|
7113
|
+
}
|
7114
|
+
|
7115
|
+
.mc-divider_vertical {
|
7116
|
+
border-right-color: map-get($divider, color);
|
7117
|
+
}
|
7118
|
+
}
|
7119
|
+
|
7120
|
+
|
7121
|
+
|
7122
|
+
|
7123
|
+
|
7124
|
+
|
7125
|
+
@mixin mc-icon-theme($theme) {
|
7126
|
+
$foreground: map-get($theme, foreground);
|
7127
|
+
$second: map-get($theme, second);
|
7128
|
+
|
7129
|
+
$icon: map-get(map-get($theme, components), icon);
|
7130
|
+
|
7131
|
+
$primary: map-get($icon, primary);
|
7132
|
+
$secondary: map-get($icon, secondary);
|
7133
|
+
$error: map-get($icon, error);
|
7134
|
+
$success: map-get($icon, success);
|
7135
|
+
$warning: map-get($icon, warning);
|
7136
|
+
$info: map-get($icon, info);
|
7137
|
+
|
7138
|
+
// Дефолтные серые иконки default-icon: лупа в поле, иконки дропдаунов v, все иконки вне полей.
|
7139
|
+
.mc-icon {
|
7140
|
+
color: mc-color($foreground, icon);
|
7141
|
+
|
7142
|
+
&.mc-primary {
|
7143
|
+
color: map-get($primary, default);
|
7144
|
+
}
|
7145
|
+
|
7146
|
+
&.mc-second {
|
7147
|
+
color: map-get($secondary, default);
|
7148
|
+
}
|
7149
|
+
|
7150
|
+
&.mc-error {
|
7151
|
+
color: map-get($error, default);
|
7152
|
+
}
|
7153
|
+
|
7154
|
+
|
7155
|
+
&.mc-info {
|
7156
|
+
color: map-get($info, default);
|
7157
|
+
}
|
7158
|
+
|
7159
|
+
&.mc-warning {
|
7160
|
+
color: map-get($warning, default);
|
7161
|
+
}
|
7162
|
+
|
7163
|
+
&.mc-success {
|
7164
|
+
color: map-get($success, default);
|
7165
|
+
}
|
7166
|
+
|
7167
|
+
&[disabled],
|
7168
|
+
&.mc-disabled {
|
7169
|
+
cursor: default;
|
7170
|
+
}
|
7097
7171
|
}
|
7098
7172
|
|
7099
|
-
|
7100
|
-
|
7173
|
+
// Облегченные серые иконки less-contrast-icon нужны тогда, когда действие, которое они делают не дефолтное и
|
7174
|
+
// не самое важное. Не используются вне инпутов или селектов.
|
7175
|
+
.mc-icon.mc-icon_light {
|
7176
|
+
&.mc-primary {
|
7177
|
+
&:active,
|
7178
|
+
&.mc-active {
|
7179
|
+
color: map-get($primary, state-active);
|
7180
|
+
}
|
7181
|
+
|
7182
|
+
&:not([disabled], .mc-disabled):hover {
|
7183
|
+
color: map-get($primary, state-hover);
|
7184
|
+
}
|
7185
|
+
|
7186
|
+
&[disabled],
|
7187
|
+
&.mc-disabled {
|
7188
|
+
color: map-get($primary, state-disabled);
|
7189
|
+
}
|
7190
|
+
}
|
7191
|
+
|
7192
|
+
&.mc-second {
|
7193
|
+
&:active,
|
7194
|
+
&.mc-active {
|
7195
|
+
color: map-get($secondary, state-active);
|
7196
|
+
}
|
7197
|
+
|
7198
|
+
&:not([disabled], .mc-disabled):hover {
|
7199
|
+
color: map-get($secondary, state-hover);
|
7200
|
+
}
|
7201
|
+
|
7202
|
+
&[disabled],
|
7203
|
+
&.mc-disabled {
|
7204
|
+
color: map-get($secondary, state-disabled);
|
7205
|
+
}
|
7206
|
+
}
|
7207
|
+
|
7208
|
+
&.mc-error {
|
7209
|
+
&:active,
|
7210
|
+
&.mc-active {
|
7211
|
+
color: map-get($error, state-active);
|
7212
|
+
}
|
7213
|
+
|
7214
|
+
&:not([disabled], .mc-disabled):hover {
|
7215
|
+
color: map-get($error, state-hover);
|
7216
|
+
}
|
7217
|
+
|
7218
|
+
&[disabled],
|
7219
|
+
&.mc-disabled {
|
7220
|
+
color: map-get($error, state-disabled);
|
7221
|
+
}
|
7222
|
+
}
|
7223
|
+
|
7224
|
+
&.mc-info {
|
7225
|
+
&:active,
|
7226
|
+
&.mc-active {
|
7227
|
+
color: map-get($info, state-active);
|
7228
|
+
}
|
7229
|
+
|
7230
|
+
&:not([disabled], .mc-disabled):hover {
|
7231
|
+
color: map-get($info, state-hover);
|
7232
|
+
}
|
7233
|
+
|
7234
|
+
&[disabled],
|
7235
|
+
&.mc-disabled {
|
7236
|
+
color: map-get($info, state-disabled);
|
7237
|
+
}
|
7238
|
+
}
|
7239
|
+
|
7240
|
+
&.mc-warning {
|
7241
|
+
&:active,
|
7242
|
+
&.mc-active {
|
7243
|
+
color: map-get($warning, state-active);
|
7244
|
+
}
|
7245
|
+
|
7246
|
+
&:not([disabled], .mc-disabled):hover {
|
7247
|
+
color: map-get($warning, state-hover);
|
7248
|
+
}
|
7249
|
+
|
7250
|
+
&[disabled],
|
7251
|
+
&.mc-disabled {
|
7252
|
+
color: map-get($warning, state-disabled);
|
7253
|
+
}
|
7254
|
+
}
|
7255
|
+
|
7256
|
+
&.mc-success {
|
7257
|
+
&:active,
|
7258
|
+
&.mc-active {
|
7259
|
+
color: map-get($success, state-active);
|
7260
|
+
}
|
7261
|
+
|
7262
|
+
&:not([disabled], .mc-disabled):hover {
|
7263
|
+
color: map-get($success, state-hover);
|
7264
|
+
}
|
7265
|
+
|
7266
|
+
&[disabled],
|
7267
|
+
&.mc-disabled {
|
7268
|
+
color: map-get($success, state-disabled);
|
7269
|
+
}
|
7270
|
+
}
|
7271
|
+
}
|
7272
|
+
}
|
7273
|
+
|
7274
|
+
|
7275
|
+
|
7276
|
+
|
7277
|
+
|
7278
|
+
|
7279
|
+
|
7280
|
+
|
7281
|
+
|
7282
|
+
|
7283
|
+
|
7284
|
+
|
7285
|
+
|
7286
|
+
@mixin mc-markdown-theme($theme) {
|
7287
|
+
$foreground: map-get($theme, foreground);
|
7288
|
+
$background: map-get($theme, background);
|
7289
|
+
|
7290
|
+
$markdown: map-get(map-get($theme, components), markdown);
|
7291
|
+
|
7292
|
+
.mc-markdown {
|
7293
|
+
color: map-get($foreground, text);
|
7294
|
+
background: map-get($background, background);;
|
7295
|
+
|
7296
|
+
.mc-markdown__h1 {
|
7297
|
+
color: map-get($markdown, h1-color);
|
7298
|
+
}
|
7299
|
+
|
7300
|
+
.mc-markdown__h2 {
|
7301
|
+
color: map-get($markdown, h2-color);
|
7302
|
+
}
|
7303
|
+
|
7304
|
+
.mc-markdown__h3 {
|
7305
|
+
color: map-get($markdown, h3-color);
|
7306
|
+
}
|
7307
|
+
|
7308
|
+
.mc-markdown__h4 {
|
7309
|
+
color: map-get($markdown, h4-color);
|
7310
|
+
}
|
7311
|
+
|
7312
|
+
.mc-markdown__h5 {
|
7313
|
+
color: map-get($markdown, h5-color);
|
7314
|
+
}
|
7315
|
+
|
7316
|
+
.mc-markdown__h6 {
|
7317
|
+
color: map-get($markdown, h6-color);
|
7318
|
+
}
|
7319
|
+
|
7320
|
+
.mc-markdown__p {
|
7321
|
+
color: map-get($markdown, p-color);
|
7322
|
+
}
|
7323
|
+
|
7324
|
+
.mc-markdown__ul,
|
7325
|
+
.mc-markdown__ol {
|
7326
|
+
color: map-get($markdown, list-color);
|
7327
|
+
}
|
7328
|
+
|
7329
|
+
.mc-markdown__blockquote {
|
7330
|
+
color: map-get($markdown, blockquote-text);
|
7331
|
+
background: map-get($markdown, blockquote-background);
|
7332
|
+
border-color: map-get($markdown, blockquote-border);
|
7333
|
+
border-left-color: map-get($markdown, blockquote-line);
|
7334
|
+
}
|
7335
|
+
|
7336
|
+
.mc-markdown__pre,
|
7337
|
+
.mc-markdown__p > .mc-markdown__code {
|
7338
|
+
color: map-get($markdown, code-text);
|
7339
|
+
background-color: map-get($markdown, code-background);
|
7340
|
+
border-color: map-get($markdown, code-border);
|
7341
|
+
}
|
7342
|
+
|
7343
|
+
.mc-markdown__a {
|
7344
|
+
@include md-link-theme($theme);
|
7345
|
+
}
|
7346
|
+
|
7347
|
+
.mc-markdown__img + em {
|
7348
|
+
color: map-get($markdown, image-caption-text);
|
7349
|
+
}
|
7350
|
+
|
7351
|
+
.mc-markdown__hr {
|
7352
|
+
border-bottom-color: map-get($markdown, hr-color);
|
7353
|
+
}
|
7354
|
+
|
7355
|
+
.mc-markdown__table > .mc-markdown__thead {
|
7356
|
+
color: map-get($markdown, table-header);
|
7357
|
+
border-bottom-color: map-get($markdown, table-border);
|
7358
|
+
}
|
7359
|
+
|
7360
|
+
.mc-markdown__table > .mc-markdown__tbody {
|
7361
|
+
color: map-get($markdown, table-body);
|
7362
|
+
}
|
7101
7363
|
}
|
7102
7364
|
}
|
7103
7365
|
|
7104
|
-
|
7105
|
-
|
7106
|
-
|
7366
|
+
|
7367
|
+
// based on mc-link
|
7368
|
+
|
7369
|
+
@mixin md-link($foreground, $markdown) {
|
7370
|
+
display: inline-block;
|
7371
|
+
|
7372
|
+
color: map-get($markdown, link-text);
|
7373
|
+
text-decoration: none;
|
7374
|
+
cursor: pointer;
|
7375
|
+
|
7376
|
+
border-bottom-style: solid;
|
7377
|
+
border-bottom-width: 1px;
|
7378
|
+
border-bottom-color: map-get($markdown, link-border-bottom);
|
7379
|
+
|
7380
|
+
transition: color ease-out 300ms;
|
7381
|
+
|
7382
|
+
&:focus {
|
7383
|
+
outline: none;
|
7107
7384
|
}
|
7108
7385
|
|
7109
|
-
|
7110
|
-
|
7386
|
+
/* stylelint-disable no-descending-specificity */
|
7387
|
+
&:hover {
|
7388
|
+
color: map-get($markdown, link-state-hover-text);
|
7389
|
+
transition: color 0ms;
|
7390
|
+
border-bottom-color: map-get($markdown, link-state-hover-border-bottom);
|
7391
|
+
}
|
7392
|
+
|
7393
|
+
&:active {
|
7394
|
+
color: map-get($markdown, link-state-active-text);
|
7395
|
+
}
|
7396
|
+
}
|
7397
|
+
|
7398
|
+
|
7399
|
+
@mixin md-link-theme($theme) {
|
7400
|
+
$foreground: map-get($theme, foreground);
|
7401
|
+
$markdown: map-get(map-get($theme, components), markdown);
|
7402
|
+
|
7403
|
+
&:visited {
|
7404
|
+
color: map-get($markdown, link-state-visited-text);
|
7405
|
+
border-bottom-color: map-get($markdown, link-state-visited-border-bottom);
|
7111
7406
|
}
|
7407
|
+
|
7408
|
+
@include md-link($foreground, $markdown);
|
7112
7409
|
}
|
7113
7410
|
|
7114
7411
|
|
7115
7412
|
|
7116
7413
|
|
7117
7414
|
|
7118
|
-
@mixin mc-option-theme($theme) {
|
7119
|
-
$foreground: map-get($theme, foreground);
|
7120
|
-
$background: map-get($theme, background);
|
7121
7415
|
|
7416
|
+
@mixin mc-progress-bar-theme($theme) {
|
7122
7417
|
$primary: map-get($theme, primary);
|
7418
|
+
$second: map-get($theme, second);
|
7419
|
+
$error: map-get($theme, error);
|
7123
7420
|
|
7124
|
-
|
7125
|
-
color: map-get($foreground, text);
|
7421
|
+
$progress-bar: map-get(map-get($theme, components), progress-bar);
|
7126
7422
|
|
7127
|
-
|
7128
|
-
|
7129
|
-
background: map-get($background, overlay-hover);
|
7130
|
-
}
|
7131
|
-
}
|
7423
|
+
.mc-progress-bar {
|
7424
|
+
background-color: map-get($progress-bar, background);
|
7132
7425
|
|
7133
|
-
&.mc-
|
7134
|
-
|
7426
|
+
&.mc-primary .mc-progress-bar__line {
|
7427
|
+
background-color: mc-color($primary);
|
7135
7428
|
}
|
7136
7429
|
|
7137
|
-
&.mc-
|
7138
|
-
background:
|
7430
|
+
&.mc-second .mc-progress-bar__line {
|
7431
|
+
background-color: mc-color($second);
|
7139
7432
|
}
|
7140
7433
|
|
7141
|
-
&.mc-
|
7142
|
-
background:
|
7143
|
-
|
7144
|
-
color: map-get($foreground, text-disabled);
|
7434
|
+
&.mc-error .mc-progress-bar__line {
|
7435
|
+
background-color: mc-color($error);
|
7145
7436
|
}
|
7146
7437
|
}
|
7147
7438
|
}
|
7148
7439
|
|
7149
|
-
|
7150
|
-
|
7151
|
-
|
7440
|
+
|
7441
|
+
|
7442
|
+
|
7443
|
+
@mixin mc-progress-spinner-theme($theme) {
|
7444
|
+
$primary: map-get($theme, primary);
|
7445
|
+
$second: map-get($theme, second);
|
7446
|
+
$error: map-get($theme, error);
|
7447
|
+
|
7448
|
+
.mc-progress-spinner {
|
7449
|
+
&.mc-primary .mc-progress-spinner__circle {
|
7450
|
+
stroke: mc-color($primary);
|
7451
|
+
}
|
7452
|
+
|
7453
|
+
&.mc-second .mc-progress-spinner__circle {
|
7454
|
+
stroke: mc-color($second);
|
7455
|
+
}
|
7456
|
+
|
7457
|
+
&.mc-error .mc-progress-spinner__circle {
|
7458
|
+
stroke: mc-color($error);
|
7459
|
+
}
|
7152
7460
|
}
|
7153
7461
|
}
|
7154
7462
|
|
7155
7463
|
|
7156
7464
|
|
7157
7465
|
|
7466
|
+
@mixin mc-splitter-theme($theme) {
|
7467
|
+
$background: map-get($theme, background);
|
7158
7468
|
|
7159
|
-
|
7160
|
-
|
7469
|
+
.mc-gutter {
|
7470
|
+
cursor: col-resize;
|
7161
7471
|
|
7162
|
-
|
7163
|
-
|
7164
|
-
|
7472
|
+
&:hover,
|
7473
|
+
&.mc-gutter_dragged {
|
7474
|
+
background-color: map-get($background, background-disabled);
|
7475
|
+
}
|
7165
7476
|
|
7166
|
-
|
7167
|
-
|
7477
|
+
&.mc-gutter_vertical {
|
7478
|
+
cursor: row-resize;
|
7479
|
+
}
|
7480
|
+
|
7481
|
+
&[disabled] {
|
7482
|
+
background-color: mc-color($background, overlay-disabled);
|
7483
|
+
|
7484
|
+
cursor: default;
|
7485
|
+
}
|
7168
7486
|
}
|
7169
|
-
}
|
7170
7487
|
|
7171
|
-
|
7172
|
-
|
7173
|
-
@include mc-typography-level-to-styles($config, $optgroup-font-default);
|
7488
|
+
.mc-gutter-ghost {
|
7489
|
+
background: mc-color($background, overlay-disabled);
|
7174
7490
|
}
|
7175
7491
|
}
|
7176
7492
|
|
@@ -7178,6 +7494,19 @@ button {
|
|
7178
7494
|
|
7179
7495
|
|
7180
7496
|
|
7497
|
+
|
7498
|
+
|
7499
|
+
|
7500
|
+
|
7501
|
+
|
7502
|
+
|
7503
|
+
|
7504
|
+
|
7505
|
+
|
7506
|
+
|
7507
|
+
|
7508
|
+
|
7509
|
+
|
7181
7510
|
@mixin mc-option-action-theme($theme) {
|
7182
7511
|
$foreground: map-get($theme, foreground);
|
7183
7512
|
$background: map-get($theme, background);
|
@@ -7244,44 +7573,6 @@ button {
|
|
7244
7573
|
|
7245
7574
|
|
7246
7575
|
|
7247
|
-
|
7248
|
-
@mixin mc-dl-theme($theme) {
|
7249
|
-
$dl: map-get(map-get($theme, components), dl);
|
7250
|
-
|
7251
|
-
.mc-dt {
|
7252
|
-
color: map-get($dl, dt);
|
7253
|
-
}
|
7254
|
-
|
7255
|
-
.mc-dd {
|
7256
|
-
color: map-get($dl, dd);
|
7257
|
-
}
|
7258
|
-
}
|
7259
|
-
|
7260
|
-
@mixin mc-dl-typography($config) {
|
7261
|
-
.mc-dl {
|
7262
|
-
& .mc-dt {
|
7263
|
-
@include mc-typography-level-to-styles($config, $description-list-font-horizontal-dt);
|
7264
|
-
}
|
7265
|
-
|
7266
|
-
& .mc-dd {
|
7267
|
-
@include mc-typography-level-to-styles($config, $description-list-font-horizontal-dd);
|
7268
|
-
}
|
7269
|
-
}
|
7270
|
-
|
7271
|
-
.mc-dl.mc-dl_vertical {
|
7272
|
-
& .mc-dt {
|
7273
|
-
@include mc-typography-level-to-styles($config, $description-list-font-vertical-dt);
|
7274
|
-
}
|
7275
|
-
|
7276
|
-
& .mc-dd {
|
7277
|
-
@include mc-typography-level-to-styles($config, $description-list-font-vertical-dd);
|
7278
|
-
}
|
7279
|
-
}
|
7280
|
-
}
|
7281
|
-
|
7282
|
-
|
7283
|
-
|
7284
|
-
|
7285
7576
|
@mixin mosaic-theme($theme) {
|
7286
7577
|
@include mc-core-theme($theme);
|
7287
7578
|
|