From: Andy Allan Date: Wed, 2 Aug 2017 14:15:25 +0000 (+0100) Subject: Merge pull request #1588 from Georeactor/master X-Git-Tag: live~3403 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/60f2074baca1b36bf02b02be976a2527d60c5fef?hp=bc10bc87586f43e1ec9ca542524f7b8798b29029 Merge pull request #1588 from Georeactor/master Update gem, fix icons on RTL/Arabic pages --- diff --git a/Gemfile b/Gemfile index 48658f65d..fecc797d0 100644 --- a/Gemfile +++ b/Gemfile @@ -32,7 +32,7 @@ gem "jquery-rails" gem "jsonify-rails" # Use R2 for RTL conversion -gem "r2" +gem "r2", "~> 0.2.7" # Use autoprefixer to generate CSS prefixes gem "autoprefixer-rails" diff --git a/Gemfile.lock b/Gemfile.lock index f73d4a5d8..3cb46643a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -386,7 +386,7 @@ DEPENDENCIES pg poltergeist psych - r2 + r2 (~> 0.2.7) rack-cors rack-uri_sanitizer rails (= 5.0.5) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 121e0c6d6..578506621 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -2776,12 +2776,30 @@ input.richtext_title[type="text"] { vertical-align: middle; background: 40px 40px image-url('about/sprite.png') no-repeat; - &.local { background-position: 0px 0px; } - &.community { background-position: 0px -40px; } - &.open { background-position: 0px -80px; } - &.partners { background-position: 0px -120px; } - &.infringement { background-position: 0px -160px; } - &.legal { background-position: -45px -160px; } + &.local { + /* no-r2 */ + background-position: 0px 0px; + } + &.community { + /* no-r2 */ + background-position: 0px -40px; + } + &.open { + /* no-r2 */ + background-position: 0px -80px; + } + &.partners { + /* no-r2 */ + background-position: 0px -120px; + } + &.infringement { + /* no-r2 */ + background-position: 0px -160px; + } + &.legal { + /* no-r2 */ + background-position: -45px -160px; + } } }