Fix lightboxes and scss mixins

stable
Xavier Julián 2016-02-18 15:29:10 +01:00 committed by Juanfran
parent 3c3c445b85
commit 62624f84a8
2 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,8 @@ class LightboxService extends taiga.Service
constructor: (@animationFrame, @q) ->
open: ($el) ->
if _.isString($el)
$el = $($el)
defered = @q.defer()
lightboxContent = $el.children().not(".close")
@ -63,6 +65,8 @@ class LightboxService extends taiga.Service
return defered.promise
close: ($el) ->
if _.isString($el)
$el = $($el)
docEl = angular.element(document)
docEl.off(".lightbox")
docEl.off(".keyboard-navigation") # Hack: to fix problems in the WYSIWYG textareas when press ENTER

View File

@ -17,6 +17,15 @@
}
}
@mixin placeholder {
$placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
@each $placeholder in $placeholders {
&:#{$placeholder}-placeholder {
@content;
}
}
}
@mixin slide($max, $overflow, $min: 0) {
max-height: $min;
transition: max-height .5s ease-in;