fix button icons
This commit is contained in:
parent
abb63fffe1
commit
82dccdccc6
|
@ -1209,11 +1209,11 @@ div.control.icons .button {
|
|||
padding: 0 10px;
|
||||
margin: 0 3px;
|
||||
}
|
||||
div.control.icons .takeback span:before {
|
||||
div.control.icons .takeback-yes span:before {
|
||||
display: inline-block;
|
||||
transform: translateY(1px);
|
||||
}
|
||||
div.control.icons .draw span:before {
|
||||
div.control.icons .draw-yes span:before {
|
||||
display: inline-block;
|
||||
transform: translateY(-1px) rotate(-90deg);
|
||||
-webkit-transform: rotate(-90deg);
|
||||
|
|
|
@ -7,7 +7,7 @@ var throttle = require('lodash-node/modern/functions/throttle');
|
|||
module.exports = {
|
||||
standard: function(ctrl, condition, icon, hint, socketMsg) {
|
||||
return condition(ctrl.data) ? m('button', {
|
||||
class: 'button hint--bottom',
|
||||
class: 'button hint--bottom ' + socketMsg,
|
||||
'data-hint': ctrl.trans(hint),
|
||||
onclick: partial(ctrl.socket.send, socketMsg, null)
|
||||
}, m('span[data-icon=' + icon + ']')) : null;
|
||||
|
|
Loading…
Reference in a new issue