@acorex/styles 7.5.0 → 7.8.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "7.5.0",
3
+ "version": "7.8.0",
4
4
  "main": "index.js",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",
@@ -33,7 +33,8 @@
33
33
  5. Use the user's configured `sans` font-feature-settings by default.
34
34
  */
35
35
 
36
- html {
36
+ html,
37
+ :host {
37
38
  line-height: 1.5;
38
39
  /* 1 */
39
40
  -webkit-text-size-adjust: 100%;
@@ -43,8 +44,21 @@ html {
43
44
  -o-tab-size: 4;
44
45
  tab-size: 4;
45
46
  /* 3 */
46
- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
47
- sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
47
+ font-family:
48
+ ui-sans-serif,
49
+ system-ui,
50
+ -apple-system,
51
+ BlinkMacSystemFont,
52
+ 'Segoe UI',
53
+ Roboto,
54
+ 'Helvetica Neue',
55
+ Arial,
56
+ 'Noto Sans',
57
+ sans-serif,
58
+ 'Apple Color Emoji',
59
+ 'Segoe UI Emoji',
60
+ 'Segoe UI Symbol',
61
+ 'Noto Color Emoji';
48
62
  /* 4 */
49
63
  font-feature-settings: normal;
50
64
  /* 5 */
@@ -127,7 +141,8 @@ code,
127
141
  kbd,
128
142
  samp,
129
143
  pre {
130
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
144
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
145
+ monospace;
131
146
  /* 1 */
132
147
  font-size: 1em;
133
148
  /* 2 */
@@ -187,20 +202,15 @@ input,
187
202
  optgroup,
188
203
  select,
189
204
  textarea {
190
- font-family: inherit;
191
- /* 1 */
192
- font-size: 100%;
193
- /* 1 */
194
- font-weight: inherit;
195
- /* 1 */
196
- line-height: inherit;
197
- /* 1 */
198
- color: inherit;
199
- /* 1 */
200
- margin: 0;
201
- /* 2 */
202
- padding: 0;
203
- /* 3 */
205
+ font-family: inherit; /* 1 */
206
+ font-feature-settings: inherit; /* 1 */
207
+ font-variation-settings: inherit; /* 1 */
208
+ font-size: 100%; /* 1 */
209
+ font-weight: inherit; /* 1 */
210
+ line-height: inherit; /* 1 */
211
+ color: inherit; /* 1 */
212
+ margin: 0; /* 2 */
213
+ padding: 0; /* 3 */
204
214
  }
205
215
 
206
216
  /*
@@ -339,6 +349,10 @@ menu {
339
349
  padding: 0;
340
350
  }
341
351
 
352
+ dialog {
353
+ padding: 0;
354
+ }
355
+
342
356
  /*
343
357
  Prevent resizing textareas horizontally by default.
344
358
  */
@@ -356,7 +370,7 @@ input::-moz-placeholder,
356
370
  textarea::-moz-placeholder {
357
371
  opacity: 1;
358
372
  /* 1 */
359
- color: #9ca3af;
373
+ color: rgba(var(--ax-color-text-default), 0.5);
360
374
  /* 2 */
361
375
  }
362
376
 
@@ -364,7 +378,7 @@ input::placeholder,
364
378
  textarea::placeholder {
365
379
  opacity: 1;
366
380
  /* 1 */
367
- color: #9ca3af;
381
+ color: rgba(var(--ax-color-text-default), 0.5);
368
382
  /* 2 */
369
383
  }
370
384
 
@@ -1,30 +1,29 @@
1
1
  if (!('boxShadow' in document.body.style)) {
2
- document.body.setAttribute('class', 'noBoxShadow');
2
+ document.body.setAttribute('class', 'noBoxShadow');
3
3
  }
4
4
 
5
- document.body.addEventListener("click", function(e) {
6
- var target = e.target;
7
- if (target.tagName === "INPUT" &&
8
- target.getAttribute('class').indexOf('liga') === -1) {
9
- target.select();
10
- }
5
+ document.body.addEventListener('click', function (e) {
6
+ var target = e.target;
7
+ if (target.tagName === 'INPUT' && target.getAttribute('class').indexOf('liga') === -1) {
8
+ target.select();
9
+ }
11
10
  });
12
11
 
13
- (function() {
14
- var fontSize = document.getElementById('fontSize'),
15
- testDrive = document.getElementById('testDrive'),
16
- testText = document.getElementById('testText');
17
- function updateTest() {
18
- testDrive.innerHTML = testText.value || String.fromCharCode(160);
19
- if (window.icomoonLiga) {
20
- window.icomoonLiga(testDrive);
21
- }
22
- }
23
- function updateSize() {
24
- testDrive.style.fontSize = fontSize.value + 'px';
12
+ (function () {
13
+ var fontSize = document.getElementById('fontSize'),
14
+ testDrive = document.getElementById('testDrive'),
15
+ testText = document.getElementById('testText');
16
+ function updateTest() {
17
+ testDrive.innerHTML = testText.value || String.fromCharCode(160);
18
+ if (window.icomoonLiga) {
19
+ window.icomoonLiga(testDrive);
25
20
  }
26
- fontSize.addEventListener('change', updateSize, false);
27
- testText.addEventListener('input', updateTest, false);
28
- testText.addEventListener('change', updateTest, false);
29
- updateSize();
30
- }());
21
+ }
22
+ function updateSize() {
23
+ testDrive.style.fontSize = fontSize.value + 'px';
24
+ }
25
+ fontSize.addEventListener('change', updateSize, false);
26
+ testText.addEventListener('input', updateTest, false);
27
+ testText.addEventListener('change', updateTest, false);
28
+ updateSize();
29
+ })();