mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
parent
310d565642
commit
fb5e56a4fe
@ -33,14 +33,9 @@
|
||||
The Icon Element
|
||||
============================================================================= */
|
||||
|
||||
/*
|
||||
* Epic dynamic icon element by Eric Eggert, this thing is so fucking cool it's
|
||||
* actually unreal. - bit.ly/TJwPPo
|
||||
*/
|
||||
|
||||
@mixin icon-base() {
|
||||
&:before,
|
||||
&:after {
|
||||
@mixin icon($char, $size: '', $color: '') {
|
||||
&:before {
|
||||
// Base
|
||||
font-family: "Icons";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
@ -49,13 +44,8 @@
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin icon($char, $size: '', $color: '') {
|
||||
@include icon-base;
|
||||
|
||||
&:before {
|
||||
//Function
|
||||
content: '#{$char}';
|
||||
@if $size != '' {
|
||||
font-size: $size;
|
||||
@ -77,9 +67,18 @@
|
||||
*/
|
||||
|
||||
@mixin icon-after($char, $size: '', $color: '') {
|
||||
@include icon-base;
|
||||
|
||||
&:after {
|
||||
// Base
|
||||
font-family: "Icons";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
vertical-align: -7%;
|
||||
text-transform:none;
|
||||
speak: none;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
// Function
|
||||
content: '#{$char}';
|
||||
@if $size != '' {
|
||||
font-size: $size;
|
||||
|
Loading…
Reference in New Issue
Block a user