mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:43:16 +08:00
FIX: Could click on unlike even after the window. Looked weird.
This commit is contained in:
parent
92918e3b2b
commit
9d1e37fb46
|
@ -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()];
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user