Skip to content

Commit b6d61e3

Browse files
authored
Merge pull request #3368 from CodaFi/cascading-style-selection
[Gardening] Apply formatting rules from #145 to docs
2 parents b5db69f + 13a65a5 commit b6d61e3

File tree

3 files changed

+49
-30
lines changed

3 files changed

+49
-30
lines changed

docs/Arrays.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ The Swift Array Design
88

99
.. raw:: html
1010

11-
<style>
12-
tt {
13-
background-color: #f2f2f2;
14-
}
15-
div.content ul > li {
16-
background: none;
17-
padding: 0 0 0 0.5em;
18-
list-style-image: none;
19-
list-style-type: disc;
11+
<style>
12+
tt {
13+
background-color: #f2f2f2;
2014
}
21-
a:link {
22-
color: #AB6023;
23-
font-weight: normal
24-
}
25-
</style>
15+
div.content ul > li {
16+
background: none;
17+
padding: 0 0 0 0.5em;
18+
list-style-image: none;
19+
list-style-type: disc;
20+
}
21+
a:link {
22+
color: #AB6023;
23+
font-weight: normal
24+
}
25+
</style>
2626

2727
Goals
2828
-----

docs/MutationModel.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
.. raw:: html
44

5-
<style>
6-
table.docutils td, table.docutils th {
7-
border: 1px solid #aaa;
8-
}
9-
</style>
10-
11-
5+
<style>
6+
table.docutils td,
7+
table.docutils th {
8+
border: 1px solid #aaa;
9+
}
10+
</style>
11+
12+
1213
==================================
1314
Immutability and Read-Only Methods
1415
==================================

docs/StringDesign.rst

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,41 @@
66

77
<style>
88
9-
.repl, .emph, .look {color:rgb(47,175,187)}
10-
.emph {font-weight:bold}
9+
.repl,
10+
.emph,
11+
.look {
12+
color:rgb(47,175,187)
13+
}
14+
.emph {
15+
font-weight:bold
16+
}
1117
12-
pre, .pre { font-family: Monaco, monospace; font-size:90% }
18+
pre,
19+
.pre {
20+
font-family: Monaco, monospace; font-size:90%
21+
}
1322
1423
pre.literal-block {
1524
overflow: hidden;
1625
}
1726
18-
span.look, span.look1 {
27+
span.look,
28+
span.look1 {
1929
position: relative;
2030
border-bottom: .2em dotted rgb(255,165,165);
2131
}
2232
23-
span.aside { font-family: sans-serif; white-space: normal; }
33+
span.aside {
34+
font-family: sans-serif; white-space: normal;
35+
}
2436
25-
span.look + span.aside, span.look1 + span.aside { display: none; }
37+
span.look + span.aside,
38+
span.look1 + span.aside {
39+
display: none;
40+
}
2641
27-
span.look:hover, span.look1:hover {
42+
span.look:hover,
43+
span.look1:hover {
2844
background-color:greenyellow;
2945
}
3046
@@ -33,7 +49,8 @@
3349
}
3450
3551
/* Main speech bubble*/
36-
span.look:hover + span.aside, span.look1:hover + span.aside{
52+
span.look:hover + span.aside,
53+
span.look1:hover + span.aside {
3754
display: inline-block;
3855
position: relative;
3956
margin-top: -1000em;
@@ -53,7 +70,8 @@
5370
}
5471
5572
/* Little triangle on the left */
56-
span.look:hover + span.aside:after, span.look1:hover + span.aside:after {
73+
span.look:hover + span.aside:after,
74+
span.look1:hover + span.aside:after {
5775
content: "";
5876
position: absolute;
5977
bottom: 0.3em;

0 commit comments

Comments
 (0)