Skip to content

Commit

Permalink
#894 Update font-awesome to the latest version (#959)
Browse files Browse the repository at this point in the history
* #894  Update font-awesome to the latest version

* #894  Revert back font-awesome. Add pdd task to finish upgrade
  • Loading branch information
duker33 committed Sep 18, 2019
1 parent 24934f3 commit edfb9f8
Show file tree
Hide file tree
Showing 34 changed files with 10,897 additions and 1,146 deletions.
Binary file added front/fonts/fa-solid-900.eot
Binary file not shown.
4,649 changes: 4,649 additions & 0 deletions front/fonts/fa-solid-900.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/fonts/fa-solid-900.ttf
Binary file not shown.
Binary file added front/fonts/fa-solid-900.woff
Binary file not shown.
Binary file added front/fonts/fa-solid-900.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions front/less/common/variables.less
Expand Up @@ -131,6 +131,7 @@
@font-family-base: "proxima_nova_rgregular", sans-serif;
@proxima: "proxima_nova_rgregular";
@proxima-light: "proxima_nova_ltlight";
@fa-css-prefix: "fa";

// Bootstrap variables override:
@body-bg: #e5eaee;
Expand Down
19 changes: 19 additions & 0 deletions front/less/vendors/font-awesome-old/animated.less
@@ -0,0 +1,19 @@
// Animated Icons
// --------------------------

.@{fa-css-prefix}-spin {
animation: fa-spin 2s infinite linear;
}

.@{fa-css-prefix}-pulse {
animation: fa-spin 1s infinite steps(8);
}

@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
25 changes: 25 additions & 0 deletions front/less/vendors/font-awesome-old/bordered-pulled.less
@@ -0,0 +1,25 @@
// Bordered & Pulled
// -------------------------

.@{fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em @fa-border-color;
border-radius: .1em;
}

.@{fa-css-prefix}-pull-left { float: left; }
.@{fa-css-prefix}-pull-right { float: right; }

.@{fa-css-prefix} {
&.@{fa-css-prefix}-pull-left { margin-right: .3em; }
&.@{fa-css-prefix}-pull-right { margin-left: .3em; }
}

/* Deprecated as of 4.4.0 */
.pull-right { float: right; }
.pull-left { float: left; }

.@{fa-css-prefix} {
&.pull-left { margin-right: .3em; }
&.pull-right { margin-left: .3em; }
}
11 changes: 11 additions & 0 deletions front/less/vendors/font-awesome-old/core.less
@@ -0,0 +1,11 @@
// Base Class Definition
// -------------------------

.@{fa-css-prefix} {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
6 changes: 6 additions & 0 deletions front/less/vendors/font-awesome-old/fixed-width.less
@@ -0,0 +1,6 @@
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
789 changes: 789 additions & 0 deletions front/less/vendors/font-awesome-old/icons.less

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions front/less/vendors/font-awesome-old/larger.less
@@ -0,0 +1,13 @@
// Icon Sizes
// -------------------------

/* makes the font 33% larger relative to the icon container */
.@{fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.@{fa-css-prefix}-2x { font-size: 2em; }
.@{fa-css-prefix}-3x { font-size: 3em; }
.@{fa-css-prefix}-4x { font-size: 4em; }
.@{fa-css-prefix}-5x { font-size: 5em; }
19 changes: 19 additions & 0 deletions front/less/vendors/font-awesome-old/list.less
@@ -0,0 +1,19 @@
// List Icons
// -------------------------

.@{fa-css-prefix}-ul {
padding-left: 0;
margin-left: @fa-li-width;
list-style-type: none;
> li { position: relative; }
}
.@{fa-css-prefix}-li {
position: absolute;
left: -@fa-li-width;
width: @fa-li-width;
top: (2em / 14);
text-align: center;
&.@{fa-css-prefix}-lg {
left: (-@fa-li-width + (4em / 14));
}
}
60 changes: 60 additions & 0 deletions front/less/vendors/font-awesome-old/mixins.less
@@ -0,0 +1,60 @@
// Mixins
// --------------------------

.fa-icon() {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

}

.fa-icon-rotate(@degrees, @rotation) {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
-webkit-transform: rotate(@degrees);
-ms-transform: rotate(@degrees);
transform: rotate(@degrees);
}

.fa-icon-flip(@horiz, @vert, @rotation) {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
-webkit-transform: scale(@horiz, @vert);
-ms-transform: scale(@horiz, @vert);
transform: scale(@horiz, @vert);
}


// Only display content to screen readers. A la Bootstrap 4.
//
// See: http://a11yproject.com/posts/how-to-hide-content/

.sr-only() {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}

// Use in conjunction with .sr-only to only display content when it's focused.
//
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
//
// Credit: HTML5 Boilerplate

.sr-only-focusable() {
&:active,
&:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
}
10 changes: 10 additions & 0 deletions front/less/vendors/font-awesome-old/path.less
@@ -0,0 +1,10 @@
/* FONT PATH
* -------------------------- */

@font-face {
font-family: 'FontAwesome';
src: url('@{fa-font-path}/fontawesome-webfont.woff2') format('woff2'),
url('@{fa-font-path}/fontawesome-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
20 changes: 20 additions & 0 deletions front/less/vendors/font-awesome-old/rotated-flipped.less
@@ -0,0 +1,20 @@
// Rotated & Flipped Icons
// -------------------------

.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }

.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
.@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }

// Hook for IE8-9
// -------------------------

:root .@{fa-css-prefix}-rotate-90,
:root .@{fa-css-prefix}-rotate-180,
:root .@{fa-css-prefix}-rotate-270,
:root .@{fa-css-prefix}-flip-horizontal,
:root .@{fa-css-prefix}-flip-vertical {
filter: none;
}
5 changes: 5 additions & 0 deletions front/less/vendors/font-awesome-old/screen-reader.less
@@ -0,0 +1,5 @@
// Screen Readers
// -------------------------

.sr-only { .sr-only(); }
.sr-only-focusable { .sr-only-focusable(); }
20 changes: 20 additions & 0 deletions front/less/vendors/font-awesome-old/stacked.less
@@ -0,0 +1,20 @@
// Stacked Icons
// -------------------------

.@{fa-css-prefix}-stack {
position: relative;
display: inline-block;
width: 2em;
height: 2em;
line-height: 2em;
vertical-align: middle;
}
.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
position: absolute;
left: 0;
width: 100%;
text-align: center;
}
.@{fa-css-prefix}-stack-1x { line-height: inherit; }
.@{fa-css-prefix}-stack-2x { font-size: 2em; }
.@{fa-css-prefix}-inverse { color: @fa-inverse; }

1 comment on commit edfb9f8

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on edfb9f8 Sep 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 894-8ab56e9d discovered in front/less/vendors/font-awesome.less and submitted as #962. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.