aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/common.css
diff options
context:
space:
mode:
authorDeathamns <deathamns@gmail.com>2014-10-17 21:44:19 +0200
committerDeathamns <deathamns@gmail.com>2014-11-09 17:39:12 +0100
commit5b79bf353647a4dad9d4968d0f246582744f07bc (patch)
tree06f045f4dfbd188a8f1217c491b185f0d41d6d50 /src/css/common.css
parent96c4e2e2565ffbd7d413ed7721d9610772b03859 (diff)
downloaduBlock-5b79bf353647a4dad9d4968d0f246582744f07bc.zip
uBlock-5b79bf353647a4dad9d4968d0f246582744f07bc.tar.gz
uBlock-5b79bf353647a4dad9d4968d0f246582744f07bc.tar.bz2
Work on vendor API abstraction, and near complete Safari support
Diffstat (limited to 'src/css/common.css')
-rw-r--r--src/css/common.css60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/css/common.css b/src/css/common.css
new file mode 100644
index 0000000..391478f
--- /dev/null
+++ b/src/css/common.css
@@ -0,0 +1,60 @@
+@font-face {
+ font-family: 'FontAwesome';
+ src: url('fonts/fontawesome-webfont.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+}
+.fa {
+ font-family: FontAwesome;
+ font-style: normal;
+ font-weight: normal;
+ line-height: 1;
+ vertical-align: baseline;
+ display: inline-block;
+ }
+#dashboard-nav-widgets {
+ direction: __MSG_@@bidi_dir__;
+ }
+
+/* https://developer.mozilla.org/en-US/docs/Web/CSS/::after#Tooltips */
+*[data-tip] {
+ cursor: pointer;
+ position: relative;
+ }
+*[data-tip]:hover:after {
+ background-color: #ffffee;
+ border: 1px solid gray;
+ border-radius: 3px;
+ box-shadow: 1px 1px 3px gray;
+ color: black;
+ content: attr(data-tip);
+ direction: __MSG_@@bidi_dir__;
+ font: 11px sans-serif;
+ left: 0;
+ line-height: 130%;
+ min-width: 55%;
+ padding: 4px 6px;
+ position: absolute;
+ text-align: __MSG_@@bidi_start_edge__;
+ top: 110%;
+ white-space: pre-line;
+ z-index: 20;
+ animation: tooltip 0.8s;
+ -webkit-animation: tooltip 0.8s;
+ }
+*[data-tip][data-tip-anchor="top"]:hover:after {
+ bottom: 105%;
+ __MSG_@@bidi_start_edge__: auto;
+ __MSG_@@bidi_end_edge__: -10%;
+ top: auto;
+ }
+@keyframes tooltip {
+ 0% { opacity: 0; }
+ 85% { opacity: 0; }
+ 100% { opacity: 1; }
+ }
+@-webkit-keyframes tooltip {
+ 0% { opacity: 0; }
+ 85% { opacity: 0; }
+ 100% { opacity: 1; }
+ }