mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Could click on unlike even after the window. Looked weird.
This commit is contained in:
@@ -85,8 +85,10 @@ const PostMenuComponent = Ember.Component.extend(StringBuffer, {
|
|||||||
|
|
||||||
// Delegate click actions
|
// Delegate click actions
|
||||||
click(e) {
|
click(e) {
|
||||||
const $target = $(e.target),
|
const $target = $(e.target);
|
||||||
action = $target.data('action') || $target.parent().data('action');
|
const action = $target.data('action') || $target.parent().data('action');
|
||||||
|
|
||||||
|
if ($target.prop('disabled') || $target.parent().prop('disabled')) { return; }
|
||||||
|
|
||||||
if (!action) return;
|
if (!action) return;
|
||||||
const handler = this["click" + action.classify()];
|
const handler = this["click" + action.classify()];
|
||||||
|
|||||||
@@ -134,10 +134,8 @@ nav.post-controls {
|
|||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background: dark-light-diff($tertiary, $secondary, 50%, -35%);
|
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 {
|
.create i {
|
||||||
@@ -153,13 +151,13 @@ nav.post-controls {
|
|||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
transition: all linear 0.15s;
|
transition: all linear 0.15s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: dark-light-diff($primary, $secondary, 90%, -60%);
|
background: dark-light-diff($primary, $secondary, 90%, -60%);
|
||||||
color: $primary;
|
color: $primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
box-shadow: inset 0 1px 3px rgba(0,0,0, .4);
|
box-shadow: inset 0 1px 3px rgba(0,0,0, .4);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.hidden {
|
&.hidden {
|
||||||
@@ -183,6 +181,9 @@ nav.post-controls {
|
|||||||
&.has-like[disabled]:hover {
|
&.has-like[disabled]:hover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
&.has-like[disabled]:active {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
&.bookmark {padding: 8px 11px; }
|
&.bookmark {padding: 8px 11px; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user