font-awesome

Duplicated icon issue with Twitter Bootstrap and Font Awesome

北慕城南 提交于 2019-12-21 07:56:22
问题 I am having an issue with this menu with icons using bootstrap and font awesome, both in less format and being compiled at runtime with JavaScript. Both black and blue ones are showing up at the same time! The code: <div class="well sidebar-nav"> <ul class="nav nav-list"> <li class="nav-header">Relatórios</li> <li><a href="#"><i class="icon-facebook-sign"></i> Acessos na s-Commerce</a></li> <li><a href="#"><i class="icon-shopping-cart"></i> Acessos para a loja</a></li> </ul> </div> Browser

What is the purpose of the `fa-fw` class?

放肆的年华 提交于 2019-12-21 06:56:34
问题 Looking through the examples on the fontawesome website, I notice a few make use of the class fa-fw . For example: <i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i> I have tried with and without it and I cannot see any notable difference. What is the purpose of the fa-fw class? 回答1: Fixed Width Icons I've opened the sample page in Chrome, opened inspector on the "Library"-Element of the fw-sample and removed the fw -class. This messes up the icon-alignment - and that is also mentioned as the

How to install font-awesome in Visual Studio 2017 using ASP.NET Core v2

馋奶兔 提交于 2019-12-21 05:48:07
问题 I am building a webpage using ASP.NET Core v2 and would like to use font-awesome. First let me say that I have tried several things. like installing Bower from NPM, installing font-awesome from NPM, installing font-awesome from Bower packages in VS but nothing seem to work. can someone please provide the correct way to install font-awesome, (preferred without using a lot of console commands or manual copying of files.) This is what my depedencises currently looks like 回答1: I would recommend

Showing custom font or View in preview section of Android Studio XML

本小妞迷上赌 提交于 2019-12-21 02:57:15
问题 Is there any way to view custom fonts/views in the preview section of Android Studio? I have used font-awesome as a custom typeface to show microphone icon in my app. Everything is working fine. But as we all know the preview section cannot load custom views. Is there any plugin or hack to see the custom views in the preview window while coding? This is what I am loading on my app: This is what I see in the preview section: 回答1: To make FontAwesome icons visible in Android Studio XML designer

How do I “pull-out” only the dozen icons I actually use?

做~自己de王妃 提交于 2019-12-21 01:09:09
问题 I have an angular project that is built using grunt which uses maybe a dozen icons from font-awesome. Currently, I'm including and thus distributing the entire font-awesome library. Is there a way to "pull-out" only the icons I actually use (preferably as part of the build process)? I've seen the icomoon app, and that seems to give me the result I want, but it's a manual process to update when icon usage changes. 回答1: First use Font-Awesome-SVG-PNG to get individual SVG files for each Font

How do I “pull-out” only the dozen icons I actually use?

这一生的挚爱 提交于 2019-12-21 01:08:11
问题 I have an angular project that is built using grunt which uses maybe a dozen icons from font-awesome. Currently, I'm including and thus distributing the entire font-awesome library. Is there a way to "pull-out" only the icons I actually use (preferably as part of the build process)? I've seen the icomoon app, and that seems to give me the result I want, but it's a manual process to update when icon usage changes. 回答1: First use Font-Awesome-SVG-PNG to get individual SVG files for each Font

Install font awesome 5 with npm for scss usage

£可爱£侵袭症+ 提交于 2019-12-20 19:46:12
问题 like title says, I can not install font awesome 5 with npm for scss purposes. Trying to install version 5 Accoring to https://fontawesome.com/how-to-use/use-with-node-js npm i --save @fortawesome/fontawesome Looking through the installation in node_modules I see no scss file to hook up to. I tried including the styles.css file in my app.scss file but that did not work. My setup for version 4: package.json "font-awesome": "^4.7.0", app.scss @import "node_modules/font-awesome/scss/font-awesome

How to replace Glyphicons with FontAwesome in Bootstrap 3 without changing HTML?

不羁岁月 提交于 2019-12-20 18:28:10
问题 I'm using Bootstrap 3 in my project and I'm using FontAwesome icons library instead of bundled Glyphicons. The problem is that I have some third-party components that rely on Glyphicons and I don't want to change their HTML. I'm including font-awesome via Bower and SASS + Compass (SCSS). Is it possible to replace Glyphicons with FontAwesome without changing the HTML and applying another CSS classes? 回答1: You can use the following approach to overload Glyphicon CSS classes with FontAwesome

Rotating Glyphicons / Font Awesome in Bootstrap

和自甴很熟 提交于 2019-12-20 17:34:14
问题 I'm trying to get the glyphicons in my bootstrap site to rotate on hover (in addition to changing color). Here's my attempt: http://jsfiddle.net/young_greedo17/88g5P/ ...which uses this code: <div class="widgetbox"> <br><br> <div class="icon-calendar icon-large"></div> <h5>Add an event</h5> </div> ... here's the CSS: .widgetbox { width: 250px; height: 250px; background-color: black; color: white; text-align: center; } .widgetbox [class*="icon-"] { -webkit-transition-duration: 1.0s; -moz

Is it possible to make Font Awesome icons larger than 'fa-5x'?

人盡茶涼 提交于 2019-12-20 09:22:05
问题 I am using this HTML code: <div class="col-lg-4"> <div class="panel"> <div class="panel-heading"> <div class="row"> <div class="col-xs-3"> <i class="fa fa-cogs fa-5x"></i> </div> <div class="col-xs-9 text-right"> <div class="huge"> <?=db_query("SELECT COUNT(*) FROM orders WHERE customer = '" . $_SESSION['customer'] . "' AND EntryDate BETWEEN '" . date('d-M-y', strtotime('Monday this week')) . "' AND '" . date('d-M-y', strtotime('Friday this week')) . "'");?> </div> <div>orders this week</div>