Skip to content

Commit a54daa4

Browse files
committed
Add pre-wrap value to the white-space CSS property
pre-wrap value allows sequences of white space to be preserved. Also the lines are broken at new line characters, at `<br>`, and as necessary to fill line boxes. See: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#Values
1 parent 2cf1419 commit a54daa4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

css/tachyons.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
18011801
.ws-normal { white-space: normal; }
18021802
.nowrap { white-space: nowrap; }
18031803
.pre { white-space: pre; }
1804+
.pre-wrap { white-space: pre-wrap; }
18041805
/*
18051806
18061807
VERTICAL ALIGN
@@ -2447,6 +2448,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
24472448
.ws-normal-ns { white-space: normal; }
24482449
.nowrap-ns { white-space: nowrap; }
24492450
.pre-ns { white-space: pre; }
2451+
.pre-wrap-ns { white-space: pre-wrap; }
24502452
.v-base-ns { vertical-align: baseline; }
24512453
.v-mid-ns { vertical-align: middle; }
24522454
.v-top-ns { vertical-align: top; }
@@ -2870,6 +2872,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
28702872
.ws-normal-m { white-space: normal; }
28712873
.nowrap-m { white-space: nowrap; }
28722874
.pre-m { white-space: pre; }
2875+
.pre-wrap-m { white-space: pre-wrap; }
28732876
.v-base-m { vertical-align: baseline; }
28742877
.v-mid-m { vertical-align: middle; }
28752878
.v-top-m { vertical-align: top; }
@@ -3293,6 +3296,7 @@ code, .code { font-family: Consolas, monaco, monospace; }
32933296
.ws-normal-l { white-space: normal; }
32943297
.nowrap-l { white-space: nowrap; }
32953298
.pre-l { white-space: pre; }
3299+
.pre-wrap-l { white-space: pre-wrap; }
32963300
.v-base-l { vertical-align: baseline; }
32973301
.v-mid-l { vertical-align: middle; }
32983302
.v-top-l { vertical-align: top; }

css/tachyons.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.

src/_white-space.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,26 @@
1313
.ws-normal { white-space: normal; }
1414
.nowrap { white-space: nowrap; }
1515
.pre { white-space: pre; }
16+
.pre-wrap { white-space: pre-wrap; }
1617

1718
@media (--breakpoint-not-small) {
1819
.ws-normal-ns { white-space: normal; }
1920
.nowrap-ns { white-space: nowrap; }
2021
.pre-ns { white-space: pre; }
22+
.pre-wrap-ns { white-space: pre-wrap; }
2123
}
2224

2325
@media (--breakpoint-medium) {
2426
.ws-normal-m { white-space: normal; }
2527
.nowrap-m { white-space: nowrap; }
2628
.pre-m { white-space: pre; }
29+
.pre-wrap-m { white-space: pre-wrap; }
2730
}
2831

2932
@media (--breakpoint-large) {
3033
.ws-normal-l { white-space: normal; }
3134
.nowrap-l { white-space: nowrap; }
3235
.pre-l { white-space: pre; }
36+
.pre-wrap-l { white-space: pre-wrap; }
3337
}
3438

0 commit comments

Comments
 (0)