diff --git a/css/gallerybutton.css b/css/gallerybutton.css index 5dbf1f86f..c30f49293 100644 --- a/css/gallerybutton.css +++ b/css/gallerybutton.css @@ -1,16 +1,10 @@ /* Gallery buttons design */ -#controls .left { - float: left; -} - #controls .button.view-switcher { - float: right; - margin-top: 5px; padding: 6px 11px; + margin-left: auto; } #controls .button.view-switcher.gallery { - float: none; margin-right: 4px; padding: 9px 11px; } @@ -28,15 +22,12 @@ #controls .button.left-switch-button, #controls .button.left-switch-button:hover { - float: right; display: inline; border-radius: 3px 0 0 3px; - margin-left: 3px; margin-right: 0; } #controls .button.right-switch-button { - float: right; display: inline; border-radius: 0 3px 3px 0; margin-left: -1px; @@ -68,11 +59,6 @@ border: 1px solid rgba(240, 240, 240, .9); } -#controls .button.view-switcher:hover { - color: #111; - border: 1px solid rgba(240, 240, 240, .9); -} - /* Original Flip CSS by David Walsh http://davidwalsh.name/css-flip*/ diff --git a/css/public.css b/css/public.css index 3116416d5..99d7e22b3 100644 --- a/css/public.css +++ b/css/public.css @@ -58,3 +58,8 @@ html.ie #content { #gallery.hascontrols { padding-bottom: 0; } + +#controls .buttons { + display: flex; + flex: 1 1; +} diff --git a/css/styles.css b/css/styles.css index f3092b326..8cfd4dc3b 100644 --- a/css/styles.css +++ b/css/styles.css @@ -6,12 +6,9 @@ body:after { content: url("../img/nameasc.svg") url("../img/namedes.svg") url("../img/dateasc.svg") url("../img/datedes.svg"); } -#breadcrumbs { - float: left; -} - -.breadcrumbs-droppable { - +#controls { + width: 100%; + top: 45px; } .breadcrumbs-droppable-hover { @@ -20,17 +17,30 @@ body:after { transition: transform .1s ease-in; } +/* Two ugly hacks to fix breadcrumbs in Gallery */ +div.crumb:not(:first-child) { + position: relative; + top: -3px; +} + +div.crumb.last { + margin-right: 10px; +} + div.crumb.last a { cursor: default; } #controls .button { - margin-top: 5px; width: 40px; } -#controls > .right { - float: right; +#controls .button:not(:last-child) { + margin-right: 3px; +} + +#controls .actions > .right { + margin-left: auto; } #album-info-button { @@ -70,6 +80,8 @@ div.crumb.last a { } #content-wrapper { + position: relative; + padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; -webkit-transition: background-color 1s linear; @@ -80,10 +92,8 @@ div.crumb.last a { position: relative; overflow: hidden; text-align: justify; - top: 45px; padding-bottom: 10px; margin-bottom: 45px; - margin-top: 0; } #gallery .row { diff --git a/css/upload.css b/css/upload.css index 796e2a621..b7f318c66 100644 --- a/css/upload.css +++ b/css/upload.css @@ -13,7 +13,7 @@ } .actions { - float: left; + padding: 5px; } .actions input, .actions button, .actions .button { @@ -34,6 +34,8 @@ .actions.creatable { position: relative; z-index: -30; + display: flex; + flex: 1 1; } .newFileMenu { @@ -71,4 +73,4 @@ padding-left: 5px; color: #000; padding: 0; -} \ No newline at end of file +} diff --git a/js/gallerybutton.js b/js/gallerybutton.js index 491929379..8bd01f97b 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -81,7 +81,7 @@ $(document).ready(function () { window.location.href = GalleryButton.url; }); - $('#controls').prepend(GalleryButton.button); + $('#controls .actions').append(GalleryButton.button); } } ); diff --git a/templates/part.content.php b/templates/part.content.php index e4c70c341..917855684 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -38,30 +38,30 @@ ?>
-
- -
-
- <?php p($l->t('Sort by date')); ?> - <?php p($l->t('Sort by date')); ?> +
+
+ +
+
+ <?php p($l->t('Sort by name')); ?> + <?php p($l->t('Sort by name')); ?> +
-
-
-
- <?php p($l->t('Sort by name')); ?> - <?php p($l->t('Sort by name')); ?> +
+
+ <?php p($l->t('Sort by date')); ?> + <?php p($l->t('Sort by date')); ?> +
-
-
+
+ +
+ <?php p($l->t("/> +
+ + +
+ + <?php p($l->t('Album information')); ?> +
+
+
+
+
+ + +
- - -
- <?php p($l->t("/> -
- - -
- - <?php p($l->t('Album information')); ?> -
-
-
-
-
- - -
diff --git a/templates/public.php b/templates/public.php index 2ca1b071c..28e6271b9 100644 --- a/templates/public.php +++ b/templates/public.php @@ -74,17 +74,7 @@ class="icon-confirm svg" disabled>
-
-
-
- <?php p($l->t('Sort by date')); ?> - <?php p($l->t('Sort by date')); ?> -
-
+
); ?>" alt="t('Sort by name')); ?>"/>
-
- +
+
+ <?php p($l->t('Sort by date')); ?> + <?php p($l->t('Sort by date')); ?> +
+
image_path('core', 'actions/toggle-filelist.svg') ); ?>" alt="t('Picture view')); ?>"/>
-
+