hexo-blog-encrypt 4.1.0 → 4.2.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/lib/hbe.style.css CHANGED
@@ -1,907 +1,607 @@
1
- .hbe,
2
- .hbe:after,
3
- .hbe:before {
4
- -webkit-box-sizing: border-box;
5
- -moz-box-sizing: border-box;
6
- box-sizing: border-box;
1
+ :where(:root) {
2
+ --hbe-surface: #FCFDFE;
3
+ --hbe-ink: #202A34;
4
+ --hbe-rule: #677684;
5
+ --hbe-accent: #28588A;
6
+ --hbe-well: #EEF2F5;
7
+ --hbe-error: #973444;
8
+ --hbe-font: inherit;
9
+ --hbe-mono: ui-monospace, Menlo, Consolas, monospace;
10
+ --hbe-radius: 3px;
7
11
  }
8
12
 
9
- .hbe-container{
10
- margin: 0 auto;
11
- overflow: hidden;
13
+ @media (prefers-color-scheme: dark) {
14
+ :where(:root) {
15
+ --hbe-surface: #202A34;
16
+ --hbe-ink: #EFF3F6;
17
+ --hbe-rule: #97A9B6;
18
+ --hbe-accent: #9CC9F5;
19
+ --hbe-well: #293540;
20
+ --hbe-error: #FFB5BC;
21
+ }
22
+ }
23
+
24
+ :where([data-theme="dark"], .dark, .dark-mode, [data-user-color-scheme="dark"]) {
25
+ --hbe-surface: #202A34;
26
+ --hbe-ink: #EFF3F6;
27
+ --hbe-rule: #97A9B6;
28
+ --hbe-accent: #9CC9F5;
29
+ --hbe-well: #293540;
30
+ --hbe-error: #FFB5BC;
31
+ }
32
+
33
+ :where([data-theme="light"], [data-user-color-scheme="light"]) {
34
+ --hbe-surface: #FCFDFE;
35
+ --hbe-ink: #202A34;
36
+ --hbe-rule: #677684;
37
+ --hbe-accent: #28588A;
38
+ --hbe-well: #EEF2F5;
39
+ --hbe-error: #973444;
40
+ }
41
+
42
+ .hbe-container,
43
+ .hbe-container *,
44
+ .hbe-container ::before,
45
+ .hbe-container ::after,
46
+ .hbe-forget,
47
+ .hbe-forget * {
48
+ box-sizing: border-box;
49
+ }
50
+
51
+ .hbe-container,
52
+ .hbe-forget {
53
+ color: var(--hbe-ink);
54
+ font-family: var(--hbe-font);
55
+ overflow-wrap: anywhere;
12
56
  }
13
- .hbe-content {
14
- text-align: center;
15
- font-size: 150%;
16
- padding: 1em 0;
57
+
58
+ .hbe-container {
59
+ inline-size: 100%;
60
+ max-inline-size: 34rem;
61
+ min-inline-size: 0;
62
+ margin-inline: auto;
63
+ padding-block: .75rem;
64
+ padding-inline: 6px;
65
+ background: transparent;
17
66
  }
18
67
 
19
- .hbe-input {
20
- position: relative;
21
- z-index: 1;
22
- display: inline-block;
23
- margin: 1em;
24
- width: 80%;
25
- min-width: 200px;
26
- vertical-align: top;
68
+ .hbe-form {
69
+ display: grid;
70
+ grid-template-columns: minmax(0, 1fr);
71
+ justify-items: center;
72
+ inline-size: 100%;
73
+ margin: 0;
27
74
  }
28
75
 
29
- .hbe-input-field {
30
- line-height: normal;
31
- font-size: 100%;
32
- margin: 0;
33
- position: relative;
34
- display: block;
35
- float: right;
36
- padding: 0.8em;
37
- width: 60%;
38
- border: none;
39
- border-radius: 0;
40
- background: #f0f0f0;
41
- color: #aaa;
42
- font-weight: 400;
43
- font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
44
- -webkit-appearance: none; /* for box shadows to show on iOS */
45
- }
46
-
47
- .hbe-input-field:focus {
48
- outline: none;
76
+ .hbe-input {
77
+ position: relative;
78
+ isolation: isolate;
79
+ display: grid;
80
+ grid-template: 'label' auto 'field' 2.875rem / minmax(0, 1fr);
81
+ inline-size: 100%;
82
+ min-inline-size: 0;
49
83
  }
50
84
 
51
85
  .hbe-input-label {
52
- display: inline-block;
53
- float: right;
54
- padding: 0 1em;
55
- width: 40%;
56
- color: #696969;
57
- font-weight: bold;
58
- font-size: 70.25%;
59
- -webkit-font-smoothing: antialiased;
60
- -moz-osx-font-smoothing: grayscale;
61
- -webkit-touch-callout: none;
62
- -webkit-user-select: none;
63
- -khtml-user-select: none;
64
- -moz-user-select: none;
65
- -ms-user-select: none;
66
- user-select: none;
67
- }
68
-
69
- .hbe-input-label-content {
70
- position: relative;
71
- display: block;
72
- padding: 1.6em 0;
73
- width: 100%;
74
- }
75
-
76
- .hbe-graphic {
77
- position: absolute;
78
- top: 0;
79
- left: 0;
80
- fill: none;
81
- }
82
-
83
- /* hbe button in post page */
84
- .hbe-button {
85
- width: 130px;
86
- height: 40px;
87
- background: linear-gradient(to bottom, #4eb5e5 0%,#389ed5 100%); /* W3C */
88
- border: none;
89
- border-radius: 5px;
86
+ grid-area: label;
87
+ text-align: start;
88
+ line-height: 1.45;
89
+ font-size: 1.0625rem;
90
+ font-weight: 600;
91
+ margin-block-end: .5rem;
92
+ }
93
+
94
+ .hbe-input-field {
95
+ grid-area: field;
90
96
  position: relative;
91
- border-bottom: 4px solid #2b8bc6;
92
- color: #fbfbfb;
97
+ z-index: 1;
98
+ inline-size: 100%;
99
+ min-inline-size: 0;
100
+ block-size: 2.875rem;
101
+ padding: .5rem .75rem;
102
+ margin: 0;
103
+ font: inherit;
104
+ font-size: 1.0625rem;
105
+ line-height: 1.4;
106
+ color: var(--hbe-ink);
107
+ caret-color: var(--hbe-accent);
108
+ background: transparent;
109
+ border: 1px solid var(--hbe-rule);
110
+ border-radius: var(--hbe-radius);
111
+ appearance: none;
112
+ }
113
+
114
+ .hbe-input--filled .hbe-input-field {
115
+ opacity: 1;
116
+ color: var(--hbe-ink);
117
+ }
118
+
119
+ /* Copied pre-4.2 templates have no moving track or second label face.
120
+ * Keep the ordinary labelled field and fit its direct SVG inside that row. */
121
+ .hbe-input > .hbe-graphic {
122
+ position: absolute;
123
+ grid-area: field;
124
+ inset: 0;
125
+ width: 100%;
126
+ height: 100%;
127
+ color: var(--hbe-rule);
128
+ pointer-events: none;
129
+ }
130
+
131
+ .hbe-graphic path {
132
+ stroke: currentColor;
133
+ stroke-width: 2;
134
+ fill: none;
135
+ vector-effect: non-scaling-stroke;
136
+ }
137
+
138
+ .hbe-button,
139
+ .hbe-forget-button {
140
+ font: inherit;
141
+ font-size: 1rem;
93
142
  font-weight: 600;
94
- font-family: 'Open Sans', sans-serif;
95
- text-shadow: 1px 1px 1px rgba(0,0,0,.4);
96
- font-size: 15px;
97
- text-align: left;
98
- text-indent: 5px;
99
- box-shadow: 0px 3px 0px 0px rgba(0,0,0,.2);
143
+ line-height: 1.35;
144
+ min-block-size: 2.75rem;
145
+ max-inline-size: 100%;
146
+ white-space: normal;
147
+ overflow-wrap: anywhere;
148
+ padding: .5rem 1.5rem;
149
+ color: var(--hbe-surface);
150
+ background: var(--hbe-accent);
151
+ border: 1px solid var(--hbe-accent);
152
+ border-radius: var(--hbe-radius);
100
153
  cursor: pointer;
154
+ }
101
155
 
102
- display: block;
103
- margin: 0 auto;
104
- margin-bottom: 20px;
156
+ .hbe-button {
157
+ display: inline-flex;
158
+ flex-flow: row nowrap;
159
+ align-items: center;
160
+ justify-content: center;
161
+ gap: .5rem;
162
+ margin-block-start: 1rem;
163
+ justify-self: center;
105
164
  }
106
165
 
107
- .hbe-button:active {
108
- box-shadow: 0px 2px 0px 0px rgba(0,0,0,.2);
109
- top: 1px;
166
+ .hbe-button-hidden {
167
+ display: none;
110
168
  }
111
169
 
112
- .hbe-button:after {
113
- content: "";
114
- width: 0;
115
- height: 0;
116
- display: block;
117
- border-top: 20px solid #187dbc;
118
- border-bottom: 20px solid #187dbc;
119
- border-left: 16px solid transparent;
120
- border-right: 20px solid #187dbc;
121
- position: absolute;
122
- opacity: 0.6;
123
- right: 0;
124
- top: 0;
125
- border-radius: 0 5px 5px 0;
170
+ .hbe-input-field:focus-visible,
171
+ .hbe-button:focus-visible,
172
+ .hbe-forget :focus-visible {
173
+ outline: 3px solid var(--hbe-accent);
174
+ outline-offset: 3px;
126
175
  }
127
- /* hbe button in post page */
128
176
 
129
- /* default theme {{{ */
130
- .hbe-input-default {
131
- overflow: hidden;
177
+ .hbe-error {
178
+ margin: 0;
179
+ padding: 0;
180
+ min-height: 0;
181
+ font-size: .9375rem;
182
+ color: var(--hbe-error);
132
183
  }
133
184
 
134
- .hbe-input-field-default {
135
- width: 100%;
136
- background: transparent;
137
- padding: 0.5em;
138
- margin-bottom: 2em;
139
- color: #f9f7f6;
140
- z-index: 100;
141
- opacity: 0;
185
+ .hbe-error:not(:empty) {
186
+ justify-self: stretch;
187
+ background: var(--hbe-well);
188
+ border: 1px solid currentColor;
189
+ border-radius: var(--hbe-radius);
190
+ margin-block-start: .75rem;
191
+ padding: .5rem .75rem;
142
192
  }
143
193
 
144
- .hbe-input-label-default {
145
- width: 100%;
146
- position: absolute;
147
- text-align: left;
148
- padding: 0.5em 0;
149
- pointer-events: none;
150
- font-size: 1em;
194
+ .hbe-forget-button {
195
+ background: transparent;
196
+ color: var(--hbe-ink);
197
+ border-color: var(--hbe-rule);
198
+ padding: .5rem .75rem;
151
199
  }
152
200
 
153
- .hbe-input-label-default::before,
154
- .hbe-input-label-default::after {
155
- content: '';
156
- position: absolute;
157
- width: 100%;
158
- left: 0;
159
- }
160
-
161
- .hbe-input-label-default::before {
162
- height: 100%;
163
- background: #666666;
164
- top: 0;
165
- -webkit-transform: translate3d(0, -100%, 0);
166
- transform: translate3d(0, -100%, 0);
167
- -webkit-transition: -webkit-transform 0.2s;
168
- transition: transform 0.2s;
169
- }
170
-
171
- .hbe-input-label-default::after {
172
- height: 2px;
173
- background: #666666;
174
- top: 100%;
175
- -webkit-transition: opacity 0.2s;
176
- transition: opacity 0.2s;
177
- }
178
-
179
- .hbe-input-label-content-default {
180
- padding: 0;
181
- -webkit-transform-origin: 0 0;
182
- transform-origin: 0 0;
183
- -webkit-transition: -webkit-transform 0.2s, color 0.2s;
184
- transition: transform 0.2s, color 0.2s;
185
- }
186
-
187
- .hbe-input-field-default:focus,
188
- .hbe-input--filled .hbe-input-field-default {
189
- opacity: 1;
190
- -webkit-transition: opacity 0s 0.2s;
191
- transition: opacity 0s 0.2s;
192
- }
193
-
194
- .hbe-input-label-default::before,
195
- .hbe-input-label-default::after,
196
- .hbe-input-label-content-default,
197
- .hbe-input-field-default:focus,
198
- .hbe-input--filled .hbe-input-field-default {
199
- -webkit-transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
200
- transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
201
- }
202
-
203
- .hbe-input-field-default:focus + .hbe-input-label-default::before,
204
- .hbe-input--filled .hbe-input-label-default::before {
205
- -webkit-transform: translate3d(0, 0, 0);
206
- transform: translate3d(0, 0, 0);
207
- }
208
-
209
- .hbe-input-field-default:focus + .hbe-input-label-default::after,
210
- .hbe-input--filled .hbe-input-label-default::after {
211
- opacity: 0;
212
- }
213
-
214
- .hbe-input-field-default:focus + .hbe-input-label-default .hbe-input-label-content-default,
215
- .hbe-input--filled .hbe-input-label-default .hbe-input-label-content-default {
216
- color: #555555;
217
- -webkit-transform: translate3d(0, 2.1em, 0) scale3d(0.65, 0.65, 1);
218
- transform: translate3d(0, 2.1em, 0) scale3d(0.65, 0.65, 1);
219
- }
220
- /* default theme }}} */
221
-
222
- /* up theme {{{ */
223
- .hbe-input-up {
224
- overflow: hidden;
225
- padding-top: 2em;
226
- }
227
-
228
- .hbe-input-field-up {
229
- width: 100%;
230
- background: transparent;
231
- opacity: 0;
232
- padding: 0.35em;
233
- z-index: 100;
234
- color: #837482;
235
- }
236
-
237
- .hbe-input-label-up {
238
- width: 100%;
239
- bottom: 0;
240
- position: absolute;
241
- pointer-events: none;
242
- text-align: left;
243
- color: #8E9191;
244
- padding: 0 0.5em;
245
- }
246
-
247
- .hbe-input-label-up::before {
248
- content: '';
249
- position: absolute;
250
- width: 100%;
251
- height: 4em;
252
- top: 100%;
253
- left: 0;
254
- background: #fff;
255
- border-top: 4px solid #9B9F9F;
256
- -webkit-transform: translate3d(0, -3px, 0);
257
- transform: translate3d(0, -3px, 0);
258
- -webkit-transition: -webkit-transform 0.4s;
259
- transition: transform 0.4s;
260
- -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
261
- transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
262
- }
263
-
264
- .hbe-input-label-content-up {
265
- padding: 0.5em 0;
266
- -webkit-transform-origin: 0% 100%;
267
- transform-origin: 0% 100%;
268
- -webkit-transition: -webkit-transform 0.4s, color 0.4s;
269
- transition: transform 0.4s, color 0.4s;
270
- -webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
271
- transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
272
- }
273
-
274
- .hbe-input-field-up:focus,
275
- .hbe-input--filled .hbe-input-field-up {
276
- cursor: text;
277
- opacity: 1;
278
- -webkit-transition: opacity 0s 0.4s;
279
- transition: opacity 0s 0.4s;
280
- }
281
-
282
- .hbe-input-field-up:focus + .hbe-input-label-up::before,
283
- .hbe-input--filled .hbe-input-label-up::before {
284
- -webkit-transition-delay: 0.05s;
285
- transition-delay: 0.05s;
286
- -webkit-transform: translate3d(0, -3.3em, 0);
287
- transform: translate3d(0, -3.3em, 0);
288
- }
289
-
290
- .hbe-input-field-up:focus + .hbe-input-label-up .hbe-input-label-content-up,
291
- .hbe-input--filled .hbe-input-label-content-up {
292
- color: #6B6E6E;
293
- -webkit-transform: translate3d(0, -3.3em, 0) scale3d(0.81, 0.81, 1);
294
- transform: translate3d(0, -3.3em, 0) scale3d(0.81, 0.81, 1);
295
- }
296
- /* up theme }}} */
297
-
298
- /* wave theme {{{ */
299
- .hbe-input-wave {
300
- overflow: hidden;
301
- padding-top: 1em;
302
- }
303
-
304
- .hbe-input-field-wave {
305
- padding: 0.5em 0em 0.25em;
306
- width: 100%;
307
- background: transparent;
308
- color: #9da8b2;
309
- font-size: 1.25em;
310
- }
311
-
312
- .hbe-input-label-wave {
313
- position: absolute;
314
- top: 0.95em;
315
- font-size: 0.85em;
316
- left: 0;
317
- display: block;
318
- width: 100%;
319
- text-align: left;
320
- padding: 0em;
321
- pointer-events: none;
322
- -webkit-transform-origin: 0 0;
323
- transform-origin: 0 0;
324
- -webkit-transition: -webkit-transform 0.2s 0.15s, color 1s;
325
- transition: transform 0.2s 0.15s, color 1s;
326
- -webkit-transition-timing-function: ease-out;
327
- transition-timing-function: ease-out;
328
- }
329
-
330
- .hbe-graphic-wave {
331
- stroke: #92989e;
332
- pointer-events: none;
333
- -webkit-transition: -webkit-transform 0.7s, stroke 0.7s;
334
- transition: transform 0.7s, stroke 0.7s;
335
- -webkit-transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
336
- transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
337
- }
338
-
339
- .hbe-input-field-wave:focus + .hbe-input-label-wave,
340
- .hbe-input--filled .hbe-input-label-wave {
341
- color: #333;
342
- -webkit-transform: translate3d(0, -1.25em, 0) scale3d(0.75, 0.75, 1);
343
- transform: translate3d(0, -1.25em, 0) scale3d(0.75, 0.75, 1);
344
- }
345
-
346
- .hbe-input-field-wave:focus ~ .hbe-graphic-wave,
347
- .hbe-input--filled .hbe-graphic-wave {
348
- stroke: #333;
349
- -webkit-transform: translate3d(-66.6%, 0, 0);
350
- transform: translate3d(-66.6%, 0, 0);
351
- }
352
- /* wave theme }}} */
353
-
354
- /* flip theme {{{ */
355
- .hbe-input-field-flip {
356
- width: 100%;
357
- background-color: #d0d1d0;
358
- border: 2px solid transparent;
359
- -webkit-transition: background-color 0.25s, border-color 0.25s;
360
- transition: background-color 0.25s, border-color 0.25s;
361
- }
362
-
363
- .hbe-input-label-flip {
364
- width: 100%;
365
- text-align: left;
366
- position: absolute;
367
- bottom: 100%;
368
- pointer-events: none;
369
- overflow: hidden;
370
- padding: 0 1.25em;
371
- -webkit-transform: translate3d(0, 3em, 0);
372
- transform: translate3d(0, 3em, 0);
373
- -webkit-transition: -webkit-transform 0.25s;
374
- transition: transform 0.25s ;
375
- -webkit-transition-timing-function: ease-in-out;
376
- transition-timing-function: ease-in-out;
377
- }
378
-
379
- .hbe-input-label-content-flip {
380
- color: #8B8C8B;
381
- padding: 0.25em 0;
382
- -webkit-transition: -webkit-transform 0.25s;
383
- transition: transform 0.25s;
384
- -webkit-transition-timing-function: ease-in-out;
385
- transition-timing-function: ease-in-out;
386
- }
387
-
388
- .hbe-input-label-content-flip::after {
389
- content: attr(data-content);
390
- position: absolute;
391
- font-weight: 800;
392
- bottom: 100%;
393
- left: 0;
394
- height: 100%;
395
- width: 100%;
396
- color: #666666;
397
- padding: 0.25em 0;
398
- letter-spacing: 1px;
399
- font-size: 1em;
400
- }
401
-
402
- .hbe-input-field-flip:focus + .hbe-input-label-flip,
403
- .hbe-input--filled .hbe-input-label-flip {
404
- -webkit-transform: translate3d(0, 0, 0);
405
- transform: translate3d(0, 0, 0);
406
- }
407
-
408
- .hbe-input-field-flip:focus + .hbe-input-label-flip .hbe-input-label-content-flip,
409
- .hbe-input--filled .hbe-input-label-content-flip {
410
- -webkit-transform: translate3d(0, 100%, 0);
411
- transform: translate3d(0, 100%, 0);
412
- }
413
-
414
- .hbe-input-field-flip:focus,
415
- .hbe-input--filled .hbe-input-field-flip {
416
- background-color: transparent;
417
- border-color: #666666;
418
- }
419
- /* flip theme }}} */
420
-
421
- /* xray theme {{{ */
422
- .hbe-input-xray {
423
- overflow: hidden;
424
- padding-bottom: 2.5em;
425
- }
426
-
427
- .hbe-input-field-xray {
428
- padding: 0;
429
- margin-top: 1.2em;
430
- width: 100%;
431
- background: transparent;
432
- color: #84AF9B ;
433
- font-size: 1.55em;
434
- }
435
-
436
- .hbe-input-label-xray {
437
- position: absolute;
438
- top: 2em;
439
- left: 0;
440
- display: block;
441
- width: 100%;
442
- text-align: left;
443
- padding: 0em;
444
- letter-spacing: 1px;
445
- color: #84AF9B ;
446
- pointer-events: none;
447
- -webkit-transform-origin: 0 0;
448
- transform-origin: 0 0;
449
- -webkit-transition: -webkit-transform 0.2s 0.1s, color 0.3s;
450
- transition: transform 0.2s 0.1s, color 0.3s;
451
- -webkit-transition-timing-function: ease-out;
452
- transition-timing-function: ease-out;
453
- }
454
-
455
- .hbe-graphic-xray {
456
- stroke: #84AF9B ;
457
- pointer-events: none;
458
- stroke-width: 2px;
459
- top: 1.25em;
460
- bottom: 0px;
461
- height: 3.275em;
462
- -webkit-transition: -webkit-transform 0.7s, stroke 0.7s;
463
- transition: transform 0.7s, stroke 0.7s;
464
- -webkit-transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
465
- transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
466
- }
467
-
468
- .hbe-input-field-xray:focus + .hbe-input-label-xray,
469
- .hbe-input--filled .hbe-input-label-xray {
470
- color: #84AF9B ;
471
- -webkit-transform: translate3d(0, 3.5em, 0) scale3d(0.85, 0.85, 1);
472
- transform: translate3d(0, 3.5em, 0) scale3d(0.85, 0.85, 1);
473
- }
474
-
475
- .hbe-input-field-xray:focus ~ .hbe-graphic-xray,
476
- .hbe-input--filled .hbe-graphic-xray {
477
- stroke: #84AF9B ;
478
- -webkit-transform: translate3d(-66.6%, 0, 0);
479
- transform: translate3d(-66.6%, 0, 0);
480
- }
481
- /* xray theme }}} */
482
-
483
- /* blink theme {{{ */
484
- .hbe-input-blink {
485
- padding-top: 1em;
486
- }
487
-
488
- .hbe-input-field-blink {
489
- width: 100%;
490
- padding: 0.8em 0.5em;
491
- background: transparent;
492
- border: 2px solid;
493
- color: #8781bd;
494
- -webkit-transition: border-color 0.25s;
495
- transition: border-color 0.25s;
496
- }
497
-
498
- .hbe-input-label-blink {
499
- width: 100%;
500
- position: absolute;
501
- top: 0;
502
- text-align: left;
503
- overflow: hidden;
504
- padding: 0;
505
- pointer-events: none;
506
- -webkit-transform: translate3d(0, 3em, 0);
507
- transform: translate3d(0, 3em, 0);
508
- }
509
-
510
- .hbe-input-label-content-blink {
511
- padding: 0 1em;
512
- font-weight: 400;
513
- color: #b5b5b5;
514
- }
515
-
516
- .hbe-input-label-content-blink::after {
517
- content: attr(data-content);
518
- position: absolute;
519
- top: -200%;
520
- left: 0;
521
- color: #8781bd ;
522
- font-weight: 800;
523
- }
524
-
525
- .hbe-input-field-blink:focus,
526
- .hbe-input--filled .hbe-input-field-blink {
527
- border-color: #8781bd ;
528
- }
529
-
530
- .hbe-input-field-blink:focus + .hbe-input-label-blink,
531
- .hbe-input--filled .hbe-input-label-blink {
532
- -webkit-animation: anim-blink-1 0.25s forwards;
533
- animation: anim-blink-1 0.25s forwards;
534
- }
535
-
536
- .hbe-input-field-blink:focus + .hbe-input-label-blink .hbe-input-label-content-blink,
537
- .hbe-input--filled .hbe-input-label-content-blink {
538
- -webkit-animation: anim-blink-2 0.25s forwards ease-in;
539
- animation: anim-blink-2 0.25s forwards ease-in;
540
- }
541
-
542
- @-webkit-keyframes anim-blink-1 {
543
- 0%, 70% {
544
- -webkit-transform: translate3d(0, 3em, 0);
545
- transform: translate3d(0, 3em, 0);
546
- }
547
- 71%, 100% {
548
- -webkit-transform: translate3d(0, 0, 0);
549
- transform: translate3d(0, 0, 0);
550
- }
551
- }
552
-
553
- @-webkit-keyframes anim-blink-2 {
554
- 0% {
555
- -webkit-transform: translate3d(0, 0, 0);
556
- transform: translate3d(0, 0, 0);
557
- }
558
- 70%, 71% {
559
- -webkit-transform: translate3d(0, 125%, 0);
560
- transform: translate3d(0, 125%, 0);
561
- opacity: 0;
562
- -webkit-animation-timing-function: ease-out;
563
- }
564
- 100% {
565
- color: transparent;
566
- -webkit-transform: translate3d(0, 200%, 0);
567
- transform: translate3d(0, 200%, 0);
568
- }
569
- }
570
-
571
- @keyframes anim-blink-1 {
572
- 0%, 70% {
573
- -webkit-transform: translate3d(0, 3em, 0);
574
- transform: translate3d(0, 3em, 0);
575
- }
576
- 71%, 100% {
577
- -webkit-transform: translate3d(0, 0, 0);
578
- transform: translate3d(0, 0, 0);
579
- }
580
- }
581
-
582
- @keyframes anim-blink-2 {
583
- 0% {
584
- -webkit-transform: translate3d(0, 0, 0);
585
- transform: translate3d(0, 0, 0);
586
- }
587
- 70%, 71% {
588
- -webkit-transform: translate3d(0, 125%, 0);
589
- transform: translate3d(0, 125%, 0);
590
- opacity: 0;
591
- -webkit-animation-timing-function: ease-out;
592
- }
593
- 100% {
594
- color: transparent;
595
- -webkit-transform: translate3d(0, 200%, 0);
596
- transform: translate3d(0, 200%, 0);
597
- }
598
- }
599
- /* blink theme }}} */
600
-
601
- /* surge theme {{{ */
602
- .hbe-input-surge {
603
- overflow: hidden;
604
- padding-bottom: 1em;
605
- }
606
-
607
- .hbe-input-field-surge {
608
- padding: 0.25em 0.5em;
609
- margin-top: 1.25em;
610
- width: 100%;
611
- background: transparent;
612
- color: #D0D0D0;
613
- font-size: 1.55em;
614
- opacity: 0;
615
- }
616
-
617
- .hbe-input-label-surge {
618
- width: 100%;
619
- text-align: left;
620
- position: absolute;
621
- top: 1em;
622
- pointer-events: none;
623
- overflow: hidden;
624
- padding: 0 0.25em;
625
- -webkit-transform: translate3d(1em, 2.75em, 0);
626
- transform: translate3d(1em, 2.75em, 0);
627
- -webkit-transition: -webkit-transform 0.3s;
628
- transition: transform 0.3s;
629
- }
630
-
631
- .hbe-input-label-content-surge {
632
- color: #A4A5A6;
633
- padding: 0.4em 0 0.25em;
634
- -webkit-transition: -webkit-transform 0.3s;
635
- transition: transform 0.3s;
636
- }
637
-
638
- .hbe-input-label-content-surge::after {
639
- content: attr(data-content);
640
- position: absolute;
641
- font-weight: 800;
642
- top: 100%;
643
- left: 0;
644
- height: 100%;
645
- width: 100%;
646
- color: #2C3E50;
647
- padding: 0.25em 0;
648
- letter-spacing: 1px;
649
- font-size: 0.85em;
650
- }
651
-
652
- .hbe-graphic-surge {
653
- fill: #2C3E50;
654
- pointer-events: none;
655
- top: 1em;
656
- bottom: 0px;
657
- height: 4.5em;
658
- z-index: -1;
659
- -webkit-transition: -webkit-transform 0.7s, fill 0.7s;
660
- transition: transform 0.7s, fill 0.7s;
661
- -webkit-transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
662
- transition-timing-function: cubic-bezier(0, 0.25, 0.5, 1);
663
- }
664
-
665
- .hbe-input-field-surge:focus,
666
- .hbe-input--filled .hbe-input-field-surge {
667
- -webkit-transition: opacity 0s 0.35s;
668
- transition: opacity 0s 0.35s;
669
- opacity: 1;
670
- }
671
-
672
- .hbe-input-field-surge:focus + .hbe-input-label-surge,
673
- .hbe-input--filled .hbe-input-label-surge {
674
- -webkit-transition-delay: 0.15s;
675
- transition-delay: 0.15s;
676
- -webkit-transform: translate3d(0, 0, 0);
677
- transform: translate3d(0, 0, 0);
678
- }
679
-
680
- .hbe-input-field-surge:focus + .hbe-input-label-surge .hbe-input-label-content-surge,
681
- .hbe-input--filled .hbe-input-label-content-surge {
682
- -webkit-transition-delay: 0.15s;
683
- transition-delay: 0.15s;
684
- -webkit-transform: translate3d(0, -100%, 0);
685
- transform: translate3d(0, -100%, 0);
686
- }
687
-
688
- .hbe-input-field-surge:focus ~ .hbe-graphic-surge,
689
- .hbe-input--filled .hbe-graphic-surge {
690
- fill: #2C3E50;
691
- -webkit-transform: translate3d(-66.6%, 0, 0);
692
- transform: translate3d(-66.6%, 0, 0);
693
- }
694
- /* surge theme }}} */
695
-
696
- /* shrink theme {{{ */
697
- .hbe-input-field-shrink {
698
- width: 100%;
699
- background: transparent;
700
- padding: 0.5em 0;
701
- margin-bottom: 2em;
702
- color: #2C3E50;
703
- }
704
-
705
- .hbe-input-label-shrink {
706
- width: 100%;
707
- position: absolute;
708
- text-align: left;
709
- font-size: 1em;
710
- padding: 10px 0 5px;
711
- pointer-events: none;
712
- }
713
-
714
- .hbe-input-label-shrink::after {
715
- content: '';
716
- position: absolute;
717
- width: 100%;
718
- height: 7px;
719
- background: #B7C3AC;
720
- left: 0;
721
- top: 100%;
722
- -webkit-transform-origin: 50% 100%;
723
- transform-origin: 50% 100%;
724
- -webkit-transition: -webkit-transform 0.3s, background-color 0.3s;
725
- transition: transform 0.3s, background-color 0.3s;
726
- }
727
-
728
- .hbe-input-label-content-shrink {
729
- padding: 0;
730
- -webkit-transform-origin: 0 0;
731
- transform-origin: 0 0;
732
- -webkit-transition: -webkit-transform 0.3s, color 0.3s;
733
- transition: transform 0.3s, color 0.3s;
734
- }
735
-
736
- .hbe-input-field-shrink:focus + .hbe-input-label-shrink::after,
737
- .hbe-input--filled .hbe-input-label-shrink::after {
738
- background: #84AF9B;
739
- -webkit-transform: scale3d(1, 0.25, 1);
740
- transform: scale3d(1, 0.25, 1);
741
- }
742
-
743
- .hbe-input-field-shrink:focus + .hbe-input-label-shrink .hbe-input-label-content-shrink,
744
- .hbe-input--filled .hbe-input-label-shrink .hbe-input-label-content-shrink {
745
- color: #84AF9B;
746
- -webkit-transform: translate3d(0, 2em, 0) scale3d(0.655, 0.655, 1);
747
- transform: translate3d(0, 2em, 0) scale3d(0.655, 0.655, 1);
748
- }
749
- /* shrink theme }}} */
750
-
751
- /* ============================================================
752
- * v4 SHELL: form, button, error, loading, dark mode.
753
- *
754
- * Themes wrap the input + button in <form id="hbeForm"> so Enter
755
- * and click both fire 'submit'. The button is opt-in via the
756
- * `decryptButton.show` config — themes always emit the slot, the
757
- * server decides whether to render it.
758
- *
759
- * NEW in v4 (additive — pre-v4 themes that lack these slots
760
- * remain visually identical to v3 except for the .hbe-error
761
- * region appearing only when populated).
762
- * ============================================================ */
201
+ @media (hover: hover) {
202
+ :is(.hbe-button, .hbe-forget-button):where(:enabled:hover:not([aria-busy="true"])) {
203
+ text-decoration: underline;
204
+ background: var(--hbe-ink);
205
+ color: var(--hbe-surface);
206
+ }
207
+ }
763
208
 
764
- .hbe-form {
765
- margin: 0;
766
- padding: 0;
767
- width: 100%;
768
- display: flex;
769
- flex-direction: column;
770
- align-items: center;
209
+ :is(.hbe-input-field-minimal, .hbe-input-field-default, .hbe-input-field-shrink, .hbe-input-field-up, .hbe-input-field-terminal) {
210
+ border: 0;
211
+ border-block-end: 2px solid var(--hbe-rule);
212
+ border-radius: 0;
771
213
  }
772
214
 
773
- .hbe-button {
774
- display: block;
775
- margin: 0 auto 1em;
776
- padding: 0.7em 1.6em;
777
- width: auto;
778
- max-width: 100%;
779
- min-width: 8em;
780
- height: auto;
781
- line-height: 1.2;
782
- font-size: 1rem;
783
- font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
784
- font-weight: 600;
785
- color: #fff;
786
- text-align: center;
787
- text-indent: 0;
788
- text-shadow: none;
789
- white-space: normal;
790
- overflow-wrap: anywhere;
791
- background: #2a7ae2;
792
- border: none;
793
- border-radius: 4px;
794
- box-shadow: none;
795
- cursor: pointer;
796
- -webkit-appearance: none;
797
- transition: background 0.15s ease, box-shadow 0.15s ease;
798
- }
799
-
800
- .hbe-button:hover,
801
- .hbe-button:focus {
802
- background: #1c5db8;
803
- outline: none;
804
- box-shadow: 0 0 0 3px rgba(42, 122, 226, 0.35);
805
- }
806
-
807
- .hbe-button:disabled,
808
- .hbe-button[aria-busy="true"] {
809
- cursor: progress;
810
- opacity: 0.7;
215
+ .hbe-container:has(.hbe-input-card) {
216
+ padding: 1.5rem;
217
+ background: var(--hbe-well);
218
+ border: 1px solid var(--hbe-rule);
219
+ border-radius: var(--hbe-radius);
811
220
  }
812
221
 
813
- .hbe-button[aria-busy="true"]::after {
814
- content: "";
815
- display: inline-block;
816
- margin-left: 0.5em;
817
- width: 0.9em;
818
- height: 0.9em;
819
- vertical-align: -0.15em;
820
- border: 2px solid currentColor;
821
- border-right-color: transparent;
822
- border-radius: 50%;
823
- animation: hbe-spin 0.7s linear infinite;
222
+ .hbe-input-field-card {
223
+ background: var(--hbe-surface);
824
224
  }
825
225
 
826
- .hbe-button::after {
827
- content: none;
828
- display: none;
226
+ .hbe-container:has(.hbe-input-terminal) {
227
+ font-family: var(--hbe-mono);
228
+ padding-block: .75rem;
229
+ border-block: 1px solid var(--hbe-rule);
829
230
  }
830
231
 
831
- .hbe-button-hidden {
832
- display: none;
232
+ .hbe-input-field-terminal {
233
+ padding-inline-start: 1.5rem;
833
234
  }
834
235
 
835
- @keyframes hbe-spin {
836
- to { transform: rotate(360deg); }
236
+ .hbe-container:has(.hbe-input-terminal) .hbe-button {
237
+ border-radius: 0;
837
238
  }
838
239
 
839
- .hbe-error {
840
- min-height: 1.4em;
841
- margin: 0.5em 1em;
842
- padding: 0.5em 1em;
843
- color: #b00020;
844
- font-size: 0.95rem;
845
- font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
846
- background: transparent;
240
+ .hbe-input-terminal::before {
241
+ content: '';
242
+ grid-area: field;
243
+ align-self: center;
244
+ justify-self: start;
245
+ margin-inline-start: .25rem;
246
+ z-index: 2;
247
+ pointer-events: none;
248
+ width: .36rem;
249
+ height: .36rem;
250
+ border-block-start: 2px solid var(--hbe-accent);
251
+ border-inline-end: 2px solid var(--hbe-accent);
252
+ transform: rotate(45deg);
847
253
  }
848
254
 
849
- .hbe-error:not(:empty) {
850
- background: rgba(176, 0, 32, 0.08);
851
- border-radius: 4px;
255
+ .hbe-input-terminal:dir(rtl)::before {
256
+ transform: rotate(-45deg);
852
257
  }
853
258
 
854
- /* "Forget saved key" control, shown above a post revealed with a saved key. */
855
- .hbe-forget {
856
- margin: 0 0 1em;
857
- font-size: 0.85rem;
858
- font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
859
- text-align: right;
259
+ /* Classic prompts keep the published 80% measure. Equal intrinsic rows
260
+ * reserve room for either position of the label, even when translated text
261
+ * wraps. Only the decorative track clips, never the field's focus ring. */
262
+ .hbe-container:has(.hbe-classic) {
263
+ max-inline-size: none;
264
+ padding: 1.5rem 0;
860
265
  }
861
266
 
862
- .hbe-forget-button {
863
- padding: 0.3em 0.8em;
864
- font: inherit;
865
- color: inherit;
866
- background: transparent;
867
- border: 1px solid currentColor;
868
- border-radius: 4px;
869
- opacity: 0.75;
870
- cursor: pointer;
267
+ .hbe-input.hbe-classic {
268
+ /* Field and SVG proportions are in the original scene's 150% type scale.
269
+ * Keep the actual controls at the reader's rem size and allow text zoom. */
270
+ font-size: 150%;
271
+ --scene-field: 2.38em;
272
+ --caption-gap: .5rem;
273
+ --idle-top: calc(50% + var(--caption-gap));
274
+ --idle-center: 50%;
275
+ inline-size: 80%;
276
+ grid-template: 'label' minmax(0, 1fr) 'field' minmax(max(2.875rem, var(--scene-field)), 1fr) / minmax(0, 1fr);
277
+ row-gap: var(--caption-gap);
278
+ margin-block: 1rem .25rem;
871
279
  }
872
280
 
873
- .hbe-forget-button:hover,
874
- .hbe-forget-button:focus {
875
- opacity: 1;
281
+ .hbe-classic:is(.hbe-input-default, .hbe-input-shrink, .hbe-input-xray) {
282
+ --idle-top: calc(-50% - var(--caption-gap));
283
+ --idle-center: -50%;
284
+ grid-template-areas: 'field' 'label';
285
+ grid-template-rows: minmax(max(2.875rem, var(--scene-field)), 1fr) minmax(0, 1fr);
876
286
  }
877
287
 
878
- .hbe-forget-button:focus-visible,
879
- .hbe-forget [role="status"]:focus-visible {
880
- outline: 2px solid #2a7ae2;
881
- outline-offset: 2px;
288
+ .hbe-classic:is(.hbe-input-blink, .hbe-input-flip) { --scene-field: 3.17em; }
289
+ .hbe-classic.hbe-input-surge { --scene-field: 2.917em; }
290
+ .hbe-classic.hbe-input-up { --scene-field: 2.08em; }
291
+ .hbe-classic.hbe-input-wave { --scene-field: 2.65em; }
292
+ .hbe-classic.hbe-input-xray { --scene-field: 2.14em; }
293
+
294
+ .hbe-classic input { block-size: 100%; }
295
+ .hbe-classic .hbe-input-label {
296
+ position: relative;
297
+ top: var(--idle-top);
298
+ transform: translateY(var(--idle-center));
299
+ align-self: end;
300
+ z-index: 2;
301
+ margin: 0;
302
+ line-height: 1.3;
303
+ pointer-events: none;
304
+ transform-origin: left center;
305
+ transition: top .25s ease-in-out, transform .25s ease-in-out;
306
+ }
307
+
308
+ .hbe-classic:is(.hbe-input-default, .hbe-input-shrink, .hbe-input-xray) label { align-self: start; }
309
+ .hbe-classic:dir(rtl) label { transform-origin: right center; }
310
+ :where(.hbe-classic:has(.hbe-roll)).hbe-input-blink:is(:focus-within, .hbe-input--filled) label,
311
+ :where(.hbe-classic).hbe-input-flip:is(:focus-within, .hbe-input--filled) label { transform: none; }
312
+ .hbe-classic:is(:focus-within, .hbe-input--filled) label { top: 0; }
313
+ .hbe-classic .hbe-input-label-content { display: block; }
314
+
315
+ .hbe-classic .hbe-input-label:has(.hbe-roll) {
316
+ display: grid;
317
+ overflow: hidden;
318
+ padding-inline: .75em;
319
+ }
320
+
321
+ .hbe-roll,
322
+ .hbe-input-label:has(.hbe-roll) .hbe-input-label-content { grid-area: 1 / 1; }
323
+ .hbe-roll {
324
+ position: relative;
325
+ top: -100%;
326
+ font-weight: 800;
327
+ color: var(--hbe-accent);
882
328
  }
883
329
 
884
- @media (prefers-color-scheme: dark) {
885
- .hbe-input-field {
886
- background: #2a2f36;
887
- color: #e6e6e6;
330
+ .hbe-input-label-flip .hbe-roll,
331
+ :where(.hbe-classic) .hbe-input-label-content-flip,
332
+ .hbe-input-label-surge .hbe-roll,
333
+ :where(.hbe-classic) .hbe-input-label-content-surge { transition: transform .25s ease-in-out; }
334
+
335
+ :where(.hbe-classic) .hbe-input-field-flip {
336
+ background: var(--hbe-well);
337
+ border: 2px solid transparent;
338
+ transition: background-color .25s, border-color .25s;
888
339
  }
889
- .hbe-input-label {
890
- color: #cfd6e4;
340
+
341
+ :where(.hbe-classic).hbe-input-flip:is(:focus-within, .hbe-input--filled) input { background: transparent; }
342
+ :where(.hbe-classic:has(.hbe-roll)).hbe-input-flip:is(:focus-within, .hbe-input--filled) :is(.hbe-roll, .hbe-input-label-content) { transform: translateY(100%); }
343
+
344
+ :where(.hbe-classic) .hbe-input-field-blink { border-width: 2px; }
345
+ :where(.hbe-classic) .hbe-input-label-content-blink { font-weight: 400; }
346
+ .hbe-input-label-blink .hbe-roll { top: -200%; }
347
+ :where(.hbe-classic:has(.hbe-roll)).hbe-input-blink:is(:focus-within, .hbe-input--filled) label { animation: hbe-blink-window .25s both; }
348
+ :where(.hbe-classic:has(.hbe-roll)).hbe-input-blink:is(:focus-within, .hbe-input--filled) :is(.hbe-roll, .hbe-input-label-content) { animation: hbe-blink-roll .25s ease-in both; }
349
+
350
+ @keyframes hbe-blink-window {
351
+ 0%, 70% { top: var(--idle-top); transform: translateY(var(--idle-center)); }
352
+ 71%, 100% { top: 0; transform: none; }
891
353
  }
892
- .hbe-button {
893
- background: #4d8df0;
894
- color: #fff;
354
+
355
+ @keyframes hbe-blink-roll {
356
+ from { transform: none; }
357
+ 70%, 71% { transform: translateY(125%); opacity: 0; animation-timing-function: ease-out; }
358
+ to { transform: translateY(200%); }
895
359
  }
896
- .hbe-button:hover,
897
- .hbe-button:focus {
898
- background: #6ba1f5;
899
- box-shadow: 0 0 0 3px rgba(77, 141, 240, 0.35);
360
+
361
+ .hbe-track {
362
+ position: relative;
363
+ grid-area: field;
364
+ overflow: hidden;
365
+ pointer-events: none;
900
366
  }
901
- .hbe-error {
902
- color: #ff7a7a;
367
+
368
+ .hbe-input-default .hbe-track::before,
369
+ .hbe-input-up .hbe-track::before {
370
+ content: '';
371
+ position: absolute;
372
+ inset: 0;
373
+ background: var(--hbe-ink);
374
+ transform: translateY(-100%);
375
+ transition: transform .2s cubic-bezier(0, .25, .5, 1);
376
+ }
377
+
378
+ .hbe-input-up .hbe-track::before {
379
+ border-top: 4px solid var(--hbe-rule);
380
+ background: var(--hbe-well);
381
+ transform: translateY(calc(100% - 3px));
382
+ transition: transform .4s .05s cubic-bezier(.7, 0, .3, 1);
383
+ }
384
+
385
+ .hbe-classic:is(:focus-within, .hbe-input--filled) .hbe-track::before { transform: none; }
386
+ :where(.hbe-classic).hbe-input-up .hbe-input-label { transition-duration: .4s; }
387
+ :where(.hbe-classic).hbe-input-up:is(:focus-within, .hbe-input--filled) label { transform: scale(.81); }
388
+ :where(.hbe-classic).hbe-input-default:is(:focus-within, .hbe-input--filled) label { transform: scale(.65); }
389
+ :where(.hbe-classic:has(.hbe-track)).hbe-input-default:is(:focus-within, .hbe-input--filled) .hbe-input-field { color: var(--hbe-surface); }
390
+
391
+ :where(.hbe-classic).hbe-input-shrink::after {
392
+ content: '';
393
+ grid-area: field;
394
+ align-self: end;
395
+ height: 7px;
396
+ background: var(--hbe-rule);
397
+ transform-origin: center bottom;
398
+ transition: transform .3s, background-color .3s;
399
+ pointer-events: none;
400
+ }
401
+
402
+ .hbe-classic :is(.hbe-input-field-shrink, .hbe-input-field-up) { border: 0; }
403
+ :where(.hbe-classic).hbe-input-shrink:is(:focus-within, .hbe-input--filled)::after { transform: scaleY(.25); background: var(--hbe-accent); }
404
+ :where(.hbe-classic).hbe-input-shrink:is(:focus-within, .hbe-input--filled) label { transform: scale(.655); }
405
+
406
+ :where(.hbe-classic) :is(.hbe-input-field-wave, .hbe-input-field-surge, .hbe-input-field-xray) { border: 0; }
407
+ .hbe-track .hbe-graphic {
408
+ position: absolute;
409
+ inset: 0 auto auto 0;
410
+ color: var(--hbe-rule);
411
+ width: 300%;
412
+ max-width: none;
413
+ height: 100%;
414
+ transition: transform .7s cubic-bezier(0, .25, .5, 1), color .7s;
415
+ }
416
+
417
+ /* Only the middle 43/60 of the surge viewBox is filled. Keep its normal
418
+ * overscan, but grow it with the field when a translated caption wraps.
419
+ * 9/43 above and 8/43 below put even the straight ends behind every line. */
420
+ .hbe-input-surge .hbe-track {
421
+ position: absolute;
422
+ inset: min(-.9375em, -20.94%) 0 min(-.645em, -18.61%);
903
423
  }
904
- .hbe-error:not(:empty) {
905
- background: rgba(255, 122, 122, 0.12);
424
+ .hbe-input-wave .hbe-track { margin-block-start: -1em; }
425
+ .hbe-input-xray .hbe-track { margin-block: -.61em -.525em; }
426
+
427
+ .hbe-classic:is(:focus-within, .hbe-input--filled) .hbe-graphic {
428
+ transform: translateX(-66.6%);
429
+ color: var(--hbe-accent);
430
+ }
431
+
432
+ .hbe-track .hbe-graphic-surge path { fill: var(--hbe-ink); stroke: none; }
433
+ .hbe-classic:has(.hbe-track) .hbe-input-field-surge { color: var(--hbe-surface); }
434
+ :where(.hbe-classic:has(.hbe-track)).hbe-input-surge .hbe-input-label { margin-inline-end: 1em; color: var(--hbe-surface); transform: translate(1em, var(--idle-center)); }
435
+ :where(.hbe-classic).hbe-input-surge:dir(rtl) .hbe-input-label { transform: translate(-1em, var(--idle-center)); }
436
+ :where(.hbe-classic).hbe-input-surge:is(:focus-within, .hbe-input--filled) .hbe-input-label { transform: none; }
437
+ .hbe-input-label-surge .hbe-roll { top: 100%; }
438
+ :where(.hbe-classic:has(.hbe-roll)).hbe-input-surge:is(:focus-within, .hbe-input--filled) :is(.hbe-roll, .hbe-input-label-content) { transform: translateY(-100%); }
439
+ :where(.hbe-classic).hbe-input-surge:is(:focus-within, .hbe-input--filled) :is(label, .hbe-roll, .hbe-input-label-content) { transition-delay: .15s; }
440
+ :where(.hbe-classic).hbe-input-wave:is(:focus-within, .hbe-input--filled) label { transform: scale(.75); }
441
+ :where(.hbe-classic).hbe-input-xray:is(:focus-within, .hbe-input--filled) label { transform: scale(.85); }
442
+
443
+ .hbe-input:is(:focus-within, .hbe-input--filled) input:not(:disabled) {
444
+ border-color: var(--hbe-accent);
445
+ }
446
+
447
+ .hbe-button-text {
448
+ min-inline-size: 0;
449
+ overflow-wrap: anywhere;
450
+ white-space: normal;
451
+ }
452
+
453
+ .hbe-button[aria-busy="true"] {
454
+ padding-inline: .625em;
455
+ cursor: progress;
456
+ opacity: 1;
457
+ color: var(--hbe-surface);
458
+ background: var(--hbe-accent);
459
+ }
460
+
461
+ .hbe-button[aria-busy="true"]::after {
462
+ content: '';
463
+ display: block;
464
+ flex: none;
465
+ width: .78em;
466
+ height: .78em;
467
+ box-sizing: border-box;
468
+ border: 2px solid currentColor;
469
+ border-inline-end-color: transparent;
470
+ border-radius: 50%;
471
+ animation: hbe-spin .8s linear infinite;
472
+ }
473
+
474
+ @keyframes hbe-spin {
475
+ to {
476
+ transform: rotate(1turn);
477
+ }
478
+ }
479
+
480
+ .hbe-classic:is(.hbe-input-default, .hbe-input-surge):has(.hbe-track) { --hbe-busy-ink: var(--hbe-surface); }
481
+
482
+ form.hbe-form[aria-busy="true"] .hbe-input-field {
483
+ outline: 3px double var(--hbe-accent);
484
+ outline-offset: 3px;
485
+ cursor: progress;
486
+ opacity: 1;
487
+ color: var(--hbe-busy-ink, var(--hbe-ink));
488
+ -webkit-text-fill-color: var(--hbe-busy-ink, var(--hbe-ink));
906
489
  }
490
+
491
+ .hbe-form:not([aria-busy="true"]) .hbe-input-field:disabled {
492
+ border: 1px dashed var(--hbe-rule);
493
+ background: var(--hbe-well);
494
+ opacity: 1;
495
+ color: var(--hbe-ink);
496
+ -webkit-text-fill-color: var(--hbe-ink);
497
+ cursor: not-allowed;
498
+ }
499
+
500
+ .hbe-form:not([aria-busy="true"]) :is(.hbe-input-field-default, .hbe-input-field-up, .hbe-input-field-minimal, .hbe-input-field-terminal, .hbe-input-field-shrink):disabled {
501
+ border-width: 0;
502
+ border-style: none;
503
+ border-block-end: 2px dashed var(--hbe-rule);
504
+ }
505
+
506
+ .hbe-form:not([aria-busy="true"]) :where(.hbe-classic) .hbe-input-field-surge:disabled + label { color: var(--hbe-ink); }
507
+
508
+ .hbe-form:not([aria-busy="true"]) .hbe-input-field:disabled ~ :is(.hbe-track, .hbe-graphic) {
509
+ visibility: hidden;
510
+ }
511
+
512
+ .hbe-button:disabled:not([aria-busy="true"]) {
513
+ opacity: 1;
514
+ color: var(--hbe-ink);
515
+ background: var(--hbe-well);
516
+ border: 1px dashed var(--hbe-rule);
517
+ cursor: not-allowed;
518
+ }
519
+
520
+ .hbe-forget {
521
+ padding: .75rem .5rem;
522
+ margin-block: 0 1rem;
523
+ border-block: 1px solid var(--hbe-rule);
524
+ text-align: end;
525
+ }
526
+
527
+ .hbe-forget [role="status"] {
528
+ display: inline-block;
529
+ max-inline-size: 100%;
530
+ font-size: .9375rem;
531
+ color: var(--hbe-ink);
532
+ }
533
+
534
+ .hbe-forget [role="status"]:empty {
535
+ display: none;
536
+ }
537
+
538
+ @media (prefers-reduced-motion: reduce) {
539
+ .hbe-container .hbe-input *,
540
+ .hbe-container .hbe-input ::before,
541
+ .hbe-container .hbe-input::after {
542
+ transition: none;
543
+ }
544
+
545
+ :where(.hbe-classic:has(.hbe-roll)).hbe-input-blink:is(:focus-within, .hbe-input--filled) :is(label, .hbe-roll, .hbe-input-label-content) { animation: none; }
546
+ :where(.hbe-classic:has(.hbe-roll)).hbe-input-blink:is(:focus-within, .hbe-input--filled) :is(.hbe-roll, .hbe-input-label-content) { transform: translateY(200%); }
547
+
548
+ .hbe-button[aria-busy="true"]::after {
549
+ animation: none;
550
+ }
551
+ }
552
+
553
+ @media (forced-colors: active) {
554
+ .hbe-container,
555
+ .hbe-forget {
556
+ --hbe-surface: ButtonFace;
557
+ --hbe-ink: FieldText;
558
+ --hbe-rule: FieldText;
559
+ --hbe-accent: Highlight;
560
+ --hbe-well: Canvas;
561
+ --hbe-error: CanvasText;
562
+ }
563
+
564
+ .hbe-container .hbe-input .hbe-input-field:not(:disabled),
565
+ .hbe-container .hbe-form .hbe-input-field:disabled {
566
+ forced-color-adjust: none;
567
+ color: FieldText;
568
+ background: Field;
569
+ border: 1px solid FieldText;
570
+ }
571
+
572
+ /* No band is painted in forced colors: use the field's own ink. */
573
+ .hbe-classic.hbe-input-surge .hbe-input-label { color: FieldText; }
574
+
575
+ .hbe-container .hbe-input-field:focus-visible,
576
+ .hbe-forget :focus-visible,
577
+ .hbe-button:focus-visible {
578
+ outline: 3px solid Highlight;
579
+ outline-offset: 3px;
580
+ }
581
+
582
+ form.hbe-form[aria-busy="true"] .hbe-input-field:disabled {
583
+ outline: 3px double Highlight;
584
+ color: FieldText;
585
+ -webkit-text-fill-color: FieldText;
586
+ }
587
+
588
+ .hbe-graphic,
589
+ .hbe-track,
590
+ .hbe-classic.hbe-input-shrink::after {
591
+ display: none;
592
+ }
593
+
594
+ .hbe-button,
595
+ .hbe-forget-button,
596
+ .hbe-button[aria-busy="true"] {
597
+ forced-color-adjust: none;
598
+ color: ButtonText;
599
+ background: ButtonFace;
600
+ border: 1px solid ButtonText;
601
+ }
602
+
603
+ .hbe-button[aria-busy="true"]::after {
604
+ border-color: ButtonText;
605
+ border-inline-end-color: transparent;
606
+ }
907
607
  }