From 842ee526df87810e6f4ffb54e0a2a6e912cd45c6 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Wed, 29 Nov 2017 10:11:56 -0800 Subject: [PATCH] fixed css to center image --- public/assets/css/general.css | 37 +++++++++++++++++------------- public/assets/css/mediaQueries.css | 2 +- views/partials/asset.handlebars | 5 ++-- views/partials/image.handlebars | 2 +- views/partials/video.handlebars | 4 ++-- views/showLite.handlebars | 5 ++-- 6 files changed, 31 insertions(+), 24 deletions(-) diff --git a/public/assets/css/general.css b/public/assets/css/general.css index ea6d4b83..c8f0f2f5 100644 --- a/public/assets/css/general.css +++ b/public/assets/css/general.css @@ -501,27 +501,32 @@ table { width: calc(100% - 1rem); } -/* Show page */ - -#video-player { - display: block; - margin: 0 auto; - background-color: #fff; - cursor: pointer; -} -#showlite-body #video-player { - margin-top: 2%; - padding: 6px; - max-width: 50%; - border: 1px solid #d0d0d0; -} +/* Assets */ .asset { max-width: 100%; } -#showlite-body > .asset { - max-width: 50%; +#show-body #asset-boilerpate { + display: none; +} + +#showlite-body #asset-display-component { + max-width: 50%; + text-align: center; +} + +/* video */ + +#video-asset { + background-color: #fff; + cursor: pointer; +} +#showlite-body #video-asset { + width: calc(100% - 12px - 12px - 2px); + margin: 6px; + padding: 6px; + border: 1px solid #d0d0d0; } /* item lists */ diff --git a/public/assets/css/mediaQueries.css b/public/assets/css/mediaQueries.css index 4f632183..251d419b 100644 --- a/public/assets/css/mediaQueries.css +++ b/public/assets/css/mediaQueries.css @@ -36,7 +36,7 @@ padding-right: 1.5em; } - #showlite-body > asset { + #showlite-body #asset-display-component { max-width: 100%; } diff --git a/views/partials/asset.handlebars b/views/partials/asset.handlebars index 534f19f9..74207825 100644 --- a/views/partials/asset.handlebars +++ b/views/partials/asset.handlebars @@ -9,6 +9,7 @@ {{> image}} {{/ifConditional}} + hosted via Spee<h