aboutsummaryrefslogtreecommitdiff
path: root/arc-firefox-theme/chrome/global/narrate.css
diff options
context:
space:
mode:
authorHorst31802017-03-11 14:54:09 +0100
committerHorst31802017-03-11 14:54:09 +0100
commitbc3725e858b0c1bc27dd1164cb2908dcef21f404 (patch)
tree20afd8e2c0b90aa9057704d731b10deda904f552 /arc-firefox-theme/chrome/global/narrate.css
parentec1fc1732ea2cbf67bb32bf63d6178c1deee21c0 (diff)
downloadsolarc-firefox-theme-bc3725e858b0c1bc27dd1164cb2908dcef21f404.tar.gz
solarc-firefox-theme-bc3725e858b0c1bc27dd1164cb2908dcef21f404.tar.xz
solarc-firefox-theme-bc3725e858b0c1bc27dd1164cb2908dcef21f404.zip
update to 52.0
Diffstat (limited to 'arc-firefox-theme/chrome/global/narrate.css')
-rw-r--r--arc-firefox-theme/chrome/global/narrate.css35
1 files changed, 35 insertions, 0 deletions
diff --git a/arc-firefox-theme/chrome/global/narrate.css b/arc-firefox-theme/chrome/global/narrate.css
index 3aa8a8a..8a44e78 100644
--- a/arc-firefox-theme/chrome/global/narrate.css
+++ b/arc-firefox-theme/chrome/global/narrate.css
@@ -1,3 +1,8 @@
+.narrating {
+ position: relative;
+ z-index: 1;
+}
+
body.light .narrating {
background-color: #ffc;
}
@@ -9,3 +14,33 @@ body.sepia .narrating {
body.dark .narrating {
background-color: #242424;
}
+
+.narrate-word-highlight {
+ position: absolute;
+ display: none;
+ transform: translate(-50%, calc(-50% - 2px));
+ z-index: -1;
+ border-bottom-style: solid;
+ border-bottom-width: 7px;
+ transition: left 0.1s ease;
+}
+
+.narrating > .narrate-word-highlight {
+ display: inline-block;
+}
+
+.narrate-word-highlight.newline {
+ transition: none;
+}
+
+body.light .narrate-word-highlight {
+ border-bottom-color: #ffe087;
+}
+
+body.sepia .narrate-word-highlight {
+ border-bottom-color: #bdb5a5;
+}
+
+body.dark .narrate-word-highlight {
+ border-bottom-color: #6f6f6f;
+}