Skip to content

Commit 27a930e

Browse files
kevers-googlebirtles
authored andcommitted
[web-animations-2] Fix styling.
1 parent 2f245e4 commit 27a930e

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

web-animations-2/Overview.bs

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,46 @@
11
<style>
2-
.constructors::before, .members::before, .attributes::before {
2+
.informative-bg {
3+
margin: 1.5em 0 1em;
4+
padding: 1em;
5+
margin-top: 1em;
6+
background: #efe;
7+
border: green 1px dotted;
8+
}
9+
@media (prefers-color-scheme: dark) {
10+
.informative-bg {
11+
background: rgba(255, 255, 255, .05);
12+
}
13+
}
14+
15+
div.informative-bg *:last-child {
16+
margin-bottom: 0;
17+
}
18+
19+
div.informative-bg p:first-child {
20+
margin-top: 0;
21+
}
22+
23+
div.informative-bg h2,
24+
div.informative-bg h3,
25+
div.informative-bg h4 {
26+
background: none;
27+
}
28+
29+
.attributes::before, .methods::before,
30+
.parameters::before, .exceptions::before,
31+
.constructors::before, .members::before {
332
font: bold 100% sans-serif;
433
text-align: left;
534
margin: 1.33em 0px;
6-
color: #005A9C;
35+
color: var(--heading-text, #005A9C);
736
}
837

9-
.constructors::before { content: 'Constructors' }
10-
11-
.members::before { content: 'Members' }
12-
1338
.attributes::before { content: 'Attributes' }
39+
.methods::before { content: 'Methods' }
40+
.parameters::before { content: 'Parameters' }
41+
.exceptions::before { content: 'Exceptions' }
42+
.constructors::before { content: 'Constructors' }
43+
.members::before { content: 'Dictionary members' }
1444

1545
dl.switch > [data-md] > p {
1646
display: inline;

0 commit comments

Comments
 (0)