From e14d38b827591c9681a5fcd43ca4b206297eaff5 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 27 Oct 2021 12:34:34 -0400 Subject: [PATCH] chore: remove .opacity() mixin as it is supported cross-browser --- less/account.less | 4 ++-- less/category.less | 2 +- less/groups.less | 4 ++-- less/mixins.less | 7 ------- less/topic.less | 4 ++-- 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/less/account.less b/less/account.less index 35b37b9..e140a17 100644 --- a/less/account.less +++ b/less/account.less @@ -77,7 +77,7 @@ &:hover { .controls { - .opacity(0.8); + opacity: 0.8; } } @@ -85,7 +85,7 @@ text-align: center; height: 200px; line-height: 200px; - .opacity(0); + opacity: 0; .transition(opacity .15s linear); cursor: pointer; pointer-events: none; diff --git a/less/category.less b/less/category.less index 0522a15..b7b2861 100644 --- a/less/category.less +++ b/less/category.less @@ -105,7 +105,7 @@ border: 1px solid @btn-success-border; color: @btn-success-color; } - } + } } .fa-stack { diff --git a/less/groups.less b/less/groups.less index e4e3e17..7134106 100644 --- a/less/groups.less +++ b/less/groups.less @@ -29,7 +29,7 @@ &:hover { .controls { - .opacity(0.8); + opacity: 0.8; } } @@ -37,7 +37,7 @@ text-align: center; min-height: 200px; line-height: 200px; - .opacity(0); + opacity: 0; .transition(opacity .15s linear); cursor: pointer; pointer-events: none; diff --git a/less/mixins.less b/less/mixins.less index 8baf69d..0c73cca 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -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) { -webkit-border-radius: @radius; -moz-border-radius: @radius; diff --git a/less/topic.less b/less/topic.less index 902027d..bf61f38 100644 --- a/less/topic.less +++ b/less/topic.less @@ -413,7 +413,7 @@ .topic { &.deleted { - .opacity(0.3); + opacity: 0.3; .votes { display: none; @@ -438,7 +438,7 @@ &.deleted { > .content { - .opacity(0.3); + opacity: 0.3; } .votes {