matcha-theme 1.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.
Files changed (56) hide show
  1. package/abstracts/_breakpoints.scss +33 -0
  2. package/abstracts/_colors.scss +422 -0
  3. package/abstracts/_elevation.scss +102 -0
  4. package/abstracts/_functions.scss +321 -0
  5. package/abstracts/_grid.scss +130 -0
  6. package/abstracts/_order.scss +46 -0
  7. package/abstracts/_position.scss +51 -0
  8. package/abstracts/_sizes.scss +74 -0
  9. package/abstracts/_spacings.scss +236 -0
  10. package/abstracts/_typography.scss +137 -0
  11. package/base/_helpers.scss +3019 -0
  12. package/base/_reset.scss +9 -0
  13. package/base/_typography.scss +242 -0
  14. package/components/matcha-audio-player.scss +37 -0
  15. package/components/matcha-buttons.scss +91 -0
  16. package/components/matcha-cards.scss +93 -0
  17. package/components/matcha-color-pick.scss +32 -0
  18. package/components/matcha-draggable.scss +25 -0
  19. package/components/matcha-header.scss +326 -0
  20. package/components/matcha-horizontal-tree.scss +275 -0
  21. package/components/matcha-icons.scss +11 -0
  22. package/components/matcha-progress-bar.scss +107 -0
  23. package/components/matcha-scrollbar.scss +36 -0
  24. package/components/matcha-scrollbox-shadow.scss +127 -0
  25. package/components/matcha-table.scss +259 -0
  26. package/fonts/CircularStd-Bold.eot +0 -0
  27. package/fonts/CircularStd-Bold.otf +0 -0
  28. package/fonts/CircularStd-Bold.svg +13532 -0
  29. package/fonts/CircularStd-Bold.ttf +0 -0
  30. package/fonts/CircularStd-Bold.woff +0 -0
  31. package/fonts/CircularStd-Bold.woff2 +0 -0
  32. package/fonts/CircularStd-Medium.eot +0 -0
  33. package/fonts/CircularStd-Medium.otf +0 -0
  34. package/fonts/CircularStd-Medium.svg +13511 -0
  35. package/fonts/CircularStd-Medium.ttf +0 -0
  36. package/fonts/CircularStd-Medium.woff +0 -0
  37. package/fonts/CircularStd-Medium.woff2 +0 -0
  38. package/fonts/CircularStd-Regular.eot +0 -0
  39. package/fonts/CircularStd-Regular.otf +0 -0
  40. package/fonts/CircularStd-Regular.svg +5562 -0
  41. package/fonts/CircularStd-Regular.ttf +0 -0
  42. package/fonts/CircularStd-Regular.woff +0 -0
  43. package/main.scss +87 -0
  44. package/package.json +11 -0
  45. package/tokens/_animations.scss +37 -0
  46. package/tokens/_breakpoints.scss +46 -0
  47. package/tokens/_color-tokens.scss +1419 -0
  48. package/tokens/_elevation-tokens.scss +14 -0
  49. package/tokens/_spacing-tokens.scss +96 -0
  50. package/tokens/_typography-tokens.scss +25 -0
  51. package/vendors/angular-editor.scss +56 -0
  52. package/vendors/angular-material-fixes.scss +21 -0
  53. package/vendors/calendar.scss +2876 -0
  54. package/vendors/charts.scss +92 -0
  55. package/vendors/ng5-slider.scss +56 -0
  56. package/vendors/ngx-material-timepicker.scss +50 -0
