font-awesome-5

Gradient over Instagram SVG of FontAwesome 5

妖精的绣舞 提交于 2019-11-28 02:04:55
After upgrading to FontAwesome 5, I'm not able to color the svgs of FontAwesome. This is my example: ⠀⠀⠀⠀⠀ https://codepen.io/shadrix/pen/GygdZr Should be awesome if it worked like here: ⠀⠀⠀⠀⠀ https://codepen.io/immad-hamid/pen/jVNvQO (Note: he used FontAwesome 4). Icons are no longer referenced as glyphs from a font, but injected as inline SVG. The content color of the icon is defined as fill="currentColor" . The technique with setting the background and using -webkit-background-clip no longer works. Instead you can set the color property directly. Unfortunately, that is where you get into a

I can't get my font-awesome icons to show up. Tried importing css with multiple methods. Using html template

我们两清 提交于 2019-11-27 09:47:15
I'm building a website portfolio using a HTML template. I don't have too much experience with css, but after importing the font-awesome css file both as a link and file in my django project, the icons are showing up as little boxes. I know the css file is being recognized because when I comment it out the boxes go away. I think there may be something deeper going on with the css that I don't understand. I suspect there's something going on in the main css file if someone could help me out. Thanks! Here's the code from the template: <ul class="special"> <li><i class="fab fa-pencil" title="Edit"

Font Awesome 5, why css content is not showing?

眉间皱痕 提交于 2019-11-27 09:31:52
I am trying to use FontAwesome in the content of css. It appears with the code for the icon instead of the icon. I have followed the online helps but still not working css @font-face { font-family: 'FontAwesome'; src: url('https://use.fontawesome.com/releases/v5.0.6/css/all.css'); } .fp-prev:before { color:#fff; content: '/f35a'; font-family: FontAwesome; font-style: normal; font-weight: normal; text-decoration: inherit; } Read this if you are using the JS+SVG version: Font Awesome 5 shows empty square when using the JS+SVG version First, you only need to include the CSS file of Font Awesome 5

Font Awesome 5 with Angular

杀马特。学长 韩版系。学妹 提交于 2019-11-27 07:34:37
How do I use font-awesome 5 with Angular (2+)? I've tried adding this inside a component: import {faChevronLeft, faChevronRight} from '@fortawesome/fontawesome-free-solid'; import fontawesome from '@fortawesome/fontawesome'; ... constructor(){ fontawesome.library.add(faChevronLeft, faChevronRight); } and then in HTML: <span class="fa" [class.fa-chevron-left]="direction==='left'" [class.fa-chevron-right]="direction==='right'"></span> But this gives me a blinking question mark in a circle. You have two options: 1. Use angular-fontawesome library Just follow the instructions on their github page

Gradient over Instagram SVG of FontAwesome 5

旧巷老猫 提交于 2019-11-26 22:05:11
问题 After upgrading to FontAwesome 5, I'm not able to color the svgs of FontAwesome. This is my example: ⠀⠀⠀⠀⠀ https://codepen.io/shadrix/pen/GygdZr Should be awesome if it worked like here: ⠀⠀⠀⠀⠀ https://codepen.io/immad-hamid/pen/jVNvQO (Note: he used FontAwesome 4). 回答1: Icons are no longer referenced as glyphs from a font, but injected as inline SVG. The content color of the icon is defined as fill="currentColor" . The technique with setting the background and using -webkit-background-clip no

How to change color of icons in Font Awesome 5?

佐手、 提交于 2019-11-26 21:49:10
问题 I can't colorize the Font Awesome 5 icons using these codes. I tried fill css property for setting color but it didn't work. HTML Code: <div class="container mt200 icons"> <div class="col-md-3"> <div class="bggray2 text-center"> <i class="fas fa-microphone fa-5x"></i> <div class="title">LOREM</div> <div class="text">Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.</div> </div> </div> <div class="col-md-3"> <div class="bggray2 text-center"> <i class="far fa-edit fa-5x"></i

Fontawesome 5 unicode

无人久伴 提交于 2019-11-26 21:39:49
问题 Font-awesome 5 star icon has <i class="fas fa-star"></i> and <i class="far fa-star"></i> different is fas , far and Unicode for both is f005 now i want to use it as my rating system where first is regular star and by click become solid star, but how do I define this fas far in my css? Code input.star:checked ~ label.star:before { content: '\f005'; color: #e74c3c; transition: all .25s; font-family: 'Font Awesome 5 Free'; font-weight: 900; } label.star:before { content: '\f005'; font-family:

Font Awesome 5 with Angular

二次信任 提交于 2019-11-26 17:37:49
问题 How do I use font-awesome 5 with Angular (2+)? I've tried adding this inside a component: import {faChevronLeft, faChevronRight} from '@fortawesome/fontawesome-free-solid'; import fontawesome from '@fortawesome/fontawesome'; ... constructor(){ fontawesome.library.add(faChevronLeft, faChevronRight); } and then in HTML: <span class="fa" [class.fa-chevron-left]="direction==='left'" [class.fa-chevron-right]="direction==='right'"></span> But this gives me a blinking question mark in a circle. 回答1:

Font Awesome 5 - why icons like bitcoin, facebook, twitter aren&#39;t showing?

我是研究僧i 提交于 2019-11-26 15:33:56
Is it only me that cannot render bitcoin and facebook icons in version 5.0.8 ? <link rel="stylesheet" type="text/css" href="https://use.fontawesome.com/releases/v5.0.8/css/fontawesome.css"> <i class="fa fa-btc"></i> <i class="fa fa-bitcoin"></i> <i class="fa fa-facebook"></i> <i class="fa fa-facebook-f"></i> You also need to use the brands.css stylesheet in font-awesome 5.0.8. Additionally, you need to make sure your class names are up to date. Try the snippet below: <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/brands.css" integrity="sha384-IiIL1/ODJBRTrDTFk

Font Awesome 5, why css content is not showing?

落爺英雄遲暮 提交于 2019-11-26 12:15:19
问题 I am trying to use FontAwesome in the content of css. It appears with the code for the icon instead of the icon. I have followed the online helps but still not working css @font-face { font-family: \'FontAwesome\'; src: url(\'https://use.fontawesome.com/releases/v5.0.6/css/all.css\'); } .fp-prev:before { color:#fff; content: \'/f35a\'; font-family: FontAwesome; font-style: normal; font-weight: normal; text-decoration: inherit; } 回答1: Read this if you are using the JS+SVG version: Font Awesome