Skip to main content

Module media

Module media 

Source
Expand description

The media queries the Studio’s stylesheets and these shared ones use, by name. A stylesheet cannot read a custom property inside @media, so each query is written out in the CSS, and the one-Studio lock holds every @media the Studio draws from to one of media::ALL. The app’s own matchMedia checks use the same strings.

Constants§

ALL
COARSE
A finger, on any screen.
DESKTOP
Wider than an upright tablet: the desktop’s columns.
FILES_DRAWER
Where the Files tree is a drawer over the workbench, folded until the reader opens it: phones, upright tablets, and a phone on its side.
FRAME_WIDE
A frame on another page with room for its wider margins.
MOBILE
A phone or an upright tablet: the Studio’s panels stack.
NO_HOVER
A screen nothing hovers over.
PANES_FIXED
Where the panes show one at a time, or side by side in halves, so a pane’s header folds nothing.
PHONE
A phone held upright.
PHONE_LANDSCAPE
A phone turned on its side.
REDUCED_MOTION
A reader who asked for less motion.
SMALL_LAPTOP
A small laptop or a tablet on its side: the menu’s roomier layout.
SMALL_PHONE
The narrowest phones.
TABLET
Up to an upright tablet’s width: the site’s nav folds into its menu.
TABLET_LANDSCAPE
A tablet turned on its side.
TABLET_PORTRAIT
An upright tablet the width of a small phone’s landscape: iPad mini and iPad portrait.
UPRIGHT_TABLET
An upright tablet wider than 768px, an iPad Air or iPad Pro held upright, known by its finger.