font-awesome

FontAwesome Firefox issues with certain fonts

不问归期 提交于 2019-12-11 19:47:21
问题 See screenshot: http://awesomescreenshot.com/0242jcea3a Certain FontAwesome icons don't display in Firefox at all, but others do. To name a few of the ones that don't load: YouTube Vimeo Instagram Video Play Button We are using the latest CDN version (//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css). Running Firefox 28. The HTML page is charset UTF-8 also. No idea what's causing this, but it's a really annoying bug, especially when it works fine in Chrome and Safari etc. I

react-select changing drop down indicator icon to font-awesome icon is not working

為{幸葍}努か 提交于 2019-12-11 18:35:48
问题 I am trying to change the icon used for the react-select multi select indictor to a font-awesome icon, but it is not working. Any idea why? import React from "react"; import Select, { components } from "react-select"; import { colourOptions } from "./docs/data"; const Placeholder = props => { return <components.Placeholder {...props} />; }; const CaretDownIcon = () => { return <i className="fas fa-caret-down" />; }; const DropdownIndicator = props => { return ( <components.DropdownIndicator {

How to get the <i> in laravel's links

﹥>﹥吖頭↗ 提交于 2019-12-11 17:01:57
问题 I'm trying to use the with laravel's links. My link looks like this {{ HTML::linkAction('admin\MenusController@edit', 'Edit', array(), array('class' => 'btn btn-primary', 'role' => 'button')) }} and I would like to have the icon with it. Something like this <button class="btn btn-primary"><i class="fa fa-edit "></i> Edit</button> 回答1: This should work {{ HTML::decode(HTML::linkAction('admin\MenusController@edit', 'Edit', array(), array('class' => 'btn btn-primary', 'role' => 'button'))) }}

Fallback plan for loading fontawesome

余生颓废 提交于 2019-12-11 16:08:44
问题 UPDATE: to make my question clearer, I referred the following code snippet and implemented something similar- <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript"> if (typeof jQuery == 'undefined') { document.write(unescape("%3Cscript src='/js/jquery-1.4.2.min.js' type='text/javascript'%3E%3C/script%3E")); } </script> I'm loading font-awesome.css and the fallback in my JSP this way- <link type="text/css" rel=

multiple font awesome icons as rails link

浪尽此生 提交于 2019-12-11 15:47:47
问题 I have the following font-awesome line that is a clickable link %p.add_stuff= link_to(content_tag(:i, nil, class: "fa fa-plus"), new_journey_trip_path(@journey)) In addition to fa-plus, I'd like to add another font-awesome plus icon (so it appears something like + + ). How do I achieve this? I've tried calling fa-plus two times, as well as making two content_tag, but neither seems to work. 回答1: with link_to, you can nest the contents %p.add_stuff = link_to new(journey_trip_path(@journey)) do

Font files are blocked by CORS policy

有些话、适合烂在心里 提交于 2019-12-11 15:24:13
问题 I want to build a server accelerated by a CDN provider, which serves static files for my other websites. I decide to use https://www.funfun.org.cn, then for example https://www.funfun.org.cn/libs/font-awesome.min.css and https://www.funfun.org.cn/libs/octicons.min.css should be able to be used by other websites. However, when I test this server by my website in localhost, I see the following errors: For example, Access to Font at 'https://www.funfun.org.cn/libs/octicons.woff' from origin

Remove external link icon from image

冷暖自知 提交于 2019-12-11 15:22:44
问题 I am trying to create a Jekyll blog template. I want to show an font awesome external link icon along with hyperlinks on every article. So I wrote CSS like: #myLink a[href^="//"]:after, #myLink a[href^="http://"]:after, #myLink a[href^="https://"]:after { content: "\f35d"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin: 0 0 0 5px; } #myLink a:link { color: blue; background-color: transparent; text-decoration: none; border-bottom: 1px solid red; } #myLink a:visited { color:

Replace menu item with icon (Prestashop theme)

…衆ロ難τιáo~ 提交于 2019-12-11 15:05:55
问题 I'd like to ask you about the way to replace the text with icon (home icon as the first menu child). My css is similar to this one: http://livedemo00.template-help.com/prestashop_53577/ I've added this code at the end of the global.css: .sf-menu li:first-child a:before{ content: "\f015"; font-family: "FontAwesome"; display: inline-block; font-size: 33px; line-height: 70px; color: black; } .sf-menu li ul li a:before{ content:none!important; } which gives: What's the best way to hide the text

Animating checkbox replace SVG with Font Awesome

匆匆过客 提交于 2019-12-11 11:13:56
问题 I have created a CodePen here, that animates a checkbox. Currently is using a SVG for the tick, how can I replace it with a font? example. input[type=checkbox] { opacity: 0; float: left; } input[type=checkbox] + label { margin: 0 0 0 20px; position: relative; cursor: pointer; font-size: 16px; font-family: monospace; float: left; } input[type=checkbox] + label ~ label { margin: 0 0 0 40px; } input[type=checkbox] + label::before { content: ' '; position: absolute; left: -35px; top: -3px; width:

How can create transition effect in font awesome icon

倖福魔咒の 提交于 2019-12-11 10:23:32
问题 I need solution for this problem but it should be dependable in font-awesome icon. please help me. to easy create font awesome icon transition effect when hover on icon 回答1: Fontawesome transitions could be done like any other CSS transition. You just need to set for them what properties will have this transition effect, and also define the "new" values. For example: .fa{ font-size:30px; margin:5px; -webkit-transition: all 0.5s; transition: all 0.5s; } .fa:hover{ font-size: 40px; transform: