diff --git a/CONTRIB.md b/CONTRIB.md index 5b21ed1..732be08 100644 --- a/CONTRIB.md +++ b/CONTRIB.md @@ -29,6 +29,5 @@ The following third-party software packages were used in the creation of keyboar * [Jison](http://zaach.github.io/jison/) (JavaScript parser generator) * [Hint.css](http://kushagragour.in/lab/hint/) (CSS-only tooltips) * [doT.js](http://olado.github.io/doT/) (fast micro-templating) -* [cssparser](https://github.com/cwdoh/cssparser.js) * [Font Awesome](http://fortawesome.github.io/Font-Awesome/) * [C64 TrueType Font](http://style64.org/c64-truetype) font (by [Style64.org](https://www.style64.org)) diff --git a/kb.css b/kb.css index d875d75..90138ff 100644 --- a/kb.css +++ b/kb.css @@ -161,7 +161,6 @@ for i in (1..9) { } #swatches.disabled .swatch { background-color: rgb(235,235,228) !important; } -#swatches [data-hint]:after, #glyphs [data-hint]:after { white-space: nowrap; } .swatch .highlight { display: none; } .swatch.selected-bg .highlight.bg { display: block; z-index: 100; width: 6px; height: 6px; border: solid 1px black; background: white; opacity: 0.75; position: absolute; left: 7px; top: 23px; } @@ -201,7 +200,7 @@ for i in (1..9) { /* Tooltip modifications */ .hint--rounded:after { width: 300px; } .hint:after, [data-hint]:after { white-space: pre-line; } -.hint:before, .hint:after, [data-hint]:before, [data-hint]:after { -webkit-transition: 0.1s ease; -moz-transition: 0.1s ease; transition: 0.1s ease; } +.hint:before, .hint:after, [data-hint]:before, [data-hint]:after { -webkit-transition: 0.05s ease; -moz-transition: 0.05s ease; transition: 0.05s ease; } /* Help Dialog */ .modal-xl .modal-dialog { width: 80vw; } diff --git a/kb.html b/kb.html index de16cdf..18e7143 100644 --- a/kb.html +++ b/kb.html @@ -454,9 +454,9 @@ Nav Bar / Header
  • @@ -470,22 +470,22 @@ Nav Bar / Header
    {{picker.name}} -
    +
    -
    +
    diff --git a/kb.js b/kb.js index edc4c6b..73daf6b 100644 --- a/kb.js +++ b/kb.js @@ -11,7 +11,10 @@ function fromJsonPretty(json) { return $serial.fromJsonL('['+json+']'); } // The angular module for our application - var kbApp = angular.module('kbApp', ["ngSanitize", "ui.utils", "ui.bootstrap", "ngFileUpload", "ang-drag-drop", "colorpicker.module"]); + var kbApp = angular.module('kbApp', ["ngSanitize", "ui.utils", "ui.bootstrap", "ui.bootstrap.tooltip", "ngFileUpload", "ang-drag-drop", "colorpicker.module"], function($tooltipProvider) { + // Default tooltip behaviour + $tooltipProvider.options({animation: false, appendToBody: true}); + }); // The main application controller kbApp.controller('kbCtrl', ['$scope','$http','$location','$timeout', '$sce', '$sanitize', '$modal', function($scope, $http, $location, $timeout, $sce, $sanitize, $modal) {