aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/sass/_mixins.scss
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-11-06 13:37:45 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-11-06 17:19:39 +0000
commitb3a8e6980ef8cc69c992d58b932c0351630ed2ef (patch)
tree26b4a3611946fc19d2b51c8441041931afcfa619 /web/cobrands/sass/_mixins.scss
parentb50c652ec42afc1ce33a43925b098287065b3ff2 (diff)
Remove 2x image fallbacks for SVGs.
If the browser doesn't support SVG, they're not going to care about high-dpi images.
Diffstat (limited to 'web/cobrands/sass/_mixins.scss')
-rw-r--r--web/cobrands/sass/_mixins.scss11
1 files changed, 2 insertions, 9 deletions
diff --git a/web/cobrands/sass/_mixins.scss b/web/cobrands/sass/_mixins.scss
index 08e36e86a..392739db8 100644
--- a/web/cobrands/sass/_mixins.scss
+++ b/web/cobrands/sass/_mixins.scss
@@ -206,14 +206,7 @@ $right: right;
order: $order;
}
-@mixin high-dpi-background-image($path) {
+@mixin svg-background-image($path) {
background-image: url("#{$path}.png");
-
- @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
- background-image: url("#{$path}@2x.png");
- }
-
- @media screen {
- background-image: url("#{$path}.svg"), none;
- }
+ background-image: url("#{$path}.svg"), none;
}