Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilise le bon sprite sur écran rétina #3522

Merged
merged 1 commit into from
Apr 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions assets/scss/base/_high-pixel-ratio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
}
.ico,
.ico-after:after,
.content-item .content-reactions,
.content-item .content-reactions::before,
.breadcrumb ol li:not(:last-child):after {
@include sprite-2x();
}
Expand All @@ -21,6 +23,16 @@
@include sprite-2x();
}
}

.home .home-search-box::before {
background-image: url('../images/home-clem@2x.png');

@at-root {
body.vc-clem-christmas.home .home-search-box::before {
background-image: url('../images/home-clem-christmas@2x.png');
}
}
}
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.3) and #{$media-mobile-tablet},
Expand All @@ -37,14 +49,4 @@
.page-container .header-logo-link {
background-image: url('../images/logo-mobile@2x.png') !important;
}

.home .home-search-box::before {
background-image: url('../images/home-clem@2x.png');

@at-root {
body.vc-clem-christmas.home .home-search-box::before {
background-image: url('../images/home-clem-christmas@2x.png');
}
}
}
}