mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed 'extend' compile errors in SASS 3.3
closes #509 - Replaced @extend directive with a functionally equivalent mixin
This commit is contained in:
parent
1ee0d51660
commit
957ca3c58b
1 changed files with 14 additions and 13 deletions
|
@ -38,21 +38,22 @@
|
|||
* actually unreal. - bit.ly/TJwPPo
|
||||
*/
|
||||
|
||||
%icon:before,
|
||||
%icon:after {
|
||||
font-family: "Icons";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
vertical-align: -7%;
|
||||
text-transform:none;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
@mixin icon-base() {
|
||||
&:before,
|
||||
&:after {
|
||||
font-family: "Icons";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
vertical-align: -7%;
|
||||
text-transform:none;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin icon($char, $size: '', $color: '') {
|
||||
@extend %icon;
|
||||
@include icon-base;
|
||||
|
||||
&:before {
|
||||
content: '#{$char}';
|
||||
|
@ -76,7 +77,7 @@
|
|||
*/
|
||||
|
||||
@mixin icon-after($char, $size: '', $color: '') {
|
||||
@extend %icon;
|
||||
@include icon-base;
|
||||
|
||||
&:after {
|
||||
content: '#{$char}';
|
||||
|
|
Loading…
Add table
Reference in a new issue