font-awesome

bundle exec rake assets:precompile throws font-awesome related issue

本小妞迷上赌 提交于 2020-01-13 19:09:27
问题 I am getting error while doing bundle exec rake assets:precompile Here's complete error I am getting on terminal while I hit the above command. Here's my variables.less code snippet @fa-font-path: "assets/font-awesome/fonts"; @fa-css-prefix: "fa"; @fa-version: "4.2.0"; @fa-border-color: #eee; @fa-inverse: #fff; @fa-li-width: (30em / 14); Here's my font-awesome.css snippet @font-face { font-family: 'FontAwesome'; src: url('../fonts/fontawesome-webfont.eot?v=4.2.0'); src: url('../fonts

How to position text over Font Awesome icon?

喜夏-厌秋 提交于 2020-01-13 15:53:29
问题 Is there a way to vertically align text stacked on top of a Font Awesome icon? I'd like to move the #1 up in this stack so that it is centered in the cup of the trophy icon. I tried adding bottom-margin and bottom-padding in the span that encapsulates the #1, but neither one did the trick. Is there an easy way to do what I'm trying to accomplish, or do I need to go another route? <span class="fa-stack fa-3x"> <i class="fa fa-trophy fa-stack-2x"></i> <span class="fa fa-stack-1x" style="color

Argument of type 'IconDefinition' is not assignable to parameter of type 'IconDefinitionOrPack'

回眸只為那壹抹淺笑 提交于 2020-01-13 11:33:51
问题 I'm using Angular 6 angular-starter and fontawesome, followed here on how to install fa to ng. In my .ts looks like this: import { library, dom } from '@fortawesome/fontawesome-svg-core'; import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram'; import { faLink } from '@fortawesome/free-solid-svg-icons/faLink'; public ngOnInit() { library.add(faInstagram); library.add(faLink); dom.watch(); } Then in .html: <fa-icon [icon]="['fab', 'instagram']"></fa-icon> It works

Argument of type 'IconDefinition' is not assignable to parameter of type 'IconDefinitionOrPack'

让人想犯罪 __ 提交于 2020-01-13 11:32:46
问题 I'm using Angular 6 angular-starter and fontawesome, followed here on how to install fa to ng. In my .ts looks like this: import { library, dom } from '@fortawesome/fontawesome-svg-core'; import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram'; import { faLink } from '@fortawesome/free-solid-svg-icons/faLink'; public ngOnInit() { library.add(faInstagram); library.add(faLink); dom.watch(); } Then in .html: <fa-icon [icon]="['fab', 'instagram']"></fa-icon> It works

Node.Js: Resource Interpreted as Font but Transferred with MIME Type text/html

情到浓时终转凉″ 提交于 2020-01-13 08:33:07
问题 The icons on my website, which is being served up by Node.Js, are not rendering, and I am seeing the error indicated in the title. I am using this script for my server... https://github.com/joeeames/AngularFundamentalsFiles/blob/master/web-server.js Below line 98 I added... 'woff':'application/font-woff' I also... npm install mime But nothing I do seems to work. Does anyone know how how to solve this problem? The specific error from the console is... Resource interpreted as Font but

Font Awesome Icons are not working in some browsers

前提是你 提交于 2020-01-11 17:05:51
问题 I'm using Bootstrap + Font Awesome, and all is ok with most desktop and mobile browsers, but Font awesome icons are not working with some browser like opera Mobile, Opera Mini, and some version of Android Browser. Only displays a blank rectangle. Does anyone know that problem? and , Is there a solution ? Thanks [EDIT 2013-03-06 !Important] I couldn't find any apparent problem, so I tried with unheard solutions. I tried with two online font conversion tools. First I used http://www

Font Awesome Icons in Offline

拥有回忆 提交于 2020-01-11 09:43:09
问题 Is there any way to use this in offline? <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> I copy the link and save as font-awesome.min.css but still it is not working in offline like this link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" 回答1: Press the "Download free" button and make sure that you have the webfonts too. There is a web-fonts-with-css folder in the downloaded zip. Copy the fonts in your project

Add font awesome icon to full calendar title

若如初见. 提交于 2020-01-10 18:42:30
问题 I'm using wordpress, formidable forms and full calendar to create a bespoke calendar solution I have everything working except for I'd like to add a font awesome icon at the front of each title in the calendar. If I add any html in the title like my code below I just see the code printed and not the final results. $('#calendar').fullCalendar({ events: [ { title : '<i class="fa fa-asterisk"></i>event1', start : '2010-01-01' }, { title : 'event2', start : '2010-01-05', end : '2010-01-07' }, {

Fontawesome Icons appearing as boxes within primeng controls

牧云@^-^@ 提交于 2020-01-07 05:34:05
问题 I am using prime ng and I can't get the controls to appear with the icons. All I'm getting are boxes but when I use fontawesome outside the prime controls, everything works fine. I uses NPM to install. Here is my index.html page <!DOCTYPE html> <html> <head lang="en"> <base href="/" > <title>Acme Product Management</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <script src="assets/scripts/angular.min.js"><

Alignning text and image on same line while maintaining text indent relative to the container size

末鹿安然 提交于 2020-01-06 17:42:13
问题 I have searching through questions on stackoverflow but none of them which I tried worked. Most of them distorts what I actually want to achieve. I would like to know where I am going wrong or what I am missing. Some links which I tried are: CSS align images and text on same line, Image and text on same line?, etc. I tried and removed them. I am showing what I achieved on my own. What I want to achieve? 1) I want the text to automatically resize themselves even when container size changes. 2)