From c0c22706b6f61e04b0703b7d32cd6f1158460a7a Mon Sep 17 00:00:00 2001 From: Swashata Ghosh Date: Mon, 22 Jul 2024 17:15:10 +0530 Subject: [PATCH] [scss] [update] [cleanup] Some mixing related cleanup, no style changes. --- assets/scss/_mixins.scss | 21 ++------------------- assets/scss/admin/_ajax-loader.scss | 2 +- assets/scss/admin/_modal-common.scss | 2 +- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/assets/scss/_mixins.scss b/assets/scss/_mixins.scss index 2f18fe84..850f3a27 100644 --- a/assets/scss/_mixins.scss +++ b/assets/scss/_mixins.scss @@ -22,15 +22,6 @@ // THE SOFTWARE. // -// ---- LEGACY IE SUPPORT USING FILTERS ---- -// Should IE filters be used or not? -// PROS: gradients, drop shadows etc will be handled by css. -// CONS: will harm the site performance badly, -// especially on sites with heavy rendering and scripting. -$useIEFilters: 0; -// might be 0 or 1. disabled by default. -// ---- /LEGACY IE SUPPORT USING FILTERS ---- - // requires sass 3.2 @mixin keyframes($name){ @-moz-keyframes #{$name} { @content; } @@ -41,11 +32,7 @@ $useIEFilters: 0; } @mixin transform($transforms) { - -moz-transform: $transforms; - -o-transform: $transforms; - -ms-transform: $transforms; - -webkit-transform: $transforms; - transform: $transforms; + transform: $transforms; } @mixin rotate($deg) { @@ -72,11 +59,7 @@ $useIEFilters: 0; // Placeholder text @mixin placeholder($color: $input-color-placeholder) { - // Firefox - &::-moz-placeholder { + &::placeholder { color: $color; - opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526 } - &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+ - &::-webkit-input-placeholder { color: $color; } // Safari and Chrome } diff --git a/assets/scss/admin/_ajax-loader.scss b/assets/scss/admin/_ajax-loader.scss index 61fc62bc..c34753a9 100644 --- a/assets/scss/admin/_ajax-loader.scss +++ b/assets/scss/admin/_ajax-loader.scss @@ -20,7 +20,7 @@ $size: 20; animation-duration: 1.5s; animation-iteration-count: infinite; animation-direction: normal; - @include transform(.3); + @include transform(scale(.3)); } @for $i from 0 through 7 diff --git a/assets/scss/admin/_modal-common.scss b/assets/scss/admin/_modal-common.scss index c43d0210..cdcfc0d8 100644 --- a/assets/scss/admin/_modal-common.scss +++ b/assets/scss/admin/_modal-common.scss @@ -126,7 +126,7 @@ color: #bbb; border-radius: 20px; padding: 3px; - transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; &:hover { color: #fff;