Improved mobile page menu / page header
authorMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 16:03:22 +0000 (18:03 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 14 Jul 2016 16:03:22 +0000 (18:03 +0200)
wcfsetup/install/files/style/layout/pageHeaderSticky.scss
wcfsetup/install/files/style/ui/menuMobile.scss

index e2fc42e2c9a3857030fb71059136e58d7657dea3..4dd8994015c4c8f89206fa00269f155394f397f6 100644 (file)
                .pageHeaderSearchInputContainer {
                        border-radius: 0;
                        display: flex;
+                       flex-wrap: wrap;
                        
-                       .pageHeaderSearchType > .button {
-                               border-radius: 0;
+                       .pageHeaderSearchType {
+                               flex: 0 0 100%;
+                               margin-bottom: 3px;
                                
-                               // input field is larger on iOS
-                               align-items: center;
-                               display: flex;
+                               > .button {
+                                       border-radius: 0;
+                                       max-width: unset;
+                                       min-width: unset;
+                                       width: 100%;
+                                       
+                                       // input field is larger on iOS
+                                       align-items: center;
+                                       display: flex;
+                               }
                        }
                        
                        .pageHeaderSearchInput {
index bdaf463fd217b2c38d68935de0c256e538407f43..354394ac5295b6260d9d0315a9494c4dc3053e1f 100644 (file)
        justify-content: flex-end;
        
        > .menuOverlayItemLink {
-               align-items: center;
-               display: flex;
                flex: 1 1 auto;
        }
 }
 }
 
 .menuOverlayItemLink {
+       align-items: center;
        background-color: rgb(44, 62, 80);
+       display: flex;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
                color: #fff;
        }
        
+       &:hover {
+               color: rgb(255, 255, 255);
+       }
+       
        /* wrapper class for links containing an additional badge */
        &.menuOverlayItemBadge {
                align-items: center;
        font-family: FontAwesome;
        font-size: 18px;
        position: absolute;
-       left: 10px;
+       left: 12px;
        top: 50%;
        transform: translateY(-50%);
 }