summaryrefslogtreecommitdiffstats
path: root/assets/css
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-05-01 07:14:10 -0500
committerGitHub <noreply@github.com>2019-05-01 07:14:10 -0500
commitba02be08bb9c19e6c41c6c7764bd8377ee7f4435 (patch)
tree6329f9d272a96eedfa1c1342bf4d3e404b8c4bfb /assets/css
parent6d1c150ff5fbc0f69d29f05a6067b7d29378fb80 (diff)
parent56fe3ede5b4639ce7e3c2a17fdce7e66bc0e8f3a (diff)
downloadinvidious-ba02be08bb9c19e6c41c6c7764bd8377ee7f4435.tar.gz
invidious-ba02be08bb9c19e6c41c6c7764bd8377ee7f4435.tar.bz2
invidious-ba02be08bb9c19e6c41c6c7764bd8377ee7f4435.zip
Merge pull request #303 from glmdgrielson/annotations
Add annotation player
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/videojs-youtube-annotations.css81
1 files changed, 81 insertions, 0 deletions
diff --git a/assets/css/videojs-youtube-annotations.css b/assets/css/videojs-youtube-annotations.css
new file mode 100644
index 00000000..3ca4e46d
--- /dev/null
+++ b/assets/css/videojs-youtube-annotations.css
@@ -0,0 +1,81 @@
+.__cxt-ar-annotations-container__ {
+ --annotation-close-size: 20px;
+
+ position: absolute;
+
+ width: 100%;
+ height: 100%;
+
+ top: 0px;
+ left: 0px;
+
+ pointer-events: none;
+ overflow: hidden;
+}
+
+.__cxt-ar-annotation__ {
+ position: absolute;
+
+ box-sizing: border-box;
+
+ font-family: Arial, sans-serif;
+ color: white;
+
+ z-index: 20;
+}
+
+.__cxt-ar-annotation__ {
+ pointer-events: auto;
+}
+
+.__cxt-ar-annotation__ span {
+ position: absolute;
+ left: 0;
+ top: 0;
+ overflow: hidden;
+ word-wrap: break-word;
+ white-space: pre-wrap;
+
+ pointer-events: none;
+ box-sizing: border-box;
+
+ padding: 2%;
+
+ user-select: none;
+ -webkit-user-select: none; /* Chrome all / Safari all */
+ -moz-user-select: none; /* Firefox all */
+ -ms-user-select: none; /* IE 10+ */
+}
+
+.__cxt-ar-annotation-close__ {
+ display: none;
+ position: absolute;
+ width: var(--annotation-close-size);
+ height: var(--annotation-close-size);
+
+ cursor: pointer;
+
+ right: calc(var(--annotation-close-size) / -1.8);
+ top: calc(var(--annotation-close-size) / -1.8);
+ /* place the close button above the svg */
+ z-index: 1;
+}
+.__cxt-ar-annotation__:hover:not([hidden]):not([data-ar-closed]) .__cxt-ar-annotation-close__ {
+ display: block;
+}
+.__cxt-ar-annotation__[hidden] {
+ display: none !important;
+}
+
+.__cxt-ar-annotation__[data-ar-type="highlight"] {
+ border: 1px solid rgba(255, 255, 255, 0.10);
+ background-color: transparent;
+}
+.__cxt-ar-annotation__[data-ar-type="highlight"]:hover {
+ border: 1px solid rgba(255, 255, 255, 0.50);
+ background-color: transparent;
+}
+
+.__cxt-ar-annotation__ svg {
+ pointer-events: all;
+} \ No newline at end of file