0
Fork 0
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:
U-nico-laptop\nico 2013-09-16 01:24:18 +01:00 committed by John O'Nolan
parent 1ee0d51660
commit 957ca3c58b

View file

@ -38,21 +38,22 @@
* actually unreal. - bit.ly/TJwPPo * actually unreal. - bit.ly/TJwPPo
*/ */
%icon:before, @mixin icon-base() {
%icon:after { &:before,
font-family: "Icons"; &:after {
font-weight: normal; font-family: "Icons";
font-style: normal; font-weight: normal;
vertical-align: -7%; font-style: normal;
text-transform:none; vertical-align: -7%;
speak: none; text-transform:none;
line-height: 1; speak: none;
-webkit-font-smoothing: antialiased; line-height: 1;
-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}';