Improved alignment of <nav> in .contentNavigation
authorAlexander Ebert <ebert@woltlab.com>
Mon, 11 Jan 2016 14:04:04 +0000 (15:04 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 11 Jan 2016 14:04:04 +0000 (15:04 +0100)
wcfsetup/install/files/style/layout/navigation.scss

index ed1d9169dd142011703f13411347fb8b24271c8b..7461a7d4c557f5c98845d722cdb0e7e06816a09a 100644 (file)
@@ -49,6 +49,9 @@
        align-items: center;
        display: flex;
        
+       // align <nav> to the right side
+       justify-content: flex-end;
+       
        &:not(:first-child) {
                margin-top: 20px;
        }
        }
        
        > nav {
-               flex: 1 1 auto;
+               flex: 0 0 auto;
                order: 3;
                
                &.pageNavigation {
                        order: 1;
+                       
+                       // use up maximum space, causing it to stick to the left while all other
+                       // <nav> elements will still be aligned to the right side
+                       flex: 1 1 auto;
                }
                
                &.jsClipboardEditor {