matcha-theme 18.1.28 → 18.1.29
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/_typography.scss +1 -0
- package/base/_reset.scss +418 -0
- package/components/matcha-cards.scss +0 -1
- package/main.scss +1 -11
- package/package.json +1 -1
- package/abstracts/_breakpoints.scss +0 -33
- package/abstracts/_grid.scss +0 -163
- package/abstracts/_order.scss +0 -46
- package/abstracts/_position.scss +0 -51
- package/abstracts/_sizes.scss +0 -95
- package/abstracts/_spacings.scss +0 -216
- package/base/_helpers.scss +0 -171
- package/base/_typography.scss +0 -244
package/base/_typography.scss
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
How to use
|
|
3
|
-
@import '~matcha-ds/assets/scss/components/matcha-typography.scss';
|
|
4
|
-
@include base-typography-theme($theme);
|
|
5
|
-
*/
|
|
6
|
-
// -----------------------------------------------------------------------------------------------------
|
|
7
|
-
// Typography [Theme]
|
|
8
|
-
// -----------------------------------------------------------------------------------------------------
|
|
9
|
-
@mixin base-typography-theme($theme) {
|
|
10
|
-
$is-dark: map-get($theme, is-dark);
|
|
11
|
-
$accent: map-get($theme, accent);
|
|
12
|
-
$warn: map-get($theme, warn);
|
|
13
|
-
$primary: map-get($theme, primary);
|
|
14
|
-
$background: map-get($theme, background);
|
|
15
|
-
$foreground: map-get($theme, foreground);
|
|
16
|
-
|
|
17
|
-
a {
|
|
18
|
-
color: map-get($accent, default);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
code {
|
|
22
|
-
&:not(.highlight) {
|
|
23
|
-
background-color: map-get($background, card);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.changelog {
|
|
28
|
-
.entry {
|
|
29
|
-
background-color: map-get($background, card);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.text-boxed {
|
|
34
|
-
@if ($is-dark) {
|
|
35
|
-
background-color: rgba(255, 255, 255, 0.12);
|
|
36
|
-
color: rgba(255, 255, 255, 0.54);
|
|
37
|
-
} @else {
|
|
38
|
-
background-color: rgba(0, 0, 0, 0.12);
|
|
39
|
-
color: rgba(0, 0, 0, 0.54);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.text-primary {
|
|
44
|
-
color: map-get($primary, default) !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.text-warn {
|
|
48
|
-
color: map-get($warn, default) !important;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.text-label {
|
|
52
|
-
color: map-get($foreground, label) !important;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.text-placeholder {
|
|
56
|
-
color: map-get($foreground, placeholder) !important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.text-basic {
|
|
60
|
-
color: map-get($foreground, text) !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Changelog
|
|
64
|
-
.changelog {
|
|
65
|
-
.entry {
|
|
66
|
-
.groups {
|
|
67
|
-
.breaking-changes {
|
|
68
|
-
.title {
|
|
69
|
-
background: map-get($background, red);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.new {
|
|
74
|
-
.title {
|
|
75
|
-
background: map-get($background, green);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.improved {
|
|
80
|
-
.title {
|
|
81
|
-
background: map-get($background, purple);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.fixed {
|
|
86
|
-
.title {
|
|
87
|
-
background: map-get($background, blue);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Code
|
|
95
|
-
code {
|
|
96
|
-
&:not(.highlight) {
|
|
97
|
-
color: map-get($background, blue);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Mark
|
|
102
|
-
mark {
|
|
103
|
-
background: map-get($background, yellow);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Message boxes
|
|
107
|
-
.matcha-message-box,
|
|
108
|
-
.matcha-msg-box,
|
|
109
|
-
.message-box {
|
|
110
|
-
background-color: rgba(map-get($primary, default), 0.2);
|
|
111
|
-
border-left-color: map-get($primary, default);
|
|
112
|
-
color: map-get($foreground, text);
|
|
113
|
-
|
|
114
|
-
&.error,
|
|
115
|
-
&.warning,
|
|
116
|
-
&.success,
|
|
117
|
-
&.info,
|
|
118
|
-
&--error,
|
|
119
|
-
&--warning,
|
|
120
|
-
&--success,
|
|
121
|
-
&--info {
|
|
122
|
-
color: map-get($foreground, text);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&--error,
|
|
126
|
-
&.error {
|
|
127
|
-
background-color: map-get($background, red-alpha);
|
|
128
|
-
border-left-color: map-get($background, red);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&--warning,
|
|
132
|
-
&.warning {
|
|
133
|
-
background-color: map-get($background, yellow-alpha);
|
|
134
|
-
border-left-color: map-get($background, yellow);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&--success,
|
|
138
|
-
&.success {
|
|
139
|
-
background-color: map-get($background, green-alpha);
|
|
140
|
-
border-left-color: map-get($background, green);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&--info,
|
|
144
|
-
&.info {
|
|
145
|
-
background-color: map-get($background, blue-alpha);
|
|
146
|
-
border-left-color: map-get($background, blue);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// -----------------------------------------------------------------------------------------------------
|
|
152
|
-
// Typography [Style]
|
|
153
|
-
// -----------------------------------------------------------------------------------------------------
|
|
154
|
-
// Paragraph
|
|
155
|
-
.par-xs {
|
|
156
|
-
font-size: 12px !important;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.par-sm,
|
|
160
|
-
.par-p {
|
|
161
|
-
font-size: 14px !important;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.par-md,
|
|
165
|
-
.par-m {
|
|
166
|
-
font-size: 16px !important;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.par-lg {
|
|
170
|
-
font-size: 20px !important;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.par-xl {
|
|
174
|
-
font-size: 24px !important;
|
|
175
|
-
}
|
|
176
|
-
.text-medium,
|
|
177
|
-
.text-semibold {
|
|
178
|
-
font-weight: 500;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.text-regular,
|
|
182
|
-
.text-book {
|
|
183
|
-
font-weight: 400;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.text-bold {
|
|
187
|
-
font-weight: 700;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.text-black {
|
|
191
|
-
font-weight: 900;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.matcha-message-box,
|
|
195
|
-
.matcha-msg-box,
|
|
196
|
-
.message-box {
|
|
197
|
-
padding: 16px;
|
|
198
|
-
border-left: 6px solid;
|
|
199
|
-
|
|
200
|
-
&.error,
|
|
201
|
-
&.warning,
|
|
202
|
-
&.success,
|
|
203
|
-
&.info,
|
|
204
|
-
&--error,
|
|
205
|
-
&--warning,
|
|
206
|
-
&--success,
|
|
207
|
-
&--info {
|
|
208
|
-
padding: 16px;
|
|
209
|
-
border-left: 6px solid;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.title {
|
|
214
|
-
line-height: 24px;
|
|
215
|
-
margin: 0 0 16px 0;
|
|
216
|
-
display: flex;
|
|
217
|
-
align-items: center;
|
|
218
|
-
|
|
219
|
-
.title-bullet {
|
|
220
|
-
margin: 0px 8px 0 0;
|
|
221
|
-
display: inline-block;
|
|
222
|
-
position: relative;
|
|
223
|
-
border-radius: 10px;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.title-content {
|
|
227
|
-
line-height: 20px;
|
|
228
|
-
display: -webkit-box;
|
|
229
|
-
-webkit-line-clamp: 2;
|
|
230
|
-
overflow: hidden;
|
|
231
|
-
text-overflow: ellipsis;
|
|
232
|
-
word-break: break-word;
|
|
233
|
-
white-space: initial;
|
|
234
|
-
-webkit-box-orient: vertical;
|
|
235
|
-
text-transform: capitalize;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.title-sm {
|
|
240
|
-
display: block;
|
|
241
|
-
overflow: hidden;
|
|
242
|
-
text-overflow: ellipsis;
|
|
243
|
-
white-space: nowrap;
|
|
244
|
-
}
|