Skip to content

Commit 2c1e0c4

Browse files
committed
[css-position-4][editorial] Algo styles
1 parent 4029ad7 commit 2c1e0c4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

css-position-4/Overview.bs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@ spec:css-break-4; type:dfn; text:fragment
1818
spec:dom; type:dfn; for:/; text:element
1919
</pre>
2020

21+
<style>
22+
/* Put nice boxes around each algorithm. */
23+
[data-algorithm]:not(.heading) {
24+
padding: .5em;
25+
border: thin solid #ddd; border-radius: .5em;
26+
margin: .5em calc(-0.5em - 1px);
27+
}
28+
[data-algorithm]:not(.heading) > :first-child {
29+
margin-top: 0;
30+
}
31+
[data-algorithm]:not(.heading) > :last-child {
32+
margin-bottom: 0;
33+
}
34+
[data-algorithm] [data-algorithm] {
35+
margin: 1em 0;
36+
}
37+
</style>
38+
2139
Introduction {#intro}
2240
=====================
2341

0 commit comments

Comments
 (0)