@colijnit/extendedcomponents 12.0.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 +24 -0
- package/bundles/colijnit-extendedcomponents.umd.js +1420 -0
- package/bundles/colijnit-extendedcomponents.umd.js.map +1 -0
- package/colijnit-extendedcomponents.d.ts +5 -0
- package/esm2015/colijnit-extendedcomponents.js +5 -0
- package/esm2015/lib/components/grid/base/base-grid.component.js +71 -0
- package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +86 -0
- package/esm2015/lib/components/grid/base/base-selection-grid.component.js +100 -0
- package/esm2015/lib/components/grid/base/base-toolbar-grid.component.js +74 -0
- package/esm2015/lib/components/grid/co-grid.component.js +102 -0
- package/esm2015/lib/components/grid/co-grid.module.js +59 -0
- package/esm2015/lib/components/grid/enum/grid-lines.enum.js +9 -0
- package/esm2015/lib/components/grid/interface/grid-menu-event-args.js +2 -0
- package/esm2015/lib/components/grid/interface/grid-row-drag-event-args.js +2 -0
- package/esm2015/lib/components/grid/interface/grid-row-drop-event-args.js +2 -0
- package/esm2015/lib/components/kanban/co-kanban.component.js +127 -0
- package/esm2015/lib/components/kanban/co-kanban.module.js +30 -0
- package/esm2015/lib/components/pivot/co-pivot.component.js +195 -0
- package/esm2015/lib/components/pivot/co-pivot.module.js +30 -0
- package/esm2015/lib/components/schedule/co-schedule.component.js +99 -0
- package/esm2015/lib/components/schedule/co-schedule.module.js +30 -0
- package/esm2015/lib/core/enum/schedule-view.enum.js +16 -0
- package/esm2015/lib/translation/dictionary.service.js +32 -0
- package/esm2015/lib/translation/extended-components-translation.module.js +37 -0
- package/esm2015/lib/translation/extended-components-translation.service.js +17 -0
- package/esm2015/lib/translation/localize.pipe.js +27 -0
- package/esm2015/public-api.js +14 -0
- package/fesm2015/colijnit-extendedcomponents.js +1086 -0
- package/fesm2015/colijnit-extendedcomponents.js.map +1 -0
- package/lib/bin/postinstall.js +3 -0
- package/lib/components/grid/base/base-grid.component.d.ts +30 -0
- package/lib/components/grid/base/base-inline-edit-grid.component.d.ts +21 -0
- package/lib/components/grid/base/base-selection-grid.component.d.ts +34 -0
- package/lib/components/grid/base/base-toolbar-grid.component.d.ts +20 -0
- package/lib/components/grid/co-grid.component.d.ts +9 -0
- package/lib/components/grid/co-grid.module.d.ts +10 -0
- package/lib/components/grid/enum/grid-lines.enum.d.ts +7 -0
- package/lib/components/grid/interface/grid-menu-event-args.d.ts +3 -0
- package/lib/components/grid/interface/grid-row-drag-event-args.d.ts +3 -0
- package/lib/components/grid/interface/grid-row-drop-event-args.d.ts +3 -0
- package/lib/components/grid/style/_layout.scss +36 -0
- package/lib/components/grid/style/_material-definition.scss +8 -0
- package/lib/components/grid/style/_theme.scss +3 -0
- package/lib/components/grid/style/material.scss +4 -0
- package/lib/components/kanban/co-kanban.component.d.ts +31 -0
- package/lib/components/kanban/co-kanban.module.d.ts +9 -0
- package/lib/components/kanban/style/_layout.scss +52 -0
- package/lib/components/kanban/style/_material-definition.scss +27 -0
- package/lib/components/kanban/style/_theme.scss +3 -0
- package/lib/components/kanban/style/material.scss +5 -0
- package/lib/components/pivot/co-pivot.component.d.ts +43 -0
- package/lib/components/pivot/co-pivot.module.d.ts +9 -0
- package/lib/components/pivot/style/_layout.scss +92 -0
- package/lib/components/pivot/style/_material-definition.scss +1 -0
- package/lib/components/pivot/style/_theme.scss +3 -0
- package/lib/components/pivot/style/material.scss +4 -0
- package/lib/components/schedule/co-schedule.component.d.ts +22 -0
- package/lib/components/schedule/co-schedule.module.d.ts +9 -0
- package/lib/components/schedule/style/_layout.scss +4 -0
- package/lib/components/schedule/style/_material-definition.scss +0 -0
- package/lib/components/schedule/style/_theme.scss +4 -0
- package/lib/components/schedule/style/material.scss +4 -0
- package/lib/core/enum/schedule-view.enum.d.ts +14 -0
- package/lib/style/_input.mixins.scss +142 -0
- package/lib/style/_mixin.scss +16 -0
- package/lib/style/_variables.scss +96 -0
- package/lib/style/extendedcomponents-globals.scss +114 -0
- package/lib/style/material2/_core.scss +17 -0
- package/lib/style/material2/_material2-scss-barrel.scss +16 -0
- package/lib/style/material2/ripple/_co-ripple.scss +68 -0
- package/lib/style/material2/style/_elevation.scss +176 -0
- package/lib/style/material2/style/_list-common.scss +51 -0
- package/lib/style/material2/style/_variables.scss +61 -0
- package/lib/style/material2/theming/_palette.scss +708 -0
- package/lib/style/material2/theming/_theming.scss +80 -0
- package/lib/style/material2/typography/_typography.scss +8 -0
- package/lib/translation/dictionary.service.d.ts +15 -0
- package/lib/translation/extended-components-translation.module.d.ts +9 -0
- package/lib/translation/extended-components-translation.service.d.ts +9 -0
- package/lib/translation/localize.pipe.d.ts +10 -0
- package/package.json +29 -0
- package/public-api.d.ts +10 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// NOTE: Copied and adapted to CoreComponents from iOneJS on 9-may-2018.
|
|
2
|
+
|
|
3
|
+
// Core styles that can be used to apply material design treatments to any element.
|
|
4
|
+
//@import 'style/elevation';
|
|
5
|
+
@import 'ripple/co-ripple';
|
|
6
|
+
//@import "theming/palette";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// Mixin that renders all of the core styles that are not theme-dependent.
|
|
10
|
+
@mixin mat-core() {
|
|
11
|
+
@include mat-ripple();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Mixin that renders all of the core styles that depend on the theme.
|
|
15
|
+
@mixin mat-core-theme($theme) {
|
|
16
|
+
@include mat-ripple-theme($theme);
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Top-level material2 scss barrel theme initialization for our CoreComponents lib.
|
|
2
|
+
@import "core";
|
|
3
|
+
//@import "theming/theming";
|
|
4
|
+
|
|
5
|
+
/* Override Material2 variables */
|
|
6
|
+
//$mat-ripple-color-opacity: 0.25;
|
|
7
|
+
|
|
8
|
+
/* Include material core */
|
|
9
|
+
//@include mat-core();
|
|
10
|
+
//
|
|
11
|
+
//$primary: mat-palette($mat-purple, 700, 500, 800);
|
|
12
|
+
//$accent: mat-palette($mat-green, A200, A100, A400);
|
|
13
|
+
//$theme: mat-dark-theme($primary, $accent);
|
|
14
|
+
//@include mat-core-theme(
|
|
15
|
+
// mat-dark-theme($primary, $accent)
|
|
16
|
+
//);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// NOTE: Copied and adapted to CoreComponents from iOneJS on 9-may-2018.
|
|
2
|
+
|
|
3
|
+
$mat-ripple-color-opacity: 0.1;
|
|
4
|
+
|
|
5
|
+
@mixin mat-ripple() {
|
|
6
|
+
// The host element of an md-ripple directive should always have a position of "absolute" or
|
|
7
|
+
// "relative" so that the ripple divs it creates inside itself are correctly positioned.
|
|
8
|
+
.mat-ripple {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.mat-ripple.mat-ripple-unbounded {
|
|
13
|
+
overflow: visible;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.mat-ripple-element {
|
|
17
|
+
position: absolute;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
|
|
21
|
+
transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
22
|
+
transform: scale(0);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Theme for the ripple elements.*/
|
|
27
|
+
@mixin mat-ripple-theme($theme) {
|
|
28
|
+
$foreground: map_get($theme, foreground);
|
|
29
|
+
$foreground-base: map_get($foreground, base);
|
|
30
|
+
|
|
31
|
+
.mat-ripple-element {
|
|
32
|
+
background-color: rgba($foreground-base, $mat-ripple-color-opacity);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
// A mixin, which generates temporary ink ripple on a given component.
|
|
38
|
+
// To be removed once the real ripple is applied to all elements.
|
|
39
|
+
// When $bindToParent is set to true, it will check for the focused class on the same selector as you included
|
|
40
|
+
// that mixin.
|
|
41
|
+
// It is also possible to specify the color palette of the temporary ripple. By default it uses the
|
|
42
|
+
// accent palette for its background.
|
|
43
|
+
@mixin mat-temporary-ink-ripple($component, $bindToParent: false) {
|
|
44
|
+
// A placeholder ink ripple, shown when keyboard focused.
|
|
45
|
+
.mat-ink-ripple {
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
height: 48px;
|
|
49
|
+
left: 50%;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 50%;
|
|
54
|
+
transform: translate(-50%, -50%);
|
|
55
|
+
transition: opacity ease 280ms, background-color ease 280ms;
|
|
56
|
+
width: 48px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Fade in when radio focused.
|
|
60
|
+
#{if($bindToParent, '&', '')}.mat-#{$component}-focused .mat-ink-ripple {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// this state.
|
|
65
|
+
#{if($bindToParent, '&', '')}.mat-#{$component}-disabled .mat-ink-ripple {
|
|
66
|
+
background-color: #000;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
// NOTE: Copied and adapted to CoreComponents from iOneJS on 9-may-2018.
|
|
2
|
+
|
|
3
|
+
@use 'variables';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// A collection of mixins and CSS classes that can be used to apply elevation to a material
|
|
7
|
+
// element.
|
|
8
|
+
// See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html
|
|
9
|
+
// Examples:
|
|
10
|
+
//
|
|
11
|
+
//
|
|
12
|
+
// .mat-foo {
|
|
13
|
+
// @include $mat-elevation(2);
|
|
14
|
+
//
|
|
15
|
+
// &:active {
|
|
16
|
+
// @include $mat-elevation(8);
|
|
17
|
+
// }
|
|
18
|
+
// }
|
|
19
|
+
//
|
|
20
|
+
// <div id="external-card" class="mat-elevation-z2"><p>Some content</p></div>
|
|
21
|
+
//
|
|
22
|
+
// For an explanation of the design behind how elevation is implemented, see the design doc at
|
|
23
|
+
// https://goo.gl/Kq0k9Z.
|
|
24
|
+
|
|
25
|
+
// Colors for umbra, penumbra, and ambient shadows. As described in the design doc, each elevation
|
|
26
|
+
// level is created using a set of 3 shadow values, one for umbra (the shadow representing the
|
|
27
|
+
// space completely obscured by an object relative to its light source), one for penumbra (the
|
|
28
|
+
// space partially obscured by an object), and one for ambient (the space which contains the object
|
|
29
|
+
// itself). For a further explanation of these terms and their meanings, see
|
|
30
|
+
// https://en.wikipedia.org/wiki/Umbra,_penumbra_and_antumbra.
|
|
31
|
+
|
|
32
|
+
$_umbra-color: rgba(black, 0.2);
|
|
33
|
+
$_penumbra-color: rgba(black, 0.14);
|
|
34
|
+
$_ambient-color: rgba(black, 0.12);
|
|
35
|
+
|
|
36
|
+
// Maps for the different shadow sets and their values within each z-space. These values were
|
|
37
|
+
// created by taking a few reference shadow sets created by Google's Designers and interpolating
|
|
38
|
+
// all of the values between them.
|
|
39
|
+
|
|
40
|
+
$_umbra-elevation-map: (
|
|
41
|
+
0: '0px 0px 0px 0px #{$_umbra-color}',
|
|
42
|
+
1: '0px 2px 1px -1px #{$_umbra-color}',
|
|
43
|
+
2: '0px 3px 1px -2px #{$_umbra-color}',
|
|
44
|
+
3: '0px 3px 3px -2px #{$_umbra-color}',
|
|
45
|
+
4: '0px 2px 4px -1px #{$_umbra-color}',
|
|
46
|
+
5: '0px 3px 5px -1px #{$_umbra-color}',
|
|
47
|
+
6: '0px 3px 5px -1px #{$_umbra-color}',
|
|
48
|
+
7: '0px 4px 5px -2px #{$_umbra-color}',
|
|
49
|
+
8: '0px 5px 5px -3px #{$_umbra-color}',
|
|
50
|
+
9: '0px 5px 6px -3px #{$_umbra-color}',
|
|
51
|
+
10: '0px 6px 6px -3px #{$_umbra-color}',
|
|
52
|
+
11: '0px 6px 7px -4px #{$_umbra-color}',
|
|
53
|
+
12: '0px 7px 8px -4px #{$_umbra-color}',
|
|
54
|
+
13: '0px 7px 8px -4px #{$_umbra-color}',
|
|
55
|
+
14: '0px 7px 9px -4px #{$_umbra-color}',
|
|
56
|
+
15: '0px 8px 9px -5px #{$_umbra-color}',
|
|
57
|
+
16: '0px 8px 10px -5px #{$_umbra-color}',
|
|
58
|
+
17: '0px 8px 11px -5px #{$_umbra-color}',
|
|
59
|
+
18: '0px 9px 11px -5px #{$_umbra-color}',
|
|
60
|
+
19: '0px 9px 12px -6px #{$_umbra-color}',
|
|
61
|
+
20: '0px 10px 13px -6px #{$_umbra-color}',
|
|
62
|
+
21: '0px 10px 13px -6px #{$_umbra-color}',
|
|
63
|
+
22: '0px 10px 14px -6px #{$_umbra-color}',
|
|
64
|
+
23: '0px 11px 14px -7px #{$_umbra-color}',
|
|
65
|
+
24: '0px 11px 15px -7px #{$_umbra-color}'
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
$_penumbra-elevation-map: (
|
|
69
|
+
0: '0px 0px 0px 0px #{$_penumbra-color}',
|
|
70
|
+
1: '0px 1px 1px 0px #{$_penumbra-color}',
|
|
71
|
+
2: '0px 2px 2px 0px #{$_penumbra-color}',
|
|
72
|
+
3: '0px 3px 4px 0px #{$_penumbra-color}',
|
|
73
|
+
4: '0px 4px 5px 0px #{$_penumbra-color}',
|
|
74
|
+
5: '0px 5px 8px 0px #{$_penumbra-color}',
|
|
75
|
+
6: '0px 6px 10px 0px #{$_penumbra-color}',
|
|
76
|
+
7: '0px 7px 10px 1px #{$_penumbra-color}',
|
|
77
|
+
8: '0px 8px 10px 1px #{$_penumbra-color}',
|
|
78
|
+
9: '0px 9px 12px 1px #{$_penumbra-color}',
|
|
79
|
+
10: '0px 10px 14px 1px #{$_penumbra-color}',
|
|
80
|
+
11: '0px 11px 15px 1px #{$_penumbra-color}',
|
|
81
|
+
12: '0px 12px 17px 2px #{$_penumbra-color}',
|
|
82
|
+
13: '0px 13px 19px 2px #{$_penumbra-color}',
|
|
83
|
+
14: '0px 14px 21px 2px #{$_penumbra-color}',
|
|
84
|
+
15: '0px 15px 22px 2px #{$_penumbra-color}',
|
|
85
|
+
16: '0px 16px 24px 2px #{$_penumbra-color}',
|
|
86
|
+
17: '0px 17px 26px 2px #{$_penumbra-color}',
|
|
87
|
+
18: '0px 18px 28px 2px #{$_penumbra-color}',
|
|
88
|
+
19: '0px 19px 29px 2px #{$_penumbra-color}',
|
|
89
|
+
20: '0px 20px 31px 3px #{$_penumbra-color}',
|
|
90
|
+
21: '0px 21px 33px 3px #{$_penumbra-color}',
|
|
91
|
+
22: '0px 22px 35px 3px #{$_penumbra-color}',
|
|
92
|
+
23: '0px 23px 36px 3px #{$_penumbra-color}',
|
|
93
|
+
24: '0px 24px 38px 3px #{$_penumbra-color}'
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
$_ambient-elevation-map: (
|
|
97
|
+
0: '0px 0px 0px 0px #{$_ambient-color}',
|
|
98
|
+
1: '0px 1px 3px 0px #{$_ambient-color}',
|
|
99
|
+
2: '0px 1px 5px 0px #{$_ambient-color}',
|
|
100
|
+
3: '0px 1px 8px 0px #{$_ambient-color}',
|
|
101
|
+
4: '0px 1px 10px 0px #{$_ambient-color}',
|
|
102
|
+
5: '0px 1px 14px 0px #{$_ambient-color}',
|
|
103
|
+
6: '0px 1px 18px 0px #{$_ambient-color}',
|
|
104
|
+
7: '0px 2px 16px 1px #{$_ambient-color}',
|
|
105
|
+
8: '0px 3px 14px 2px #{$_ambient-color}',
|
|
106
|
+
9: '0px 3px 16px 2px #{$_ambient-color}',
|
|
107
|
+
10: '0px 4px 18px 3px #{$_ambient-color}',
|
|
108
|
+
11: '0px 4px 20px 3px #{$_ambient-color}',
|
|
109
|
+
12: '0px 5px 22px 4px #{$_ambient-color}',
|
|
110
|
+
13: '0px 5px 24px 4px #{$_ambient-color}',
|
|
111
|
+
14: '0px 5px 26px 4px #{$_ambient-color}',
|
|
112
|
+
15: '0px 6px 28px 5px #{$_ambient-color}',
|
|
113
|
+
16: '0px 6px 30px 5px #{$_ambient-color}',
|
|
114
|
+
17: '0px 6px 32px 5px #{$_ambient-color}',
|
|
115
|
+
18: '0px 7px 34px 6px #{$_ambient-color}',
|
|
116
|
+
19: '0px 7px 36px 6px #{$_ambient-color}',
|
|
117
|
+
20: '0px 8px 38px 7px #{$_ambient-color}',
|
|
118
|
+
21: '0px 8px 40px 7px #{$_ambient-color}',
|
|
119
|
+
22: '0px 8px 42px 7px #{$_ambient-color}',
|
|
120
|
+
23: '0px 9px 44px 8px #{$_ambient-color}',
|
|
121
|
+
24: '0px 9px 46px 8px #{$_ambient-color}'
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
// The css property used for elevation. In most cases this should not be changed. It is exposed
|
|
126
|
+
// as a variable for abstraction / easy use when needing to reference the property directly, for
|
|
127
|
+
// example in a will-change rule.
|
|
128
|
+
$mat-elevation-property: box-shadow !default;
|
|
129
|
+
|
|
130
|
+
// The default duration value for elevation transitions.
|
|
131
|
+
$mat-elevation-transition-duration: 280ms !default;
|
|
132
|
+
|
|
133
|
+
// The default easing value for elevation transitions.
|
|
134
|
+
$mat-elevation-transition-timing-function: $mat-fast-out-slow-in-timing-function;
|
|
135
|
+
|
|
136
|
+
// Applies the correct css rules to an element to give it the elevation specified by $zValue.
|
|
137
|
+
// The $zValue must be between 0 and 24.
|
|
138
|
+
@mixin mat-elevation($zValue) {
|
|
139
|
+
@if type-of($zValue) != number or not unitless($zValue) {
|
|
140
|
+
@error '$zValue must be a unitless number';
|
|
141
|
+
}
|
|
142
|
+
@if $zValue < 0 or $zValue > 24 {
|
|
143
|
+
@error '$zValue must be between 0 and 24';
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
#{$mat-elevation-property}: #{map-get($_umbra-elevation-map, $zValue)},
|
|
147
|
+
#{map-get($_penumbra-elevation-map, $zValue)},
|
|
148
|
+
#{map-get($_ambient-elevation-map, $zValue)};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Returns a string that can be used as the value for a transition property for elevation.
|
|
152
|
+
// Calling this function directly is useful in situations where a component needs to transition
|
|
153
|
+
// more than one property.
|
|
154
|
+
//
|
|
155
|
+
// .foo {
|
|
156
|
+
// transition: mat-elevation-transition-property-value(), opacity 100ms ease;
|
|
157
|
+
// will-change: $mat-elevation-property, opacity;
|
|
158
|
+
// }
|
|
159
|
+
@function mat-elevation-transition-property-value(
|
|
160
|
+
$duration: $mat-elevation-transition-duration,
|
|
161
|
+
$easing: $mat-elevation-transition-timing-function) {
|
|
162
|
+
@return #{$mat-elevation-property} #{$duration} #{$easing};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Applies the correct css rules needed to have an element transition between elevations.
|
|
166
|
+
// This mixin should be applied to elements whose elevation values will change depending on their
|
|
167
|
+
// context (e.g. when active or disabled).
|
|
168
|
+
//
|
|
169
|
+
// NOTE(traviskaufman): Both this mixin and the above function use default parameters so they can
|
|
170
|
+
// be used in the same way by clients.
|
|
171
|
+
@mixin mat-elevation-transition(
|
|
172
|
+
$duration: $mat-elevation-transition-duration,
|
|
173
|
+
$easing: $mat-elevation-transition-timing-function) {
|
|
174
|
+
transition: mat-elevation-transition-property-value($duration, $easing);
|
|
175
|
+
will-change: $mat-elevation-property;
|
|
176
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// NOTE: Copied and adapted to CoreComponents from iOneJS on 9-may-2018.
|
|
2
|
+
|
|
3
|
+
// This mixin will ensure that lines that overflow the container will hide the overflow and
|
|
4
|
+
// truncate neatly with an ellipsis.
|
|
5
|
+
@mixin mat-truncate-line() {
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Mixin to provide all mat-line styles, changing secondary font size based on whether the list
|
|
12
|
+
// is in dense mode.
|
|
13
|
+
@mixin mat-line-base($secondary-font-size) {
|
|
14
|
+
.mat-line {
|
|
15
|
+
@include mat-truncate-line();
|
|
16
|
+
display: block;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
|
|
19
|
+
// all lines but the top line should have smaller text
|
|
20
|
+
&:nth-child(n+2) {
|
|
21
|
+
font-size: $secondary-font-size;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// This mixin normalizes default element styles, e.g. font weight for heading text.
|
|
27
|
+
@mixin mat-normalize-text() {
|
|
28
|
+
& > * {
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
font-weight: normal;
|
|
32
|
+
font-size: inherit;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// This mixin provides base styles for the wrapper around mat-line elements in a list.
|
|
37
|
+
@mixin mat-line-wrapper-base() {
|
|
38
|
+
@include mat-normalize-text();
|
|
39
|
+
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
width: 100%;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
|
|
46
|
+
// Must remove wrapper when lines are empty or it takes up horizontal
|
|
47
|
+
// space and pushes other elements to the right.
|
|
48
|
+
&:empty {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// NOTE: Copied and adapted to CoreComponents from iOneJS on 9-may-2018.
|
|
2
|
+
|
|
3
|
+
@import '../typography/typography';
|
|
4
|
+
|
|
5
|
+
// Typography
|
|
6
|
+
$mat-body-font-size-base: rem(1.4) !default;
|
|
7
|
+
$mat-font-family: Roboto, 'Helvetica Neue', sans-serif !default;
|
|
8
|
+
|
|
9
|
+
// Media queries
|
|
10
|
+
$mat-xsmall: 'max-width: 600px';
|
|
11
|
+
$mat-small: 'max-width: 960px';
|
|
12
|
+
|
|
13
|
+
// z-index master list
|
|
14
|
+
|
|
15
|
+
$z-index-fab: 20 !default;
|
|
16
|
+
$z-index-drawer: 100 !default;
|
|
17
|
+
|
|
18
|
+
// Overlay z indices.
|
|
19
|
+
|
|
20
|
+
// We want overlays to always appear over user content, so set a baseline
|
|
21
|
+
// very high z-index for the overlay container, which is where we create the new
|
|
22
|
+
// stacking context for all overlays.
|
|
23
|
+
$cdk-z-index-overlay-container: 1000;
|
|
24
|
+
$cdk-z-index-overlay: 1000;
|
|
25
|
+
$cdk-z-index-overlay-backdrop: 1000;
|
|
26
|
+
|
|
27
|
+
// Background color for all of the backdrops
|
|
28
|
+
$cdk-overlay-dark-backdrop-background: rgba(0, 0, 0, 0.6);
|
|
29
|
+
|
|
30
|
+
// Global constants
|
|
31
|
+
$pi: 3.14159265;
|
|
32
|
+
|
|
33
|
+
// Padding between input toggles and their labels
|
|
34
|
+
$mat-toggle-padding: 8px !default;
|
|
35
|
+
// Width and height of input toggles
|
|
36
|
+
$mat-toggle-size: 20px !default;
|
|
37
|
+
|
|
38
|
+
// Easing Curves
|
|
39
|
+
|
|
40
|
+
// The default animation curves used by material design.
|
|
41
|
+
$mat-linear-out-slow-in-timing-function: cubic-bezier(0, 0, 0.2, 0.1) !default;
|
|
42
|
+
$mat-fast-out-slow-in-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !default;
|
|
43
|
+
$mat-fast-out-linear-in-timing-function: cubic-bezier(0.4, 0, 1, 1) !default;
|
|
44
|
+
|
|
45
|
+
$ease-in-out-curve-function: cubic-bezier(0.35, 0, 0.25, 1) !default;
|
|
46
|
+
|
|
47
|
+
$swift-ease-out-duration: 400ms !default;
|
|
48
|
+
$swift-ease-out-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
49
|
+
$swift-ease-out: all $swift-ease-out-duration $swift-ease-out-timing-function !default;
|
|
50
|
+
|
|
51
|
+
$swift-ease-in-duration: 300ms !default;
|
|
52
|
+
$swift-ease-in-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2) !default;
|
|
53
|
+
$swift-ease-in: all $swift-ease-in-duration $swift-ease-in-timing-function !default;
|
|
54
|
+
|
|
55
|
+
$swift-ease-in-out-duration: 500ms !default;
|
|
56
|
+
$swift-ease-in-out-timing-function: $ease-in-out-curve-function !default;
|
|
57
|
+
$swift-ease-in-out: all $swift-ease-in-out-duration $swift-ease-in-out-timing-function !default;
|
|
58
|
+
|
|
59
|
+
$swift-linear-duration: 80ms !default;
|
|
60
|
+
$swift-linear-timing-function: linear !default;
|
|
61
|
+
$swift-linear: all $swift-linear-duration $swift-linear-timing-function !default;
|