-
Notifications
You must be signed in to change notification settings - Fork 3
Background retina helper
List of the available mixins
You can see the source code here.
===
####backgroundRetina
Sets a background-image
for standard and retina resolution which changes with media query
Param | Default value | Required | Comment |
---|---|---|---|
@standardImage |
none | yes | |
@retinaImage |
@standardImage |
yes | |
@backgroundSize |
none | yes | The background-size should be the same of standard image size |
@rootPath |
@root-path or ''
|
no | Frontsize var from app.less
|
===
####backgroundRetinaResponsive
Sets a different background-image
for every viewport from Full HD to Smartphone portrait, in standard and retina resolutions
Param | Default value | Required | Comment |
---|---|---|---|
@fullHdStandardImage |
none | yes | |
@fullHdRetinaImage |
@fullHdStandardImage |
yes | |
@hdReadyStandardImage |
@fullHdStandardImage |
yes | |
@hdReadyRetinaImage |
@hdReadyStandardImage |
yes | |
@tabletLandscapeStandardImage |
@hdReadyStandardImage |
yes | |
@tabletLandscapeRetinaImage |
@tabletLandscapeStandardImage |
yes | |
@tabletPortraitStandardImage |
@tabletLandscapeStandardImage |
yes | |
@tabletPortraitRetinaImage |
@tabletPortraitStandardImage |
yes | |
@smartphoneLandscapeStandardImage |
@tabletPortraitStandardImage |
yes | |
@smartphoneLandscapeRetinaImage |
@smartphoneLandscapeStandardImage |
yes | |
@smartphonePortraitStandardImage |
@smartphoneLandscapeStandardImage |
yes | |
@smartphonePortraitRetinaImage |
@smartphonePortraitStandardImage |
yes | |
@backgroundSize |
none | yes | The background-size should be the same of standard image size |
@rootPath |
@root-path or ''
|
no | Frontsize var from app.less
|
===
####backgroundRetina[viewport]
From backgroundRetinaHdFull
to backgroundRetinaSmartphonePortrait
Sets a background-image
for the specific viewport, in standard and retina resolutions
Param | Default value | Required | Comment |
---|---|---|---|
@standardImage |
none | yes | |
@retinaImage |
@standardImage |
no | |
@rootPath |
@root-path or ''
|
no | Frontsize var from app.less
|
===
####iconRetina
Sets a background-image
to be treated as icon background in standard and retina resolutions
Param | Default value | Required | Comment |
---|---|---|---|
@standardImage |
none | yes | |
@retinaImage |
@standardImage |
yes | |
@width |
none | yes | |
@height |
@width |
no | |
@rootPath |
@root-path or ''
|
no | Frontsize var from app.less
|
===
####fillRetinaImage
Sets a fill
property to the background images for SVG generated HTML elements for standard and retina resolution which changes with media query
Param | Default value | Required | Comment |
---|---|---|---|
@standardImage |
none | yes | |
@retinaImage |
@standardImage |
yes | |
@backgroundSize |
none | yes | The background-size should be the same of standard image size |
@rootPath |
@root-path or ''
|
no | Frontsize var from app.less
|