Remove unnecessary use of @extend inside mixins (#2000)

* Remove unnecessary use of @extend inside mixins

* Revert changes to +unselectable, +delete, and +loader

* Move @extend selector styling to their related mixin.
This commit is contained in:
Brandon 2018-08-01 05:51:44 -05:00 committed by Jeremy Thomas
parent bff70ed4f5
commit 2c716292bc

View File

@ -130,18 +130,18 @@
// Placeholders // Placeholders
%unselectable =unselectable
-webkit-touch-callout: none -webkit-touch-callout: none
-webkit-user-select: none -webkit-user-select: none
-moz-user-select: none -moz-user-select: none
-ms-user-select: none -ms-user-select: none
user-select: none user-select: none
=unselectable %unselectable
@extend %unselectable +unselectable
%arrow =arrow($color: transparent)
border: 3px solid transparent border: 3px solid $color
border-radius: 2px border-radius: 2px
border-right: 0 border-right: 0
border-top: 0 border-top: 0
@ -156,18 +156,17 @@
transform-origin: center transform-origin: center
width: 0.625em width: 0.625em
=arrow($color) %arrow
@extend %arrow +arrow
border-color: $color
%block =block
&:not(:last-child) &:not(:last-child)
margin-bottom: 1.5rem margin-bottom: 1.5rem
=block %block
@extend %block +block
%delete =delete
@extend %unselectable @extend %unselectable
-moz-appearance: none -moz-appearance: none
-webkit-appearance: none -webkit-appearance: none
@ -233,10 +232,10 @@
min-width: 32px min-width: 32px
width: 32px width: 32px
=delete %delete
@extend %delete +delete
%loader =loader
animation: spinAround 500ms infinite linear animation: spinAround 500ms infinite linear
border: 2px solid $grey-lighter border: 2px solid $grey-lighter
border-radius: $radius-rounded border-radius: $radius-rounded
@ -248,20 +247,20 @@
position: relative position: relative
width: 1em width: 1em
=loader %loader
@extend %loader +loader
%overlay =overlay($offset: 0)
bottom: 0 bottom: 0
left: 0 left: 0
position: absolute position: absolute
right: 0 right: 0
top: 0 top: 0
=overlay($offset: 0)
@extend %overlay
@if $offset != 0 @if $offset != 0
bottom: $offset bottom: $offset
left: $offset left: $offset
right: $offset right: $offset
top: $offset top: $offset
%overlay
+overlay