Commit f1695a36 authored by Simon Knox's avatar Simon Knox

Merge branch 'mw-wiki-page-specific-css' into 'master'

Replace remaining fontawesome icons with emojis

See merge request gitlab-org/gitlab!49097
parents 56de133a 6b30b86e
...@@ -292,7 +292,6 @@ gem 'sassc-rails', '~> 2.1.0' ...@@ -292,7 +292,6 @@ gem 'sassc-rails', '~> 2.1.0'
gem 'terser', '1.0.2' gem 'terser', '1.0.2'
gem 'addressable', '~> 2.7' gem 'addressable', '~> 2.7'
gem 'font-awesome-rails', '~> 4.7'
gem 'gemojione', '~> 3.3' gem 'gemojione', '~> 3.3'
gem 'gon', '~> 6.2' gem 'gon', '~> 6.2'
gem 'request_store', '~> 1.5' gem 'request_store', '~> 1.5'
......
...@@ -396,8 +396,6 @@ GEM ...@@ -396,8 +396,6 @@ GEM
fog-xml (0.1.3) fog-xml (0.1.3)
fog-core fog-core
nokogiri (>= 1.5.11, < 2.0.0) nokogiri (>= 1.5.11, < 2.0.0)
font-awesome-rails (4.7.0.5)
railties (>= 3.2, < 6.1)
formatador (0.2.5) formatador (0.2.5)
fugit (1.2.1) fugit (1.2.1)
et-orbi (~> 1.1, >= 1.1.8) et-orbi (~> 1.1, >= 1.1.8)
...@@ -1347,7 +1345,6 @@ DEPENDENCIES ...@@ -1347,7 +1345,6 @@ DEPENDENCIES
fog-local (~> 0.6) fog-local (~> 0.6)
fog-openstack (~> 1.0) fog-openstack (~> 1.0)
fog-rackspace (~> 0.1.1) fog-rackspace (~> 0.1.1)
font-awesome-rails (~> 4.7)
fugit (~> 1.2.1) fugit (~> 1.2.1)
fuubar (~> 2.2.0) fuubar (~> 2.2.0)
gemojione (~> 3.3) gemojione (~> 3.3)
......
...@@ -9,9 +9,6 @@ ...@@ -9,9 +9,6 @@
// GitLab UI framework // GitLab UI framework
@import 'framework'; @import 'framework';
// Custom Fontawesome icons
@import 'fontawesome_custom';
// Page specific styles (issues, projects etc): // Page specific styles (issues, projects etc):
@import 'page_specific_files'; @import 'page_specific_files';
......
.selected-item::before { .selected-item {
content: '\f00c'; /* stylelint-disable-next-line function-url-quotes */
color: $green-500; background: url(asset_path('checkmark.png')) no-repeat 0 2px;
position: absolute;
left: 16px;
top: 16px;
transform: translateY(-50%);
font: 14px FontAwesome;
} }
.dropdown-item-space { .dropdown-item-space {
......
/*! // Custom Font Awesome styles that render emojis in asciidoc
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome .md {
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) .fa {
*/ display: inline-block;
font-style: normal;
// stylelint-disable property-no-vendor-prefix font-size: 14px;
// stylelint-disable at-rule-no-vendor-prefix text-rendering: auto;
// stylelint-disable stylelint-gitlab/duplicate-selectors -webkit-font-smoothing: antialiased;
// scss-lint:disable MergeableSelector -moz-osx-font-smoothing: grayscale;
@font-face { }
font-family: 'FontAwesome';
src: asset-url('fontawesome-webfont.woff2?v=4.7.0') format('woff2'), asset-url('fontawesome-webfont.woff?v=4.7.0') format('woff'); .fa-2x {
font-weight: normal; font-size: 2em;
font-style: normal; }
}
.fa-exclamation-triangle::before {
.fa { content: '⚠';
display: inline-block; }
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit; .fa-exclamation-circle::before {
text-rendering: auto; content: '❗';
-webkit-font-smoothing: antialiased; }
-moz-osx-font-smoothing: grayscale;
} .fa-lightbulb-o::before {
content: '💡';
.fa-2x { }
font-size: 2em;
} .fa-thumb-tack::before {
content: '📌';
.fa-exclamation-triangle::before { }
content: '\f071';
} .fa-fire::before {
content: '🔥';
.fa-exclamation-circle::before { }
content: '\f06a';
} .fa-square-o::before {
content: '\2610';
.fa-lightbulb-o::before { }
content: '\f0eb';
} .fa-check-square-o::before {
content: '\2611';
.fa-thumb-tack::before { }
content: '\f08d';
}
.fa-fire::before {
content: '\f06d';
}
.fa-square-o::before {
content: '\f096';
}
.fa-check-square-o::before {
content: '\f046';
} }
...@@ -505,29 +505,27 @@ ...@@ -505,29 +505,27 @@
&.is-active { &.is-active {
color: $gl-text-color; color: $gl-text-color;
&::before {
position: absolute;
left: 16px;
top: 16px;
transform: translateY(-50%);
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
&.dropdown-menu-user-link::before { &.dropdown-menu-user-link::before {
top: 50%; top: 50%;
} }
} }
&.is-indeterminate::before { &.is-indeterminate::before {
content: '\f068'; position: absolute;
left: 16px;
top: 16px;
transform: translateY(-50%);
font-style: normal;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: '—';
} }
&.is-active::before { &.is-active {
content: '\f00c'; /* stylelint-disable-next-line function-url-quotes */
background: url(asset_path('checkmark.png')) no-repeat 14px 8px;
} }
} }
} }
......
// Custom Fontawesome icons
@import 'fontawesome_custom';
/** /**
* Apply Markup (Markdown/AsciiDoc) typography * Apply Markup (Markdown/AsciiDoc) typography
* *
...@@ -432,11 +435,11 @@ ...@@ -432,11 +435,11 @@
&::before { &::before {
margin-right: 4px; margin-right: 4px;
font: normal normal normal 14px/1 FontAwesome; font-style: normal;
font-size: inherit; font-size: inherit;
text-rendering: auto; text-rendering: auto;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
content: '\f0c6'; content: '📎';
} }
&.no-attachment-icon { &.no-attachment-icon {
......
...@@ -22,32 +22,14 @@ ...@@ -22,32 +22,14 @@
border-radius: $gl-border-radius-base; border-radius: $gl-border-radius-base;
.select2-arrow { .select2-arrow {
background-image: none;
background-color: transparent;
border: 0;
padding-top: 12px; padding-top: 12px;
padding-right: 20px; padding-right: 20px;
font-size: 10px; /* stylelint-disable-next-line function-url-quotes */
background: url(asset_path('chevron-down.png')) no-repeat 2px 8px;
b { b {
display: none; display: none;
} }
&::after {
content: '\f078';
position: absolute;
z-index: 1;
text-align: center;
pointer-events: none;
box-sizing: border-box;
color: $gray-darkest;
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
} }
.select2-chosen { .select2-chosen {
......
...@@ -4,7 +4,6 @@ require 'json' ...@@ -4,7 +4,6 @@ require 'json'
module IconsHelper module IconsHelper
extend self extend self
include FontAwesome::Rails::IconHelper
DEFAULT_ICON_SIZE = 16 DEFAULT_ICON_SIZE = 16
......
---
title: Replace wiki fontawesome icons with emojis
merge_request: 49097
author:
type: other
...@@ -229,11 +229,6 @@ module Gitlab ...@@ -229,11 +229,6 @@ module Gitlab
config.assets.precompile << "icons.json" config.assets.precompile << "icons.json"
config.assets.precompile << "illustrations/*.svg" config.assets.precompile << "illustrations/*.svg"
# Import Fontawesome fonts
config.assets.paths << "#{config.root}/node_modules/font-awesome/fonts"
config.assets.precompile << "fontawesome-webfont.woff2"
config.assets.precompile << "fontawesome-webfont.woff"
# Import css for xterm # Import css for xterm
config.assets.paths << "#{config.root}/node_modules/xterm/src/" config.assets.paths << "#{config.root}/node_modules/xterm/src/"
config.assets.precompile << "xterm.css" config.assets.precompile << "xterm.css"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment