Skip to content

Commit 7465baa

Browse files
Refactor TR styles to tighten up vertical spacing
1 parent be3cea4 commit 7465baa

File tree

4 files changed

+21
-26
lines changed

4 files changed

+21
-26
lines changed

assets-src/styles/sass/50-core-components/_family-series-list.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
\*------------------------------------*/
44

55
.family-grouping {
6-
padding-top: rem(40);
6+
padding-block-start: rem(28);
77
}
88

99
.family-grouping h2 + * {
10-
margin-top: 1rem;
10+
margin-block-start: 1rem;
1111
}

assets-src/styles/sass/80-templates/_technical-reports.scss

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
.hero {
1111
background-color: $white;
12-
margin-bottom: rem(20);
13-
padding-bottom: rem(40);
12+
margin-block-end: rem(20);
13+
padding-block-end: 0;
1414

1515
.l-box {
1616
background-color: #f3f3f6;
@@ -37,8 +37,9 @@
3737
.tr-list__item {
3838
@include stack(0.5em);
3939
@include txt-pluto;
40-
padding-bottom: rem(24);
41-
padding-top: rem(24);
40+
border-block-end: 1px solid $twiki-gray;
41+
padding-block-end: rem(8);
42+
padding-block-start: rem(20);
4243

4344
> * {
4445
max-width: rem(820);
@@ -49,21 +50,17 @@
4950
@include txt-mars;
5051
}
5152

52-
.tr-list__item + .tr-list__item {
53-
border-top: 1px solid $twiki-gray;
54-
}
55-
5653
.tr-list__item__header {
5754
@include stack;
5855
align-items: flex-start;
5956

6057
h3 {
61-
margin-bottom: 0;
62-
margin-top: rem(5);
58+
margin-block-end: 0;
59+
margin-block-start: rem(5);
6360
}
6461

6562
h3 + * {
66-
margin-top: 0;
63+
margin-block-start: 0;
6764
order: -1;
6865
}
6966
}

public/dist/assets/styles/core.css

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4008,11 +4008,11 @@ input[type=search] {
40084008
#Family/Series list
40094009
\*------------------------------------*/
40104010
.family-grouping {
4011-
padding-top: 2.5rem;
4011+
padding-block-start: 1.75rem;
40124012
}
40134013

40144014
.family-grouping h2 + * {
4015-
margin-top: 1rem;
4015+
margin-block-start: 1rem;
40164016
}
40174017

40184018
/*------------------------------------*\
@@ -4916,8 +4916,8 @@ input[type=search] {
49164916
}
49174917
.technical-reports .hero {
49184918
background-color: #fff;
4919-
margin-bottom: 1.25rem;
4920-
padding-bottom: 2.5rem;
4919+
margin-block-end: 1.25rem;
4920+
padding-block-end: 0;
49214921
}
49224922
.technical-reports .hero .l-box {
49234923
background-color: #f3f3f6;
@@ -4940,8 +4940,9 @@ input[type=search] {
49404940
justify-content: flex-start;
49414941
font-size: 0.9375rem;
49424942
line-height: 1.5;
4943-
padding-bottom: 1.5rem;
4944-
padding-top: 1.5rem;
4943+
border-block-end: 1px solid #bdbdbd;
4944+
padding-block-end: 0.5rem;
4945+
padding-block-start: 1.25rem;
49454946
}
49464947
.tr-list .tr-list__item > * + * {
49474948
margin-top: 0.5em;
@@ -4953,9 +4954,6 @@ input[type=search] {
49534954
font-size: 1.5rem;
49544955
line-height: 1.4;
49554956
}
4956-
.tr-list .tr-list__item + .tr-list__item {
4957-
border-top: 1px solid #bdbdbd;
4958-
}
49594957
.tr-list .tr-list__item__header {
49604958
display: flex;
49614959
flex-direction: column;
@@ -4966,11 +4964,11 @@ input[type=search] {
49664964
margin-top: 1em;
49674965
}
49684966
.tr-list .tr-list__item__header h3 {
4969-
margin-bottom: 0;
4970-
margin-top: 0.3125rem;
4967+
margin-block-end: 0;
4968+
margin-block-start: 0.3125rem;
49714969
}
49724970
.tr-list .tr-list__item__header h3 + * {
4973-
margin-top: 0;
4971+
margin-block-start: 0;
49744972
order: -1;
49754973
}
49764974

public/dist/assets/styles/core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)