Coder Social home page Coder Social logo

odouroflove / apex-fontawesome5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vincentmorneau/apex-fontawesome5

0.0 1.0 0.0 5.63 MB

A guide to get Font Awesome 5 Pro in your APEX app

Home Page: https://vmorneau.me/fontawesome5/

License: MIT License

JavaScript 32.13% CSS 67.87%

apex-fontawesome5's Introduction

Using Font Awesome 5 Pro in APEX

Blog: https://vmorneau.me/fontawesome5/
Demo 1 (Usage in APEX): https://apex.oracle.com/pls/apex/f?p=1397
Demo 2 (Universal Theme Sample): https://apex.oracle.com/pls/apex/f?p=22375

The following steps are required because of the Font Awesome 5 Pro license.

I can't redistribute Font Awesome 5 Pro here, so you will have to download the files yourself and follow these steps:

Download Steps

  1. Get a license for Font Awesome 5 Pro: https://fontawesome.com/pro
  2. Download these APEX compatibility files from Github
  3. Unzip Font Awesome 5 Pro (from step 1) into /dist/lib/fontawesome5 (from step 2)
  4. Zip the whole dist folder
  5. Upload the zip to your APEX web server
    • Example: Shared Components - Application Static Files: #APP_IMAGES#

Note: We have to do this because I can't distribute Font Awesome 5 Pro...

Option 1) SVG with JavaScript

  1. Reference these JavaScript files in your app
    • #APP_IMAGES#js/apex-fontawesome5#MIN#.js
    • #APP_IMAGES#lib/fontawesome5/svg-with-js/js/fontawesome-all#MIN#.js
    • #APP_IMAGES#lib/fontawesome5/svg-with-js/js/fa-v4-shims#MIN#.js
  2. Reference this CSS file in your app
    • #APP_IMAGES#css/apex-fontawesome5#MIN#.css

Note: If your app shows flashing question marks as icons, it means that the icon you are using does not exist in Font Awesome 5.

Option 2) Web Fonts with CSS

  1. Reference this JavaScript file in your app
    • #APP_IMAGES#js/apex-fontawesome5#MIN#.js
  2. Reference these CSS files in your app
    • #APP_IMAGES#css/apex-fontawesome5#MIN#.css
    • #APP_IMAGES#lib/fontawesome5/web-fonts-with-css/css/fontawesome-all#MIN#.css

Usage

Basic Usage

Pick your icon here https://fontawesome.com/icons.
Use it in the appropriate icon CSS classes in APEX.

Styles & Prefixes

Style Class
Solid fas
Regular far
Light fal
Brand fab

Icon Sizes

Size Class
0.75em fa-xs
0.875em fa-sm
1.33em fa-lg
2em through 10em fa-2x through fa-10x

Animated

Animation Class
Spin fa-spin
Pulse fa-pulse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.