IMPR: minor optimizations

This commit is contained in:
Tony Air 2022-05-03 22:41:45 +02:00
parent 72bfe00d0c
commit 072cec089c

View File

@ -78,94 +78,48 @@ p {
}
}
// exclude bootstrap-table
[data-toggle="table"] {
&:hover,
&.active,
&:focus {
opacity: 1;
}
}
[data-toggle="collapse"] {
&[aria-expanded="true"] {
.accordion-icon {
&:before {
content: "\f068";
}
}
}
}
// transactions
.transition,
a,
a *,
.a,
.a *,
button,
input,
optgroup,
select,
textarea,
option,
.btn,
.btn *,
.dropdown,
.row,
.alert,
.alert *,
.message,
[data-toggle],
[data-toggle] * {
.transition {
transition: all 0.4s ease;
}
.a,
a,
[data-toggle],
button,
.a,
.btn {
&:hover,
&.active,
&[aria-expanded="true"] {
&.active {
opacity: 0.8;
> .fa,
> .far,
> .fas,
> .fab,
> .svg-inline--fa,
&.fa,
&.far,
&.fas,
&.fab,
&.svg-inline--fa {
transform: scale(1.5);
}
}
&:hover,
&[aria-expanded="true"] {
&.disabled {
opacity: 0.8;
cursor: default;
}
}
&.disabled {
opacity: 0.5;
cursor: default;
[data-toggle][aria-expanded="true"] {
opacity: 0.8;
&:hover,
&.active,
&[aria-expanded="true"] {
> .fa,
> .far,
> .fas,
> .fab,
> .svg-inline--fa,
&.fa,
&.far,
&.fas,
&.fab,
&.svg-inline--fa {
transform: rotate(0deg);
}
}
transform: scale(1.5);
}
}