@genexus/mercury 0.1.0 → 0.1.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/package.json +2 -2
- package/src/mercury.scss +0 -294
package/package.json
CHANGED
package/src/mercury.scss
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
// Resets
|
|
2
|
-
@import "../../common/resets";
|
|
3
|
-
|
|
4
|
-
// Tokens > Primitive
|
|
5
|
-
@import "./tokens/primitive/border";
|
|
6
|
-
@import "./tokens/primitive/color";
|
|
7
|
-
@import "./tokens/primitive/elevation";
|
|
8
|
-
@import "./tokens/primitive/font";
|
|
9
|
-
@import "./tokens/primitive/spacing";
|
|
10
|
-
@import "./tokens/primitive/timing";
|
|
11
|
-
|
|
12
|
-
// Tokens > Semantic
|
|
13
|
-
@import "./tokens/semantic/tokens";
|
|
14
|
-
|
|
15
|
-
// Other
|
|
16
|
-
@import "./mixins";
|
|
17
|
-
@import "./base/icons/sass/icons-selectors.scss";
|
|
18
|
-
|
|
19
|
-
// Base
|
|
20
|
-
@import "./base/button/styles";
|
|
21
|
-
|
|
22
|
-
// Components
|
|
23
|
-
@import "./components/checkbox/styles";
|
|
24
|
-
@import "./components/shortcuts/styles";
|
|
25
|
-
@import "./components/tree-view/styles";
|
|
26
|
-
|
|
27
|
-
@mixin mercury(
|
|
28
|
-
// Resets
|
|
29
|
-
$resets: true,
|
|
30
|
-
$box-sizing-reset: true,
|
|
31
|
-
$button-reset: true,
|
|
32
|
-
$input-reset: true,
|
|
33
|
-
$other-reset: true,
|
|
34
|
-
$typography-reset: true,
|
|
35
|
-
|
|
36
|
-
// Theme
|
|
37
|
-
$light-theme: true,
|
|
38
|
-
$dark-theme: true,
|
|
39
|
-
$prefers-color-scheme-light: false,
|
|
40
|
-
$prefers-color-scheme-dark: false,
|
|
41
|
-
|
|
42
|
-
// Tokens
|
|
43
|
-
$tokens: true,
|
|
44
|
-
$border: true,
|
|
45
|
-
$color: true,
|
|
46
|
-
$elevation: true,
|
|
47
|
-
$font: true,
|
|
48
|
-
$spacing: true,
|
|
49
|
-
$timing: true,
|
|
50
|
-
|
|
51
|
-
// Icons
|
|
52
|
-
$icons: true,
|
|
53
|
-
$icons-path: "./assets/icons",
|
|
54
|
-
|
|
55
|
-
// Font face
|
|
56
|
-
$font-face: true,
|
|
57
|
-
|
|
58
|
-
// Base
|
|
59
|
-
$base-classes: true,
|
|
60
|
-
$button-classes: true,
|
|
61
|
-
$buttons-classes-with-icons: true,
|
|
62
|
-
|
|
63
|
-
// Components
|
|
64
|
-
$components: true,
|
|
65
|
-
$checkbox: true,
|
|
66
|
-
$tree-view: true
|
|
67
|
-
) {
|
|
68
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
69
|
-
// Resets
|
|
70
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
71
|
-
@if $resets {
|
|
72
|
-
// box-sizing
|
|
73
|
-
@if $box-sizing-reset {
|
|
74
|
-
@include box-sizing();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// <button> and <a> reset
|
|
78
|
-
@if $button-reset {
|
|
79
|
-
@include button-reset();
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@if $input-reset {
|
|
83
|
-
@include input-reset();
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// <hr> reset
|
|
87
|
-
@if $other-reset {
|
|
88
|
-
@include other-reset();
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// Typography reset
|
|
92
|
-
@if $typography-reset {
|
|
93
|
-
@include typography-reset();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
98
|
-
// Body
|
|
99
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
100
|
-
body {
|
|
101
|
-
@if $tokens and $color {
|
|
102
|
-
background-color: var(--mer-body__bg-color);
|
|
103
|
-
color: var(--mer-body__color);
|
|
104
|
-
}
|
|
105
|
-
@if $tokens and $font {
|
|
106
|
-
font-size: var(--mer-body__font-size);
|
|
107
|
-
line-height: var(--mer-body__line-height);
|
|
108
|
-
}
|
|
109
|
-
@if $font-face {
|
|
110
|
-
font-family: var(--mer-font-family--primary);
|
|
111
|
-
}
|
|
112
|
-
margin: 0;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
116
|
-
// Base
|
|
117
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
118
|
-
@if $base-classes {
|
|
119
|
-
@if $button-classes {
|
|
120
|
-
@include button($buttons-classes-with-icons);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
125
|
-
// Icons
|
|
126
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
127
|
-
@if $icons and $icons-path {
|
|
128
|
-
@include icons-lists($icons-path: $icons-path);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
132
|
-
// Typography
|
|
133
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
134
|
-
@if $font-face {
|
|
135
|
-
//light
|
|
136
|
-
@font-face {
|
|
137
|
-
font-family: "Inter";
|
|
138
|
-
font-style: normal;
|
|
139
|
-
font-weight: 300;
|
|
140
|
-
src: url("../src/assets/fonts/Inter_Light.woff2") format("woff2");
|
|
141
|
-
font-display: swap;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//regular
|
|
145
|
-
@font-face {
|
|
146
|
-
font-family: "Inter";
|
|
147
|
-
font-style: normal;
|
|
148
|
-
font-weight: 400;
|
|
149
|
-
src: url("../src/assets/fonts/Inter_Regular.woff2") format("woff2");
|
|
150
|
-
font-display: swap;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
//semi-bold
|
|
154
|
-
@font-face {
|
|
155
|
-
font-family: "Inter";
|
|
156
|
-
font-style: normal;
|
|
157
|
-
font-weight: 600;
|
|
158
|
-
src: url("../src/assets/fonts/Inter_SemiBold.woff2") format("woff2");
|
|
159
|
-
font-display: swap;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
//bold
|
|
163
|
-
@font-face {
|
|
164
|
-
font-family: "Inter";
|
|
165
|
-
font-style: normal;
|
|
166
|
-
font-weight: 700;
|
|
167
|
-
src: url("../src/assets/fonts/Inter_Bold.woff2") format("woff2");
|
|
168
|
-
font-display: swap;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
//extra-bold
|
|
172
|
-
@font-face {
|
|
173
|
-
font-family: "Inter";
|
|
174
|
-
font-style: normal;
|
|
175
|
-
font-weight: 800;
|
|
176
|
-
src: url("../src/assets/fonts/Inter_ExtraBold.woff2") format("woff2");
|
|
177
|
-
font-display: swap;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
182
|
-
// Primitive Color Tokens
|
|
183
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
184
|
-
// Light
|
|
185
|
-
@if $color and $light-theme and $tokens {
|
|
186
|
-
:root {
|
|
187
|
-
@include foundation-colors--light();
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
@if $color and $tokens and $prefers-color-scheme-light {
|
|
191
|
-
@media (prefers-color-scheme: light) {
|
|
192
|
-
:root {
|
|
193
|
-
@include foundation-colors--light();
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
// Dark
|
|
198
|
-
@if $color and $dark-theme and $tokens {
|
|
199
|
-
:root.dark {
|
|
200
|
-
@include foundation-colors--dark();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
@if $color and $tokens and $prefers-color-scheme-dark {
|
|
204
|
-
@media (prefers-color-scheme: dark) {
|
|
205
|
-
:root {
|
|
206
|
-
@include foundation-colors--dark();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
212
|
-
// Other Tokens
|
|
213
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
214
|
-
@if $tokens and
|
|
215
|
-
(
|
|
216
|
-
$border or
|
|
217
|
-
$color or
|
|
218
|
-
($elevation and $light-theme) or
|
|
219
|
-
($elevation and $prefers-color-scheme-light) or
|
|
220
|
-
($elevation and $dark-theme) or
|
|
221
|
-
($elevation and $prefers-color-scheme-dark) or
|
|
222
|
-
$font or
|
|
223
|
-
$spacing or
|
|
224
|
-
$timing
|
|
225
|
-
)
|
|
226
|
-
{
|
|
227
|
-
:root {
|
|
228
|
-
// border
|
|
229
|
-
@if $border {
|
|
230
|
-
@include border();
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// color
|
|
234
|
-
@if $color {
|
|
235
|
-
@include semantic-accent();
|
|
236
|
-
@include semantic-border();
|
|
237
|
-
@include semantic-heading();
|
|
238
|
-
@include semantic-icon();
|
|
239
|
-
@include semantic-item();
|
|
240
|
-
@include semantic-other();
|
|
241
|
-
@include semantic-text();
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// elevation (light)
|
|
245
|
-
@if $elevation and $light-theme {
|
|
246
|
-
@include elevation--light();
|
|
247
|
-
}
|
|
248
|
-
@if $elevation and $prefers-color-scheme-light {
|
|
249
|
-
@media (prefers-color-scheme: light) {
|
|
250
|
-
@include elevation--light();
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// elevation (dark)
|
|
255
|
-
@if $elevation and $dark-theme {
|
|
256
|
-
&.dark {
|
|
257
|
-
@include elevation--dark();
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
@if $elevation and $prefers-color-scheme-dark {
|
|
261
|
-
@media (prefers-color-scheme: dark) {
|
|
262
|
-
@include elevation--dark();
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// font
|
|
267
|
-
@if $font {
|
|
268
|
-
@include font();
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// spacing
|
|
272
|
-
@if $spacing {
|
|
273
|
-
@include spacing();
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
// timing
|
|
277
|
-
@if $timing {
|
|
278
|
-
@include timing();
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
284
|
-
// Components
|
|
285
|
-
// - - - - - - - - - - - - - - - - - - - -
|
|
286
|
-
@if $components {
|
|
287
|
-
@if $checkbox {
|
|
288
|
-
@include checkbox();
|
|
289
|
-
}
|
|
290
|
-
@if $tree-view {
|
|
291
|
-
@include tree-view();
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|