aboutsummaryrefslogtreecommitdiff
path: root/ext/css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-10-17 00:15:43 -0400
committerGitHub <noreply@github.com>2021-10-17 00:15:43 -0400
commitca4ed0300b06e8424f4c2e49ff8533a37883e850 (patch)
tree5c352e96130231977a9c4da066338f7198f80ac5 /ext/css
parent75aabd983da29023b8423bd44d565202aad6b664 (diff)
Display button updates (#1991)
* Update display buttons * Remove use of _addMultipleEventListeners
Diffstat (limited to 'ext/css')
-rw-r--r--ext/css/display.css12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/css/display.css b/ext/css/display.css
index b82a09d5..c8996f10 100644
--- a/ext/css/display.css
+++ b/ext/css/display.css
@@ -673,7 +673,7 @@ button.action-button:active {
.action-icon:not(.color-icon) {
background-color: var(--text-color);
}
-:root[data-result-output-mode=merge] .entry[data-type=term] .actions>button.action-button.action-play-audio {
+:root[data-result-output-mode=merge] .entry[data-type=term] .actions>button.action-button[data-action=play-audio] {
display: none;
}
.action-button-badge {
@@ -1061,12 +1061,12 @@ button.action-button:active {
:root[data-result-output-mode=merge] .headword:hover .headword-details {
visibility: visible;
}
-:root[data-result-output-mode=merge] .headword-list .headword-details>.action-play-audio {
+:root[data-result-output-mode=merge] .headword-list .headword-details>.action-button[data-action=play-audio] {
position: absolute;
left: 0;
bottom: 0.5em;
}
-:root:not([data-result-output-mode=merge]) .headword-list .headword-details>.action-play-audio {
+:root:not([data-result-output-mode=merge]) .headword-list .headword-details>.action-button[data-action=play-audio] {
display: none;
}
@@ -1884,11 +1884,11 @@ button.footer-notification-close-button {
:root:not([data-debug=true]) .debug-info {
display: none;
}
-:root[data-anki-enabled=false] .action-view-note,
-:root[data-anki-enabled=false] .action-add-note {
+:root[data-anki-enabled=false] .action-button[data-action=view-note],
+:root[data-anki-enabled=false] .action-button[data-action=add-note] {
display: none;
}
-:root[data-audio-enabled=false] .action-play-audio {
+:root[data-audio-enabled=false] .action-button[data-action=play-audio] {
display: none;
}
:root[data-glossary-layout-mode=compact] .definition-tag-list,