tailwindcss 0.0.0-insiders.df011dc → 0.0.0-insiders.ebc1c7a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/lib/corePlugins.js +16 -1
- package/package.json +1 -1
- package/src/corePlugins.js +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
13
13
|
- Throw when trying to `@apply` the `group` class ([#4666](https://github.com/tailwindlabs/tailwindcss/pull/4666))
|
|
14
14
|
- Remove dependency on `modern-normalize`, inline and consolidate with Preflight ([#5358](https://github.com/tailwindlabs/tailwindcss/pull/5358))
|
|
15
15
|
- Enable extended color palette by default with updated color names ([#5384](https://github.com/tailwindlabs/tailwindcss/pull/5384))
|
|
16
|
+
- Move `vertical-align` values to config file instead of hard-coding ([#5487](https://github.com/tailwindlabs/tailwindcss/pull/5487))
|
|
16
17
|
|
|
17
18
|
### Added
|
|
18
19
|
|
|
@@ -21,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
21
22
|
- Preserve original color format when adding opacity whenever possible ([#5154](https://github.com/tailwindlabs/tailwindcss/pull/5154))
|
|
22
23
|
- Add `scroll-behavior` utilities ([#5388](https://github.com/tailwindlabs/tailwindcss/pull/5388))
|
|
23
24
|
- Add `border-hidden` utility ([#5485](https://github.com/tailwindlabs/tailwindcss/pull/5485))
|
|
25
|
+
- Add `align-sub` and `align-super` utilities by default ([#5486](https://github.com/tailwindlabs/tailwindcss/pull/5486))
|
|
24
26
|
|
|
25
27
|
### Fixed
|
|
26
28
|
|
package/lib/corePlugins.js
CHANGED
|
@@ -1946,7 +1946,8 @@ let textIndent = (0, _createUtilityPlugin.default)('textIndent', [['indent', ['t
|
|
|
1946
1946
|
exports.textIndent = textIndent;
|
|
1947
1947
|
|
|
1948
1948
|
let verticalAlign = ({
|
|
1949
|
-
addUtilities
|
|
1949
|
+
addUtilities,
|
|
1950
|
+
matchUtilities
|
|
1950
1951
|
}) => {
|
|
1951
1952
|
addUtilities({
|
|
1952
1953
|
'.align-baseline': {
|
|
@@ -1966,8 +1967,22 @@ let verticalAlign = ({
|
|
|
1966
1967
|
},
|
|
1967
1968
|
'.align-text-bottom': {
|
|
1968
1969
|
'vertical-align': 'text-bottom'
|
|
1970
|
+
},
|
|
1971
|
+
'.align-sub': {
|
|
1972
|
+
'vertical-align': 'sub'
|
|
1973
|
+
},
|
|
1974
|
+
'.align-super': {
|
|
1975
|
+
'vertical-align': 'super'
|
|
1969
1976
|
}
|
|
1970
1977
|
});
|
|
1978
|
+
matchUtilities({
|
|
1979
|
+
align: value => ({
|
|
1980
|
+
'vertical-align': value
|
|
1981
|
+
})
|
|
1982
|
+
}, {
|
|
1983
|
+
values: {},
|
|
1984
|
+
type: 'any'
|
|
1985
|
+
});
|
|
1971
1986
|
};
|
|
1972
1987
|
|
|
1973
1988
|
exports.verticalAlign = verticalAlign;
|
package/package.json
CHANGED
package/src/corePlugins.js
CHANGED
|
@@ -1477,7 +1477,7 @@ export let textAlign = ({ addUtilities }) => {
|
|
|
1477
1477
|
|
|
1478
1478
|
export let textIndent = createUtilityPlugin('textIndent', [['indent', ['text-indent']]])
|
|
1479
1479
|
|
|
1480
|
-
export let verticalAlign = ({ addUtilities }) => {
|
|
1480
|
+
export let verticalAlign = ({ addUtilities, matchUtilities }) => {
|
|
1481
1481
|
addUtilities({
|
|
1482
1482
|
'.align-baseline': { 'vertical-align': 'baseline' },
|
|
1483
1483
|
'.align-top': { 'vertical-align': 'top' },
|
|
@@ -1485,7 +1485,18 @@ export let verticalAlign = ({ addUtilities }) => {
|
|
|
1485
1485
|
'.align-bottom': { 'vertical-align': 'bottom' },
|
|
1486
1486
|
'.align-text-top': { 'vertical-align': 'text-top' },
|
|
1487
1487
|
'.align-text-bottom': { 'vertical-align': 'text-bottom' },
|
|
1488
|
+
'.align-sub': { 'vertical-align': 'sub' },
|
|
1489
|
+
'.align-super': { 'vertical-align': 'super' },
|
|
1488
1490
|
})
|
|
1491
|
+
|
|
1492
|
+
matchUtilities(
|
|
1493
|
+
{
|
|
1494
|
+
align: (value) => ({
|
|
1495
|
+
'vertical-align': value,
|
|
1496
|
+
}),
|
|
1497
|
+
},
|
|
1498
|
+
{ values: {}, type: 'any' }
|
|
1499
|
+
)
|
|
1489
1500
|
}
|
|
1490
1501
|
|
|
1491
1502
|
export let fontFamily = createUtilityPlugin('fontFamily', [['font', ['fontFamily']]], {
|