Skip to content

98.css breaks with  Sass: missing space in @media (not(hover))#223

Open
antoine-roux wants to merge 1 commit intojdan:mainfrom
antoine-roux:patch-1
Open

98.css breaks with  Sass: missing space in @media (not(hover))#223
antoine-roux wants to merge 1 commit intojdan:mainfrom
antoine-roux:patch-1

Conversation

@antoine-roux
Copy link

Description
style.css file contains

@media (not(hover)) { ... }

Dart Sass (used by Next.js, Vite, etc.) is strict about the Media Queries Level 4 spec (https://www.w3.org/TR/mediaqueries-4/#typedef-media-not) and requires a space after not and throws Expected whitespace.

Because of that, the file can't be parsed and I can't scope it with

@use "sass:meta";

.win98 {
  @include meta.load-css("node_modules/98.css/dist/98.css");
}

Proposed fix
Change @media (not(hover)) -> @media (not (hover))

@vercel
Copy link

vercel bot commented Dec 13, 2025

@antoine-roux is attempting to deploy a commit to the jdan's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant