Merge pull request #1588 from Georeactor/master

Update gem, fix icons on RTL/Arabic pages
This commit is contained in:
Andy Allan 2017-08-02 15:15:25 +01:00 committed by GitHub
commit 60f2074bac
3 changed files with 26 additions and 8 deletions

View file

@ -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"

View file

@ -386,7 +386,7 @@ DEPENDENCIES
pg
poltergeist
psych
r2
r2 (~> 0.2.7)
rack-cors
rack-uri_sanitizer
rails (= 5.0.5)

View file

@ -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;
}
}
}