mminguezz / poc-media-level-5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

poc-media-level-5

The @media CSS at-rule can be used to apply part of a style sheet based on the result of one or more media queries. With it, you specify a media query and a block of CSS to apply to the document if and only if the media query matches the device on which the content is being used. W3C level 5: https://drafts.csswg.org/mediaqueries-5/#at-media5

prefers-color-scheme

The prefers-color-scheme CSS media feature is used to detect if the user has requested the system use a light or dark color theme.

prefers-contrast

The prefers-contrast CSS media feature is used to detect if the user has requested that the web content is presented with a higher (or lower) contrast.

prefers-reduced-motion

The prefers-reduced-motion CSS media feature is used to detect if the user has requested that the system minimize the amount of animation or motion it uses.

prefers-reduced-transparency

The prefers-reduced-transparency CSS media feature is used to detect if the user has requested that the system minimize the amount of transparency used across elements.

inverted-colors

The inverted-colors CSS media feature can be used to test whether the user agent or underlying OS is inverting colors.

light-level

The light-level CSS media feature can be used to test the ambient light level

forced-colors

The forced-colors CSS media feature is used to detect if the user agent has enabled a forced colors mode where it enforces a user-chosen limited color palette on the page.

About


Languages

Language:CSS 60.1%Language:HTML 38.1%Language:JavaScript 1.8%