Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Merge branch 'feature/3-styling--retina-image-are-not-implemented-cor…
Browse files Browse the repository at this point in the history
…rectly'

* feature/3-styling--retina-image-are-not-implemented-correctly:
  (#3) Changelog
  (#3) Styling: Added support for retina images
  • Loading branch information
Dirk Voss committed Oct 8, 2014
2 parents 53daa62 + 60461dc commit c1d2e2a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Last Changes

- [#3] (https://github.com/LaxarJS/shop_demo/issues/3): Styling: Added support for retina images
- [#2] (https://github.com/LaxarJS/shop_demo/issues/2): Styling: Fixed add button is not usable for small viewports. Some further improvements."


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ a:focus {
display: block;
height: 60px;
width: 257px;
background: url("../images/laxarjs_logo.png") no-repeat right;
background: url("../images/laxarjs_logo.png") no-repeat right/100%;
}

.app-no-selection,
Expand All @@ -135,11 +135,13 @@ a:focus {
}

.app-flower {
float: right;
margin-top: 40px;
margin-right: 20px;
margin-bottom: 40px;
height: 300px;
background: url("../images/pot_flower.png") no-repeat right;
width: 127px;
background: url("../images/pot_flower.png") no-repeat right/100%;
}

.app-footer {
Expand Down Expand Up @@ -207,12 +209,10 @@ a,
}
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
.app-logo {
background: url("../images/laxarjs_logo@2x.png") no-repeat right;
}
.app-logo {
background: url("../images/laxarjs_logo@2x.png") no-repeat right/100%;
}

.app-flower {
background: url("../images/pot_flower@2x.png") no-repeat right;
}
.app-flower {
background: url("../images/pot_flower@2x.png") no-repeat right/100%;
}
14 changes: 8 additions & 6 deletions application/layouts/application/default.theme/scss/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ a:focus {
display: block;
height: image-height( "../images/laxarjs_logo.png" );
width: image-width( "../images/laxarjs_logo.png" );
background: url( "../images/laxarjs_logo.png" ) no-repeat right;
background: url( "../images/laxarjs_logo.png" ) no-repeat right/100%;
}

.app-no-selection,
Expand All @@ -59,11 +59,13 @@ a:focus {
}

.app-flower {
float: right;
margin-top: 40px;
margin-right: 20px;
margin-bottom: 40px;
height: image-height( "../images/pot_flower.png" );
background: url( "../images/pot_flower.png" ) no-repeat right;
width: image-width( "../images/pot_flower.png" );
background: url( "../images/pot_flower.png" ) no-repeat right/100%;
}

.app-footer {
Expand Down Expand Up @@ -131,11 +133,11 @@ a,
}
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
// @media only screen and (-webkit-min-device-pixel-ratio: 2) {
.app-logo {
background: url( "../images/laxarjs_logo@2x.png" ) no-repeat right;
background: url( "../images/laxarjs_logo@2x.png" ) no-repeat right/100%;
}
.app-flower {
background: url( "../images/pot_flower@2x.png" ) no-repeat right;
background: url( "../images/pot_flower@2x.png" ) no-repeat right/100%;
}
}
// }

0 comments on commit c1d2e2a

Please sign in to comment.