chore: remove .opacity() mixin as it is supported cross-browser

main
Julian Lam 3 years ago
parent 8dffa3b404
commit e14d38b827

@ -77,7 +77,7 @@
&:hover { &:hover {
.controls { .controls {
.opacity(0.8); opacity: 0.8;
} }
} }
@ -85,7 +85,7 @@
text-align: center; text-align: center;
height: 200px; height: 200px;
line-height: 200px; line-height: 200px;
.opacity(0); opacity: 0;
.transition(opacity .15s linear); .transition(opacity .15s linear);
cursor: pointer; cursor: pointer;
pointer-events: none; pointer-events: none;

@ -29,7 +29,7 @@
&:hover { &:hover {
.controls { .controls {
.opacity(0.8); opacity: 0.8;
} }
} }
@ -37,7 +37,7 @@
text-align: center; text-align: center;
min-height: 200px; min-height: 200px;
line-height: 200px; line-height: 200px;
.opacity(0); opacity: 0;
.transition(opacity .15s linear); .transition(opacity .15s linear);
cursor: pointer; cursor: pointer;
pointer-events: none; pointer-events: none;

@ -27,13 +27,6 @@
} }
} }
.opacity(@opacity: 1) {
-moz-opacity: @opacity;
opacity: @opacity;
-ms-filter: ~`"progid:DXImageTransform.Microsoft.Alpha(opacity=(" + "@{opacity}" * 100 + "))"`;
filter: ~`"alpha(opacity = (" + "@{opacity}" * 100 + "))"`;
}
.border-radius (@radius: 5px) { .border-radius (@radius: 5px) {
-webkit-border-radius: @radius; -webkit-border-radius: @radius;
-moz-border-radius: @radius; -moz-border-radius: @radius;

@ -413,7 +413,7 @@
.topic { .topic {
&.deleted { &.deleted {
.opacity(0.3); opacity: 0.3;
.votes { .votes {
display: none; display: none;
@ -438,7 +438,7 @@
&.deleted { &.deleted {
> .content { > .content {
.opacity(0.3); opacity: 0.3;
} }
.votes { .votes {

Loading…
Cancel
Save