From 69e5d127cd4a221ad2cf3c4d10bb33946bd7efc8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 16 Apr 2020 22:36:08 +0200 Subject: [PATCH] Merge branch 'responsive_gallery' into dev10 --- module/gallery/view/gallery/gallery.css | 23 +++++++++++++-- module/gallery/view/gallery/gallery.php | 37 ++++++++++--------------- module/gallery/view/index/index.css | 25 +++++++++++++++-- module/gallery/view/index/index.php | 14 +++------- 4 files changed, 62 insertions(+), 37 deletions(-) diff --git a/module/gallery/view/gallery/gallery.css b/module/gallery/view/gallery/gallery.css index 9206e2d7..479e5087 100644 --- a/module/gallery/view/gallery/gallery.css +++ b/module/gallery/view/gallery/gallery.css @@ -17,8 +17,27 @@ left: 0; right: 0; bottom: 0; - padding: 10px; + padding: 6px; background: rgba(0, 0, 0, .6); color: #FFF; text-align: center; -} \ No newline at end of file +} +.galleryRow { + display: flex; + flex-wrap: wrap; + justify-content: center; +} + +.colPicture { + width : 16em; + max-width: 50%; + margin: 0.5em; + } + + @media (max-width: 432px) { + .colPicture { + width: 90%; + max-width: 90%; + margin: 0.5em; + } + } \ No newline at end of file diff --git a/module/gallery/view/gallery/gallery.php b/module/gallery/view/gallery/gallery.php index dec20640..a87e3254 100644 --- a/module/gallery/view/gallery/gallery.php +++ b/module/gallery/view/gallery/gallery.php @@ -8,26 +8,19 @@ ]); ?> - - +
$legend): ?> - -
- - - -
- - - \ No newline at end of file + + +
\ No newline at end of file diff --git a/module/gallery/view/index/index.css b/module/gallery/view/index/index.css index 405f47ac..f7137dba 100644 --- a/module/gallery/view/index/index.css +++ b/module/gallery/view/index/index.css @@ -1,7 +1,7 @@ .galleryPicture { display: block; border: 1px solid #DDD; - height: 200px; + height: 150px; background-size: cover; background-repeat: no-repeat; background-position: center; @@ -17,8 +17,27 @@ left: 0; right: 0; bottom: 0; - padding: 10px; + padding: 6px; background: rgba(0, 0, 0, .6); color: #FFF; text-align: center; -} \ No newline at end of file +} +.galleryRow { + display: flex; + flex-wrap: wrap; + justify-content: center; +} + +.colPicture { + width : 16em; + max-width: 50%; + margin: 0.5em; + } + + @media (max-width: 432px) { + .colPicture { + width: 90%; + max-width: 90%; + margin: 0.5em; + } + } \ No newline at end of file diff --git a/module/gallery/view/index/index.php b/module/gallery/view/index/index.php index 707c330d..e59bddb4 100644 --- a/module/gallery/view/index/index.php +++ b/module/gallery/view/index/index.php @@ -1,11 +1,8 @@ - - +
$gallery): ?> - -
- -
+ +
- -
- - +
\ No newline at end of file