fix button icons

This commit is contained in:
Thibault Duplessis 2014-10-20 23:36:13 +02:00
parent abb63fffe1
commit 82dccdccc6
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;