Skip to content

Commit 748ecdd

Browse files
Toolbar: Fixed styles being applies to nested elements (#2980)
1 parent 151121c commit 748ecdd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

plugins/toolbar/prism-toolbar.css

+12-12
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ div.code-toolbar:focus-within > .toolbar {
2020
opacity: 1;
2121
}
2222

23-
div.code-toolbar > .toolbar .toolbar-item {
23+
div.code-toolbar > .toolbar > .toolbar-item {
2424
display: inline-block;
2525
}
2626

27-
div.code-toolbar > .toolbar a {
27+
div.code-toolbar > .toolbar > .toolbar-item > a {
2828
cursor: pointer;
2929
}
3030

31-
div.code-toolbar > .toolbar button {
31+
div.code-toolbar > .toolbar > .toolbar-item > button {
3232
background: none;
3333
border: 0;
3434
color: inherit;
@@ -41,9 +41,9 @@ div.code-toolbar > .toolbar button {
4141
-ms-user-select: none;
4242
}
4343

44-
div.code-toolbar > .toolbar a,
45-
div.code-toolbar > .toolbar button,
46-
div.code-toolbar > .toolbar span {
44+
div.code-toolbar > .toolbar > .toolbar-item > a,
45+
div.code-toolbar > .toolbar > .toolbar-item > button,
46+
div.code-toolbar > .toolbar > .toolbar-item > span {
4747
color: #bbb;
4848
font-size: .8em;
4949
padding: 0 .5em;
@@ -53,12 +53,12 @@ div.code-toolbar > .toolbar span {
5353
border-radius: .5em;
5454
}
5555

56-
div.code-toolbar > .toolbar a:hover,
57-
div.code-toolbar > .toolbar a:focus,
58-
div.code-toolbar > .toolbar button:hover,
59-
div.code-toolbar > .toolbar button:focus,
60-
div.code-toolbar > .toolbar span:hover,
61-
div.code-toolbar > .toolbar span:focus {
56+
div.code-toolbar > .toolbar > .toolbar-item > a:hover,
57+
div.code-toolbar > .toolbar > .toolbar-item > a:focus,
58+
div.code-toolbar > .toolbar > .toolbar-item > button:hover,
59+
div.code-toolbar > .toolbar > .toolbar-item > button:focus,
60+
div.code-toolbar > .toolbar > .toolbar-item > span:hover,
61+
div.code-toolbar > .toolbar > .toolbar-item > span:focus {
6262
color: inherit;
6363
text-decoration: none;
6464
}

0 commit comments

Comments
 (0)