Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 2413be4

Browse files
update(docs): update breakpoint and mediaQuery information
1 parent be504e9 commit 2413be4

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

src/core/util/media.js

+54-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,60 @@ angular.module('material.core')
1111
* current device's screen / window size. The media query will be re-evaluated on resize, allowing
1212
* you to register a watch.
1313
*
14-
* `$mdMedia` also has pre-programmed support for media queries that match the layout breakpoints.
15-
* (`sm`, `gt-sm`, `md`, `gt-md`, `lg`, `gt-lg`).
14+
* `$mdMedia` also has pre-programmed support for media queries that match the layout breakpoints:
15+
*
16+
* <table class="md-api-table">
17+
* <thead>
18+
* <tr>
19+
* <th>Breakpoint</th>
20+
* <th>mediaQuery</th>
21+
* </tr>
22+
* </thead>
23+
* <tbody>
24+
* <tr>
25+
* <td>xs</td>
26+
* <td>(max-width: 599px)</td>
27+
* </tr>
28+
* <tr>
29+
* <td>gt-xs</td>
30+
* <td>(min-width: 600px)</td>
31+
* </tr>
32+
* <tr>
33+
* <td>sm</td>
34+
* <td>(min-width: 600px) and (max-width: 959px)</td>
35+
* </tr>
36+
* <tr>
37+
* <td>gt-sm</td>
38+
* <td>(min-width: 960px)</td>
39+
* </tr>
40+
* <tr>
41+
* <td>md</td>
42+
* <td>(min-width: 960px) and (max-width: 1279px)</td>
43+
* </tr>
44+
* <tr>
45+
* <td>gt-md</td>
46+
* <td>(min-width: 1280px)</td>
47+
* </tr>
48+
* <tr>
49+
* <td>lg</td>
50+
* <td>(min-width: 1280px) and (max-width: 1919px)</td>
51+
* </tr>
52+
* <tr>
53+
* <td>gt-lg</td>
54+
* <td>(min-width: 1920px)</td>
55+
* </tr>
56+
* <tr>
57+
* <td>xl</td>
58+
* <td>(min-width: 1920px)</td>
59+
* </tr>
60+
* </tbody>
61+
* </table>
62+
*
63+
* See Material Design's <a href="https://www.google.com/design/spec/layout/adaptive-ui.html">Layout - Adaptive UI</a> for more details.
64+
*
65+
* <a href="https://www.google.com/design/spec/layout/adaptive-ui.html">
66+
* <img src="https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B8olV15J7abPSGFxemFiQVRtb1k/layout_adaptive_breakpoints_01.png" width="100%" height="100%"></img>
67+
* </a>
1668
*
1769
* @returns {boolean} a boolean representing whether or not the given media query is true or false.
1870
*

0 commit comments

Comments
 (0)