diff --git a/assets/js/directives.js b/assets/js/directives.js index d5acec1..c25b246 100644 --- a/assets/js/directives.js +++ b/assets/js/directives.js @@ -309,6 +309,9 @@ angular.module('ANNO.directives', []) scope.$on('alert:dismiss', function(e) { elem.removeClass('show') }) + + scope.$on('alert:error:hide', elem.removeClass.bind(elem, 'show')) + $rootScope.$on('$routeChangeStart', scope.$emit.bind(scope, 'alert:error:hide')) } }]) .directive('colorThief', ['$http', function($http) { @@ -365,4 +368,4 @@ angular.module('ANNO.directives', []) }) } } -}]) \ No newline at end of file +}]) diff --git a/assets/stylus/style.styl b/assets/stylus/style.styl index b86579d..eb1e89b 100644 --- a/assets/stylus/style.styl +++ b/assets/stylus/style.styl @@ -10,7 +10,7 @@ html, body overflow-y auto .ng-hide - display: none !important; + display: none !important body padding: 50px @@ -21,6 +21,9 @@ a color #00B7FF cursor pointer +button + cursor pointer + // [link] pre @@ -121,7 +124,7 @@ li.book float left margin-right 8px .result-info - // display inline-block + // display inline-block h4 word-break break-word margin 0 @@ -223,4 +226,4 @@ ul.notes // mod_fav .footnote - margin-top 1em \ No newline at end of file + margin-top 1em