Skip to content

Commit 013c641

Browse files
committed
[ch13] remove vertical rhythm styles
1 parent 934ff25 commit 013c641

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# CSS in Depth
22
Code listings from [CSS In Depth](https://manning.com/books/css-in-depth) by Keith J. Grant
33

4-
![CSS in Depth book cover](cover.png)
4+
At first glance, it may appear that some listings are missing—Because working examples requires both HTML and CSS, I have put most listings in an HTML file, using <style> tags for the CSS. This means that both an HTML listing and CSS listing are combined in one file in the repository.
55

6-
It is generally a best practice to link to stylesheets external to your HTML. I have not done this in these examples for ease of reading. Instead, I have included the CSS for each listing in the page's head using style tags.
7-
8-
Throughout the book, the HTML and CSS are shown in two separate listings. The examples files here are named for the listing of the CSS. For example, listing 1.1 in Chapter one shows some CSS, which is meant to be applied to the HTML in listing 1.2. The resulting example can be found in ch01/listing-1.1.html.
6+
For example, in Chapter 1, listing 1.1 is HTML code and listing 1.2 is CSS that is meant to be applied to that HTML. I have included these both in the repository in the file named ch01/listing-1.2.html. Changes are made to this CSS in ch01/listing 1.3; these are included in ch01/listing-1.3.html, along with the corresponding HTML from listing 1.1.

ch13/listing-13.9.html

+1-11
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,6 @@
195195
font-size: 0.8rem;
196196
}
197197

198-
.vr {
199-
--rhythm: 22px ;
200-
background-image: linear-gradient(to bottom, white 1px, white calc(var(--rhythm) - 1px), gray var(--rhythm));
201-
background-repeat: repeat-y;
202-
background-size: 100% var(--rhythm);
203-
background-position: 0 -1px;
204-
}
205-
.vr p {
206-
margin-top: 1.4em;
207-
}
208198
</style>
209199
</head>
210200
<body>
@@ -228,7 +218,7 @@ <h2>Team collaboration done right</h2>
228218

229219
<div class="container">
230220
<div class="tile-row">
231-
<div class="tile vr">
221+
<div class="tile">
232222
<h4>Work together, even if you're apart</h4>
233223
<p>Organize your team conversations into threads. Collaborate together on documents in real-time. Use face-to-face <a href="/features/video-calling">video calls</a> when typing just won't do.</p>
234224
<a href="/collaboration" class="button">Read more</a>

0 commit comments

Comments
 (0)