@@ -, +, @@ cart - Locate a bibliographic record in the staff interface and view the detail page. - In the toolbar you should see an "Add to cart" button but not a "Remove from cart" button. - The buttons should correctly toggle on and off as you add and remove the title from the cart. --- .../intranet-tmpl/prog/css/src/_toolbar.scss | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss @@ -22,51 +22,53 @@ z-index: 100; } - a.addtocart { - display: block; - } + .btn { + &.btn-default { + font-weight: normal; + text-align: center; + white-space: nowrap; + vertical-align: middle; + touch-action: manipulation; + cursor: pointer; + background-image: none; + padding: 6px 12px; + box-shadow: none; + border-radius: 4px; + user-select: none; + font-size: 100%; + background-color: transparent; + border: 0; + display: inline-block; + color: #696969; - a.cartRemove { - padding: 6px 12px; - font-size: 12px; - display: none; - } + &:hover, &:focus { + text-decoration: none; + background-color: #DADADA; + color: #696969; + padding: 6px 12px; + } - a.addtocart.incart { - display: none; - } + &:active { + border: 0; + } - a.cartRemove.incart { - display: block; - } + &.addtocart { + display: block; - .btn.btn-default { - font-weight: normal; - text-align: center; - white-space: nowrap; - vertical-align: middle; - touch-action: manipulation; - cursor: pointer; - background-image: none; - padding: 6px 12px; - box-shadow: none; - border-radius: 4px; - user-select: none; - font-size: 100%; - background-color: transparent; - border: 0; - display: inline-block; - color: #696969; + &.incart { + display: none; + } + } - &:hover, &:focus { - text-decoration: none; - background-color: #DADADA; - color: #696969; - padding: 6px 12px; - } + &.cartRemove { + padding: 6px 12px; + font-size: 12px; + display: none; - &:active { - border: 0; + &.incart { + display: block; + } + } } } } --