@pageboard/html 0.10.13 → 0.10.16

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/ui/item.css CHANGED
@@ -23,7 +23,7 @@
23
23
  border-radius: 0rem;
24
24
  box-shadow: none;
25
25
  transition: box-shadow 0.1s ease;
26
- z-index: '';
26
+ z-index: "";
27
27
  font-size: 1em;
28
28
  }
29
29
  .ui.items > .ui a {
@@ -50,7 +50,7 @@
50
50
 
51
51
  .ui.items > .ui::after {
52
52
  display: block;
53
- content: ' ';
53
+ content: " ";
54
54
  height: 0px;
55
55
  clear: both;
56
56
  overflow: hidden;
@@ -74,7 +74,7 @@
74
74
  float: none;
75
75
  margin: 0em;
76
76
  padding: 0em;
77
- max-height: '';
77
+ max-height: "";
78
78
  align-self: top;
79
79
  width:175px;
80
80
  }
@@ -106,7 +106,7 @@
106
106
  }
107
107
  .ui.items > .ui > .content::after {
108
108
  display: block;
109
- content: ' ';
109
+ content: " ";
110
110
  height: 0px;
111
111
  clear: both;
112
112
  overflow: hidden;
@@ -122,15 +122,15 @@
122
122
  }
123
123
  .ui.items > .ui > .content > .header {
124
124
  display: inline-block;
125
- margin: -0.21425em 0em 0em;
126
- font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
125
+ margin: -0.2142em 0em 0em;
126
+ font-family: Lato, "Helvetica Neue", Arial, Helvetica, sans-serif;
127
127
  font-weight: bold;
128
- color: rgba(0, 0, 0, 0.85);
128
+ color: rgb(0 0 0 / 85%);
129
129
  }
130
130
 
131
131
  /* Default Header Size */
132
132
  .ui.items > .ui > .content > .header:not(.ui) {
133
- font-size: 1.28571429em;
133
+ font-size: 1.2857em;
134
134
  }
135
135
 
136
136
  /*--------------
@@ -150,12 +150,12 @@
150
150
 
151
151
  .ui.items > .ui .content img {
152
152
  align-self: middle;
153
- width: '';
153
+ width: "";
154
154
  }
155
155
  .ui.items > .ui img.avatar,
156
156
  .ui.items > .ui .avatar img {
157
- width: '';
158
- height: '';
157
+ width: "";
158
+ height: "";
159
159
  border-radius: 500rem;
160
160
  }
161
161
 
@@ -168,7 +168,7 @@
168
168
  max-width: auto;
169
169
  font-size: 1em;
170
170
  line-height: 1.4285em;
171
- color: rgba(0, 0, 0, 0.87);
171
+ color: rgb(0 0 0 / 87%);
172
172
  }
173
173
 
174
174
  /*--------------
@@ -187,10 +187,10 @@
187
187
  ---------------*/
188
188
 
189
189
  .ui.items > .ui .meta {
190
- margin: 0.5em 0em 0.5em;
190
+ margin: 0.5em 0em;
191
191
  font-size: 1em;
192
192
  line-height: 1em;
193
- color: rgba(0, 0, 0, 0.6);
193
+ color: rgb(0 0 0 / 60%);
194
194
  }
