Skip to content

Commit b3c70dd

Browse files
authored
Doc: More HTML Updates (CSS) (#1413)
More CSS updates to HTML5 elements in new docutils. Sections: first write and read. Not further `<style>` sections found, this should be it :)
1 parent f489633 commit b3c70dd

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/source/usage/firstread.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,34 @@ We are using the examples files from `openPMD-example-datasets <https://github.c
1111
<style>
1212
@media screen and (min-width: 60em) {
1313
/* C++17 and Python code samples side-by-side */
14-
#first-read > .section > .section:nth-of-type(2n+1) {
14+
#first-read > section > section:nth-of-type(2n+1) {
1515
float: left;
1616
width: 48%;
1717
margin-right: 4%;
1818
}
19-
#first-read > .section > .section:nth-of-type(2n+0):after {
19+
#first-read > section > section:nth-of-type(2n+0):after {
2020
content: "";
2121
display: table;
2222
clear: both;
2323
}
2424
/* only show first C++17 and Python Headline */
25-
#first-read > .section > .section:not(#c-17):not(#python) > h3 {
25+
#first-read > section > section:not(#c-17):not(#python) > h3 {
2626
display: none;
2727
}
2828
}
2929
/* align language headline */
30-
#first-read > .section > .section > h3 {
30+
#first-read > section > section > h3 {
3131
text-align: center;
3232
padding-left: 1em;
3333
}
3434
/* avoid jumping of headline when hovering to get anchor */
35-
#first-read > .section > .section > h3 > a.headerlink {
35+
#first-read > section > section > h3 > a.headerlink {
3636
display: inline-block;
3737
}
38-
#first-read > .section > .section > h3 > .headerlink:after {
38+
#first-read > section > section > h3 > .headerlink:after {
3939
visibility: hidden;
4040
}
41-
#first-read > .section > .section > h3:hover > .headerlink:after {
41+
#first-read > section > section > h3:hover > .headerlink:after {
4242
visibility: visible;
4343
}
4444
</style>

docs/source/usage/firstwrite.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ Step-by-step: how to write scientific data with openPMD-api?
1010
<style>
1111
@media screen and (min-width: 60em) {
1212
/* C++17 and Python code samples side-by-side */
13-
#first-write > .section > .section:nth-of-type(2n+1) {
13+
#first-write > section > section:nth-of-type(2n+1) {
1414
float: left;
1515
width: 48%;
1616
margin-right: 4%;
1717
}
18-
#first-write > .section > .section:nth-of-type(2n+0):after {
18+
#first-write > section > section:nth-of-type(2n+0):after {
1919
content: "";
2020
display: table;
2121
clear: both;
2222
}
2323
/* only show first C++17 and Python Headline */
24-
#first-write > .section > .section:not(#c-17):not(#python) > h3 {
24+
#first-write > section > section:not(#c-17):not(#python) > h3 {
2525
display: none;
2626
}
2727
}
2828
/* align language headline */
29-
#first-write > .section > .section > h3 {
29+
#first-write > section > section > h3 {
3030
text-align: center;
3131
padding-left: 1em;
3232
}
3333
/* avoid jumping of headline when hovering to get anchor */
34-
#first-write > .section > .section > h3 > a.headerlink {
34+
#first-write > section > section > h3 > a.headerlink {
3535
display: inline-block;
3636
}
37-
#first-write > .section > .section > h3 > .headerlink:after {
37+
#first-write > section > section > h3 > .headerlink:after {
3838
visibility: hidden;
3939
}
40-
#first-write > .section > .section > h3:hover > .headerlink:after {
40+
#first-write > section > section > h3:hover > .headerlink:after {
4141
visibility: visible;
4242
}
4343
</style>

0 commit comments

Comments
 (0)