-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (24 loc) · 1.67 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Container Queries: Once More Unto the Breach - Demos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Container Queries: Once More Unto the Breach - Demos</h1>
<p>These demos accompany <a href="http://alistapart.com/article/element-queries">Container Queries: Once More Unto the Breach</a>. <a href="demo6/index.html">Demo 6</a> and <a href="demo7/index.html">Demo 7</a> are using a modified version of <a href="https://github.com/Mr0grog/element-query">element-query</a>.</p>
<h2><a href="demo1/index.html">Demo 1</a></h2>
<p>A single breakpoint where the layout changes from linear to a primary content area and a sidebar.</p>
<h2><a href="demo2/index.html">Demo 2</a></h2>
<p>Module styles, using a single breakpoint not scoped to any specific contexts. The “featured” module is broken at meduium viewport widths.</p>
<h2><a href="demo3/index.html">Demo 3</a></h2>
<p>Modules now have a second breakpoint and set of styles scoped to the “featured” container context.</p>
<h2><a href="demo4/index.html">Demo 4</a></h2>
<p>“Add to cart” button and “Only 3 left” text are aligned right based on modules’ available space, using several media queries and duplicated styles.</p>
<h2><a href="demo5/index.html">Demo 5</a></h2>
<p>Module layouts using a breakpoint based on the element size rather than viewport size.</p>
<h2><a href="demo6/index.html">Demo 6</a></h2>
<p>“Add to cart” button and “Only 3 left” text are aligned right based on available space using a breakpoint based on the element size rather than viewport size.</p>
</body>
</html>