app/assets/stylesheets/alchemy/buttons.scss in alchemy_cms-4.2.4 vs app/assets/stylesheets/alchemy/buttons.scss in alchemy_cms-4.3.0

- old
+ new

@@ -31,10 +31,18 @@ position: relative; top: -1px; margin-right: 2 * $default-margin; color: inherit; } + + &[disabled] { + cursor: not-allowed; + + & + label { + display: none; + } + } } .icon_button { width: 27px; height: 27px; @@ -77,17 +85,22 @@ .icon { color: inherit } } } - &.disabled { + &.disabled, + &[disabled] { span { opacity: 0.3; cursor: not-allowed; } + i { + opacity: 0.3; + } + &:hover { cursor: not-allowed; } } @@ -119,10 +132,10 @@ display: inline-block; text-align: center; margin: 0 2*$default-margin; &.active, &:active, &:hover { - .icon_button { + .icon_button:not([disabled]) { background-color: $default-border-color; cursor: pointer; } }