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
|
* 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}';
|
||||||
|
|
Loading…
Add table
Reference in a new issue