summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-02-20 20:38:27 +0000
committerJacob Schatz <jschatz1@gmail.com>2016-02-20 20:38:27 +0000
commit1367caa642e7ec9a46f202b6149a01e7093c573d (patch)
tree225688ac737ad8e15f8c8e5a208a22d50eb1d3b7
parent9ae8fb9307046ad0819a8c2dc7473b62b3364189 (diff)
parent2289e6003f4b00f048128e1fbb3ee027878c6b12 (diff)
downloadgitlab-ce-1367caa642e7ec9a46f202b6149a01e7093c573d.tar.gz
Merge branch 'award-emoji-retina' into 'master'
Award emoji supports retina displays Based on discussion in !2800 There is now a retina spritesheet for emojis. It is 2mb, don't know how big an issue that is. Before: ![Screen_Shot_2016-02-19_at_11.07.25](/uploads/ea412579bcaddfd13fce67bf583de61b/Screen_Shot_2016-02-19_at_11.07.25.png) After: ![Screen_Shot_2016-02-19_at_11.07.36](/uploads/9d44c6278ba31987bad03dc1f46edd8b/Screen_Shot_2016-02-19_at_11.07.36.png) Also updated the rake task to make the @2x spritesheet https://gitlab.com/snippets/15348 cc\ @rspeicher @vsizov See merge request !2891
-rw-r--r--app/assets/images/emoji.pngbin1136910 -> 263533 bytes
-rw-r--r--app/assets/images/emoji@2x.pngbin0 -> 690504 bytes
-rw-r--r--app/assets/stylesheets/pages/emojis.scss10
3 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/images/emoji.png b/app/assets/images/emoji.png
index 44c4ac260ac..1e7cf79ea45 100644
--- a/app/assets/images/emoji.png
+++ b/app/assets/images/emoji.png
Binary files differ
diff --git a/app/assets/images/emoji@2x.png b/app/assets/images/emoji@2x.png
new file mode 100644
index 00000000000..74d67f7520d
--- /dev/null
+++ b/app/assets/images/emoji@2x.png
Binary files differ
diff --git a/app/assets/stylesheets/pages/emojis.scss b/app/assets/stylesheets/pages/emojis.scss
index e99d60db419..6c721b514f8 100644
--- a/app/assets/stylesheets/pages/emojis.scss
+++ b/app/assets/stylesheets/pages/emojis.scss
@@ -1723,4 +1723,14 @@
background-repeat: no-repeat;
height: 20px;
width: 20px;
+
+ @media only screen and (-webkit-min-device-pixel-ratio: 2),
+ only screen and (min--moz-device-pixel-ratio: 2),
+ only screen and (-o-min-device-pixel-ratio: 2/1),
+ only screen and (min-device-pixel-ratio: 2),
+ only screen and (min-resolution: 192dpi),
+ only screen and (min-resolution: 2dppx) {
+ background-image: image-url('emoji@2x.png');
+ background-size: 840px 820px;
+ }
}