Overhauled css for entry navigation
authorMarcel Werk <burntime@woltlab.com>
Fri, 2 Dec 2016 11:37:55 +0000 (12:37 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 2 Dec 2016 11:37:55 +0000 (12:37 +0100)
wcfsetup/install/files/style/ui/article.scss

index afb2af82ada947356ea4eae9f71c2639c4c190e0..d447210e5f34a5c455ad754ea4ad2121961981af 100644 (file)
        
        .previousArticleButton,
        .nextArticleButton {
+               display: flex;
+               
                @include screen-md-up {
-                       width: 50%;
+                       flex: 0 0 50%;
                }
                
                > a {
                        color: $wcfContentText;
-                       display: block;
+                       display: flex;
                        
                        &::before {
+                               align-self: center;
+                               display: block;
+                               flex: 0 0 auto;
                                font-family: FontAwesome;
                                font-size: 36px;
-                               display: block;
-                               margin-top: 20px;
+                       }
+                       
+                       > div {
+                               flex: 1 1 auto;
                        }
                        
                        .articleNavigationEntityName,
                
                > a {
                        &::before {
-                               float: left;
                                content: $fa-var-chevron-left;
                        }
                        
                        > div {
-                               margin-left: 36px;
+                               margin-left: 10px;
                        }
                }
        }
        
        .nextArticleButton {
+               justify-content: flex-end;
                text-align: right;
                
                @include screen-md-up {
                
                > a {
                        &::before {
-                               float: right;
                                content: $fa-var-chevron-right;
+                               order: 1;
                        }
                        
                        > div {
-                               margin-right: 36px;
+                               margin-right: 10px;
                        }
                }
        }