1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16452] Upgrade to FontAwesome 5

PHPBB3-16452
This commit is contained in:
rxu
2020-04-21 15:12:28 +07:00
parent 724b3682d1
commit 0e4ce1f978
34 changed files with 9383 additions and 2688 deletions

View File

@@ -73,8 +73,8 @@
(function($){
var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
$span = $('<span class="fa" style="display:none"></span>').appendTo('body');
if ($span.css('fontFamily') !== 'FontAwesome' ) {
$fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
if ($span.css('fontFamily') !== 'Font Awesome 5 Free' ) {
$fa_cdn.after('<link href="{T_ASSETS_PATH}/css/all.min.css" rel="stylesheet">');
$fa_cdn.remove();
}
$span.remove();

View File

@@ -46,6 +46,7 @@
</script>
<!-- ENDIF -->
<link href="{T_FONT_AWESOME_LINK}" rel="stylesheet">
<link href="{T_FONT_AWESOME_V4SHIMS_LINK}" rel="stylesheet">
<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet">

View File

@@ -24,6 +24,7 @@
</script>
<!-- ENDIF -->
<link href="{T_FONT_AWESOME_LINK}" rel="stylesheet">
<link href="{T_FONT_AWESOME_V4SHIMS_LINK}" rel="stylesheet">
<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
<link href="{T_STYLESHEET_LANG_LINK}" rel="stylesheet">

View File

@@ -363,7 +363,7 @@ a.header-avatar img {
a.header-avatar span:after {
content: '\f0dd';
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font: normal normal bold 14px/1 'Font Awesome 5 Free';
padding-left: 6px;
padding-top: 2px;
vertical-align: top;

View File

@@ -11,10 +11,10 @@
*/
.icon, .button .icon, blockquote cite:before, .uncited:before {
display: inline-block;
font-weight: normal;
font-weight: 900;
font-style: normal;
font-variant: normal;
font-family: FontAwesome;
font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
font-size: 14px;
line-height: 1;
text-rendering: auto; /* optimizelegibility throws things off #1094 */
@@ -22,9 +22,9 @@
-moz-osx-font-smoothing: grayscale;
}
.icon:before { padding-right: 2px; }
.icon { padding-right: 2px; }
.button .icon:before {
.button .icon {
padding-right: 0;
}