Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83b45c0
commit 12e6454
Showing
17 changed files
with
119 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Folders | ||
node_modules | ||
|
||
# Examples | ||
src/lib/fontawesome5/svg-with-js | ||
src/lib/fontawesome5/web-fonts-with-css | ||
dist/lib/fontawesome5/svg-with-js | ||
dist/lib/fontawesome5/web-fonts-with-css | ||
|
||
# Mac | ||
.DS_Store | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,76 @@ | ||
# apex-fontawesome5 | ||
# Using Font Awesome 5 Pro in APEX | ||
|
||
Blog: https://vmorneau.me/fontawesome5/ | ||
Demo 1 (Custom): https://apex.oracle.com/pls/apex/f?p=114996 | ||
Demo 2 (UT Demo): https://apex.oracle.com/pls/apex/f?p=114996 | ||
|
||
**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 | ||
3. Download APEX Font Awesome 5 compatibility files: https://github.com/vincentmorneau/apex-fontawesome5/tree/master/dist | ||
3. Unzip Font Awesome 5 into `/dist/lib/fontawesome5` | ||
4. Zip the whole `dist` folder | ||
5. Upload it to your APEX web server | ||
- Example: Shared Components - Application Static Files: `#APP_IMAGES#` | ||
|
||
### 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` | ||
|
||
![](/doc/file-references-svg.png) | ||
|
||
*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.* | ||
|
||
![](/doc/broken-icons.png) | ||
|
||
### 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` | ||
|
||
![](/doc/file-references-css.png) | ||
|
||
### Usage | ||
|
||
##### Basic Usage | ||
Pick your icon here https://fontawesome.com/icons. | ||
Use it in the appropriate icon CSS classes in APEX. | ||
|
||
![](/doc/icon-css-classes-basic.png) | ||
|
||
##### Styles & Prefixes | ||
Style | Class | ||
--- | --- | ||
Solid | `fas` | ||
Regular | `far` | ||
Light | `fal` | ||
Brand | `fab` | ||
|
||
![](/doc/icon-css-classes-style.png) | ||
|
||
##### Icon Sizes | ||
Size | Class | ||
--- | --- | ||
0.75em | `fa-xs` | ||
0.875em | `fa-sm` | ||
1.33em | `fa-lg` | ||
2em through 10em | `fa-2x` through `fa-10x` | ||
|
||
![](/doc/icon-css-classes-size.png) | ||
|
||
##### Animated | ||
Animation | Class | ||
--- | --- | ||
Spin | `fa-spin` | ||
Pulse | `fa-pulse` | ||
|
||
![](/doc/icon-css-classes-spin.png) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
DOWNLOAD AND EXTRACT FONT AWESOME 5 FILES HERE | ||
DOWNLOAD AND EXTRACT FONT AWESOME 5 FILES HERE | ||
|
||
Example: | ||
``` | ||
|-/src/ | ||
|-lib | ||
|-fontawesome5 | ||
|-svg-with-js | ||
|-web-fonts-with-css | ||
``` |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
var FontAwesomeConfig = { autoReplaceSvg: 'nest' }; | ||
|
||
(function(){ | ||
$("body").addClass("apex-icons-fontawesome"); | ||
// using far (regular) as the default style | ||
$('[class^="fa-"], [class*=" fa-"]').not(".fas, .far, .fal, .fab").addClass("far"); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
DOWNLOAD AND EXTRACT FONT AWESOME 5 FILES HERE | ||
DOWNLOAD AND EXTRACT FONT AWESOME 5 FILES HERE | ||
|
||
Example: | ||
``` | ||
|-/src/ | ||
|-lib | ||
|-fontawesome5 | ||
|-svg-with-js | ||
|-web-fonts-with-css | ||
``` |