Skip to content

Commit b79facd

Browse files
Move body from typography to general, disable declaration-property-unit-allowed-list, T-13959
1 parent 527df33 commit b79facd

File tree

7 files changed

+55
-76
lines changed

7 files changed

+55
-76
lines changed

.stylelintrc

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -170,24 +170,6 @@
170170
]
171171
}
172172
],
173-
"declaration-property-unit-allowed-list": [
174-
{
175-
"font-size": [
176-
"rem",
177-
"em",
178-
"px"
179-
],
180-
"/^animation/": [
181-
"ms",
182-
"s"
183-
],
184-
"line-height": [
185-
"px",
186-
"%",
187-
""
188-
]
189-
}
190-
],
191173
"a11y/font-size-is-readable": [
192174
true,
193175
{
@@ -224,4 +206,4 @@
224206
"background"
225207
]
226208
}
227-
}
209+
}

css/dev/global.css

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/dev/gutenberg-editor-styles.css

Lines changed: 16 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/prod/global.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.

css/prod/gutenberg-editor-styles.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.

sass/layout/_general.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22
// that apply everywhere throughout the website. Add more
33
// always repeating elements right below.
44

5+
// Set root size for rems
6+
:root {
7+
font-size: 62.5%;
8+
}
9+
10+
// Body
11+
.is-root-container,
12+
.acf-block-preview .block,
13+
body {
14+
color: var(--color-paragraph);
15+
font-family: var(--font-paragraph);
16+
font-size: var(--font-size-paragraph);
17+
-moz-osx-font-smoothing: grayscale;
18+
-webkit-font-smoothing: antialiased;
19+
font-weight: var(--font-weight-paragraph);
20+
line-height: var(--line-height-paragraph);
21+
// stylelint-disable-next-line value-keyword-case
22+
text-rendering: geometricPrecision;
23+
}
24+
525
// Default structural element
626
.block {
727
background-color: var(--color-white);

sass/layout/_typography.scss

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
// stylelint-disable declaration-property-unit-allowed-list
2-
// Everything around fonts, font size definitions and typeset
3-
// presets. No modular scale, but a sophisticated viewport
4-
// based responsive mixin can be found in _helpers.scss
5-
6-
// Set root size for rems
7-
:root {
8-
font-size: 62.5%;
9-
}
10-
11-
// Typography settings
12-
.is-root-container,
13-
.acf-block-preview .block,
14-
body {
15-
color: var(--color-paragraph);
16-
font-family: var(--font-paragraph);
17-
font-size: var(--font-size-paragraph);
18-
-moz-osx-font-smoothing: grayscale;
19-
-webkit-font-smoothing: antialiased;
20-
font-weight: var(--font-weight-paragraph);
21-
line-height: var(--line-height-paragraph);
22-
// stylelint-disable-next-line value-keyword-case
23-
text-rendering: geometricPrecision;
24-
}
25-
261
// Heading defaults
272
h1,
283
h2,

0 commit comments

Comments
 (0)