Skip to content
GitLab
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
71d4b5b6
Commit
71d4b5b6
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge branch '3.0.0-wip' of
https://github.com/dannykeane/bootstrap
into dannykeane-3.0.0-wip
parents
68dfd322
e8dc036d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
less/mixins.less
+26
-0
less/mixins.less
with
26 additions
and
0 deletions
+26
-0
less/mixins.less
+
26
-
0
View file @
71d4b5b6
...
@@ -376,6 +376,32 @@
...
@@ -376,6 +376,32 @@
}
}
// RETINA IMAGE SUPPORT
// --------------------------------------------------
// Retina background image support with non-retina fall back
// Usage example can be found here: https://gist.github.com/dannykeane/4754113
.retina-image(@file, @type, @repeat, @width, @height, @posx, @posy) {
background-image: url('@{file}.@{type}');
background-repeat: @repeat;
background-position: @posx @posy;
@media print,
screen,
(-webkit-min-device-pixel-ratio: 1.25),
(~`"-o-min-device-pixel-ratio: 1.25/1"`),
(min--moz-device-pixel-ratio: 1.25),
(-moz-min-device-pixel-ratio: 1.25),
(-ms-min-device-pixel-ratio: 1.25),
(min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi),
(min-resolution: 1.25dppx) {
background-size: @width @height;
background-image: url('@{file}@2x.@{type}');
background-position: @posx * 2 @posy * 2;
}
}
// COMPONENT MIXINS
// COMPONENT MIXINS
// --------------------------------------------------
// --------------------------------------------------
...
...
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