195
195
  .ui.items > .ui .meta * {
196
196
  margin-right: 0.3em;
@@ -210,16 +210,16 @@
210
210
 
211
211
  /* Generic */
212
212
  .ui.items > .ui > .content a:not(.ui) {
213
- color: '';
213
+ color: "";
214
214
  transition: color 0.1s ease;
215
215
  }
216
216
  .ui.items > .ui > .content a:not(.ui):hover {
217
- color: '';
217
+ color: "";
218
218
  }
219
219
 
220
220
  /* Header */
221
221
  .ui.items > .ui > .content > a.header {
222
- color: rgba(0, 0, 0, 0.85);
222
+ color: rgb(0 0 0 / 85%);
223
223
  }
224
224
  .ui.items > .ui > .content > a.header:hover {
225
225
  color: #1e70bf;
@@ -227,10 +227,10 @@
227
227
 
228
228
  /* Meta */
229
229
  .ui.items > .ui .meta > a:not(.ui) {
230
- color: rgba(0, 0, 0, 0.4);
230
+ color: rgb(0 0 0 / 40%);
231
231
  }
232
232
  .ui.items > .ui .meta > a:not(.ui):hover {
233
- color: rgba(0, 0, 0, 0.87);
233
+ color: rgb(0 0 0 / 87%);
234
234
  }
235
235
 
236
236
  /*--------------
@@ -244,11 +244,11 @@
244
244
  /* Icon */
245
245
  .ui.items > .ui > .content .favorite.icon {
246
246
  cursor: pointer;
247
- opacity: 0.75;
247
+ opacity: 75%;
248
248
  transition: color 0.1s ease;
249
249
  }
250
250
  .ui.items > .ui > .content .favorite.icon:hover {
251
- opacity: 1;
251
+ opacity: 100%;
252
252
  color: #FFB70A;
253
253
  }
254
254
  .ui.items > .ui > .content .active.favorite.icon {
@@ -261,11 +261,11 @@
261
261
  /* Icon */
262
262
  .ui.items > .ui > .content .like.icon {
263
263
  cursor: pointer;
264
- opacity: 0.75;
264
+ opacity: 75%;
265
265
  transition: color 0.1s ease;
266
266
  }
267
267
  .ui.items > .ui > .content .like.icon:hover {
268
- opacity: 1;
268
+ opacity: 100%;
269
269
  color: #FF2733;
270
270
  }
271
271
  .ui.items > .ui > .content .active.like.icon {
@@ -282,10 +282,10 @@
282
282
  background: none;
283
283
  margin: 0.5rem 0em 0em;
284
284
  width: 100%;
285
- padding: 0em 0em 0em;
285
+ padding: 0em;
286
286
  top: 0em;
287
287
  left: 0em;
288
- color: rgba(0, 0, 0, 0.4);
288
+ color: rgb(0 0 0 / 40%);
289
289
  box-shadow: none;
290
290
  transition: color 0.1s ease;
291
291
  border-top: none;
@@ -298,7 +298,7 @@
298
298
  }
299
299
  .ui.items > .ui .extra::after {
300
300
  display: block;
301
- content: ' ';
301
+ content: " ";
302
302
  height: 0px;
303
303
  clear: both;
304
304
  overflow: hidden;
@@ -319,7 +319,7 @@
319
319
  margin-right: 1em;
320
320
  }
321
321
  .ui.three.items > .ui > .image {
322
- width: calc(33.33333333% - 1em);
322
+ width: calc(33.3333% - 1em);
323
323
  margin-right: 1em;
324
324
  }
325
325
  .ui.four.items > .ui > .image {
@@ -331,11 +331,11 @@
331
331
  margin-right: 0.75em;
332
332
  }
333
333
  .ui.six.items > .ui > .image {
334
- width: calc(16.66666667% - 0.75em);
334
+ width: calc(16.6667% - 0.75em);
335
335
  margin-right: 0.75em;
336
336
  }
337
337
  .ui.seven.items > .ui > .image {
338
- width: calc(14.28571429% - 0.5em);
338
+ width: calc(14.2857% - 0.5em);
339
339
  margin-right: 0.5em;
340
340
  }
341
341
 
@@ -409,7 +409,7 @@
409
409
  --------------------*/
410
410
 
411
411
  .ui.divided.items > .ui {
412
- border-top: 1px solid rgba(34, 36, 38, 0.15);
412
+ border-top: 1px solid rgb(34 36 38 / 15%);
413
413
  margin: 0em;
414
414
  padding: 1em 0em;
415
415
  }
package/ui/layout.css CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  .inverted.layout {
56
- background: rgba(0, 0, 0, 0.8);
56
+ background: rgb(0 0 0 / 80%);
57
57
  }
58
58
 
59
59
  .inverted.layout p {
package/ui/loading.css CHANGED
@@ -21,24 +21,24 @@
21
21
  0% {
22
22
  width:0%;
23
23
  margin-left:0px;
24
- opacity:0.3;
24
+ opacity:30%;
25
25
  }
26
26
  50% {
27
27
  width:20px;
28
28
  margin-left:-10px;
29
- opacity:1;
29
+ opacity:100%;
30
30
  }
31
31
  100% {
32
32
  width:0%;
33
33
  margin-left:0px;
34
- opacity:0.3;
34
+ opacity:30%;
35
35
  }
36
36
  }
37
37
 
38
38
  .loading[data-src]::after {
39
39
  display: block;
40
40
  animation: scanner 6s steps(3, end) infinite;
41
- content: '';
41
+ content: "";
42
42
  width: 20px;
43
43
  height: 0;
44
44
  border-top: 4px dotted #aaa;
@@ -48,17 +48,17 @@
48
48
 
49
49
  .error[data-src]::after {
50
50
  display: block;
51
- content: '';
51
+ content: "";
52
52
  }
53
53
 
54
54
  .waiting[data-src]::after {
55
55
  display:block;
56
- content: '?';
56
+ content: "?";
57
57
  }
58
58
 
59
59
  .denied[data-src]::after {
60
60
  display:block;
61
- content: '🛇';
61
+ content: "🛇";
62
62
  }
63
63
 
64
64
  .error[data-src],
package/ui/menu.css CHANGED
@@ -11,7 +11,7 @@
11
11
  width: auto;
12
12
  height: auto;
13
13
  top: 100% !important;
14
- opacity: 1;
14
+ opacity: 100%;
15
15
  }
16
16
 
17
17
  /* menu item with icon */
package/ui/menu.js CHANGED
@@ -27,15 +27,17 @@ class HTMLElementMenu extends VirtualHTMLElement {
27
27
  const menu = this.firstElementChild;
28
28
  const helper = this.lastElementChild;
29
29
  helper.lastElementChild.lastElementChild.appendChild(this.toHelper(menu));
30
- this.observer = new ResizeObserver((entries, observer) => {
31
- window.requestAnimationFrame(() => {
32
- const styles = window.getComputedStyle(this);
33
- const parentWidth = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight) + this.offsetWidth;
34
- const menuWidth = menu.offsetWidth;
35
- this.classList.toggle('burger', parentWidth <= menuWidth);
30
+ state.finish(() => {
31
+ this.observer = new ResizeObserver((entries, observer) => {
32
+ window.requestAnimationFrame(() => {
33
+ const styles = window.getComputedStyle(this);
34
+ const parentWidth = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight) + this.offsetWidth;
35
+ const menuWidth = menu.offsetWidth;
36
+ this.classList.toggle('burger', parentWidth <= menuWidth);
37
+ });
36
38
  });
39
+ this.observer.observe(this.parentNode);
37
40
  });
38
- this.observer.observe(this.parentNode);
39
41
  }
40
42
  close(state) {
41
43
  if (this.observer) this.observer.disconnect();
package/ui/query-tags.js CHANGED
@@ -90,9 +90,10 @@ class HTMLElementQueryTags extends VirtualHTMLElement {
90
90
  else if (control.selected) control.selected = false;
91
91
  else if (control.reset) control.reset();
92
92
  else if (control.value) control.value = "";
93
- const e = document.createEvent('HTMLEvents');
94
- e.initEvent('submit', true, true);
95
- control.form.dispatchEvent(e);
93
+ control.form.dispatchEvent(new Event('submit', {
94
+ bubbles: true,
95
+ cancelable: true
96
+ }));
96
97
  }
97
98
  label.remove();
98
99
  }
package/ui/rating.css CHANGED
@@ -24,7 +24,7 @@ element-rating .icon {
24
24
  height: auto;
25
25
  transition: opacity 0.1s ease, background 0.1s ease, text-shadow 0.1s ease, color 0.1s ease;
26
26
  backface-visibility: hidden;
27
- color: rgba(0, 0, 0, 0.15);
27
+ color: rgb(0 0 0 / 15%);
28
28
  }
29
29
  element-rating .icon:last-child {
30
30
  padding-right:0;
@@ -40,20 +40,20 @@ element-rating .icon::before {
40
40
 
41
41
  /* Active Icon */
42
42
  element-rating .active.icon {
43
- color: rgba(0, 0, 0, 0.85);
43
+ color: rgb(0 0 0 / 85%);
44
44
  }
45
45
 
46
46
  /* Selected Icon */
47
47
  element-rating .icon.selected,
48
48
  element-rating .icon.selected.active {
49
- color: rgba(0, 0, 0, 0.87);
49
+ color: rgb(0 0 0 / 87%);
50
50
  }
51
51
 
52
52
  /* Star */
53
53
 
54
54
  /* Inactive */
55
55
  element-rating.star .icon {
56
- color: rgba(0, 0, 0, 0.15);
56
+ color: rgb(0 0 0 / 15%);
57
57
  text-shadow: none;
58
58
  }
59
59
 
@@ -73,7 +73,7 @@ element-rating.star .icon.selected.active {
73
73
  /* Heart */
74
74
 
75
75
  element-rating.heart .icon {
76
- color: rgba(0, 0, 0, 0.15);
76
+ color: rgb(0 0 0 / 15%);
77
77
  text-shadow: none !important;
78
78
  }
79
79
 
@@ -101,10 +101,10 @@ element-rating.disabled .icon {
101
101
 
102
102
  /* Selected Rating */
103
103
  element-rating.selected .active.icon {
104
- opacity: 1;
104
+ opacity: 100%;
105
105
  }
106
106
  element-rating .icon.selected,
107
107
  element-rating.selected .icon.selected {
108
- opacity: 1;
108
+ opacity: 100%;
109
109
  }
110
110
 
package/ui/site.css CHANGED
@@ -22,10 +22,10 @@ body {
22
22
  overflow-x: hidden;
23
23
  min-width: 320px;
24
24
  background: #FFFFFF;
25
- font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
25
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
26
26
  font-size: 14px;
27
27
  line-height: 1.4285em;
28
- color: rgba(0, 0, 0, 0.87);
28
+ color: rgb(0 0 0 / 87%);
29
29
  }
30
30
  .hidden,[hidden] {
31
31
  display:none !important;
@@ -41,9 +41,9 @@ h2,
41
41
  h3,
42
42
  h4,
43
43
  h5 {
44
- font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
45
- line-height: 1.28571429em;
46
- margin: calc(2rem - 0.14285714em) 0 1rem;
44
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
45
+ line-height: 1.2857em;
46
+ margin: calc(2rem - 0.1428em) 0 1rem;
47
47
  font-weight: bold;
48
48
  padding: 0;
49
49
  }
@@ -52,13 +52,13 @@ h1 {
52
52
  font-size: 2rem;
53
53
  }
54
54
  h2 {
55
- font-size: 1.71428571rem;
55
+ font-size: 1.7143rem;
56
56
  }
57
57
  h3 {
58
- font-size: 1.28571429rem;
58
+ font-size: 1.2857rem;
59
59
  }
60
60
  h4 {
61
- font-size: 1.07142857rem;
61
+ font-size: 1.0714rem;
62
62
  }
63
63
  h5 {
64
64
  font-size: 1rem;
@@ -172,7 +172,6 @@ i.icon {
172
172
  height:1em;
173
173
  font-size:1em;
174
174
  text-align:center;
175
- speak:none;
176
175
  }
177
176
  i.icon::before {
178
177
  display:block;
@@ -192,7 +191,7 @@ i.icon::before {
192
191
  cursor: pointer;
193
192
  }
194
193
  .caret-icon::before {
195
- content: '\f0da';
194
+ content: "\f0da";
196
195
  transform: rotate(0deg);
197
196
  font-family: Accordion;
198
197
  font-style:normal;
@@ -211,25 +210,25 @@ i.icon::before {
211
210
 
212
211
  i.icon.prev::before {
213
212
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1331 672q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/></svg>');
214
- content:'';
213
+ content:"";
215
214
  }
216
215
  i.icon.next::before {
217
216
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1299 1088q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/></svg>');
218
- content:'';
217
+ content:"";
219
218
  }
220
219
  i.icon.up::before {
221
220
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 2048 2048" xmlns="http://www.w3.org/2000/svg"><path d="M1523 1312q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/></svg>');
222
- content:'';
221
+ content:"";
223
222
  }
224
223
 
225
224
  .ui.breadcrumb .divider::before {
226
- content: '>';
225
+ content: ">";
227
226
  }
228
227
 
229
228
  i.icon.delete::before,
230
229
  i.icon.close::before {
231
230
  font-size:2em;
232
- content:'×';
231
+ content:"×";
233
232
  width:auto;
234
233
  height:auto;
235
234
  }
@@ -246,54 +245,45 @@ i.icon.close::before {
246
245
 
247
246
 
248
247
  /* Site */
249
- ::-webkit-selection {
250
- background-color: #CCE2FF;
251
- color: rgba(0, 0, 0, 0.87);
252
- }
253
- ::-moz-selection {
254
- background-color: #CCE2FF;
255
- color: rgba(0, 0, 0, 0.87);
256
- }
257
248
  ::selection {
258
249
  background-color: #CCE2FF;
259
- color: rgba(0, 0, 0, 0.87);
250
+ color: rgb(0 0 0 / 87%);
260
251
  }
261
252
 
262
253
  /* Force Simple Scrollbars */
263
254
  body ::-webkit-scrollbar {
264
- -webkit-appearance: none;
255
+ appearance: none;
265
256
  width: 10px;
266
257
  }
267
258
  body ::-webkit-scrollbar-track {
268
- background: rgba(0, 0, 0, 0.1);
259
+ background: rgb(0 0 0 / 10%);
269
260
  border-radius: 0px;
270
261
  }
271
262
  body ::-webkit-scrollbar-thumb {
272
263
  cursor: pointer;
273
264
  border-radius: 5px;
274
- background: rgba(0, 0, 0, 0.25);
275
- -webkit-transition: color 0.2s ease;
265
+ background: rgb(0 0 0 / 25%);
276
266
  transition: color 0.2s ease;
277
267
  }
278
268
  body ::-webkit-scrollbar-thumb:window-inactive {
279
- background: rgba(0, 0, 0, 0.15);
269
+ background: rgb(0 0 0 / 15%);
280
270
  }
281
271
  body ::-webkit-scrollbar-thumb:hover {
282
- background: rgba(128, 135, 139, 0.8);
272
+ background: rgb(128 135 139 / 80%);
283
273
  }
284
274
 
285
275
  /* Inverted UI */
286
276
  body .ui.inverted::-webkit-scrollbar-track {
287
- background: rgba(255, 255, 255, 0.1);
277
+ background: rgb(255 255 255 / 10%);
288
278
  }
289
279
  body .ui.inverted::-webkit-scrollbar-thumb {
290
- background: rgba(255, 255, 255, 0.25);
280
+ background: rgb(255 255 255 / 25%);
291
281
  }
292
282
  body .ui.inverted::-webkit-scrollbar-thumb:window-inactive {
293
- background: rgba(255, 255, 255, 0.15);
283
+ background: rgb(255 255 255 / 15%);
294
284
  }
295
285
  body .ui.inverted::-webkit-scrollbar-thumb:hover {
296
- background: rgba(255, 255, 255, 0.35);
286
+ background: rgb(255 255 255 / 35%);
297
287
  }
298
288
 
299
289
  /* Fixes */
@@ -315,7 +305,7 @@ body .ui.inverted::-webkit-scrollbar-thumb:hover {
315
305
  width: auto;
316
306
  height: auto;
317
307
  top: 100% !important;
318
- opacity: 1;
308
+ opacity: 100%;
319
309
  }
320
310
 
321
311
  [contenteditable] .field[block-focused] .dropdown > .menu {
package/ui/tab.css CHANGED
@@ -9,10 +9,7 @@ element-tabs {
9
9
  }
10
10
  element-tabs > .ui.tabular.menu + div[block-content="tabs"] > .segment {
11
11
  border-top: none;
12
- margin-left: 0;
13
- margin-top: 0;
14
- margin-right: 0;
15
- margin-bottom:1rem;
12
+ margin:0 0 1rem;
16
13
  width: 100%;
17
14
  }
18
15
 
package/ui/transition.css CHANGED
@@ -1,16 +1,16 @@
1
1
  /* async progress bar and error signal */
2
2
 
3
3
  body::after {
4
- content: '';
4
+ content: "";
5
5
  position:fixed;
6
6
  display:block;
7
7
  left:0;
8
8
  top:1px;
9
9
  width:0%;
10
10
  height:0;
11
- opacity:0.7;
11
+ opacity:70%;
12
12
  background: #4486cc;
13
- box-shadow: 0 0 5px rgba(99, 162, 235, 0.7);
13
+ box-shadow: 0 0 5px rgb(99 162 235 / 70%);
14
14
  z-index:1000;
15
15
  }
16
16
  html[data-stage] > body::after {
@@ -75,7 +75,7 @@ html.transition > body + body[data-transition-open] {
75
75
  }
76
76
 
77
77
  html.transition > body + body[data-transition-open] > *:not([block-type="main"]) {
78
- opacity:0;
78
+ opacity:0%;
79
79
  }
80
80
 
81
81
  html.transition > body + body[data-transition-open="tr-right"] {
@@ -99,7 +99,7 @@ html.transition > body + body[data-transition-open="tr-bottom"] {
99
99
  }
100
100
 
101
101
  html.transition > body + body[data-transition-open="fade"] {
102
- opacity:0;
102
+ opacity:0%;
103
103
  transition: opacity 1.5s ease-in;
104
104
  }
105
105
 
@@ -107,7 +107,7 @@ html.transition.transitioning > body + body[data-transition-open|="tr"] {
107
107
  transform: translate3d(0, 0, 0);
108
108
  }
109
109
  html.transition.transitioning > body + body[data-transition-open="fade"] {
110
- opacity:1;
110
+ opacity:100%;
111
111
  }
112
112
 
113
113
  /* closing transitions */
@@ -118,7 +118,7 @@ html.transition > body[data-transition-close|="tr"]:first-of-type {
118
118
 
119
119
  html.transition > body[data-transition-close="fade"]:first-of-type {
120
120
  z-index:1;
121
- opacity:1;
121
+ opacity:100%;
122
122
  transition: opacity 1.5s ease-in;
123
123
  }
124
124
 
@@ -139,6 +139,6 @@ html.transition.transitioning > body[data-transition-close="tr-bottom"]:first-of
139
139
  }
140
140
 
141
141
  html.transition.transitioning > body[data-transition-close="fade"]:first-of-type {
142
- opacity:0;
142
+ opacity:0%;
143
143
  }
144
144