Prepare 4.1.0 release (#17483)
--------- Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
This commit is contained in:
parent
b94720aef3
commit
8f631d0d8a
26 changed files with 829 additions and 903 deletions
63
CHANGELOG.md
63
CHANGELOG.md
|
|
@ -7,45 +7,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- Nothing yet!
|
||||
|
||||
## [4.1.0] - 2025-04-01
|
||||
|
||||
### Added
|
||||
|
||||
- _Experimental_: Add `details-content` variant ([#15319](https://github.com/tailwindlabs/tailwindcss/pull/15319))
|
||||
- _Experimental_: Add `inverted-colors` variant ([#11693](https://github.com/tailwindlabs/tailwindcss/pull/11693))
|
||||
- _Experimental_: Add `noscript` variant ([#11929](https://github.com/tailwindlabs/tailwindcss/pull/11929), [#17431](https://github.com/tailwindlabs/tailwindcss/pull/17431))
|
||||
- _Experimental_: Add `items-baseline-last` and `self-baseline-last` utilities ([#13888](https://github.com/tailwindlabs/tailwindcss/pull/13888), [#17476](https://github.com/tailwindlabs/tailwindcss/pull/17476))
|
||||
- _Experimental_: Add `pointer-none`, `pointer-coarse`, and `pointer-fine` variant ([#16946](https://github.com/tailwindlabs/tailwindcss/pull/16946))
|
||||
- _Experimental_: Add `any-pointer-none`, `any-pointer-coarse`, and `any-pointer-fine` variants ([#16941](https://github.com/tailwindlabs/tailwindcss/pull/16941))
|
||||
- _Experimental_: Add safe alignment utilities ([#14607](https://github.com/tailwindlabs/tailwindcss/pull/14607))
|
||||
- _Experimental_: Add `user-valid` and `user-invalid` variants ([#12370](https://github.com/tailwindlabs/tailwindcss/pull/12370))
|
||||
- _Experimental_: Add `wrap-anywhere`, `wrap-break-word`, and `wrap-normal` utilities ([#12128](https://github.com/tailwindlabs/tailwindcss/pull/12128))
|
||||
- _Experimental_: Add `@source inline(…)` ([#17147](https://github.com/tailwindlabs/tailwindcss/pull/17147))
|
||||
- _Experimental_: Add `@source not` ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- _Experimental_: Add `text-shadow-*` utilities ([#17389](https://github.com/tailwindlabs/tailwindcss/pull/17389))
|
||||
- _Experimental_: Add `mask-*` utilities ([#17134](https://github.com/tailwindlabs/tailwindcss/pull/17134))
|
||||
- Added new `bg-{top,bottom}-{left,right}` utilities ([#17378](https://github.com/tailwindlabs/tailwindcss/pull/17378))
|
||||
- Added new `bg-{position,size}-*` utilities for arbitrary values ([#17432](https://github.com/tailwindlabs/tailwindcss/pull/17432))
|
||||
- Added new `shadow-*/{alpha}`, `inset-shadow-*/{alpha}`, and `text-shadow-*/{alpha}` utilities to control shadow opacity ([#17398](https://github.com/tailwindlabs/tailwindcss/pull/17398))
|
||||
- Added new `object-{top,bottom}-{left,right}` utilities ([#17437](https://github.com/tailwindlabs/tailwindcss/pull/17437))
|
||||
- Added new `drop-shadow-{color}` utilities ([#17434](https://github.com/tailwindlabs/tailwindcss/pull/17434))
|
||||
- Added new `drop-shadow-*/{alpha}` utilities to control drop shadow opacity ([#17434](https://github.com/tailwindlabs/tailwindcss/pull/17434))
|
||||
- Add `details-content` variant ([#15319](https://github.com/tailwindlabs/tailwindcss/pull/15319))
|
||||
- Add `inverted-colors` variant ([#11693](https://github.com/tailwindlabs/tailwindcss/pull/11693))
|
||||
- Add `noscript` variant ([#11929](https://github.com/tailwindlabs/tailwindcss/pull/11929), [#17431](https://github.com/tailwindlabs/tailwindcss/pull/17431))
|
||||
- Add `items-baseline-last` and `self-baseline-last` utilities ([#13888](https://github.com/tailwindlabs/tailwindcss/pull/13888), [#17476](https://github.com/tailwindlabs/tailwindcss/pull/17476))
|
||||
- Add `pointer-none`, `pointer-coarse`, and `pointer-fine` variants ([#16946](https://github.com/tailwindlabs/tailwindcss/pull/16946))
|
||||
- Add `any-pointer-none`, `any-pointer-coarse`, and `any-pointer-fine` variants ([#16941](https://github.com/tailwindlabs/tailwindcss/pull/16941))
|
||||
- Add safe alignment utilities ([#14607](https://github.com/tailwindlabs/tailwindcss/pull/14607))
|
||||
- Add `user-valid` and `user-invalid` variants ([#12370](https://github.com/tailwindlabs/tailwindcss/pull/12370))
|
||||
- Add `wrap-anywhere`, `wrap-break-word`, and `wrap-normal` utilities ([#12128](https://github.com/tailwindlabs/tailwindcss/pull/12128))
|
||||
- Add `@source inline(…)` and `@source not inline(…)` ([#17147](https://github.com/tailwindlabs/tailwindcss/pull/17147))
|
||||
- Add `@source not "…"` ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Add `text-shadow-*` utilities ([#17389](https://github.com/tailwindlabs/tailwindcss/pull/17389))
|
||||
- Add `mask-*` utilities ([#17134](https://github.com/tailwindlabs/tailwindcss/pull/17134))
|
||||
- Add `bg-{position,size}-*` utilities for arbitrary values ([#17432](https://github.com/tailwindlabs/tailwindcss/pull/17432))
|
||||
- Add `shadow-*/<alpha>`, `inset-shadow-*/<alpha>`, `drop-shadow-*/<alpha>`, and `text-shadow-*/<alpha>` utilities to control shadow opacity ([#17398](https://github.com/tailwindlabs/tailwindcss/pull/17398), [#17434](https://github.com/tailwindlabs/tailwindcss/pull/17434))
|
||||
- Add `drop-shadow-<color>` utilities ([#17434](https://github.com/tailwindlabs/tailwindcss/pull/17434))
|
||||
- Improve compatibility with older versions of Safari and Firefox ([#17435](https://github.com/tailwindlabs/tailwindcss/pull/17435))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix symlink issues when resolving `@source` directives ([#17391](https://github.com/tailwindlabs/tailwindcss/pull/17391))
|
||||
- `@tailwindcss/cli` considers ignore rules in `--watch` mode ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Fix negated `content` rules in legacy JavaScript configuration ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Extract special `@("@")md:…` syntax in Razor files ([#17427](https://github.com/tailwindlabs/tailwindcss/pull/17427))
|
||||
- Disallow arbitrary values with top-level braces and semicolons as well as unbalanced parentheses and brackets ([#17361](https://github.com/tailwindlabs/tailwindcss/pull/17361))
|
||||
- Ensure the `--theme(…)` function still resolves to the CSS variables even when legacy JS plugins are enabled
|
||||
- Extract used CSS variables from `.css` files ([#17433](https://github.com/tailwindlabs/tailwindcss/pull/17433), [#17467](https://github.com/tailwindlabs/tailwindcss/pull/17467))
|
||||
- Improve compatibility with Safari 15 ([#17435](https://github.com/tailwindlabs/tailwindcss/pull/17435))
|
||||
- Follow symlinks when resolving `@source` directives ([#17391](https://github.com/tailwindlabs/tailwindcss/pull/17391))
|
||||
- Don't scan ignored files for classes when changing an ignored file triggers a rebuild using `@tailwindcss/cli` ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Support negated `content` rules in legacy JavaScript configuration ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Interpret syntax like `@("@")md:…` as `@md:…` in Razor files ([#17427](https://github.com/tailwindlabs/tailwindcss/pull/17427))
|
||||
- Disallow top-level braces, top-level semicolons, and unbalanced parentheses and brackets in arbitrary values ([#17361](https://github.com/tailwindlabs/tailwindcss/pull/17361))
|
||||
- Ensure the `--theme(…)` function still resolves to the CSS variables when using legacy JS plugins ([#17458](https://github.com/tailwindlabs/tailwindcss/pull/17458))
|
||||
- Detect used theme variables in CSS module files ([#17433](https://github.com/tailwindlabs/tailwindcss/pull/17433), [#17467](https://github.com/tailwindlabs/tailwindcss/pull/17467))
|
||||
|
||||
### Changed
|
||||
|
||||
- Ignore `node_modules` by default (but can be overridden by `@source not …` rules) ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Order of `@source` rules matter if you want to negate previous `@source` rules ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- `@source` rules that include file extensions or point inside `node_modules/` no longer consider `.gitignore` rules ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Deprecated `bg-{left,right}-{top,bottom}` utilities ([#17378](https://github.com/tailwindlabs/tailwindcss/pull/17378))
|
||||
- Ignore `node_modules` by default (can be overridden by `@source …` rules) ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- `@source` rules that include file extensions or point inside `node_modules/` folders no longer consider your `.gitignore` rules ([#17255](https://github.com/tailwindlabs/tailwindcss/pull/17255))
|
||||
- Deprecate `bg-{left,right}-{top,bottom}` in favor of `bg-{top,bottom}-{left,right}` utilities ([#17378](https://github.com/tailwindlabs/tailwindcss/pull/17378))
|
||||
- Deprecate `object-{left,right}-{top,bottom}` in favor of `object-{top,bottom}-{left,right}` utilities ([#17437](https://github.com/tailwindlabs/tailwindcss/pull/17437))
|
||||
|
||||
## [4.0.17] - 2025-03-26
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-android-arm-eabi",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-android-arm64",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-darwin-arm64",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-darwin-x64",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-freebsd-x64",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-linux-arm-gnueabihf",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-linux-arm64-gnu",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-linux-arm64-musl",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-linux-x64-gnu",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-linux-x64-musl",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-win32-arm64-msvc",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide-win32-x64-msvc",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/oxide",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tailwindlabs/tailwindcss.git",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/browser",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"main": "./dist/index.global.js",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/cli",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/node",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/postcss",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"description": "PostCSS plugin for Tailwind CSS, a utility-first CSS framework for rapidly building custom user interfaces",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/standalone",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"private": true,
|
||||
"description": "Standalone CLI for Tailwind CSS",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/upgrade",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tailwindcss/vite",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tailwindcss",
|
||||
"version": "4.0.17",
|
||||
"version": "4.1.0",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
export const enableBaselineLast = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableDetailsContent = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableInvertedColors = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enablePointerVariants = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableSafeAlignment = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableScripting = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableSourceInline = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableSourceNot = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableTextShadows = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableUserValid = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableWrapAnywhere = process.env.FEATURES_ENV !== 'stable'
|
||||
export const enableMaskUtilities = process.env.FEATURES_ENV !== 'stable'
|
||||
|
|
@ -26,7 +26,6 @@ import { applyVariant, compileCandidates } from './compile'
|
|||
import { substituteFunctions } from './css-functions'
|
||||
import * as CSS from './css-parser'
|
||||
import { buildDesignSystem, type DesignSystem } from './design-system'
|
||||
import { enableSourceInline, enableSourceNot } from './feature-flags'
|
||||
import { Theme, ThemeOptions } from './theme'
|
||||
import { createCssUtility } from './utilities'
|
||||
import { expand } from './utils/brace-expansion'
|
||||
|
|
@ -230,18 +229,14 @@ async function parseCss(
|
|||
let inline = false
|
||||
let path = node.params
|
||||
|
||||
if (enableSourceNot) {
|
||||
if (path[0] === 'n' && path.startsWith('not ')) {
|
||||
not = true
|
||||
path = path.slice(4)
|
||||
}
|
||||
if (path[0] === 'n' && path.startsWith('not ')) {
|
||||
not = true
|
||||
path = path.slice(4)
|
||||
}
|
||||
|
||||
if (enableSourceInline) {
|
||||
if (path[0] === 'i' && path.startsWith('inline(')) {
|
||||
inline = true
|
||||
path = path.slice(7, -1)
|
||||
}
|
||||
if (path[0] === 'i' && path.startsWith('inline(')) {
|
||||
inline = true
|
||||
path = path.slice(7, -1)
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
@ -254,7 +249,7 @@ async function parseCss(
|
|||
|
||||
let source = path.slice(1, -1)
|
||||
|
||||
if (enableSourceInline && inline) {
|
||||
if (inline) {
|
||||
let destination = not ? ignoredCandidates : inlineCandidates
|
||||
let sources = segment(source, ' ')
|
||||
for (let source of sources) {
|
||||
|
|
@ -266,7 +261,7 @@ async function parseCss(
|
|||
sources.push({
|
||||
base: context.base as string,
|
||||
pattern: source,
|
||||
negated: enableSourceNot ? not : false,
|
||||
negated: not,
|
||||
})
|
||||
}
|
||||
replaceWith([])
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -12,13 +12,6 @@ import {
|
|||
type StyleRule,
|
||||
} from './ast'
|
||||
import { type Variant } from './candidate'
|
||||
import {
|
||||
enableDetailsContent,
|
||||
enableInvertedColors,
|
||||
enablePointerVariants,
|
||||
enableScripting,
|
||||
enableUserValid,
|
||||
} from './feature-flags'
|
||||
import type { Theme } from './theme'
|
||||
import { compareBreakpoints } from './utils/compare-breakpoints'
|
||||
import { DefaultMap } from './utils/default-map'
|
||||
|
|
@ -633,9 +626,7 @@ export function createVariants(theme: Theme): Variants {
|
|||
staticVariant('file', ['&::file-selector-button'])
|
||||
staticVariant('placeholder', ['&::placeholder'])
|
||||
staticVariant('backdrop', ['&::backdrop'])
|
||||
if (enableDetailsContent) {
|
||||
staticVariant('details-content', ['&::details-content'])
|
||||
}
|
||||
staticVariant('details-content', ['&::details-content'])
|
||||
|
||||
{
|
||||
function contentProperties() {
|
||||
|
|
@ -701,10 +692,8 @@ export function createVariants(theme: Theme): Variants {
|
|||
staticVariant('required', ['&:required'])
|
||||
staticVariant('valid', ['&:valid'])
|
||||
staticVariant('invalid', ['&:invalid'])
|
||||
if (enableUserValid) {
|
||||
staticVariant('user-valid', ['&:user-valid'])
|
||||
staticVariant('user-invalid', ['&:user-invalid'])
|
||||
}
|
||||
staticVariant('user-valid', ['&:user-valid'])
|
||||
staticVariant('user-invalid', ['&:user-invalid'])
|
||||
staticVariant('in-range', ['&:in-range'])
|
||||
staticVariant('out-of-range', ['&:out-of-range'])
|
||||
staticVariant('read-only', ['&:read-only'])
|
||||
|
|
@ -1151,22 +1140,16 @@ export function createVariants(theme: Theme): Variants {
|
|||
|
||||
staticVariant('forced-colors', ['@media (forced-colors: active)'])
|
||||
|
||||
if (enableInvertedColors) {
|
||||
staticVariant('inverted-colors', ['@media (inverted-colors: inverted)'])
|
||||
}
|
||||
staticVariant('inverted-colors', ['@media (inverted-colors: inverted)'])
|
||||
|
||||
if (enablePointerVariants) {
|
||||
staticVariant('pointer-none', ['@media (pointer: none)'])
|
||||
staticVariant('pointer-coarse', ['@media (pointer: coarse)'])
|
||||
staticVariant('pointer-fine', ['@media (pointer: fine)'])
|
||||
staticVariant('any-pointer-none', ['@media (any-pointer: none)'])
|
||||
staticVariant('any-pointer-coarse', ['@media (any-pointer: coarse)'])
|
||||
staticVariant('any-pointer-fine', ['@media (any-pointer: fine)'])
|
||||
}
|
||||
staticVariant('pointer-none', ['@media (pointer: none)'])
|
||||
staticVariant('pointer-coarse', ['@media (pointer: coarse)'])
|
||||
staticVariant('pointer-fine', ['@media (pointer: fine)'])
|
||||
staticVariant('any-pointer-none', ['@media (any-pointer: none)'])
|
||||
staticVariant('any-pointer-coarse', ['@media (any-pointer: coarse)'])
|
||||
staticVariant('any-pointer-fine', ['@media (any-pointer: fine)'])
|
||||
|
||||
if (enableScripting) {
|
||||
staticVariant('noscript', ['@media (scripting: none)'])
|
||||
}
|
||||
staticVariant('noscript', ['@media (scripting: none)'])
|
||||
|
||||
return variants
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue