font-awesome

ruby not load font-awesome

元气小坏坏 提交于 2019-12-06 13:39:36
问题 i am trying to load font-awesome to my view I have read other answers and implement the Rails: Using Font Awesome What i have done config/application.rb require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) module Blog class Application < Rails::Application # Settings in config/environments/* take precedence over those specified

Use icon fonts in xpages

a 夏天 提交于 2019-12-06 13:17:10
I want to use icon (awesome) fonts in my xpage. I downloaded it and put them into my webContent folder (as all my additional stuff. e.g. bootstrap). I modified the awesome.css as followed. @font-face { font-family: "FontAwesome"; src: url('/font/fontawesome-webfont.eot'); src: url('/font/fontawesome-webfont.eot?#iefix') format('eot'); src: url('/font/fontawesome-webfont.woff') format('woff'); src: url('/font/fontawesome-webfont.ttf') format('truetype'); src: url('/font/fontawesome-webfont.svg#FontAwesome') format('svg'); font-weight: normal; font-style: normal; } And put an into my page. <i

Fontawesome Cross origin issues

China☆狼群 提交于 2019-12-06 12:02:03
I want to load Fontawesome from a CDN but I get failed cross-origin request. Resource access is restricted I know that to fix this a HTTP header should be added, but is there any way to avoid doing this? I tried replacing '../font/fontawesome-webfont.eot?v=3.2.0') with full urls but it didnt help for some reason. Is there anything that can be done without the header? Nish This is browsers’ same-origin policy restrictions http://www.w3.org/TR/css3-fonts/#same-origin-restriction . If you are using amazon s3 this could help you Amazon S3 CORS (Cross-Origin Resource Sharing) and Firefox cross

Why doesn't Font Awesome work in my Shadow DOM?

半城伤御伤魂 提交于 2019-12-06 11:45:53
问题 Font Awesome is not working in my shadow DOM since I have the following in it to prevent styles from leaking in and out: :host { all: initial; /* 1st rule so subsequent properties are reset. */ display: block; contain: content; /* Boom. CSS containment FTW. */ } I'm able to use other stylesheets by just inlining them within the :host property, but that doesn't work with Font Awesome since it uses relative paths in its stylesheet. I found this post and tried it with the scoped CSS I implement,

Using FontAwesome 5.x with PrimeFaces 6.2+

十年热恋 提交于 2019-12-06 11:28:45
I was checking this question: How to use Font Awesome from webjars.org with JSF ant this question: FontAwesome with PrimeFaces with its answer https://stackoverflow.com/a/33070133/5113188 Hi I want to use the new icons of https://fontawesome.com/changelog/latest 5.5 version In my pom.xml file project... <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>6.2</version> </dependency> <dependency> <groupId>org.primefaces.extensions</groupId> <artifactId>primefaces-extensions</artifactId> <version>6.2</version> </dependency> <dependency> <groupId>org

Flipping an icon and spinning it in reverse

帅比萌擦擦* 提交于 2019-12-06 11:06:34
There's an icon in the Font Awesome set that I want to flip horizontally and then spin in that direction, which is the opposite of the regular spin effect. There are a number of ways to do each, but none that I know that will do both since the effects seem to cancel each other out? If I flip it, .fa-refresh { -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; } then animate it, .icon-spin-reverse { display: inline-block; -moz-animation: spin-reverse 2s infinite linear; -o-animation: spin-reverse 2s

Change FontAwesome icon with text on hover

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 08:13:00
问题 I'm trying to create a responsive feature to my website. Basicly what I want is to have font awesome icons for navigation, but when on computer if you hover the mouse over the icon, it changes into a word. I've tried it via CSS, using a:content:"" and then a:hover:content:"" I have never tried something like this before and I'd appreciate it if anybody could point out what I have to do to get it working. Here's a JSFiddle i { color: #fff; } i { padding: 0 10px; } ul { list-style-type: none; }

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

吃可爱长大的小学妹 提交于 2019-12-06 07:48:18
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/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff? v

Use Glyphicons or Font-Awesome in pdfmake prints

感情迁移 提交于 2019-12-06 06:07:18
I am developing a webapp using pdfmake for the printing. In more recent days I started using Glyphicons and Font-Awesome-Icons in my project, now I need those in the printout as well. But I can't really imagine what would be the best way to achieve this. I see two possibilities: Include the respective Font in pdfmake and create something like a map which determines the Icons font-representation by it's class name (because this is what is used in the app). In this case I could still use the font colors for the Icons I could use something like phantomJS to generate Images of the Icons, but I don

Font Awesome icon as marker in Google Maps API V3

半世苍凉 提交于 2019-12-06 05:27:29
问题 I want to use a font awesome icon as Google Maps marker. Here is my code: function addMarker(marker) { marker1 = new google.maps.Marker({ position: new google.maps.LatLng(obj.geo_lat,obj.geo_lng), category: obj.status, map: map, icon: // Font Awesome icon here }); I've looked at this question, but unfortunately this is not working properly for me. I was wondering if there's another way to do this. 回答1: Yes, there is. You can use RichMarker Example: function addMarker(marker) { marker1 = new