Skip to content

Commit

Permalink
[scss] [update] [cleanup] Some mixing related cleanup, no style changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Jul 22, 2024
1 parent 557b0f9 commit c0c2270
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
21 changes: 2 additions & 19 deletions assets/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand All @@ -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) {
Expand All @@ -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
}
2 changes: 1 addition & 1 deletion assets/scss/admin/_ajax-loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/admin/_modal-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c0c2270

Please sign in to comment.