Skip to content

Commit

Permalink
Fix unsplash modal scrollbar issue and selected/active image outline
Browse files Browse the repository at this point in the history
  • Loading branch information
ravichdev committed Jun 11, 2020
1 parent a63e5bb commit 7b14078
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion assets/src/media-selector/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
position: absolute !important;
height: auto !important;
top: 100px;
right: 310px;
right: 300px;
left: 20px;
padding: 0;
}
Expand All @@ -99,6 +99,25 @@
margin-right: 8px;
}

.media-frame-content[data-columns="2"] .unsplash-attachment:nth-child(odd) .thumbnail,
.media-frame-content[data-columns="3"] .unsplash-attachment:nth-child(3n+1) .thumbnail,
.media-frame-content[data-columns="1"] .unsplash-attachment .thumbnail {

/* offset the first image in each row to ensure focus/active state has space */
margin-left: 3px;
}

.media-frame-content[data-columns="3"] .unsplash-attachment:nth-child(1) .thumbnail,
.media-frame-content[data-columns="3"] .unsplash-attachment:nth-child(2) .thumbnail,
.media-frame-content[data-columns="3"] .unsplash-attachment:nth-child(3) .thumbnail,
.media-frame-content[data-columns="2"] .unsplash-attachment:nth-child(1) .thumbnail,
.media-frame-content[data-columns="2"] .unsplash-attachment:nth-child(2) .thumbnail,
.media-frame-content[data-columns="1"] .unsplash-attachment:nth-child(1) .thumbnail {

/* offset the images in the first row to ensure focus/active state has space */
margin-top: 3px;
}

@media only screen and (max-width: 900px) {

.media-frame .unsplash-browser .unsplash-error {
Expand Down

0 comments on commit 7b14078

Please sign in to comment.