Skip to content

Commit f888a62

Browse files
author
Neal
committed
use limestone spacing/font-size values
1 parent eb91863 commit f888a62

1 file changed

Lines changed: 28 additions & 13 deletions

File tree

app/Assets/css/extra.css

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,30 @@
3030
}
3131

3232
:root {
33-
/* Limestone brand colors (names mirror Limestone's modifier classes) */
33+
/* Limestone values */
34+
/* Limestone brand colors */
3435
--color-wildcat-blue: #0033a0;
3536
--color-wildcat-white: #fff;
3637
--color-blue-gray: #eff4fd;
3738
--color-cool-neutral: #dcddde;
3839
--color-sky: #b1c9e8;
3940
--color-dark-gray: #515664;
41+
42+
/* Type scale */
43+
--font-size-base: 1.1667rem;
44+
--font-size-lg: 1.5rem;
45+
--line-height: 1.5rem;
46+
47+
/* Spacing */
48+
--space-xs: 0.5rem;
49+
--space-sm: 0.75rem;
50+
--space-md: 1rem;
51+
--space-lg: 1.5rem;
52+
--space-xl: 2rem;
4053
}
4154

4255
.fa-component .slab__wrapper {
43-
padding: 0 1rem;
56+
padding: 0 var(--space-md);
4457
}
4558

4659
.fa-component {
@@ -66,7 +79,7 @@
6679
.container_list {
6780
display: flex;
6881
flex-direction: column;
69-
gap: 0.5rem;
82+
gap: var(--space-xs);
7083
padding: 0;
7184
}
7285

@@ -86,7 +99,7 @@
8699
}
87100

88101
.fa-expand-all-wrap {
89-
margin: 0 0 0.75rem;
102+
margin: 0 0 var(--space-sm);
90103
text-align: right;
91104
}
92105

@@ -147,25 +160,27 @@ label {
147160
}
148161

149162
.fa-section {
150-
margin-bottom: 2rem;
163+
margin-bottom: var(--space-xl);
151164
}
152165

153166
.editorial .fa-section h3 {
154-
font-size: 1.5rem;
167+
font-size: var(--font-size-lg);
155168
}
156169

157170
.editorial .fa-component h4 {
158-
font-size: 1.15rem;
159-
font-weight: 400;
171+
/* Compact hierarchy, but on Limestone's grid: base hN size, normal weight
172+
(was an off-grid 1.15rem / 400). */
173+
font-size: var(--font-size-base);
174+
font-weight: normal;
160175
}
161176

162177
.editorial [role="heading"],
163178
.editorial [role="heading"].headline-group .headline-group__head {
164-
font-size: 1.1667rem;
165-
line-height: 1.5rem;
179+
font-size: var(--font-size-base);
180+
line-height: var(--line-height);
166181
font-family: "usual", sans-serif;
167182
font-weight: 700;
168-
margin: 0 0 1rem;
183+
margin: 0 0 var(--space-md);
169184
}
170185

171186
.fa-component .list-unstyled {
@@ -351,7 +366,7 @@ button:focus:hover.button--ghost,
351366
.container_list_item {
352367
flex-direction: row;
353368
align-items: center;
354-
gap: 0.75rem;
369+
gap: var(--space-sm);
355370
max-width: 32rem;
356371
}
357372

@@ -364,7 +379,7 @@ button:focus:hover.button--ghost,
364379
.container_list_item > p::after {
365380
content: "";
366381
flex: 1;
367-
margin-left: 0.75rem;
382+
margin-left: var(--space-sm);
368383
border-top: 2px dotted var(--color-sky);
369384
}
370385
}

0 commit comments

Comments
 (0)