@roottale/cms-renderer-next 0.40.0 → 0.41.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.
@@ -13,10 +13,12 @@
13
13
  */
14
14
 
15
15
  :where([data-roottale-tpl]) {
16
- padding-block: clamp(3rem, 8vw, 6rem);
16
+ container-type: inline-size;
17
+ padding-block: clamp(3rem, 8cqi, 6rem);
17
18
  background: var(--rt-color-background, transparent);
18
19
  color: var(--rt-color-foreground, #06162f);
19
20
  font-family: var(--rt-font-body, system-ui, -apple-system, sans-serif);
21
+ word-break: keep-all;
20
22
  }
21
23
 
22
24
  [data-roottale-tpl] :where(.rt-tpl-container) {
@@ -28,7 +30,7 @@
28
30
 
29
31
  [data-roottale-tpl] :where(.rt-tpl-heading) {
30
32
  font-family: var(--rt-font-display, var(--rt-font-body, system-ui, sans-serif));
31
- font-size: clamp(1.5rem, 3vw, 2rem);
33
+ font-size: clamp(1.5rem, 3cqi, 2rem);
32
34
  font-weight: 800;
33
35
  margin-block: 0 1.5rem;
34
36
  }
@@ -64,13 +66,13 @@
64
66
  /* ── hero ─────────────────────────────────────────────────────────────────── */
65
67
 
66
68
  [data-roottale-tpl="hero"] :where(.rt-tpl-hero-inner) {
67
- padding-block: clamp(2rem, 6vw, 4rem);
69
+ padding-block: clamp(2rem, 6cqi, 4rem);
68
70
  }
69
71
 
70
72
  [data-roottale-tpl="hero"][data-variant="split"] :where(.rt-tpl-hero-inner) {
71
73
  display: flex;
72
74
  align-items: center;
73
- gap: clamp(2rem, 5vw, 4rem);
75
+ gap: clamp(2rem, 5cqi, 4rem);
74
76
  flex-wrap: wrap;
75
77
  }
76
78
 
@@ -103,7 +105,7 @@
103
105
 
104
106
  [data-roottale-tpl] :where(.rt-tpl-hero-title) {
105
107
  font-family: var(--rt-font-display, var(--rt-font-body, system-ui, sans-serif));
106
- font-size: clamp(2rem, 6vw, 3.5rem);
108
+ font-size: clamp(2rem, 6cqi, 3.5rem);
107
109
  font-weight: 900;
108
110
  line-height: 1.1;
109
111
  margin: 0 0 1.25rem;
@@ -224,7 +226,7 @@
224
226
  align-items: center;
225
227
  gap: 1.5rem;
226
228
  text-align: center;
227
- padding: clamp(2.5rem, 6vw, 4rem);
229
+ padding: clamp(2.5rem, 6cqi, 4rem);
228
230
  border-radius: var(--rt-radius-md, 0.5rem);
229
231
  background: color-mix(
230
232
  in srgb,
@@ -236,7 +238,7 @@
236
238
 
237
239
  [data-roottale-tpl] :where(.rt-tpl-cta-banner-title) {
238
240
  font-family: var(--rt-font-display, var(--rt-font-body, system-ui, sans-serif));
239
- font-size: clamp(1.5rem, 4vw, 2.25rem);
241
+ font-size: clamp(1.5rem, 4cqi, 2.25rem);
240
242
  font-weight: 800;
241
243
  margin: 0;
242
244
  }
@@ -247,6 +249,235 @@
247
249
  max-inline-size: 40rem;
248
250
  }
249
251
 
252
+ [data-roottale-tpl] :where(.rt-tpl-sr-only) {
253
+ position: absolute;
254
+ inline-size: 1px;
255
+ block-size: 1px;
256
+ padding: 0;
257
+ margin: -1px;
258
+ overflow: hidden;
259
+ clip: rect(0 0 0 0);
260
+ white-space: nowrap;
261
+ border: 0;
262
+ }
263
+
264
+ [data-roottale-tpl="trust"],
265
+ [data-roottale-tpl="contact"] {
266
+ container-type: inline-size;
267
+ background: var(--background);
268
+ color: var(--foreground);
269
+ font-family: var(--font-sans);
270
+ word-break: keep-all;
271
+ }
272
+
273
+ [data-roottale-tpl="trust"] :where(.rt-tpl-container),
274
+ [data-roottale-tpl="trust"] :where(.rt-tpl-container *),
275
+ [data-roottale-tpl="contact"] :where(.rt-tpl-container),
276
+ [data-roottale-tpl="contact"] :where(.rt-tpl-container *) {
277
+ box-sizing: border-box;
278
+ }
279
+
280
+ [data-roottale-tpl="trust"] {
281
+ padding-block: clamp(2.25rem, 6cqi, 4.5rem);
282
+ }
283
+
284
+ [data-roottale-tpl="trust"][data-variant="stat-band"] {
285
+ background: var(--secondary);
286
+ }
287
+
288
+ [data-roottale-tpl="trust"] :where(.rt-tpl-heading),
289
+ [data-roottale-tpl="contact"] :where(.rt-tpl-heading) {
290
+ color: var(--foreground);
291
+ font-family: var(--font-display);
292
+ letter-spacing: 0;
293
+ text-wrap: balance;
294
+ }
295
+
296
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-stat-band) {
297
+ display: grid;
298
+ gap: var(--space-4);
299
+ align-items: stretch;
300
+ }
301
+
302
+ @container (min-width: 36rem) {
303
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-stat-band) {
304
+ grid-template-columns: repeat(2, minmax(0, 1fr));
305
+ }
306
+ }
307
+
308
+ @container (min-width: 56rem) {
309
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-stat-band) {
310
+ grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
311
+ }
312
+ }
313
+
314
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-logo-list),
315
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-cred-list) {
316
+ display: grid;
317
+ gap: var(--space-3);
318
+ padding: 0;
319
+ margin: 0;
320
+ list-style: none;
321
+ }
322
+
323
+ @container (min-width: 36rem) {
324
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-logo-list),
325
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-cred-list) {
326
+ grid-template-columns: repeat(2, minmax(0, 1fr));
327
+ }
328
+ }
329
+
330
+ @container (min-width: 48rem) {
331
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-logo-list),
332
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-cred-list) {
333
+ grid-template-columns: repeat(4, minmax(0, 1fr));
334
+ }
335
+ }
336
+
337
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-logo-item) {
338
+ display: flex;
339
+ align-items: center;
340
+ justify-content: center;
341
+ min-block-size: var(--space-12);
342
+ border: 1px solid var(--border);
343
+ border-radius: var(--radius-sm);
344
+ background: var(--card);
345
+ }
346
+
347
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-logo-link) {
348
+ display: inline-flex;
349
+ align-items: center;
350
+ justify-content: center;
351
+ }
352
+
353
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-logo) {
354
+ max-block-size: var(--space-8);
355
+ max-inline-size: 100%;
356
+ filter: grayscale(1) opacity(0.7);
357
+ transition: filter var(--motion-fast) var(--ease-standard);
358
+ }
359
+
360
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-logo-link:hover .rt-tpl-trust-logo) {
361
+ filter: grayscale(0) opacity(1);
362
+ }
363
+
364
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-cred-list li) {
365
+ min-inline-size: 0;
366
+ }
367
+
368
+ [data-roottale-tpl="trust"] :where(.rt-tpl-trust-disclaimer) {
369
+ margin-block: var(--space-4) 0;
370
+ color: var(--muted-foreground);
371
+ font-size: var(--font-size-xs);
372
+ line-height: var(--font-leading-normal);
373
+ }
374
+
375
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-inner) {
376
+ display: grid;
377
+ gap: var(--space-6);
378
+ align-items: start;
379
+ }
380
+
381
+ @container (min-width: 56rem) {
382
+ [data-roottale-tpl="contact"][data-variant="form-map-5050"]
383
+ :where(.rt-tpl-contact-inner) {
384
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
385
+ }
386
+
387
+ [data-roottale-tpl="contact"][data-variant="split"]
388
+ :where(.rt-tpl-contact-inner) {
389
+ grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
390
+ }
391
+ }
392
+
393
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-info) {
394
+ display: grid;
395
+ gap: var(--space-4);
396
+ }
397
+
398
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-phone) {
399
+ display: inline-flex;
400
+ align-items: center;
401
+ justify-content: center;
402
+ justify-self: start;
403
+ padding-block: var(--space-3);
404
+ padding-inline: var(--space-4);
405
+ border-radius: var(--radius-md);
406
+ background: var(--accent);
407
+ color: var(--accent-foreground);
408
+ font-family: var(--font-display);
409
+ font-size: clamp(1.25rem, 4cqi, 2rem);
410
+ font-weight: var(--font-weight-bold);
411
+ line-height: var(--font-leading-tight);
412
+ font-variant-numeric: tabular-nums;
413
+ text-decoration: none;
414
+ }
415
+
416
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-address) {
417
+ color: var(--foreground);
418
+ font-style: normal;
419
+ line-height: var(--font-leading-body);
420
+ }
421
+
422
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-hours) {
423
+ inline-size: 100%;
424
+ border-collapse: collapse;
425
+ color: var(--foreground);
426
+ font-variant-numeric: tabular-nums;
427
+ }
428
+
429
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-hours th),
430
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-hours td) {
431
+ padding-block: var(--space-2);
432
+ border-block-end: 1px solid var(--border);
433
+ text-align: start;
434
+ vertical-align: top;
435
+ }
436
+
437
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-hours th) {
438
+ color: var(--muted-foreground);
439
+ font-weight: var(--font-weight-semibold);
440
+ white-space: nowrap;
441
+ }
442
+
443
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-hours td) {
444
+ display: flex;
445
+ flex-wrap: wrap;
446
+ gap: var(--space-1);
447
+ }
448
+
449
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-hours-note) {
450
+ color: var(--muted-foreground);
451
+ }
452
+
453
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-map) {
454
+ aspect-ratio: 4 / 3;
455
+ overflow: hidden;
456
+ border: 1px solid var(--border);
457
+ border-radius: var(--radius-md);
458
+ background: var(--muted);
459
+ }
460
+
461
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-map iframe) {
462
+ inline-size: 100%;
463
+ block-size: 100%;
464
+ border: 0;
465
+ }
466
+
467
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-map-fallback) {
468
+ margin: 0;
469
+ }
470
+
471
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-map-fallback a) {
472
+ color: var(--accent-foreground);
473
+ text-decoration: underline;
474
+ text-underline-offset: var(--space-1);
475
+ }
476
+
477
+ [data-roottale-tpl="contact"] :where(.rt-tpl-contact-form) {
478
+ min-inline-size: 0;
479
+ }
480
+
250
481
  /* ── placeholder (admin preview 의 customSections skeleton) ──────────────── */
251
482
 
252
483
  [data-roottale-tpl] :where(.rt-tpl-placeholder-box) {