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.
- package/abstracts/_breakpoints.scss +33 -0
- package/abstracts/_colors.scss +422 -0
- package/abstracts/_elevation.scss +102 -0
- package/abstracts/_functions.scss +321 -0
- package/abstracts/_grid.scss +130 -0
- package/abstracts/_order.scss +46 -0
- package/abstracts/_position.scss +51 -0
- package/abstracts/_sizes.scss +74 -0
- package/abstracts/_spacings.scss +236 -0
- package/abstracts/_typography.scss +137 -0
- package/base/_helpers.scss +3019 -0
- package/base/_reset.scss +9 -0
- package/base/_typography.scss +242 -0
- package/components/matcha-audio-player.scss +37 -0
- package/components/matcha-buttons.scss +91 -0
- package/components/matcha-cards.scss +93 -0
- package/components/matcha-color-pick.scss +32 -0
- package/components/matcha-draggable.scss +25 -0
- package/components/matcha-header.scss +326 -0
- package/components/matcha-horizontal-tree.scss +275 -0
- package/components/matcha-icons.scss +11 -0
- package/components/matcha-progress-bar.scss +107 -0
- package/components/matcha-scrollbar.scss +36 -0
- package/components/matcha-scrollbox-shadow.scss +127 -0
- package/components/matcha-table.scss +259 -0
- package/fonts/CircularStd-Bold.eot +0 -0
- package/fonts/CircularStd-Bold.otf +0 -0
- package/fonts/CircularStd-Bold.svg +13532 -0
- package/fonts/CircularStd-Bold.ttf +0 -0
- package/fonts/CircularStd-Bold.woff +0 -0
- package/fonts/CircularStd-Bold.woff2 +0 -0
- package/fonts/CircularStd-Medium.eot +0 -0
- package/fonts/CircularStd-Medium.otf +0 -0
- package/fonts/CircularStd-Medium.svg +13511 -0
- package/fonts/CircularStd-Medium.ttf +0 -0
- package/fonts/CircularStd-Medium.woff +0 -0
- package/fonts/CircularStd-Medium.woff2 +0 -0
- package/fonts/CircularStd-Regular.eot +0 -0
- package/fonts/CircularStd-Regular.otf +0 -0
- package/fonts/CircularStd-Regular.svg +5562 -0
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/main.scss +87 -0
- package/package.json +11 -0
- package/tokens/_animations.scss +37 -0
- package/tokens/_breakpoints.scss +46 -0
- package/tokens/_color-tokens.scss +1419 -0
- package/tokens/_elevation-tokens.scss +14 -0
- package/tokens/_spacing-tokens.scss +96 -0
- package/tokens/_typography-tokens.scss +25 -0
- package/vendors/angular-editor.scss +56 -0
- package/vendors/angular-material-fixes.scss +21 -0
- package/vendors/calendar.scss +2876 -0
- package/vendors/charts.scss +92 -0
- package/vendors/ng5-slider.scss +56 -0
- package/vendors/ngx-material-timepicker.scss +50 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------------------------------------
|
|
2
|
+
// @ Spacing - Margin and Padding
|
|
3
|
+
// Generate spacing values from -64 to 64 jumping from 4 to 4
|
|
4
|
+
// -----------------------------------------------------------------------------------------------------
|
|
5
|
+
@each $breakpoint,
|
|
6
|
+
$materialBreakpoint in $helper-breakpoints {
|
|
7
|
+
@include media-breakpoint($materialBreakpoint) {
|
|
8
|
+
$infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
|
|
9
|
+
|
|
10
|
+
@each $prop,
|
|
11
|
+
$abbrev in (margin: m, padding: p) {
|
|
12
|
+
@if ($prop ==margin) {
|
|
13
|
+
@for $index from -16 through 16 {
|
|
14
|
+
$size: $index * 4;
|
|
15
|
+
$length: #{$size}px;
|
|
16
|
+
|
|
17
|
+
.#{$abbrev}#{$infix}-#{$size} {
|
|
18
|
+
#{$prop}: $length;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.#{$abbrev}#{$infix}-#{$size}--force {
|
|
22
|
+
#{$prop}: $length !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@for $index from -16 through 16 {
|
|
27
|
+
$size: $index * 4;
|
|
28
|
+
$length: #{$size}px;
|
|
29
|
+
|
|
30
|
+
.#{$abbrev}x#{$infix}-#{$size} {
|
|
31
|
+
#{$prop}-right: $length;
|
|
32
|
+
#{$prop}-left: $length;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.#{$abbrev}y#{$infix}-#{$size} {
|
|
36
|
+
#{$prop}-top: $length;
|
|
37
|
+
#{$prop}-bottom: $length;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
.#{$abbrev}x#{$infix}-#{$size}--force {
|
|
42
|
+
#{$prop}-right: $length !important;
|
|
43
|
+
#{$prop}-left: $length !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.#{$abbrev}y#{$infix}-#{$size}--force {
|
|
47
|
+
#{$prop}-top: $length !important;
|
|
48
|
+
#{$prop}-bottom: $length !important;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@for $index from -16 through 16 {
|
|
53
|
+
$size: $index * 4;
|
|
54
|
+
$length: #{$size}px;
|
|
55
|
+
|
|
56
|
+
.#{$abbrev}t#{$infix}-#{$size} {
|
|
57
|
+
#{$prop}-top: $length;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.#{$abbrev}r#{$infix}-#{$size} {
|
|
61
|
+
#{$prop}-right: $length;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.#{$abbrev}b#{$infix}-#{$size} {
|
|
65
|
+
#{$prop}-bottom: $length;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.#{$abbrev}l#{$infix}-#{$size} {
|
|
69
|
+
#{$prop}-left: $length;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
.#{$abbrev}t#{$infix}-#{$size}--force {
|
|
74
|
+
#{$prop}-top: $length !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.#{$abbrev}r#{$infix}-#{$size}--force {
|
|
78
|
+
#{$prop}-right: $length !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.#{$abbrev}b#{$infix}-#{$size}--force {
|
|
82
|
+
#{$prop}-bottom: $length !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.#{$abbrev}l#{$infix}-#{$size}--force {
|
|
86
|
+
#{$prop}-left: $length !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@if ($prop ==padding) {
|
|
92
|
+
@for $index from 0 through 16 {
|
|
93
|
+
$size: $index * 4;
|
|
94
|
+
$length: #{$size}px;
|
|
95
|
+
|
|
96
|
+
.#{$abbrev}#{$infix}-#{$size} {
|
|
97
|
+
#{$prop}: $length;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.#{$abbrev}#{$infix}-#{$size}--force {
|
|
101
|
+
#{$prop}: $length !important;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@for $index from 0 through 16 {
|
|
106
|
+
$size: $index * 4;
|
|
107
|
+
$length: #{$size}px;
|
|
108
|
+
|
|
109
|
+
.#{$abbrev}x#{$infix}-#{$size} {
|
|
110
|
+
#{$prop}-right: $length;
|
|
111
|
+
#{$prop}-left: $length;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.#{$abbrev}y#{$infix}-#{$size} {
|
|
115
|
+
#{$prop}-top: $length;
|
|
116
|
+
#{$prop}-bottom: $length;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
.#{$abbrev}x#{$infix}-#{$size}--force {
|
|
121
|
+
#{$prop}-right: $length !important;
|
|
122
|
+
#{$prop}-left: $length !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.#{$abbrev}y#{$infix}-#{$size}--force {
|
|
126
|
+
#{$prop}-top: $length !important;
|
|
127
|
+
#{$prop}-bottom: $length !important;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@for $index from 0 through 16 {
|
|
132
|
+
$size: $index * 4;
|
|
133
|
+
$length: #{$size}px;
|
|
134
|
+
|
|
135
|
+
.#{$abbrev}t#{$infix}-#{$size} {
|
|
136
|
+
#{$prop}-top: $length;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.#{$abbrev}r#{$infix}-#{$size} {
|
|
140
|
+
#{$prop}-right: $length;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.#{$abbrev}b#{$infix}-#{$size} {
|
|
144
|
+
#{$prop}-bottom: $length;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.#{$abbrev}l#{$infix}-#{$size} {
|
|
148
|
+
#{$prop}-left: $length;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
.#{$abbrev}t#{$infix}-#{$size}--force {
|
|
153
|
+
#{$prop}-top: $length !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.#{$abbrev}r#{$infix}-#{$size}--force {
|
|
157
|
+
#{$prop}-right: $length !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.#{$abbrev}b#{$infix}-#{$size}--force {
|
|
161
|
+
#{$prop}-bottom: $length !important;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.#{$abbrev}l#{$infix}-#{$size}--force {
|
|
165
|
+
#{$prop}-left: $length !important;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@if ($abbrev ==m) {
|
|
171
|
+
|
|
172
|
+
// Some special margin utils for flex alignments
|
|
173
|
+
.m#{$infix}-auto {
|
|
174
|
+
margin: auto;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.mt#{$infix}-auto {
|
|
178
|
+
margin-top: auto;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.mr#{$infix}-auto {
|
|
182
|
+
margin-right: auto;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.mb#{$infix}-auto {
|
|
186
|
+
margin-bottom: auto;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ml#{$infix}-auto {
|
|
190
|
+
margin-left: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mx#{$infix}-auto {
|
|
194
|
+
margin-right: auto;
|
|
195
|
+
margin-left: auto;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.my#{$infix}-auto {
|
|
199
|
+
margin-top: auto;
|
|
200
|
+
margin-bottom: auto;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
.m#{$infix}-auto--force {
|
|
205
|
+
margin: auto !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.mt#{$infix}-auto--force {
|
|
209
|
+
margin-top: auto !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.mr#{$infix}-auto--force {
|
|
213
|
+
margin-right: auto !important;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.mb#{$infix}-auto--force {
|
|
217
|
+
margin-bottom: auto !important;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.ml#{$infix}-auto--force {
|
|
221
|
+
margin-left: auto !important;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.mx#{$infix}-auto--force {
|
|
225
|
+
margin-right: auto !important;
|
|
226
|
+
margin-left: auto !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.my#{$infix}-auto--force {
|
|
230
|
+
margin-top: auto !important;
|
|
231
|
+
margin-bottom: auto !important;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// @ Typography mixins
|
|
3
|
+
// -------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
// Outputs the shorthand `font` CSS property, based on a set of typography values. Falls back to
|
|
5
|
+
// the individual properties if a value that isn't allowed in the shorthand is passed in.
|
|
6
|
+
@mixin matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family) {
|
|
7
|
+
|
|
8
|
+
// If any of the values are set to `inherit`, we can't use the shorthand
|
|
9
|
+
// so we fall back to passing in the individual properties.
|
|
10
|
+
@if ($font-size ==inherit or $font-weight ==inherit or $line-height ==inherit or $font-family ==inherit or $font-size ==null or $font-weight ==null or $line-height ==null or $font-family ==null) {
|
|
11
|
+
font-size: $font-size;
|
|
12
|
+
font-weight: $font-weight;
|
|
13
|
+
line-height: $line-height;
|
|
14
|
+
font-family: $font-family;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@else {
|
|
18
|
+
// Otherwise use the shorthand `font`, because it's the least amount of bytes. Note
|
|
19
|
+
// that we need to use interpolation for `font-size/line-height` in order to prevent
|
|
20
|
+
// Sass from dividing the two values.
|
|
21
|
+
font: $font-weight #{$font-size}/#{$line-height} $font-family;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Converts a typography level into CSS styles.
|
|
26
|
+
@mixin matcha-typography-level-to-styles($config, $level) {
|
|
27
|
+
$font-size: matcha-font-size($config, $level);
|
|
28
|
+
$font-weight: matcha-font-weight($config, $level);
|
|
29
|
+
$line-height: matcha-line-height($config, $level);
|
|
30
|
+
$font-family: matcha-font-family($config, $level);
|
|
31
|
+
|
|
32
|
+
@include matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family);
|
|
33
|
+
letter-spacing: matcha-letter-spacing($config, $level);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Represents a collection of typography levels.
|
|
37
|
+
// Defaults come from https://material.io/guidelines/style/typography.html
|
|
38
|
+
// Note: The spec doesn't mention letter spacing. The values here come from
|
|
39
|
+
// eyeballing it until it looked exactly like the spec examples.
|
|
40
|
+
|
|
41
|
+
// h1 40px headline - bold
|
|
42
|
+
// h2 32px title - medium
|
|
43
|
+
// h3 24px subheading - bold
|
|
44
|
+
// h4 20px subheading - bold
|
|
45
|
+
|
|
46
|
+
// h5-5 18px '' - bold
|
|
47
|
+
// h6 18px '' - bold
|
|
48
|
+
// h7 18px '' - bold
|
|
49
|
+
// h8 12px '' - bold
|
|
50
|
+
|
|
51
|
+
// m 16px body - regular
|
|
52
|
+
// p 14px body - regular
|
|
53
|
+
// small 12px caption - regular
|
|
54
|
+
@mixin matcha-reset-typography($config) {
|
|
55
|
+
|
|
56
|
+
// Headings
|
|
57
|
+
.h1,
|
|
58
|
+
h1 {
|
|
59
|
+
font-size: 40px;
|
|
60
|
+
|
|
61
|
+
font: {
|
|
62
|
+
family: matcha-font-family($config, button);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.h2,
|
|
67
|
+
h2 {
|
|
68
|
+
font-size: 32px;
|
|
69
|
+
|
|
70
|
+
font: {
|
|
71
|
+
family: matcha-font-family($config, button);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.h3,
|
|
76
|
+
h3 {
|
|
77
|
+
font-size: 24px;
|
|
78
|
+
|
|
79
|
+
font: {
|
|
80
|
+
family: matcha-font-family($config, button);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.h4,
|
|
85
|
+
h4 {
|
|
86
|
+
font-size: 20px;
|
|
87
|
+
|
|
88
|
+
font: {
|
|
89
|
+
family: matcha-font-family($config, button);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.h5,
|
|
94
|
+
h5 {
|
|
95
|
+
font-size: 16px;
|
|
96
|
+
|
|
97
|
+
font: {
|
|
98
|
+
family: matcha-font-family($config, button);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.h6,
|
|
103
|
+
h6 {
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
|
|
106
|
+
font: {
|
|
107
|
+
family: matcha-font-family($config, button);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.h7 {
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
|
|
114
|
+
font: {
|
|
115
|
+
family: matcha-font-family($config, button);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.h8 {
|
|
120
|
+
font-size: 12px;
|
|
121
|
+
|
|
122
|
+
font: {
|
|
123
|
+
family: matcha-font-family($config, button);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
text-transform: uppercase;
|
|
127
|
+
letter-spacing: 0.08em;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.text-bold,
|
|
131
|
+
strong,
|
|
132
|
+
b {
|
|
133
|
+
font: {
|
|
134
|
+
family: matcha-font-family($config, button);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|