Skip to content

Commit

Permalink
fix formatting of images where height/width is unset on exp-lookit-im…
Browse files Browse the repository at this point in the history
…ages-audio in fullscreen mode; center images on text page
  • Loading branch information
Kim Scott committed Dec 8, 2020
1 parent 6d65b2c commit ee74090
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 6 additions & 0 deletions app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
.exp-text {
margin: auto;
max-width: 65em;

img {
max-width: 100%;
display: block;
margin: auto;
}
}

.vertical-pad, .vertical-pad-md {
Expand Down
15 changes: 6 additions & 9 deletions app/styles/full-screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@
overflow: scroll;
}

#experiment-player.player-fullscreen div {
#experiment-player.player-fullscreen div.lookit-frame {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}

#experiment-player.player-fullscreen .lookit-frame {
display: table;
}

#experiment-player.player-fullscreen .lookit-frame > div {
display: table-cell;
text-align: center;
vertical-align: middle;
> div {
display: table-cell;
text-align: center;
vertical-align: middle;
}
}

video.player-fullscreen::-webkit-media-controls {
Expand Down

0 comments on commit ee74090

Please sign in to comment.