Mixins for targeting device-specific capabilities.
Generated from the doc blocks in the core source when the site is built, so it always matches the current release of @wovenui/core. Every example is compiled against core during the build; open Compiled CSS under an example to see its output. The A to Z index lists every public mixin and function.
Source: tools/_feature-support.scss
Mixins touch fine-pointer landscape portrait display-mode
touch mixin Applies styles on touch devices: no hover support and a coarse pointer.
Content block Styles for touch devices Example
Compiled CSS @media ( hover : none ) and ( pointer: coarse ) {
See also: fine-pointer . Source: tools/_feature-support.scss:15
fine-pointer mixin Applies styles on devices with a precise pointer such as a mouse (pointer: fine).
Content block Styles for fine pointer devices See also: touch . Source: tools/_feature-support.scss:30
landscape mixin Applies styles in landscape orientation ((orientation: landscape) media query, no screen and).
Content block Styles for landscape orientation Example
grid-template-columns : repeat ( 3 , 1 fr );
Compiled CSS @media ( orientation : landscape ) {
grid-template-columns : repeat ( 3 , 1 fr );
See also: portrait . Source: tools/_feature-support.scss:45
portrait mixin Applies styles in portrait orientation ((orientation: portrait) media query, no screen and).
Content block Styles for portrait orientation Example
grid-template-columns : 1 fr ;
Compiled CSS @media ( orientation : portrait ) {
grid-template-columns : 1 fr ;
See also: landscape . Source: tools/_feature-support.scss:60
display-mode mixin Applies styles when the page runs in the given Progressive Web App display mode.
@mixin display-mode ( $mode : " standalone " )
Parameter Type Default Description $modeString"standalone"Display mode (standalone, fullscreen, minimal-ui, browser)
Content block Styles for that display mode Example
@include display-mode ( standalone ) {
Compiled CSS @media ( display-mode : standalone ) {
Source: tools/_feature-support.scss:75