@covalent/core 4.1.0-develop.2 → 4.1.0-develop.6

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.
Files changed (47) hide show
  1. package/common/material-icons.css +1 -0
  2. package/common/material-icons.css.map +1 -0
  3. package/common/platform.css +1 -0
  4. package/common/platform.css.map +1 -0
  5. package/common/styles/_elevation.scss +285 -0
  6. package/common/styles/_layout.scss +605 -0
  7. package/common/styles/_palette-dark.scss +326 -0
  8. package/common/styles/_palette-light.scss +637 -0
  9. package/common/styles/_rtl.scss +31 -0
  10. package/common/styles/_styles.scss +10 -0
  11. package/common/styles/_theme-functions.scss +25 -0
  12. package/common/styles/_typography-functions.scss +43 -0
  13. package/common/styles/_variables.scss +99 -0
  14. package/common/styles/colors/_colors-dark.scss +1399 -0
  15. package/common/styles/colors/_colors-light.scss +3235 -0
  16. package/common/styles/colors/_colors.scss +7 -0
  17. package/common/styles/core/_button.scss +90 -0
  18. package/common/styles/core/_card.scss +189 -0
  19. package/common/styles/core/_content.scss +43 -0
  20. package/common/styles/core/_core.scss +23 -0
  21. package/common/styles/core/_divider.scss +16 -0
  22. package/common/styles/core/_icons.scss +22 -0
  23. package/common/styles/core/_list.scss +8 -0
  24. package/common/styles/core/_sidenav.scss +22 -0
  25. package/common/styles/core/_structure.scss +127 -0
  26. package/common/styles/core/_toolbar.scss +53 -0
  27. package/common/styles/core/_whiteframe.scss +138 -0
  28. package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
  29. package/common/styles/font/_font.scss +99 -0
  30. package/common/styles/utilities/_general.scss +65 -0
  31. package/common/styles/utilities/_pad.scss +36 -0
  32. package/common/styles/utilities/_pull.scss +36 -0
  33. package/common/styles/utilities/_push.scss +36 -0
  34. package/common/styles/utilities/_size.scss +24 -0
  35. package/common/styles/utilities/_text.scss +105 -0
  36. package/common/styles/utilities/_utilities.scss +15 -0
  37. package/package.json +2 -2
  38. package/theming/prebuilt/blue-grey-deep-orange.css +1 -0
  39. package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -0
  40. package/theming/prebuilt/blue-orange.css +1 -0
  41. package/theming/prebuilt/blue-orange.css.map +1 -0
  42. package/theming/prebuilt/indigo-pink.css +1 -0
  43. package/theming/prebuilt/indigo-pink.css.map +1 -0
  44. package/theming/prebuilt/orange-light-blue.css +1 -0
  45. package/theming/prebuilt/orange-light-blue.css.map +1 -0
  46. package/theming/prebuilt/teal-orange.css +1 -0
  47. package/theming/prebuilt/teal-orange.css.map +1 -0
