Преглед изворни кода

Merge pull request #382 from sharelatex/sk-spellcheck-underline-retina

Sk spellcheck underline retina
James Allen пре 10 година
родитељ
комит
dcc9a5de32

BIN
services/web/public/img/spellcheck-underline.png


BIN
services/web/public/img/spellcheck-underline@2x.png


+ 4 - 0
services/web/public/stylesheets/app/editor.less

@@ -138,6 +138,10 @@
 	.spelling-highlight {
 	.spelling-highlight {
 		position: absolute;
 		position: absolute;
 		background-image: url(/img/spellcheck-underline.png);
 		background-image: url(/img/spellcheck-underline.png);
+		@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
+			background-image: url(/img/spellcheck-underline@2x.png);
+			background-size: 5px 4px;
+		}
 		background-repeat: repeat-x;
 		background-repeat: repeat-x;
 		background-position: bottom left;
 		background-position: bottom left;
 	}
 	}