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.