@scalemule/news-publication 0.0.46 → 0.0.48

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.
@@ -0,0 +1,78 @@
1
+ .sm-sponsorship {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ gap: 1.5rem;
6
+ padding: 1.25rem 0;
7
+ border-block: 1px solid var(--pub-rule, #d8dcd9);
8
+ color: var(--pub-ink, #171917);
9
+ font-family: var(--pub-sans, inherit);
10
+ overflow-wrap: anywhere;
11
+ max-width: 48rem;
12
+ }
13
+ .sm-sponsorship p {
14
+ margin: 0;
15
+ }
16
+ .sm-sponsorship .sm-sponsorship-label {
17
+ font: 600 0.72rem/1.5 var(--pub-sans, var(--font-sans, Arial, sans-serif));
18
+ letter-spacing: 0.04em;
19
+ color: var(--pub-muted, #455448);
20
+ margin-bottom: 0.4rem;
21
+ }
22
+ .sm-sponsorship .sm-sponsorship-name {
23
+ font-family: var(--pub-serif, inherit);
24
+ font-size: 1.1rem;
25
+ font-weight: 600;
26
+ line-height: 1.35;
27
+ }
28
+ .sm-sponsorship .sm-sponsorship-description {
29
+ font-size: 0.9rem;
30
+ line-height: 1.5;
31
+ margin-top: 0.3rem;
32
+ max-width: 42ch;
33
+ }
34
+ .sm-sponsorship a {
35
+ display: inline-block;
36
+ font-size: 0.85rem;
37
+ color: inherit;
38
+ text-decoration: underline;
39
+ text-underline-offset: 3px;
40
+ margin-top: 0.5rem;
41
+ min-height: 24px;
42
+ }
43
+ .sm-sponsorship a:focus-visible {
44
+ outline: 2px solid currentColor;
45
+ outline-offset: 4px;
46
+ }
47
+ .sm-sponsorship-logo {
48
+ width: auto;
49
+ height: auto;
50
+ max-width: 112px;
51
+ max-height: 64px;
52
+ object-fit: contain;
53
+ flex-shrink: 0;
54
+ }
55
+ .sm-sponsorship-sr {
56
+ position: absolute;
57
+ width: 1px;
58
+ height: 1px;
59
+ overflow: hidden;
60
+ clip-path: inset(50%);
61
+ }
62
+ @media (max-width: 420px) {
63
+ .sm-sponsorship {
64
+ gap: 1rem;
65
+ }
66
+ .sm-sponsorship-logo {
67
+ max-width: 76px;
68
+ max-height: 52px;
69
+ }
70
+ }
71
+ @media (prefers-color-scheme: dark) {
72
+ .sm-sponsorship {
73
+ border-color: var(--pub-rule, #777);
74
+ }
75
+ .sm-sponsorship .sm-sponsorship-label {
76
+ color: inherit;
77
+ }
78
+ }
@@ -473,3 +473,49 @@
473
473
  color: var(--pub-muted, var(--news-muted, #545c55));
474
474
  font-weight: 400;
475
475
  }
476
+
477
+ /*
478
+ * Broadsheet Editorial Section Layout & Balanced Breakouts (The Economist standard)
479
+ * Prevents empty columns and half-filled voids when an only-child or odd trailing section renders.
480
+ */
481
+ .publication [class*="sectionCollection"] {
482
+ display: grid;
483
+ gap: 8px 32px;
484
+ }
485
+
486
+ @media (min-width: 960px) {
487
+ .publication [class*="sectionCollection"] {
488
+ grid-template-columns: repeat(2, minmax(0, 1fr));
489
+ gap: 16px 36px;
490
+ row-gap: 24px;
491
+ }
492
+
493
+ .publication [class*="sectionCollection"] > [class*="section"]:only-child,
494
+ .publication [class*="sectionCollection"] > [class*="section"]:last-child:nth-child(odd) {
495
+ grid-column: 1 / -1;
496
+ display: block;
497
+ margin-bottom: 32px;
498
+ }
499
+
500
+ .publication [class*="sectionCollection"] > [class*="section"]:only-child [class*="sectionStories"],
501
+ .publication [class*="sectionCollection"] > [class*="section"]:last-child:nth-child(odd) [class*="sectionStories"] {
502
+ display: grid;
503
+ grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
504
+ gap: 36px;
505
+ align-items: start;
506
+ }
507
+
508
+ .publication [class*="sectionCollection"] > [class*="section"]:only-child [class*="sectionFeature"],
509
+ .publication [class*="sectionCollection"] > [class*="section"]:last-child:nth-child(odd) [class*="sectionFeature"] {
510
+ display: block;
511
+ }
512
+
513
+ .publication [class*="sectionCollection"] > [class*="section"]:only-child [class*="sectionSupporting"],
514
+ .publication [class*="sectionCollection"] > [class*="section"]:last-child:nth-child(odd) [class*="sectionSupporting"] {
515
+ display: grid;
516
+ grid-template-columns: minmax(0, 1fr);
517
+ gap: 20px;
518
+ align-content: start;
519
+ }
520
+ }
521
+