Skip to content

Instantly share code, notes, and snippets.

@y-krn
Last active February 15, 2018 12:53
Show Gist options
  • Save y-krn/9fa7b7cab517781159a04ad0691db627 to your computer and use it in GitHub Desktop.
Save y-krn/9fa7b7cab517781159a04ad0691db627 to your computer and use it in GitHub Desktop.
AMP Font Awesome Custom CSS
@font-face {
font-family: 'FontAwesome';
src: url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.eot?v=4.7.0');
src: url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fa-facebook:before {
content: "\f09a";
}
.fa-twitter:before {
content: "\f099";
}
.fa-google-plus:before {
content: "\f0d5";
}
.fa-get-pocket:before {
content: "\f265";
}
.fa-clock-o:befer {
content: "\f017";
}
.fa-folder-open-o:before {
content: "\f115";
}
.fa-tags:before {
content: "\f02c";
}
@font-face {
font-family: 'FontAwesome';
src: url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.eot?v=4.7.0');
src: url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('<?php echo get_template_directory_uri(); ?>/include/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
.fa {
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fa-facebook:before {
content: "\f09a";
}
.fa-twitter:before {
content: "\f099";
}
.fa-google-plus:before {
content: "\f0d5";
}
.fa-get-pocket:before {
content: "\f265";
}
.fa-clock-o:befer {
content: "\f017";
}
.fa-folder-open-o:before {
content: "\f115";
}
.fa-tags:before {
content: "\f02c";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment