render source overlay content by path ext, rather than type

This commit is contained in:
Lachlan Kermode
2019-01-03 11:48:40 +00:00
parent cf03cef3f7
commit c98d4cc73d
3 changed files with 92 additions and 110 deletions

View File

@@ -48,34 +48,45 @@ $header-inset: 10px;
.mo-container {
background-color: rgba(239, 239, 239, 0.9);
max-width: $panel-width;
min-width: $panel-width;
max-height: $panel-height;
min-height: $panel-height;
// max-width: $panel-width;
// min-width: $panel-width;
// max-height: $panel-height;
// min-height: $panel-height;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
height: 80vh;
max-width: 90vw;
.mo-media-container {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
}
.mo-media-container {
// padding-top: 3*$header-inset;
font-family: "Lato", Helvetica, sans-serif;
// max-height: $vimeo-height;
min-width: 100%;
max-height: 500px;
max-height: 60vh;
overflow-y: auto;
.media-player {
width: 100%;
max-width: $vimeo-width;
}
.media-content {
display: flex;
flex-direction: column;
}
// NB: topcushion seems to be necessary with certain overflows..
&.topcushion {
padding-top: 150px;
}
}
.mo-meta-container {
@@ -146,8 +157,10 @@ $header-inset: 10px;
.source-image-container {
padding: 0 25px;
overflow-y: scroll;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.source-image, .source-video {