Skip to content

Commit a5747a6

Browse files
committed
Last file added
1 parent dcc56c9 commit a5747a6

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

17-transitions/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ <h2>Chapter 17</h2>
1717

1818
<main>
1919

20-
<p class="note">This index contains editing notes for the <acronym title="Quality Control">QC</acronym> phase of production. If the book has been published and you still see this note, please pull a fresh copy of the repository from GitHub.</p>
21-
2220
<h3>Figures &amp; Code Examples</h3>
2321

2422
<ol>
2523
<li class="xmp"><a href="cardflip.html">200 millisecond card flip</a></li>
2624
<li class="fig"><a href="dd_menu.html">Transition initial, midtransition, and final state</a></li>
2725

2826
<li class="xmp"><a href="contenteditable.html">contenteditable</a></li>
29-
<li class="fig"><a href="http://estelle.github.io/csstdg4/transitions/valid_invalid_focus.html">The input's appearance in the valid, invalid, and focused states</a> (TK 404)</li>
27+
<li class="fig"><a href="http://estelle.github.io/csstdg4/transitions/valid_invalid_focus.html">The input's appearance in the valid, invalid, and focused states</a></li>
3028
<li class="xmp"><a href="dd_menu_badUX.html">Very slow navigation transition</a></li>
3129
<li class="xmp"><a href="transitionend.html">transitionEnd event</a></li>
3230
<li class="xmp"><a href="transition_duration.html">different transition duration on revert</a></li>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
<!DOCTYPE HTML>
3+
<html>
4+
<head>
5+
<style>
6+
head, style {display: block; }
7+
[contenteditable] {-webkit-user-modify: read-write-plaintext-only;}
8+
style:first-of-type {visibility:hidden;}
9+
#editme {background-color: #dedede;padding: 20px; font-size: 1.1em; white-space: pre; font-family: monospace; white-space:pre; border-radius: 10px; border: 3px solid #aaa; background-color:#dedede; margin: 20px auto; width: 80%; font-family:"Courier New", Courier, monospace; max-height: 180px; overflow: scroll; }
10+
ul {list-style-type: none;}
11+
li {margin: 1em; margin: 10px 100px;}
12+
input {
13+
border: 3px solid;
14+
box-shadow: none;
15+
outline: none;
16+
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
17+
font-size: 2em;
18+
padding: 10px;
19+
box-shadow: 2px 2px 2px rgba(0,0,0,0.3);
20+
21+
}
22+
</style>
23+
<style contenteditable id="editme">/* Matches some of the time, only when valid. */
24+
input:valid {
25+
border-color: green;
26+
}
27+
/* matches some of the time, when the prior selector does NOT match. */
28+
input:invalid {
29+
border-color: red;
30+
}
31+
/* matches some of the time, whether the input is valid or invalid */
32+
input:focus {
33+
border-color: yellow;
34+
}</style>
35+
<title>Valid, Invalid, Focus</title>
36+
</head>
37+
<body>
38+
<ul>
39+
<li>
40+
<input type="text" pattern="valid" value="valid">
41+
</li>
42+
<li>
43+
<input type="text" pattern="valid" value="invalid">
44+
</li>
45+
<li>
46+
<input type="text" pattern="valid" value="autofocus" autofocus>
47+
</li>
48+
</ul>
49+
</body>
50+
</html>
51+

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2>CSS: The Definitive Guide, 4th Edition</h2>
1919
Links to the files used to create the figures in <a href="http://shop.oreilly.com/product/0636920012726.do"><cite>CSS: The Definitive Guide, 4th Edition</cite></a> <small>(O’Reilly Media, 2017)</small>. Most files are contained in this repository, and the vast majority are HTML and CSS, with the occasional image as needed. You can download/clone these files <a href="https://github.com/meyerweb/csstdg4figs">from the repository</a> at GitHub.
2020
</p>
2121
<p class="note">
22-
<strong>23 October 2017:</strong> these files are <em>very</em> near complete—basically just missing one file and a small bit of touch-up.
22+
<strong>23 October 2017:</strong> these files are <em>very</em> near complete—just missing a small bit of touch-up.
2323
</p>
2424

2525
<h3>Chapters</h3>

0 commit comments

Comments
 (0)