@@ -0,0 +1,36 @@
1
+ @mixin matcha-scrollbar-theme($theme) {
2
+ $is-dark: map-get($theme, is-dark);
3
+ $primary: map-get($theme, primary);
4
+ $accent: map-get($theme, accent);
5
+ $warn: map-get($theme, warn);
6
+ $background: map-get($theme, background);
7
+ $foreground: map-get($theme, foreground);
8
+
9
+ :not(.is-mobile) {
10
+ ::-webkit-scrollbar {
11
+ width: 16px;
12
+ height: 16px;
13
+ background-color: rgba(0, 0, 0, 0);
14
+ }
15
+
16
+ ::-webkit-scrollbar:hover {
17
+ background-color: rgba(0, 0, 0, 0.12);
18
+ }
19
+
20
+ ::-webkit-scrollbar-thumb {
21
+ border: 4px solid transparent;
22
+ box-shadow: inset 0 0 0 12px #88888833;
23
+ border-radius: 12px;
24
+ }
25
+
26
+ ::-webkit-scrollbar-thumb:active {
27
+ box-shadow: inset 0 0 0 12px #88888844;
28
+ border-radius: 12px;
29
+ }
30
+
31
+ ::-webkit-scrollbar-corner {
32
+ background: rgba(0, 0, 0, 0);
33
+ }
34
+ }
35
+
36
+ }
@@ -0,0 +1,127 @@
1
+ @mixin matcha-scrollbox-shadow($theme) {
2
+ $is-dark: map-get($theme, is-dark);
3
+ $primary: map-get($theme, primary);
4
+ $accent: map-get($theme, accent);
5
+ $warn: map-get($theme, warn);
6
+ $background: map-get($theme, background);
7
+ $foreground: map-get($theme, foreground);
8
+
9
+ // Drop shadow inside of area when scrolled vertically
10
+ .scrollbox,
11
+ .scrollbox-vertical,
12
+ .scrollbox-v,
13
+ .scrollbox-y {
14
+ overflow: overlay;
15
+ background:
16
+ /* Shadow covers */
17
+ linear-gradient(map-get($background, card) 30%, rgba(255, 255, 255, 0)),
18
+ linear-gradient(rgba(255, 255, 255, 0), map-get($background, card) 70%) 0 100%,
19
+ /* Shadows */
20
+ linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
21
+ linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%) 0 100%;
22
+
23
+ background-repeat: no-repeat;
24
+ background-color: map-get($background, card);
25
+ background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
26
+
27
+ /* Opera doesn't support this in the shorthand */
28
+ background-attachment: local, local, scroll, scroll;
29
+ }
30
+
31
+ // Drop shadow inside of area when scrolled horizontally
32
+ .scrollbox-horizontal,
33
+ .scrollbox-h,
34
+ .scrollbox-x {
35
+ box-shadow: 0px -16px 0px 0px inset map-get($background, card), 20px 0 16px -24px inset #000000,
36
+ -20px 0 16px -24px inset #000000, 0px 2px 2px 0px #00000009, 0px 2px 2px 0px #00000009,
37
+ 0px 2px 2px 0px #00000009;
38
+ overflow: auto;
39
+ background: linear-gradient(90deg,
40
+ rgba(0, 0, 0, 0.1),
41
+ rgba(0, 0, 0, 0) calc(0% + 10px),
42
+ rgba(0, 0, 0, 0) calc(100% - 10px),
43
+ rgba(0, 0, 0, 0.1));
44
+
45
+ background: -moz-linear-gradient(90deg,
46
+ rgba(0, 0, 0, 0.1),
47
+ rgba(0, 0, 0, 0) calc(0% + 10px),
48
+ rgba(0, 0, 0, 0) calc(100% - 10px),
49
+ rgba(0, 0, 0, 0.1));
50
+
51
+ background: -webkit-linear-gradient(0deg,
52
+ rgba(0, 0, 0, 0.1),
53
+ rgba(0, 0, 0, 0) calc(0% + 10px),
54
+ rgba(0, 0, 0, 0) calc(100% - 10px),
55
+ rgba(0, 0, 0, 0.1));
56
+ }
57
+
58
+ .scrollbox-horizontal-content,
59
+ .scrollbox-h-content,
60
+ .scrollbox-x-content {
61
+ background: map-get($background, card);
62
+ background: linear-gradient(90deg,
63
+ map-get($background, card) 10px,
64
+ map-get($background, card),
65
+ rgba(255, 255, 255, 0) calc(0% + 10px),
66
+ rgba(255, 255, 255, 0) calc(100% - 10px),
67
+ map-get($background, card) 10px,
68
+ map-get($background, card));
69
+ background: -moz-linear-gradient(90deg,
70
+ map-get($background, card) 10px,
71
+ map-get($background, card),
72
+ rgba(255, 255, 255, 0) calc(0% + 10px),
73
+ rgba(255, 255, 255, 0) calc(100% - 10px),
74
+ map-get($background, card) 10px,
75
+ map-get($background, card));
76
+ background: -webkit-linear-gradient(0deg,
77
+ map-get($background, card) 10px,
78
+ map-get($background, card),
79
+ rgba(255, 255, 255, 0) calc(0% + 10px),
80
+ rgba(255, 255, 255, 0) calc(100% - 10px),
81
+ map-get($background, card) 10px,
82
+ map-get($background, card));
83
+ }
84
+
85
+ .scrollbox-horizontal-content-background,
86
+ .scrollbox-h-content-background,
87
+ .scrollbox-x-content-background {
88
+ background: map-get($background, background);
89
+ background: linear-gradient(90deg,
90
+ map-get($background, background) 10px,
91
+ map-get($background, background),
92
+ rgba(255, 255, 255, 0) calc(0% + 10px),
93
+ rgba(255, 255, 255, 0) calc(100% - 10px),
94
+ map-get($background, background) 10px,
95
+ map-get($background, background));
96
+ background: -moz-linear-gradient(90deg,
97
+ map-get($background, background) 10px,
98
+ map-get($background, background),
99
+ rgba(255, 255, 255, 0) calc(0% + 10px),
100
+ rgba(255, 255, 255, 0) calc(100% - 10px),
101
+ map-get($background, background) 10px,
102
+ map-get($background, background));
103
+ background: -webkit-linear-gradient(0deg,
104
+ map-get($background, background) 10px,
105
+ map-get($background, background),
106
+ rgba(255, 255, 255, 0) calc(0% + 10px),
107
+ rgba(255, 255, 255, 0) calc(100% - 10px),
108
+ map-get($background, background) 10px,
109
+ map-get($background, background));
110
+ }
111
+
112
+ .scrollbox-background {
113
+ overflow: overlay;
114
+ background:
115
+ /* Shadow covers */
116
+ linear-gradient(map-get($background, background) 30%, rgba(255, 255, 255, 0)),
117
+ linear-gradient(rgba(255, 255, 255, 0), map-get($background, background) 70%) 0 100%,
118
+ /* Shadows */
119
+ linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
120
+ linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%) 0 100%;
121
+ background-repeat: no-repeat;
122
+ background-color: map-get($background, background);
123
+ background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
124
+ /* Opera doesn't support this in the shorthand */
125
+ background-attachment: local, local, scroll, scroll;
126
+ }
127
+ }
@@ -0,0 +1,259 @@
1
+ @mixin _matcha-table-theme-container-shadow-property($theme) {
2
+ $background: map-get($theme, background);
3
+
4
+ box-shadow: 0px -16px 0px 0px inset map-get($background, card), 20px 0 16px -24px inset #000000,
5
+ -20px 0 16px -24px inset #000000, 0px 2px 2px 0px #00000009, 0px 2px 2px 0px #00000009,
6
+ 0px 2px 2px 0px #00000009;
7
+ }
8
+
9
+ @mixin _matcha-table-theme-shadow-property($theme) {
10
+ $background: map-get($theme, background);
11
+
12
+ background: map-get($background, card);
13
+ background: linear-gradient(90deg,
14
+ map-get($background, card) 0px,
15
+ map-get($background, card) 0px,
16
+ rgba(255, 255, 255, 0) calc(0% + 40px),
17
+ rgba(255, 255, 255, 0) calc(100% - 40px),
18
+ map-get($background, card) calc(100% - 0px));
19
+ background: -moz-linear-gradient(90deg,
20
+ map-get($background, card) 0px,
21
+ map-get($background, card) 0px,
22
+ rgba(255, 255, 255, 0) calc(0% + 40px),
23
+ rgba(255, 255, 255, 0) calc(100% - 40px),
24
+ map-get($background, card) calc(100% - 0px));
25
+ background: -webkit-linear-gradient(0deg,
26
+ map-get($background, card) 0px,
27
+ map-get($background, card) 0px,
28
+ rgba(255, 255, 255, 0) calc(0% + 40px),
29
+ rgba(255, 255, 255, 0) calc(100% - 40px),
30
+ map-get($background, card) calc(100% - 0px));
31
+ }
32
+
33
+ @mixin matcha-table-theme($theme) {
34
+ $is-dark-theme: map-get($theme, is-dark);
35
+ $primary: map-get($theme, primary);
36
+ $accent: map-get($theme, accent);
37
+ $warn: map-get($theme, warn);
38
+ $background: map-get($theme, background);
39
+ $foreground: map-get($theme, foreground);
40
+
41
+ // Vai direto na tag body
42
+ body.is-mobile {
43
+ .table-container {
44
+ .table-container-shadow {
45
+ overflow: auto;
46
+ @include _matcha-table-theme-container-shadow-property($theme);
47
+
48
+ .mat-table {
49
+ tbody {
50
+ @include _matcha-table-theme-shadow-property($theme);
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ .table-container {
58
+ width: 100%;
59
+
60
+ .mat-table {
61
+ .published {
62
+ color: map-get($foreground, green);
63
+ // margin-top: 5px;
64
+ }
65
+
66
+ .notPublished {
67
+ color: map-get($foreground, amber);
68
+ // margin-top: 5px;
69
+ }
70
+ }
71
+
72
+ .table-container-shadow {
73
+ overflow: auto;
74
+ background: map-get($background, card);
75
+ border-radius: 8px;
76
+ box-shadow: 0px 2px 2px 0px #00000009, 0px 2px 2px 0px #00000009, 0px 2px 2px 0px #00000009;
77
+ @include _matcha-table-theme-container-shadow-property($theme);
78
+
79
+ .mat-table {
80
+ tbody {
81
+ @include _matcha-table-theme-shadow-property($theme);
82
+ }
83
+ }
84
+
85
+ &.ps--active-x {
86
+ @include _matcha-table-theme-container-shadow-property($theme);
87
+
88
+ .mat-table {
89
+ @include _matcha-table-theme-shadow-property($theme);
90
+ }
91
+ }
92
+ }
93
+
94
+ .mat-table,
95
+ .mat-expansion-panel {
96
+ thead {
97
+ background: map-get($background, card);
98
+
99
+ th {
100
+ height: 64px;
101
+ }
102
+ }
103
+
104
+ tr {
105
+ &.mat-row {
106
+
107
+ // &:nth-child(even){background: map-get($background, card);}
108
+ &:nth-child(odd) {
109
+ background: map-get($background, table-row-hover);
110
+ }
111
+ }
112
+
113
+ td,
114
+ th {
115
+ touch-action: unset !important;
116
+ font-size: 14px;
117
+
118
+ &:first-child {
119
+ padding-left: 24px;
120
+ }
121
+
122
+ &:last-child {}
123
+
124
+ .clickable {
125
+ cursor: pointer;
126
+ }
127
+ }
128
+ }
129
+
130
+ .td-duble-line {
131
+ height: 48px;
132
+ }
133
+
134
+ .td-with-image,
135
+ .td-with-checkbox,
136
+ .td-with-icon,
137
+ .td-duble-line {
138
+ display: flex;
139
+ align-items: center;
140
+
141
+ .td-text-aside {
142
+ display: inline-block;
143
+ width: calc(100% - 48px);
144
+ }
145
+
146
+ .avatar {
147
+ width: 48px;
148
+ min-width: 48px;
149
+ height: 48px;
150
+ line-height: 48px;
151
+ border-width: 0;
152
+ margin-right: 24px;
153
+ }
154
+
155
+ .thumbnail {
156
+ width: 72px;
157
+ min-width: 72px;
158
+ height: 48px;
159
+ border-radius: 8px;
160
+ margin: 0 8px 0 0;
161
+
162
+ &-portrait {
163
+ width: 56px;
164
+ min-width: 56px;
165
+ height: 72px;
166
+ border-radius: 8px;
167
+ margin: 0 8px 0 0;
168
+ }
169
+ }
170
+ }
171
+
172
+ .mat-header-cell {
173
+ color: map-get($foreground, text);
174
+ font-family: "CircularStd-Bold";
175
+ font-size: 16px;
176
+ padding-left: 8px;
177
+ padding-right: 8px;
178
+ border-bottom-width: 0px;
179
+ }
180
+
181
+ .mat-cell {
182
+ color: map-get($foreground, label);
183
+ font-size: 14px;
184
+ padding-left: 8px;
185
+ padding-right: 8px;
186
+ white-space: nowrap;
187
+ overflow: hidden;
188
+ text-overflow: ellipsis;
189
+ text-align: start;
190
+ border-bottom-width: 0px;
191
+
192
+ &.cdk-column-menu {
193
+ text-align: left;
194
+ }
195
+ }
196
+
197
+ .last {
198
+ display: flex;
199
+ justify-content: space-between;
200
+ width: 100%;
201
+ align-items: center;
202
+
203
+ span {
204
+ overflow: hidden;
205
+ text-overflow: ellipsis;
206
+ }
207
+
208
+ mat-menu {
209
+ display: none;
210
+ }
211
+ }
212
+ }
213
+
214
+ table {
215
+ width: 100%;
216
+ }
217
+
218
+ .badge {
219
+ border-radius: 8px;
220
+ padding: 8px;
221
+ color: map-get($foreground, text-inverse);
222
+
223
+ &.live-badge {
224
+ background-color: map-get($background, cyan);
225
+ font-size: 14px;
226
+ }
227
+
228
+ &.cell-badge {
229
+ background-color: map-get($background, purple);
230
+ font-size: 14px;
231
+ }
232
+
233
+ &.cult-badge {
234
+ background-color: map-get($background, blue);
235
+ font-size: 14px;
236
+ }
237
+
238
+ &.new-visitor-badge {
239
+ background-color: map-get($primary, default);
240
+ color: map-get($primary, default-contrast);
241
+ font-size: 14px;
242
+ line-height: 14px;
243
+ display: inline-block;
244
+ width: auto;
245
+ }
246
+ }
247
+ }
248
+
249
+ // X-Large devices (big desktops, 1440px and up < 1920)
250
+ @media (min-width: 1440px) {
251
+ .table-container {
252
+ .mat-table {
253
+ .mat-cell {
254
+ font-size: 16px;
255
+ }
256
+ }
257
+ }
258
+ }
259
+ }
Binary file
Binary file