Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
media queries for mobiles
Browse files Browse the repository at this point in the history
  • Loading branch information
germain-italic committed May 11, 2016
1 parent a224084 commit e0adf62
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions csphotoselector.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,41 @@
.CSPhoto_container_active {
left: 11px;
}

/* responsive support */
/* optimized for iPhone 5 and upper
* will produce a 1-column albums list
* and a 2-columns photos list
*/
@media screen and (max-width: 480px) {
#CSPhotoSelector {
padding: 0;
margin: 0;
position: absolute;
align-items: center;
}
#CSPhotoSelector .CSPhotoSelector_dialog {
display: block;
align-items: center;
width: 300px;
margin: 0 auto;
margin-top: 10%;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_photosContainer {
height: 315px;
overflow: scroll;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSAlbum_container .CSPhotoSelector_album {
margin-left: auto;
margin-right: auto;
display: block;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhotoSelector_content.CSPhotoSelector_wrapper.CSPhoto_container_active {
width: 278px;
top: 42px;
}
#CSPhotoSelector .CSPhotoSelector_dialog .CSPhoto_container .CSPhotoSelector_photo {
width: 117px;
height: 86px;
}
}

0 comments on commit e0adf62

Please sign in to comment.