Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
5fc3b1d5
Commit
5fc3b1d5
authored
9 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge pull request #17113 from JanStevens/v4-fix-retina-mixin
Fixes the _image mixing by prefixing the parameters with $
parents
0873e9af
b7b8f98c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/mixins/_image.scss
+2
-2
scss/mixins/_image.scss
with
2 additions
and
2 deletions
+2
-2
scss/mixins/_image.scss
+
2
-
2
View file @
5fc3b1d5
...
...
@@ -19,7 +19,7 @@
// Short retina mixin for setting background-image and -size.
@mixin
img-retina
(
$file-1x
,
$file-2x
,
$width-1x
,
$height-1x
)
{
background-image
:
url(
"
#{
file-1x
}
"
)
;
background-image
:
url(
$
file-1x)
;
@media
only
screen
and
(
-
webkit-min-device-pixel-ratio
:
2
)
,
...
...
@@ -27,7 +27,7 @@
only
screen
and
(
min-device-pixel-ratio
:
2
)
,
only
screen
and
(
min-resolution
:
192dpi
)
,
only
screen
and
(
min-resolution
:
2dppx
)
{
background-image
:
url(
"
#{
file-2x
}
"
)
;
background-image
:
url(
$
file-2x)
;
background-size
:
$width-1x
$height-1x
;
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets