Visibly de-highlight disabled products

This commit is contained in:
Raphael Michel
2021-05-19 09:53:25 +02:00
parent f20ac78586
commit ac4e4a2578
8 changed files with 41 additions and 16 deletions

View File

@@ -184,6 +184,14 @@ svg.svg-icon {
top: 2px;
}
.link-muted a, a.link-muted {
color: $text-muted;
}
.row-muted td:not(.col-actions) {
opacity: 0.7;
}
@include table-row-variant('success', lighten($brand-success, 40%));
@include table-row-variant('info', lighten($brand-info, 30%));
@include table-row-variant('warning', lighten($brand-warning, 40%));

View File

@@ -483,7 +483,7 @@ var form_handlers = function (el) {
return res.text;
}
var $ret = $("<span>").append(
$("<span>").addClass("primary").append($("<div>").text(res.text).html())
$(res.inactive ? "<strike class='text-muted'>" : "<span>").addClass("primary").append($("<div>").text(res.text).html())
);
if (res.event) {
$ret.append(

View File

@@ -60,6 +60,7 @@
h2.content-header {
margin-top: 0;
}
@media (max-width: $screen-xs-max) {
h2.content-header small {
display: block;