Book Image

Learning less.js

Book Image

Learning less.js

Overview of this book

Table of Contents (22 chapters)
Learning Less.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Exploring media features


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

width

Length

Yes

This gives the width of the display area

height

Length

Yes

This gives the height of the display area

device-width

Length

Yes

This gives the width of the device area

device-height

Length

Yes

This gives the height of the device area

color

Integer

Yes

This is the number of bits per color component (if not color, the value is 0)

color-index

Integer

Yes

This is the number of entries in the output device's color lookup table

monochrome

Integer

Yes

This...