-
Book Overview & Buying
-
Table Of Contents
Learning less.js
By :
Once the media type has been set, we also need to set the media feature that should be tested; the media query will return true if it can match both the type of device the media is being displayed on and the feature being tested.
Media features are split into three categories—visual and tactile media, bitmap media, and TV. Let's take a look at the full list of options available for visual and tactile media:
|
Feature |
Value |
Min/max prefixes |
Description |
|---|---|---|---|
|
|
|
Yes |
This gives the width of the display area |
|
|
|
Yes |
This gives the height of the display area |
|
|
|
Yes |
This gives the width of the device area |
|
|
|
Yes |
This gives the height of the device area |
|
|
|
Yes |
This is the number of bits per color component (if not color, the value is |
|
|
|
Yes |
This is the number of entries in the output device's color lookup table |
|
|
|
Yes |
This... |
Change the font size
Change margin width
Change background colour