diff options
author | jpope777 <jpope@jpope.org> | 2014-12-02 16:54:24 -0600 |
---|---|---|
committer | jpope777 <jpope@jpope.org> | 2014-12-02 16:54:24 -0600 |
commit | 03ff0b368e8cd8c73c4e32f050faa38afe66d5c4 (patch) | |
tree | 280ae60e08f5044866c3c9e62273d26ca168fe18 /mediagoblin/static | |
parent | 5436d980a104b5c20264f44ab9ae881250bdf1b0 (diff) | |
download | mediagoblin-03ff0b368e8cd8c73c4e32f050faa38afe66d5c4.tar.lz mediagoblin-03ff0b368e8cd8c73c4e32f050faa38afe66d5c4.tar.xz mediagoblin-03ff0b368e8cd8c73c4e32f050faa38afe66d5c4.zip |
Fix #1046 - Media breaking out of container
Diffstat (limited to 'mediagoblin/static')
-rw-r--r-- | mediagoblin/static/css/audio.css | 3 | ||||
-rw-r--r-- | mediagoblin/static/css/base.css | 38 |
2 files changed, 38 insertions, 3 deletions
diff --git a/mediagoblin/static/css/audio.css b/mediagoblin/static/css/audio.css index e007a0e1..5c50e727 100644 --- a/mediagoblin/static/css/audio.css +++ b/mediagoblin/static/css/audio.css @@ -1,6 +1,9 @@ .audio-spectrogram { position: relative; } +.audio-spectrogram > img { + width: 100%; +} .playhead { position: absolute; top: 0; diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 0b862aee..f8726708 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -211,14 +211,20 @@ footer { } .media_image_container { - display: flex; - justify-content: center; } .media_image { + display: block; + margin-left: auto; + margin-right: auto; max-width: 100%; } +.media_other_container { + display: flex; + justify-content: center; +} + .media_pane { /* in place for possible future wide view */ /* border-bottom: 1px solid #333333;*/ @@ -887,7 +893,12 @@ pre { margin-left:3px; margin-right:3px; } + #thingy_view { + width:640px; + height:640px; + } } + /* Tablet Portrait size to standard 960 (devices and browsers) */ @media only screen and (min-width: 768px) and (max-width: 959px) { .container .three.columns.media_thumbnail { @@ -896,7 +907,7 @@ pre { margin-right:2px; } .media_thumbnail.thumb_entry img { - margin-left: -16.5px; + max-width:100%; } .thumb_gallery { margin-left: 0; @@ -904,7 +915,12 @@ pre { } .navigation_button { } + #thingy_view { + width:508px; + height:508px; + } } + /* All Mobile Sizes (devices and browser) */ @media screen and (max-width: 767px) { .thumb_row { @@ -946,6 +962,22 @@ pre { } } +/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ +@media only screen and (min-width: 480px) and (max-width: 767px) { + #thingy_view { + width:420px; + height:420px; + } +} + +/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ +@media only screen and (max-width: 479px) { + #thingy_view { + width:300px; + height:300px; + } +} + p.verifier { text-align:center; font-size:50px; |