@evotor-dev/ui-kit 6.4.0 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/bundles/evotor-dev-ui-kit.umd.js +88 -101
- package/bundles/evotor-dev-ui-kit.umd.js.map +1 -1
- package/esm2015/lib/components/evo-autocomplete/components/evo-autocomplete.component.js +1 -1
- package/esm2015/lib/components/evo-badge/evo-badge.component.js +1 -1
- package/esm2015/lib/components/evo-banner/evo-banner.component.js +7 -10
- package/esm2015/lib/components/evo-banner/evo-banner.module.js +7 -11
- package/esm2015/lib/components/evo-button/evo-button.component.js +1 -1
- package/esm2015/lib/components/evo-chip/evo-chip.component.js +1 -1
- package/esm2015/lib/components/evo-control-error/evo-control-error.component.js +1 -1
- package/esm2015/lib/components/evo-control-label/evo-control-label.component.js +1 -1
- package/esm2015/lib/components/evo-counter/evo-counter.component.js +1 -1
- package/esm2015/lib/components/evo-datepicker/evo-datepicker.component.js +1 -1
- package/esm2015/lib/components/evo-icon/evo-icon.component.js +15 -11
- package/esm2015/lib/components/evo-icon-button/evo-icon-button.component.js +1 -1
- package/esm2015/lib/components/evo-input/evo-input.component.js +1 -1
- package/esm2015/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.js +1 -1
- package/esm2015/lib/components/evo-loader/evo-loader.component.js +4 -1
- package/esm2015/lib/components/evo-popover/evo-popover.component.js +1 -1
- package/esm2015/lib/components/evo-segmented-bar/evo-segmented-bar/evo-segmented-bar.component.js +6 -5
- package/esm2015/lib/components/evo-segmented-bar/evo-segmented-bar-button/evo-segmented-bar-button.component.js +4 -1
- package/esm2015/lib/components/evo-segmented-bar/evo-segmented-bar.module.js +9 -24
- package/esm2015/lib/components/evo-select/evo-select.component.js +1 -1
- package/esm2015/lib/components/evo-sidebar/evo-sidebar-header/evo-sidebar-header.component.js +1 -1
- package/esm2015/lib/components/evo-submenu/evo-submenu.component.js +19 -16
- package/esm2015/lib/components/evo-submenu/evo-submenu.module.js +8 -18
- package/esm2015/lib/components/evo-switcher/evo-switcher.component.js +1 -1
- package/esm2015/lib/components/evo-textarea/evo-textarea.component.js +1 -1
- package/fesm2015/evotor-dev-ui-kit.js +85 -103
- package/fesm2015/evotor-dev-ui-kit.js.map +1 -1
- package/lib/components/evo-icon/evo-icon.component.d.ts +7 -7
- package/package.json +1 -1
- package/styles/components/evo-button.scss +1 -1
- package/styles/components/evo-chip.scss +1 -3
- package/styles/components/evo-title.scss +1 -1
- package/styles/globals.scss +17 -6
- package/styles/main.scss +6 -1
- package/styles/mixins/_evo-input-mixins.scss +74 -0
- package/styles/mixins/_evo-text-caption-mixin.scss +26 -0
- package/styles/mixins/_evo-text-field-mixin.scss +36 -0
- package/styles/mixins/_evo-text-header-mixin.scss +62 -0
- package/styles/mixins/_evo-text-mobile-header-mixin.scss +34 -0
- package/styles/mixins/_evo-text-paragraph-mixin.scss +34 -0
- package/styles/mixins/_evo-text-subtitle-mixin.scss +20 -0
- package/styles/mixins/_evo-text-tips-mixin.scss +9 -0
- package/styles/mixins/_media-mixins.scss +38 -0
- package/styles/mixins.scss +26 -142
- package/styles/partials/_fonts.scss +2 -0
- package/styles/partials/_typography.scss +121 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
2
|
import { EvoIconsLibrary } from './classes/evo-icons-library';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class EvoIconComponent
|
|
6
|
-
private sanitizer;
|
|
7
|
-
private iconsService;
|
|
8
|
-
shape: string;
|
|
4
|
+
export declare class EvoIconComponent {
|
|
5
|
+
private readonly sanitizer;
|
|
6
|
+
private readonly iconsService;
|
|
7
|
+
set shape(shape: string);
|
|
8
|
+
get shape(): string;
|
|
9
9
|
svgWidth: number;
|
|
10
10
|
svgHeight: number;
|
|
11
11
|
svgViewBox: string;
|
|
12
|
-
get viewBox(): string;
|
|
13
12
|
content: SafeHtml;
|
|
13
|
+
get viewBox(): string;
|
|
14
14
|
hostClass: boolean;
|
|
15
15
|
get classes(): string[];
|
|
16
|
+
private _shape;
|
|
16
17
|
constructor(sanitizer: DomSanitizer, iconsService: EvoIconsLibrary);
|
|
17
|
-
ngOnInit(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoIconComponent, never>;
|
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<EvoIconComponent, "evo-icon", never, { "shape": "shape"; "svgWidth": "svgWidth"; "svgHeight": "svgHeight"; "svgViewBox": "svgViewBox"; }, {}, never, never>;
|
|
20
20
|
}
|
package/package.json
CHANGED
package/styles/globals.scss
CHANGED
|
@@ -1,36 +1,47 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
1
3
|
* {
|
|
2
4
|
box-sizing: border-box;
|
|
3
5
|
}
|
|
4
6
|
|
|
5
7
|
body {
|
|
8
|
+
--evo-font: #{$font};
|
|
9
|
+
--evo-font-secondary: #{$font-secondary};
|
|
10
|
+
|
|
6
11
|
min-width: 320px;
|
|
7
12
|
overflow-x: hidden;
|
|
8
13
|
color: $color-text;
|
|
9
14
|
font-weight: 400;
|
|
10
15
|
font-size: 14px;
|
|
11
|
-
font-family:
|
|
16
|
+
font-family: var(--evo-font);
|
|
12
17
|
line-height: 1.4;
|
|
13
18
|
background-color: $color-white;
|
|
14
19
|
-moz-osx-font-smoothing: grayscale;
|
|
15
20
|
-webkit-font-smoothing: antialiased;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
input,
|
|
23
|
+
input,
|
|
24
|
+
button,
|
|
25
|
+
select,
|
|
26
|
+
textarea {
|
|
19
27
|
font-size: inherit;
|
|
20
28
|
font-family: inherit;
|
|
21
|
-
line-height: inherit
|
|
29
|
+
line-height: inherit;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
|
-
a,
|
|
32
|
+
a,
|
|
33
|
+
button {
|
|
25
34
|
outline: none !important;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
a {
|
|
29
38
|
color: $color-link;
|
|
30
39
|
cursor: pointer !important;
|
|
31
|
-
transition: color .3s;
|
|
40
|
+
transition: color 0.3s;
|
|
32
41
|
|
|
33
|
-
&,
|
|
42
|
+
&,
|
|
43
|
+
&:hover,
|
|
44
|
+
&:focus {
|
|
34
45
|
text-decoration: none;
|
|
35
46
|
}
|
|
36
47
|
}
|
package/styles/main.scss
CHANGED
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
@import 'variables.scss';
|
|
4
4
|
@import 'mixins.scss';
|
|
5
5
|
@import 'globals.scss';
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
/* partials*/
|
|
8
|
+
@import './partials/fonts';
|
|
9
|
+
@import './partials/typography';
|
|
10
|
+
|
|
11
|
+
/* components*/
|
|
7
12
|
@import './components/evo-grid.scss';
|
|
8
13
|
@import './components/evo-alert.scss';
|
|
9
14
|
@import './components/evo-button-loader.scss';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* size: normal | small
|
|
5
|
+
* theme: default | rounded
|
|
6
|
+
*/
|
|
7
|
+
@mixin evo-input($size: normal, $theme: default) {
|
|
8
|
+
--evo-input-height: 48px;
|
|
9
|
+
--evo-input-border-radius: 4px;
|
|
10
|
+
--evo-input-font-size: 16px;
|
|
11
|
+
|
|
12
|
+
@if ($size == small) {
|
|
13
|
+
@if ($theme == default) {
|
|
14
|
+
--evo-input-height: 32px;
|
|
15
|
+
} @else if ($theme == rounded) {
|
|
16
|
+
--evo-input-font-size: 14px;
|
|
17
|
+
--evo-input-height: 40px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@if ($theme == rounded) {
|
|
22
|
+
--evo-input-border-radius: 256px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
height: var(--evo-input-height);
|
|
28
|
+
color: $color-text;
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
font-size: var(--evo-input-font-size);
|
|
31
|
+
font-family: var(--evo-font);
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
background-color: $color-white;
|
|
34
|
+
border: 1px solid $color-disabled;
|
|
35
|
+
border-radius: var(--evo-input-border-radius);
|
|
36
|
+
outline: none;
|
|
37
|
+
transition: color 0.3s, box-shadow 0.3s, background 0.3s, border 0.3s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin evo-input-focused {
|
|
41
|
+
border: solid 1px $color-secondary-lighter;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin evo-input-disabled {
|
|
45
|
+
color: $color-disabled-text !important;
|
|
46
|
+
background-color: $color-background-grey-light !important;
|
|
47
|
+
border: 1px solid $color-disabled-light !important;
|
|
48
|
+
cursor: default;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
55
|
+
@mixin evo-input-valid {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin evo-input-invalid {
|
|
59
|
+
border-color: $color-error !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin evo-input-states {
|
|
63
|
+
&_focused {
|
|
64
|
+
@include evo-input-focused;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&_disabled {
|
|
68
|
+
@include evo-input-disabled;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&_invalid {
|
|
72
|
+
@include evo-input-invalid;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-caption-styles: c1, c2, c3;
|
|
4
|
+
|
|
5
|
+
@mixin evo-text-caption($style) {
|
|
6
|
+
@if not list.index($evo-text-caption-styles, $style) {
|
|
7
|
+
@error "#{$style} is not a valid caption style. Use one of #{$evo-text-caption-styles}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
|
|
13
|
+
@if $style == c1 {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
line-height: 18px;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
} @else if $style == c2 {
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
line-height: 18px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
} @else if $style == c3 {
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
line-height: 18px;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-field-typo-styles: label, placeholder, placeholder-bold, hint, error;
|
|
4
|
+
|
|
5
|
+
@mixin evo-text-field($style) {
|
|
6
|
+
@if not list.index($evo-field-typo-styles, $style) {
|
|
7
|
+
@error "#{$style} is not a valid field typo style. Use one of #{$evo-field-typo-styles}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
|
|
13
|
+
@if $style == label {
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 22px;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
} @else if $style == placeholder {
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
} @else if $style == placeholder-bold {
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
line-height: 24px;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
} @else if $style == hint {
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 22px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
font-style: italic;
|
|
30
|
+
} @else if $style == error {
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 22px;
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
font-style: italic;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@import 'media-mixins';
|
|
3
|
+
@import 'evo-text-mobile-header-mixin';
|
|
4
|
+
|
|
5
|
+
$evo-text-header-styles: h1, h2, h3, h4, h5;
|
|
6
|
+
|
|
7
|
+
@mixin evo-text-header($style, $autoMobile: true) {
|
|
8
|
+
@if not list.index($evo-text-header-styles, $style) {
|
|
9
|
+
@error "#{$style} is not a valid header style. Use one of #{$evo-text-header-styles}";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
font-family: var(--evo-font-secondary);
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
|
|
16
|
+
@if $style == h1 {
|
|
17
|
+
font-size: 36px;
|
|
18
|
+
line-height: 44px;
|
|
19
|
+
|
|
20
|
+
@if $autoMobile {
|
|
21
|
+
@include media-mobile {
|
|
22
|
+
@include evo-text-mobile-header(h1);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
} @else if $style == h2 {
|
|
26
|
+
font-size: 30px;
|
|
27
|
+
line-height: 38px;
|
|
28
|
+
|
|
29
|
+
@if $autoMobile {
|
|
30
|
+
@include media-mobile {
|
|
31
|
+
@include evo-text-mobile-header(h2);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} @else if $style == h3 {
|
|
35
|
+
font-size: 24px;
|
|
36
|
+
line-height: 32px;
|
|
37
|
+
|
|
38
|
+
@if $autoMobile {
|
|
39
|
+
@include media-mobile {
|
|
40
|
+
@include evo-text-mobile-header(h3);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
} @else if $style == h4 {
|
|
44
|
+
font-size: 18px;
|
|
45
|
+
line-height: 26px;
|
|
46
|
+
|
|
47
|
+
@if $autoMobile {
|
|
48
|
+
@include media-mobile {
|
|
49
|
+
@include evo-text-mobile-header(h4);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} @else if $style == h5 {
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
line-height: 24px;
|
|
55
|
+
|
|
56
|
+
@if $autoMobile {
|
|
57
|
+
@include media-mobile {
|
|
58
|
+
@include evo-text-mobile-header(h5);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-mobile-header-styles: h1, h2, h3, h4, h5;
|
|
4
|
+
|
|
5
|
+
@mixin evo-text-mobile-header($style) {
|
|
6
|
+
@if not list.index($evo-text-mobile-header-styles, $style) {
|
|
7
|
+
@error "#{$style} is not a valid header mobile style. Use one of #{$evo-text-mobile-header-styles}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font-secondary);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
|
|
13
|
+
@if $style == h1 {
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
font-size: 30px;
|
|
16
|
+
line-height: 38px;
|
|
17
|
+
} @else if $style == h2 {
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
font-size: 24px;
|
|
20
|
+
line-height: 32px;
|
|
21
|
+
} @else if $style == h3 {
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
line-height: 28px;
|
|
25
|
+
} @else if $style == h4 {
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
line-height: 24px;
|
|
29
|
+
} @else if $style == h5 {
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 22px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-paragraph-styles: p1, p2, p3, p4, p5, tips;
|
|
4
|
+
|
|
5
|
+
@mixin evo-text-paragraph($style) {
|
|
6
|
+
@if not list.index($evo-text-paragraph-styles, $style) {
|
|
7
|
+
@error "#{$style} is not a valid paragraph style. Use one of #{$evo-text-paragraph-styles}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
|
|
13
|
+
@if $style == p1 {
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 22px;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
} @else if $style == p2 {
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
line-height: 22px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
} @else if $style == p3 {
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 24px;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
} @else if $style == p4 {
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 24px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
} @else if $style == p5 {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
line-height: 24px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
|
|
3
|
+
$evo-text-subtitle-styles: s1, s2;
|
|
4
|
+
|
|
5
|
+
@mixin evo-text-subtitle($style) {
|
|
6
|
+
@if not list.index($evo-text-subtitle-styles, $style) {
|
|
7
|
+
@error "#{$style} is not a valid caption style. Use one of #{$evo-text-subtitle-styles}";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
font-family: var(--evo-font);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-size: 18px;
|
|
13
|
+
line-height: 26px;
|
|
14
|
+
|
|
15
|
+
@if $style == s1 {
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
} @else if $style == s2 {
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
@mixin media-mobile {
|
|
4
|
+
@media (max-width: #{$media-tablet - 1}) {
|
|
5
|
+
@content;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* media mixins - mobile first*/
|
|
10
|
+
@mixin media-tablet {
|
|
11
|
+
@media (min-width: #{$media-tablet}) {
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin media-desktop-s {
|
|
17
|
+
@media (min-width: #{$media-desktop-s}) {
|
|
18
|
+
@content;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin media-desktop-m {
|
|
23
|
+
@media (min-width: #{$media-desktop-m}) {
|
|
24
|
+
@content;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin media-desktop-l {
|
|
29
|
+
@media (min-width: #{$media-desktop-l}) {
|
|
30
|
+
@content;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin media-desktop-xl {
|
|
35
|
+
@media (min-width: #{$media-desktop-xl}) {
|
|
36
|
+
@content;
|
|
37
|
+
}
|
|
38
|
+
}
|
package/styles/mixins.scss
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
@import 'variables.scss';
|
|
2
|
+
@import './mixins/media-mixins';
|
|
3
|
+
@import './mixins/evo-input-mixins';
|
|
4
|
+
@import 'mixins/evo-text-caption-mixin';
|
|
5
|
+
@import 'mixins/evo-text-header-mixin';
|
|
6
|
+
@import 'mixins/evo-text-mobile-header-mixin';
|
|
7
|
+
@import 'mixins/evo-text-paragraph-mixin';
|
|
8
|
+
@import 'mixins/evo-text-field-mixin';
|
|
9
|
+
@import 'mixins/evo-text-subtitle-mixin';
|
|
10
|
+
@import 'mixins/evo-text-tips-mixin';
|
|
2
11
|
|
|
3
12
|
/* @include clearfix();*/
|
|
4
13
|
@mixin clearfix() {
|
|
@@ -34,176 +43,51 @@
|
|
|
34
43
|
}
|
|
35
44
|
}
|
|
36
45
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@content;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* media mixins - mobile first*/
|
|
44
|
-
@mixin media-tablet {
|
|
45
|
-
@media (min-width: #{$media-tablet}) {
|
|
46
|
-
@content;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@mixin media-desktop-s {
|
|
51
|
-
@media (min-width: #{$media-desktop-s}) {
|
|
52
|
-
@content;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@mixin media-desktop-m {
|
|
57
|
-
@media (min-width: #{$media-desktop-m}) {
|
|
58
|
-
@content;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@mixin media-desktop-l {
|
|
63
|
-
@media (min-width: #{$media-desktop-l}) {
|
|
64
|
-
@content;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@mixin media-desktop-xl {
|
|
69
|
-
@media (min-width: #{$media-desktop-xl}) {
|
|
70
|
-
@content;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/*title mixins*/
|
|
46
|
+
/* title mixins*/
|
|
47
|
+
/* @deprecated use evo-text-* mixins*/
|
|
75
48
|
@mixin title {
|
|
76
|
-
color: #
|
|
49
|
+
color: #333f48;
|
|
77
50
|
font-weight: 700;
|
|
78
|
-
font-family:
|
|
51
|
+
font-family: var(--evo-font-secondary);
|
|
79
52
|
}
|
|
80
53
|
|
|
54
|
+
/* @deprecated use evo-text-* mixins*/
|
|
81
55
|
@mixin h1 {
|
|
82
|
-
|
|
83
|
-
line-height: 38px;
|
|
84
|
-
|
|
85
|
-
@include media-desktop-s {
|
|
86
|
-
font-size: 36px;
|
|
87
|
-
line-height: 44px;
|
|
88
|
-
}
|
|
56
|
+
@include evo-text-header(h1);
|
|
89
57
|
}
|
|
90
58
|
|
|
59
|
+
/* @deprecated use evo-text-* mixins*/
|
|
91
60
|
@mixin h2 {
|
|
92
|
-
|
|
93
|
-
line-height: 32px;
|
|
94
|
-
|
|
95
|
-
@include media-desktop-s {
|
|
96
|
-
font-size: 30px;
|
|
97
|
-
line-height: 38px;
|
|
98
|
-
}
|
|
61
|
+
@include evo-text-header(h2);
|
|
99
62
|
}
|
|
100
63
|
|
|
64
|
+
/* @deprecated use evo-text-* mixins*/
|
|
101
65
|
@mixin h3 {
|
|
102
|
-
|
|
103
|
-
line-height: 26px;
|
|
104
|
-
|
|
105
|
-
@include media-desktop-s {
|
|
106
|
-
font-size: 24px;
|
|
107
|
-
line-height: 32px;
|
|
108
|
-
}
|
|
66
|
+
@include evo-text-header(h3);
|
|
109
67
|
}
|
|
110
68
|
|
|
69
|
+
/* @deprecated use evo-text-* mixins*/
|
|
111
70
|
@mixin h4 {
|
|
112
|
-
|
|
113
|
-
line-height: 22px;
|
|
114
|
-
|
|
115
|
-
@include media-desktop-s {
|
|
116
|
-
font-size: 18px;
|
|
117
|
-
line-height: 26px;
|
|
118
|
-
}
|
|
71
|
+
@include evo-text-header(h4);
|
|
119
72
|
}
|
|
120
73
|
|
|
121
|
-
|
|
122
74
|
/**
|
|
123
|
-
* @deprecated
|
|
75
|
+
* @deprecated use evo-input-* mixins
|
|
124
76
|
*/
|
|
125
77
|
@mixin input {
|
|
126
78
|
@include evo-input(normal, default);
|
|
127
79
|
}
|
|
128
80
|
|
|
129
81
|
/**
|
|
130
|
-
*
|
|
131
|
-
* theme: default | rounded
|
|
82
|
+
* @deprecated use evo-input-states mixin
|
|
132
83
|
*/
|
|
133
|
-
@mixin evo-input($size: normal, $theme: default) {
|
|
134
|
-
--evo-input-height: 48px;
|
|
135
|
-
--evo-input-border-radius: 4px;
|
|
136
|
-
--evo-input-font-size: 16px;
|
|
137
|
-
|
|
138
|
-
@if ($size == small) {
|
|
139
|
-
@if ($theme == default) {
|
|
140
|
-
--evo-input-height: 32px;
|
|
141
|
-
} @else if ($theme == rounded) {
|
|
142
|
-
--evo-input-font-size: 14px;
|
|
143
|
-
--evo-input-height: 40px;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@if ($theme == rounded) {
|
|
148
|
-
--evo-input-border-radius: 256px;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
height: var(--evo-input-height);
|
|
154
|
-
color: $color-text;
|
|
155
|
-
font-weight: normal;
|
|
156
|
-
font-size: var(--evo-input-font-size);
|
|
157
|
-
font-family: $font;
|
|
158
|
-
white-space: nowrap;
|
|
159
|
-
background-color: $color-white;
|
|
160
|
-
border: 1px solid $color-disabled;
|
|
161
|
-
border-radius: var(--evo-input-border-radius);
|
|
162
|
-
outline: none;
|
|
163
|
-
transition: color .3s, box-shadow .3s, background .3s, border .3s;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
@mixin evo-input-focused {
|
|
167
|
-
border: solid 1px $color-secondary-lighter;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
@mixin evo-input-disabled {
|
|
171
|
-
color: $color-disabled-text !important;
|
|
172
|
-
background-color: $color-background-grey-light !important;
|
|
173
|
-
border: 1px solid $color-disabled-light !important;
|
|
174
|
-
cursor: default;
|
|
175
|
-
pointer-events: none;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* @deprecated
|
|
180
|
-
*/
|
|
181
|
-
@mixin evo-input-valid {
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@mixin evo-input-invalid {
|
|
185
|
-
border-color: $color-error !important;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
84
|
@mixin evo-control-states {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
&_focused {
|
|
192
|
-
@include evo-input-focused;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&_disabled {
|
|
196
|
-
@include evo-input-disabled;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
&_invalid {
|
|
200
|
-
@include evo-input-invalid;
|
|
201
|
-
}
|
|
85
|
+
@include evo-input-states();
|
|
202
86
|
}
|
|
203
87
|
|
|
204
88
|
@mixin hide-scroll {
|
|
205
|
-
-ms-overflow-style: none;
|
|
206
|
-
scrollbar-width: none;
|
|
89
|
+
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
90
|
+
scrollbar-width: none; /* Firefox */
|
|
207
91
|
|
|
208
92
|
&::-webkit-scrollbar {
|
|
209
93
|
display: none;
|