Skip to content

Commit 3f29995

Browse files
authored
feat: additional design feedback (#177)
1 parent c697822 commit 3f29995

File tree

5 files changed

+74
-40
lines changed

5 files changed

+74
-40
lines changed

blocks/article-header/article-header.css

Lines changed: 45 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
/* this class styles the #main-content selector text within the article page */
22
.article-content {
3-
&
4-
article
5-
> :is(
6-
div,
7-
figure:not(.image-with-caption--full-bleed),
8-
p,
9-
h1,
10-
h2,
11-
h3,
12-
h4,
13-
h5,
14-
h6,
15-
ul,
16-
ol,
17-
dl,
18-
aside
19-
):not(.article-header):not(.article-prefooter) {
3+
& article > :is(
4+
div,
5+
figure:not(.image-with-caption--full-bleed),
6+
p,
7+
h1,
8+
h2,
9+
h3,
10+
h4,
11+
h5,
12+
h6,
13+
ul,
14+
ol,
15+
dl,
16+
aside
17+
):not(.article-header, .article-prefooter) {
2018
max-width: var(--page-constrained-text);
2119
margin-inline: auto;
2220

21+
& :is(h3, h4, h5, h6):not(.author-meta__name) {
22+
--spacing-heading-block-start-small-screen: 1.75rem;
23+
--spacing-heading-block-start-medium-screen: 2.0rem;
24+
--spacing-heading-block-start-large-screen: 2.25rem;
25+
--spacing-heading-block-start-xl-screen: 2.5rem;
26+
}
27+
2328
& :is(h1, h2, h3, h4, h5, h6):not(.author-meta__name) {
2429
margin-block-start: var(--spacing-heading-block-start-small-screen);
2530

@@ -36,34 +41,33 @@
3641
}
3742
}
3843

39-
& :is(h3):not(.author-meta__name) {
44+
& h3:not(.author-meta__name) {
4045
font-size: var(--spectrum-title-size-xl);
4146
font-weight: var(--spectrum-title-weight-xl);
47+
48+
@media (min-width: 80rem) {
49+
font-size: var(--spectrum-title-size-xxl);
50+
}
4251
}
4352

44-
& :is(h4):not(.author-meta__name) {
53+
& h4:not(.author-meta__name) {
4554
font-size: var(--spectrum-title-size-l);
4655
font-weight: var(--spectrum-title-weight-l);
4756
}
4857

49-
& :is(h5):not(.author-meta__name) {
58+
& h5:not(.author-meta__name) {
5059
font-size: var(--spectrum-title-size-m);
5160
font-weight: var(--spectrum-title-weight-m);
5261
}
5362

54-
& :is(h6):not(.author-meta__name) {
63+
& h6:not(.author-meta__name) {
5564
font-size: var(--spectrum-title-size-s);
5665
font-weight: var(--spectrum-title-weight-s);
5766
}
5867

59-
& p:not(.author-description p) {
68+
& p:not(.author-description p, .quote__quotation) {
6069
margin-block-start: 0.5rem;
6170
}
62-
63-
& ul > li:not(:last-of-type),
64-
& ol > li:not(:last-of-type) {
65-
margin-block-end: 1rem;
66-
}
6771
}
6872
}
6973

@@ -73,14 +77,15 @@
7377
max-width: 66rem;
7478
margin-inline: auto;
7579
margin-block-end: var(--spacing-global-block-end-small-screen);
76-
row-gap: 2rem;
80+
row-gap: 1.25rem;
7781

7882
@media (min-width: 36rem) {
83+
row-gap: 1.5rem;
7984
margin-block-end: var(--spacing-global-block-end-medium-screen);
8085
}
8186

8287
@media (min-width: 48rem) {
83-
row-gap: 4rem;
88+
row-gap: 2rem;
8489
margin-block-end: var(--spacing-global-block-end-large-screen);
8590
}
8691

@@ -101,19 +106,23 @@
101106
}
102107

103108
.article-header__headline-group {
104-
row-gap: 0.5rem;
105-
106-
@media (min-width: 48rem) {
107-
row-gap: 0.75rem;
108-
}
109+
row-gap: 1.0rem;
109110

110111
@media (min-width: 80rem) {
111-
row-gap: 1rem;
112+
row-gap: 1.25rem;
112113
}
113114
}
114115

115116
.article-header__byline-group {
116-
row-gap: 0.5rem;
117+
row-gap: 1.25rem;
118+
119+
@media (min-width: 36rem) {
120+
row-gap: 1.5rem;
121+
}
122+
123+
@media (min-width: 48rem) {
124+
row-gap: 2rem;
125+
}
117126
}
118127

119128
.article-header__eyebrow {

blocks/link-list/link-list.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
}
1212

1313
> li {
14+
margin-block: 0;
1415
border-top: 1px solid var(--color-border);
1516
}
1617

blocks/quote/quote.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,30 @@
22
--color-text: var(--spectrum-gray-700);
33
--color-border: var(--spectrum-gray-400);
44
position: relative;
5-
margin: var(--spectrum-spacing-800) auto;
6-
padding-block: 4.5rem;
5+
margin: 2.0rem auto;
6+
padding-block: 2.0rem;
77
font-family: var(--spectrum-serif-font);
88
line-height: 1.4;
99
letter-spacing: 0;
1010
color: var(--color-text);
1111
border-block: 1px solid var(--color-border);
12+
13+
@media (min-width: 48rem) {
14+
margin-block: 2.5rem;
15+
}
16+
17+
@media (min-width: 80rem) {
18+
padding-block: 4.5rem;
19+
margin-block: 4.0rem;
20+
}
1221
}
1322

1423
.quote__quotation {
1524
margin: 0;
1625
}
1726

1827
.quote__attribution {
19-
margin-block-start: 0.5rem;
28+
margin-block: 0.5rem 0;
2029

2130
& a {
2231
font-style: normal;

styles/global-blocks.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,13 @@
435435
line-height: var(--detail-line-height);
436436
font-size: var(--spectrum-detail-size-s);
437437
font-weight: var(--detail-font-weight);
438+
439+
&:first-child {
440+
margin-block-start: 0;
441+
}
442+
&:last-child {
443+
margin-block-end: 0;
444+
}
438445
}
439446

440447
& a {

styles/styles.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ body.js-has-sticky-footer {
6767
margin-block-end: 10rem;
6868
}
6969

70-
@media (min-width: 80rem) {
70+
@media (min-width: 67.5rem) {
7171
margin-block-end: 0;
7272
}
7373
}
@@ -511,6 +511,14 @@ a:hover {
511511
text-decoration: underline;
512512
}
513513

514+
:where(ol, ul, p) {
515+
margin-block: 1em;
516+
}
517+
518+
:where(main ol > li, main ul > li) {
519+
margin-block: 1rem;
520+
}
521+
514522
/* ** Objects ** */
515523
main > .section > .grid-container {
516524
margin-block-start: 0;

0 commit comments

Comments
 (0)