From dfc25a093b3959e3494908b49675b3bce6aeccfc Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Thu, 16 Aug 2018 16:28:02 +0100 Subject: [PATCH] Fix review icon for Overleaf. --- .../web/public/img/review-icon-sprite-ol.png | Bin 0 -> 765 bytes .../public/img/review-icon-sprite-ol@2x.png | Bin 0 -> 1082 bytes .../stylesheets/app/editor/review-panel.less | 17 ++++++++++++----- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 services/web/public/img/review-icon-sprite-ol.png create mode 100644 services/web/public/img/review-icon-sprite-ol@2x.png diff --git a/services/web/public/img/review-icon-sprite-ol.png b/services/web/public/img/review-icon-sprite-ol.png new file mode 100644 index 0000000000000000000000000000000000000000..1e5c7192e4d649f6e1cff67cbc31dfffaca2c6ea GIT binary patch literal 765 zcmVeV^tcYf!5pY!|oebOAq2~0(q7MP-v3jE(nx{o%~QG!Lt zLkPooi&yBy`+pg@5IeCA%M-M-pdGl3n;7>KI4#C<%EDpPW47wL@mybMfijVgVw56R z?H=GLI+I4Wz%Dts>sstRmEw(6E(Jqi=`l>67d#3(8!@Re1r?yXQ=qps~eYvVl|oz)9b zgf6uEToKtg?Yf??<2Q`q6Fw)~Kyq~aVDrsqV4L|%ab4FdJogJwgR9t&V60hPf^qa} zk|pcn#TY>w!s^;q-D}XhtPCQebDOxC-Z4%`rrFbyzYgu1B2ME zy3Odo0>Q vFWH%0}WF zc!BXTe@Q0s)|&?(o1e)f-+XUo-n`kREX#t!WJiKSW}dJo>} z!7U{BruaKYEF@u0DnjsMX8GJ6HozD$ZG!Mp$yk~z*a7qeHLDs|d;}QOsy-)N0Bt~= z)o(GrD{ze>3ikm!7UezyKH>2@?nT1A3;4SRShuKa3$WX?!XaRyQDY8x2-pN1E7002 z_{=t7rm25|-{3@H8?ve5LtX){1C||q46p08;$5jL(q+hg#*YhX!ZmzHEu@Q*ec(`0 z9hUK3DY|=(4}kM^5S}Q=1`T6PaxHRAxYsaQMj*T2M&$R;xg?x6NOnikPidKM z+t|F6=d}!kzci?>NZ7P;8ZA-+pikWPatT-E!o+|CF|_W}h7o$DhAAkMjJl#Fno&AI zWSS7PU1VCKmAMWfY5h#n(5Z&7t+j2Zr7=0b=+Koz;;vhm^$19xwH>MXvT*~@73#?? zv32RTq_s93sXHs6BGcSU6%iR-Vn#L!&m}4k3e1fvqp6^-!LxJ&*M>yV{5pN7)hNA1 z&d&m#RwNt~a$`wD(*Q(fV@D2sR@0EEy?N zA~4i>i7uxlo7;FGvJH4CDSr|hhAMThghzbC_wVC3tP7Ff)G#n!#p7RqD}cAQIW4Bi zWj&FUzmy$3dsH-Q$qx8SqqIIhI6m)_Li^ zBnq1wo-wU+DPl$NFeDjFT^*?;iu((;TP?fTx{08|DZmN9cS(7gzwQbiBa3+ls7R0W z$GN1BhKhb15$_qf*mTB2!k(}v>wrg*!~g&Q07*qoM6N<$g7n$+ A0ssI2 literal 0 HcmV?d00001 diff --git a/services/web/public/stylesheets/app/editor/review-panel.less b/services/web/public/stylesheets/app/editor/review-panel.less index 800a25618f..a7e7d3fdbd 100644 --- a/services/web/public/stylesheets/app/editor/review-panel.less +++ b/services/web/public/stylesheets/app/editor/review-panel.less @@ -922,7 +922,7 @@ } } -.review-icon { +.review-icon when (@is-overleaf = false) { display: inline-block; background: url('/img/review-icon-sprite.png') top/30px no-repeat; width: 30px; @@ -945,10 +945,17 @@ } } -.review-icon when (@is-overleaf) { - background-position-y: -60px; - .toolbar .btn-full-height:hover & { - background-position-y: -60px; +.review-icon when (@is-overleaf = true) { + display: inline-block; + background: url('/img/review-icon-sprite-ol.png') top/30px no-repeat; + width: 30px; + + &::before { + content: '\00a0'; // Non-breakable space. A non-breakable character here makes this icon work like font-awesome. + } + + @media (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { + background-image: url('/img/review-icon-sprite-ol@2x.png'); } }