0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -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:
U-nico-laptop\nico 2013-09-16 01:24:18 +01:00 committed by John O'Nolan
parent 1ee0d51660
commit 957ca3c58b

View file

@ -38,8 +38,9 @@
* actually unreal. - bit.ly/TJwPPo * actually unreal. - bit.ly/TJwPPo
*/ */
%icon:before, @mixin icon-base() {
%icon:after { &:before,
&:after {
font-family: "Icons"; font-family: "Icons";
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
@ -48,11 +49,11 @@
speak: none; speak: none;
line-height: 1; line-height: 1;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
}
} }
@mixin icon($char, $size: '', $color: '') { @mixin icon($char, $size: '', $color: '') {
@extend %icon; @include icon-base;
&:before { &:before {
content: '#{$char}'; content: '#{$char}';
@ -76,7 +77,7 @@
*/ */
@mixin icon-after($char, $size: '', $color: '') { @mixin icon-after($char, $size: '', $color: '') {
@extend %icon; @include icon-base;
&:after { &:after {
content: '#{$char}'; content: '#{$char}';