@@ -0,0 +1,7 @@
1
+ @import 'colors-dark';
2
+ @import 'colors-light';
3
+
4
+ @mixin covalent-colors() {
5
+ @include td-colors-light();
6
+ @include td-colors-dark();
7
+ }
@@ -0,0 +1,90 @@
1
+ @import '../theme-functions';
2
+ @import '../rtl';
3
+
4
+ // Standard button sizing.
5
+ $mat-button-padding: 0 rem(0.6) !default;
6
+ $mat-button-min-width: rem(8.8) !default;
7
+ $mat-button-margin: rem(0.6) rem(0.8) !default;
8
+ $mat-button-line-height: rem(3.6) !default;
9
+ $mat-button-border-radius: 3px !default;
10
+
11
+ // FAB sizing.
12
+ $mat-fab-border-radius: 50%;
13
+ $mat-fab-size: rem(5.6) !default;
14
+ $mat-fab-line-height: rem(5.6) !default;
15
+ $mat-fab-padding: rem(1.6) !default;
16
+ $mat-fab-mini-size: rem(4) !default;
17
+ $mat-fab-mini-line-height: rem(4) !default;
18
+
19
+ // Icon button sizing.
20
+ $mat-icon-button-height: rem(4) !default;
21
+ $mat-icon-button-width: rem(4) !default;
22
+ $mat-icon-button-margin: rem(0.6) !default;
23
+ $mat-icon-border-radius: $mat-fab-border-radius;
24
+
25
+ /** Mixin to create distinct classes for fab positions, e.g. ".mat-fab-position-bottom-right". */
26
+ @mixin mat-fab-position(
27
+ $spot,
28
+ $top: auto,
29
+ $right: auto,
30
+ $bottom: auto,
31
+ $left: auto
32
+ ) {
33
+ [mat-fab].mat-fab-position-#{$spot},
34
+ .mat-fab.mat-fab-position-#{$spot},
35
+ [mat-fab].mat-fab-#{$spot},
36
+ .mat-fab.mat-fab-#{$spot} {
37
+ top: $top;
38
+ @include rtl(right, $right, $left);
39
+ @include rtl(left, $left, $right);
40
+
41
+ bottom: $bottom;
42
+ position: absolute;
43
+
44
+ &.fixed {
45
+ position: fixed;
46
+ }
47
+ }
48
+ }
49
+
50
+ @mixin td-button-utilities() {
51
+ $mat-fab-pos-offset: calc(($mat-fab-size - $mat-fab-padding) / 2);
52
+ @include mat-fab-position(
53
+ bottom-right,
54
+ auto,
55
+ $mat-fab-pos-offset,
56
+ $mat-fab-pos-offset,
57
+ auto
58
+ );
59
+ @include mat-fab-position(
60
+ bottom-left,
61
+ auto,
62
+ auto,
63
+ $mat-fab-pos-offset,
64
+ $mat-fab-pos-offset
65
+ );
66
+ @include mat-fab-position(
67
+ top-right,
68
+ $mat-fab-pos-offset,
69
+ $mat-fab-pos-offset,
70
+ auto,
71
+ auto
72
+ );
73
+ @include mat-fab-position(
74
+ top-left,
75
+ $mat-fab-pos-offset,
76
+ auto,
77
+ auto,
78
+ $mat-fab-pos-offset
79
+ );
80
+
81
+ button {
82
+ &[mat-icon-button] {
83
+ &.mat-icon-button-mini {
84
+ height: 24px;
85
+ line-height: 24px;
86
+ width: 24px;
87
+ }
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,189 @@
1
+ @import '../variables';
2
+
3
+ @function makelongshadow($color) {
4
+ $val: 0 0 $color;
5
+ @for $i from 1 through 200 {
6
+ $val: #{$val}, #{$i}px #{$i}px #{$color};
7
+ }
8
+ @return $val;
9
+ }
10
+
11
+ @mixin longshadow($color) {
12
+ text-shadow: makelongshadow($color);
13
+ }
14
+
15
+ $color: rgba(0, 0, 0, 1%);
16
+
17
+ @mixin td-card-utilities() {
18
+ html {
19
+ .mat-card {
20
+ padding: 0;
21
+ margin: 8px;
22
+
23
+ mat-card-header {
24
+ height: auto;
25
+ }
26
+
27
+ [matCardAvatar] {
28
+ font-size: $mat-card-header-size;
29
+ line-height: $mat-card-header-size;
30
+ height: $mat-card-header-size;
31
+ width: $mat-card-header-size;
32
+ margin: 16px 0 0 15px;
33
+ border-radius: 50%;
34
+ }
35
+
36
+ .mat-card-image {
37
+ width: 100%;
38
+ }
39
+
40
+ .mat-card-image,
41
+ .mat-card-lg-image,
42
+ .mat-card-md-image,
43
+ .mat-card-sm-image,
44
+ .mat-card-title-group {
45
+ margin: 0;
46
+ }
47
+
48
+ mat-card-title {
49
+ padding-top: $padding;
50
+ padding-left: $padding;
51
+ padding-right: $padding;
52
+ }
53
+
54
+ mat-card-subtitle {
55
+ padding-left: $padding;
56
+ padding-right: $padding;
57
+ }
58
+
59
+ mat-card-content {
60
+ padding: $padding;
61
+ }
62
+
63
+ &,
64
+ & .mat-card {
65
+ & .mat-card-actions {
66
+ padding: calc($padding / 2);
67
+ margin: 0;
68
+ }
69
+ }
70
+
71
+ .mat-card-actions:last-child {
72
+ margin-bottom: 0;
73
+ padding-bottom: 8px;
74
+ }
75
+
76
+ .mat-divider.relative {
77
+ position: relative;
78
+ }
79
+ }
80
+
81
+ &[dir='rtl'] {
82
+ .mat-card-title-group {
83
+ .mat-card-image,
84
+ .mat-card-lg-image,
85
+ .mat-card-md-image,
86
+ .mat-card-sm-image {
87
+ &:last-child {
88
+ border-top-left-radius: $mat-card-radius;
89
+ border-bottom-left-radius: $mat-card-radius;
90
+ }
91
+ }
92
+ }
93
+
94
+ .mat-card {
95
+ .mat-card-image {
96
+ &:first-child {
97
+ border-top-left-radius: $mat-card-radius;
98
+ border-top-right-radius: $mat-card-radius;
99
+ }
100
+ }
101
+
102
+ .mat-card-lg-image,
103
+ .mat-card-md-image,
104
+ .mat-card-sm-image {
105
+ &:first-child {
106
+ border-top-right-radius: $mat-card-radius;
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ &:not([dir='rtl']) {
113
+ .mat-card-title-group {
114
+ .mat-card-image,
115
+ .mat-card-lg-image,
116
+ .mat-card-md-image,
117
+ .mat-card-sm-image {
118
+ &:last-child {
119
+ border-top-right-radius: $mat-card-radius;
120
+ border-bottom-right-radius: $mat-card-radius;
121
+ }
122
+ }
123
+ }
124
+
125
+ .mat-card {
126
+ .mat-card-image {
127
+ &:first-child {
128
+ border-top-left-radius: $mat-card-radius;
129
+ border-top-right-radius: $mat-card-radius;
130
+ }
131
+ }
132
+
133
+ .mat-card-lg-image,
134
+ .mat-card-md-image,
135
+ .mat-card-sm-image {
136
+ &:first-child {
137
+ border-top-left-radius: $mat-card-radius;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ .mat-card-colored {
145
+ &[href],
146
+ &[ng-reflect-href] {
147
+ &:hover {
148
+ cursor: pointer;
149
+ box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 20%),
150
+ 0 4px 5px 0 rgba(0, 0, 0, 14%), 0 1px 10px 0 rgba(0, 0, 0, 12%);
151
+ }
152
+
153
+ &:active {
154
+ box-shadow: 0 6px 6px -3px rgba(0, 0, 0, 20%),
155
+ 0 10px 14px 1px rgba(0, 0, 0, 14%), 0 4px 18px 3px rgba(0, 0, 0, 12%);
156
+
157
+ & mat-toolbar {
158
+ background-color: rgba(255, 255, 255, 20%);
159
+ background-position: -100% 100%;
160
+ }
161
+ }
162
+
163
+ & mat-toolbar {
164
+ background-size: 200% 100%;
165
+ background-image: linear-gradient(
166
+ to right,
167
+ transparent 50%,
168
+ rgba(255, 255, 255, 20%) 50%
169
+ );
170
+ transition: background-position 0.3s cubic-bezier(0.19, 1, 0.22, 1) 0.1s,
171
+ color 0.5s ease 0s, background-color 0.5s ease;
172
+ }
173
+ }
174
+
175
+ & mat-toolbar {
176
+ height: 148px;
177
+ border-radius: 2px 2px 0 0;
178
+ overflow: hidden;
179
+
180
+ mat-icon,
181
+ .mat-icon {
182
+ opacity: 0.65;
183
+ color: white;
184
+ font-size: 8rem;
185
+ @include longshadow(darken($color, 5%));
186
+ }
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,43 @@
1
+ @mixin td-content-utilities() {
2
+ md-content,
3
+ [md-content],
4
+ .md-content,
5
+ mat-content,
6
+ [mat-content],
7
+ .mat-content {
8
+ display: block;
9
+ position: relative;
10
+ overflow: auto;
11
+ -webkit-overflow-scrolling: touch;
12
+
13
+ &[md-scroll-y],
14
+ &.mat-scroll-y {
15
+ overflow-y: auto;
16
+ overflow-x: hidden;
17
+ }
18
+
19
+ &[md-scroll-x],
20
+ &.mat-scroll-x {
21
+ overflow-x: auto;
22
+ overflow-y: hidden;
23
+ }
24
+ // For iOS allow disabling of momentum scrolling
25
+ // @see issue #2640.
26
+ &.auto-scroll {
27
+ -webkit-overflow-scrolling: auto;
28
+ }
29
+ }
30
+
31
+ // Overall app layout height
32
+ mat-sidenav-container {
33
+ & > md-content,
34
+ & > [md-content],
35
+ & > .md-content,
36
+ & > mat-content,
37
+ & > [mat-content],
38
+ & > .mat-content {
39
+ height: 100%;
40
+ overflow: hidden;
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,23 @@
1
+ @import 'button';
2
+ @import 'card';
3
+ @import 'content';
4
+ @import 'divider';
5
+ @import 'icons';
6
+ @import 'list';
7
+ @import 'sidenav';
8
+ @import 'structure';
9
+ @import 'toolbar';
10
+ @import 'whiteframe';
11
+
12
+ @mixin covalent-core() {
13
+ @include td-button-utilities();
14
+ @include td-card-utilities();
15
+ @include td-content-utilities();
16
+ @include td-divider-utilities();
17
+ @include td-icon-utilities();
18
+ @include td-list-utilities();
19
+ @include td-sidenav-utilities();
20
+ @include td-structure-utilities();
21
+ @include td-toolbar-utilities();
22
+ @include td-whiteframe-utilities();
23
+ }
@@ -0,0 +1,16 @@
1
+ @import '../rtl';
2
+
3
+ @mixin td-divider-utilities() {
4
+ // deprecated
5
+ mat-divider {
6
+ &[matInset] {
7
+ @include rtl(margin-left, 72px, 0);
8
+ @include rtl(margin-right, 0, 72px);
9
+ }
10
+
11
+ &[mat-inset] {
12
+ @include rtl(margin-left, 72px, 0);
13
+ @include rtl(margin-right, 0, 72px);
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,22 @@
1
+ @mixin td-icon-utilities() {
2
+ mat-list-item,
3
+ .mat-list-item-content {
4
+ mat-icon {
5
+ &[matListAvatar] {
6
+ align-items: center;
7
+ align-content: center;
8
+ justify-content: center;
9
+ display: flex;
10
+ }
11
+ }
12
+ }
13
+
14
+ .mat-icon.mat-icon-logo {
15
+ height: 24px;
16
+ width: 100px;
17
+ }
18
+
19
+ .mat-icon {
20
+ flex-shrink: 0;
21
+ }
22
+ }
@@ -0,0 +1,8 @@
1
+ @mixin td-list-utilities() {
2
+ mat-list mat-list-item [matListAvatar],
3
+ mat-list a[mat-list-item] [matListAvatar],
4
+ mat-nav-list mat-list-item [matListAvatar],
5
+ mat-nav-list a[mat-list-item] [matListAvatar] {
6
+ min-width: 40px;
7
+ }
8
+ }
@@ -0,0 +1,22 @@
1
+ @import '../variables';
2
+
3
+ @mixin td-sidenav-utilities() {
4
+ mat-sidenav {
5
+ width: $navigation-drawer-width;
6
+
7
+ .mat-list-item-content {
8
+ mat-icon {
9
+ @include rtl(margin-left, 0, $margin);
10
+ @include rtl(margin-right, $margin, 0);
11
+ }
12
+ }
13
+
14
+ [mat-list-item] {
15
+ &,
16
+ &:active,
17
+ &:focus {
18
+ outline: none;
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,127 @@
1
+ @import '../variables';
2
+
3
+ @mixin td-structure-utilities() {
4
+ html,
5
+ body {
6
+ height: 100%;
7
+ color: rgba(0, 0, 0, 87%);
8
+ background: white;
9
+ position: relative;
10
+ }
11
+
12
+ body {
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ [tabindex='-1']:focus {
18
+ outline: none;
19
+ }
20
+
21
+ .inset {
22
+ padding: 10px;
23
+ }
24
+
25
+ button.md-no-style {
26
+ font-weight: normal;
27
+ background-color: inherit;
28
+ @include rtl(text-align, left, right);
29
+
30
+ border: none;
31
+ padding: 0;
32
+ margin: 0;
33
+ }
34
+
35
+ select,
36
+ button,
37
+ textarea,
38
+ input {
39
+ vertical-align: baseline;
40
+ }
41
+
42
+ // Fix Android 4.0 button bugs
43
+ input[type='reset'],
44
+ input[type='submit'],
45
+ html input[type='button'],
46
+ button {
47
+ cursor: pointer;
48
+ appearance: button;
49
+
50
+ &[disabled] {
51
+ cursor: default;
52
+ }
53
+ }
54
+
55
+ textarea {
56
+ vertical-align: top;
57
+ overflow: auto;
58
+ }
59
+
60
+ input {
61
+ &[type='search'] {
62
+ appearance: textfield;
63
+ box-sizing: content-box;
64
+
65
+ &::-webkit-search-decoration,
66
+ &::-webkit-search-cancel-button {
67
+ appearance: none;
68
+ }
69
+ }
70
+ }
71
+
72
+ .md-visually-hidden,
73
+ .mat-visually-hidden {
74
+ border: 0;
75
+ clip: rect(0 0 0 0);
76
+ height: 1px;
77
+ margin: -1px;
78
+ overflow: hidden;
79
+ padding: 0;
80
+ position: absolute;
81
+ text-transform: none;
82
+ width: 1px;
83
+ }
84
+
85
+ .md-shadow,
86
+ .mat-shadow {
87
+ position: absolute;
88
+ top: 0;
89
+ left: 0;
90
+ bottom: 0;
91
+ right: 0;
92
+ border-radius: inherit;
93
+ pointer-events: none;
94
+ }
95
+
96
+ .md-shadow-bottom-z-1,
97
+ .mat-shadow-bottom-z-1 {
98
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 26%);
99
+ }
100
+
101
+ .md-shadow-bottom-z-2,
102
+ .mat-shadow-bottom-z-2 {
103
+ box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 40%);
104
+ }
105
+
106
+ .md-shadow-animated.md-shadow,
107
+ .mat-shadow-animated.mat-shadow {
108
+ transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
109
+ }
110
+
111
+ .md-padding,
112
+ .mat-padding {
113
+ padding: 8px;
114
+ }
115
+
116
+ .md-margin,
117
+ .mat-margin {
118
+ margin: 8px;
119
+ }
120
+
121
+ @media (min-width: $layout-breakpoint-sm) {
122
+ .md-padding,
123
+ .mat-padding {
124
+ padding: 16px;
125
+ }
126
+ }
127
+ }
@@ -0,0 +1,53 @@
1
+ @mixin td-toolbar-utilities() {
2
+ body[dense] mat-toolbar,
3
+ body[dense] mat-toolbar-row,
4
+ mat-toolbar[dense],
5
+ mat-toolbar-row[dense] {
6
+ &.mat-toolbar-multiple-rows {
7
+ .mat-toolbar-row,
8
+ .mat-toolbar-single-row {
9
+ height: 48px;
10
+ }
11
+ }
12
+
13
+ &.mat-toolbar-single-row,
14
+ &.mat-toolbar-row {
15
+ height: 48px;
16
+ }
17
+ }
18
+
19
+ mat-toolbar {
20
+ [mat-button] {
21
+ &:first-of-type:not(:last-child) {
22
+ margin-left: -6px;
23
+
24
+ [dir='rtl'] & {
25
+ margin-right: -6px;
26
+ margin-left: 0;
27
+ }
28
+ }
29
+
30
+ &:last-of-type:not(:first-child) {
31
+ margin-right: -6px;
32
+
33
+ [dir='rtl'] & {
34
+ margin-left: -6px;
35
+ margin-right: 0;
36
+ }
37
+ }
38
+ }
39
+
40
+ .mat-icon-logo {
41
+ margin-right: 10px;
42
+
43
+ [dir='rtl'] & {
44
+ margin-left: 10px;
45
+ margin-right: 0;
46
+ }
47
+ }
48
+
49
+ [mat-icon-button] {
50
+ margin: 0 6px;
51
+ }
52
+ }
53
+ }