Skip to content

Commit a8942fb

Browse files
committed
[css-regions] improve linked box images
1 parent 7cc7944 commit a8942fb

5 files changed

Lines changed: 25 additions & 15 deletions

File tree

css-regions/Overview.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</p>
5757
<h1 class="p-name no-ref" id=title>CSS Regions Module Level 1</h1>
5858
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
59-
<span class=dt-updated><span class=value-title title=20140325>25 March 2014</span></span></span></h2>
59+
<span class=dt-updated><span class=value-title title=20140328>28 March 2014</span></span></span></h2>
6060
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-regions/>http://dev.w3.org/csswg/css-regions/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-regions/>http://www.w3.org/TR/css-regions/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-regions/>http://dev.w3.org/csswg/css-regions/</a>
6161
<dt>Feedback:</dt>
6262
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-regions%5D%20feedback">www-style@w3.org</a>
@@ -288,15 +288,18 @@ <h2 class="heading settled heading" data-level=1 id=introduction><span class=sec
288288
</figure>
289289

290290
<p style=clear:left;>In the images above,
291-
the red outline indicates the size of the viewport.
291+
the gray area represents
292+
the content below the screen edge
293+
in the initial view.
292294

293-
<p>This example links just two boxes together,
295+
<p> This example links just two boxes together,
294296
but more boxes could be added to the <a class=css data-link-type=maybe href=#region-chain0 title="region chain">region chain</a>
295297
to regularly interleave other content with the article.
296298
</div>
297299

298300
<div class=example>
299-
Custom overflow handling can be accomplished by linking a separate overflow box. In this example, the overflow box is nestled inside a menu in the markup, and only displays if the menu is toggled.
301+
302+
<p> Custom overflow handling can be accomplished by linking a separate overflow box. In this example, the overflow box is nestled inside a menu in the markup, and only displays if the menu is toggled.
300303

301304
<pre><code class=html>
302305
&lt;nav&gt; ...some links... &lt;/nav&gt;
@@ -2187,6 +2190,7 @@ <h3 class="heading settled heading" data-level=11.1 id=changes_from_Feb_18_2014>
21872190
<li>Added three simpler examples to the introduction</li>
21882191
<li>Moved complex example to the <a href=http://wiki.csswg.org/spec/css3-regions/complex-layout-example>CSSWG wiki</a></li>
21892192
</ul>
2193+
21902194
<h3 class="heading settled heading" data-level=11.2 id=changes_from_May_28_2013><span class=secno>11.2 </span><span class=content>
21912195
Changes from <a href=http://www.w3.org/TR/2013/WD-css3-regions-20130528/>May 28<sup>th</sup> 2013</a> version</span><a class=self-link href=#changes_from_May_28_2013></a></h3>
21922196

css-regions/Overview.src.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,17 @@ <h2 id="introduction">
125125
</figure>
126126

127127
<p style="clear:left;">In the images above,
128-
the red outline indicates the size of the viewport.
128+
the gray area represents
129+
the content below the screen edge
130+
in the initial view.
129131

130-
<p>This example links just two boxes together,
132+
This example links just two boxes together,
131133
but more boxes could be added to the ''region chain''
132134
to regularly interleave other content with the article.
133135
</div>
134136

135137
<div class="example">
138+
136139
Custom overflow handling can be accomplished by linking a separate overflow box. In this example, the overflow box is nestled inside a menu in the markup, and only displays if the menu is toggled.
137140

138141
<pre><code class="html">
@@ -2119,7 +2122,7 @@ <h3 id="changes_from_Feb_18_2014">
21192122
<li>Added three simpler examples to the introduction</li>
21202123
<li>Moved complex example to the <a href="http://wiki.csswg.org/spec/css3-regions/complex-layout-example">CSSWG wiki</a></li>
21212124
</ul>
2122-
2125+
21232126
<h3 id="changes_from_May_28_2013">
21242127
Changes from <a href="http://www.w3.org/TR/2013/WD-css3-regions-20130528/">May 28<sup>th</sup> 2013</a> version</h3>
21252128

css-regions/examples/linked-boxes.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
-border: thin black solid;
1010
padding: 10px;
1111
position: relative;
12+
font-family: sans-serif;
1213
}
1314
aside {
1415
border: thin black solid;
@@ -22,13 +23,15 @@
2223
font-size: 10px;
2324
-webkit-flow-into: article-flow;
2425
}
25-
.screen {
26+
.off-screen {
2627
position: absolute;
27-
left: 3px;
28-
top: 3px;
29-
width: calc(190px - 8px);
30-
height: 250px;
31-
border: thin dashed red;
28+
top: 250px;
29+
left: 0px;
30+
width: 190px;
31+
height: 175px;
32+
background-color: lightgray;
33+
opacity: .5;
34+
z-index: 1;
3235
}
3336
.region {
3437
-webkit-flow-from: article-flow;
@@ -39,11 +42,11 @@
3942
</style>
4043
</head>
4144
<body lang="en">
42-
<div class="screen"></div>
45+
<div class="off-screen"></div>
4346
<article>
4447
<h1>Article</h1>
4548
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Porro, cupiditate rerum et commodi ea repellat placeat exercitationem perferendis assumenda voluptatibus. Aliquam, consectetur sed fuga praesentium velit. Necessitatibus, nostrum doloremque eius.</p>
46-
<p>Tur? Henis eictur aut veliqui audaessenia placeresci dolum num aut utam, volor sum re inctatiat pero volut evel in res vel eos ea velectempos et a sum voloribus elit, optas rerro blabore am volorese poria parit aut ute conse et quo venimint accum vollupta veligna tquati conse evendi nem eos et, eat lant.
49+
<p>Tur? Henis eictur aut veliqui audaes senia placeresci dolum num aut utam, volor sum re inctatiat pero volut evel in res vel eos ea velectempos et a sum voloribus elit, optas rerro blabore am volorese poria parit aut ute conse et quo venimint accum vollupta veligna tquati conse evendi nem eos et, eat lant.
4750
<p>Necta sequam quas voloreperum cust rem quas simus. Eveliquam repre que ipsum sincte con eumetur?
4851
<p>Estet aut eicipsa parum, sus, suntece rionesecta commolo rionem destruptat hari omniendam quaspe voloreh endeliquos cum nonse pos vellati di dolupta tempedis eata nimperempos es dicient volor acienieni quisqua spernat.
4952
</article>
10.7 KB
Loading
8.22 KB
Loading

0 commit comments

Comments
 (0)