FIX: Could click on unlike even after the window. Looked weird.

This commit is contained in:
Robin Ward 2015-07-29 14:34:20 -04:00
parent 92918e3b2b
commit 9d1e37fb46
2 changed files with 10 additions and 7 deletions

View File

@ -85,8 +85,10 @@ const PostMenuComponent = Ember.Component.extend(StringBuffer, {
// Delegate click actions
click(e) {
const $target = $(e.target),
action = $target.data('action') || $target.parent().data('action');
const $target = $(e.target);
const action = $target.data('action') || $target.parent().data('action');
if ($target.prop('disabled') || $target.parent().prop('disabled')) { return; }
if (!action) return;
const handler = this["click" + action.classify()];

View File

@ -134,10 +134,8 @@ nav.post-controls {
&:active {
background: dark-light-diff($tertiary, $secondary, 50%, -35%);
box-shadow: inset 0 1px 3px rgba(0,0,0, .3);
box-shadow: inset 0 1px 3px rgba(0,0,0, .3);
}
}
.create i {
@ -153,13 +151,13 @@ nav.post-controls {
margin-left: 3px;
transition: all linear 0.15s;
&:hover {
&:hover {
background: dark-light-diff($primary, $secondary, 90%, -60%);
color: $primary;
}
&:active {
box-shadow: inset 0 1px 3px rgba(0,0,0, .4);
box-shadow: inset 0 1px 3px rgba(0,0,0, .4);
}
&.hidden {
@ -183,6 +181,9 @@ nav.post-controls {
&.has-like[disabled]:hover {
background: transparent;
}
&.has-like[disabled]:active {
box-shadow: none;
}
&.bookmark {padding: 8px 11px; }