Skip to content

Commit

Permalink
Merge pull request #3 from houkanshan/dev
Browse files Browse the repository at this point in the history
Adjustment for Button & alert
  • Loading branch information
NdYAG committed Mar 22, 2014
2 parents e3f4673 + 7577e30 commit a714429
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion assets/js/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -365,4 +368,4 @@ angular.module('ANNO.directives', [])
})
}
}
}])
}])
9 changes: 6 additions & 3 deletions assets/stylus/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ html, body
overflow-y auto

.ng-hide
display: none !important;
display: none !important

body
padding: 50px
Expand All @@ -21,6 +21,9 @@ a
color #00B7FF
cursor pointer

button
cursor pointer

// [link]

pre
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -223,4 +226,4 @@ ul.notes

// mod_fav
.footnote
margin-top 1em
margin-top 1em

0 comments on commit a714429

Please sign in to comment.