Added mobile optimization
authorAlexander Ebert <ebert@woltlab.com>
Thu, 17 Mar 2016 12:48:21 +0000 (13:48 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 17 Mar 2016 12:48:21 +0000 (13:48 +0100)
wcfsetup/install/files/style/ui/userProfile.scss

index 6dfb6cdad36176792fd4d9149659257de74408ae..fcedee12856d811fa965b13f8d02e7105c103d52 100644 (file)
@@ -3,8 +3,16 @@
 }
 .userProfileCoverPhoto {
        background-image: url('../images/user-profile-header.jpg'); // todo
+       background-position: center;
        background-size: cover;
-       height: 200px;
+       
+       @include large-screen-only {
+               height: 200px;
+       }
+       
+       @include small-screen-only {
+               height: 100px;
+       }
 }
 
 .userProfileUser {
        > .layoutBoundary {
                align-items: center;
                display: flex;
-               padding: 5px 0 10px 160px;
+               padding: 5px 10px 10px 160px;
                position: relative;
+               
+               @include small-screen-only {
+                       padding-left: 90px;
+               }
        }
        
        .userAvatar {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
+               
+               @include small-screen-only {
+                       .userAvatarImage {
+                               height: 64px !important;
+                               width: 64px !important;
+                       }
+               }
        }
        
        .contentHeader {
        }
        
        .buttonGroupNavigation {
-               flex: 0 0 auto;
-               margin-left: 10px;
-               
-               .button {
-                       background-color: $wcfHeaderMenuBackground;
-                       color: $wcfHeaderMenuLink;
+               @include large-screen-only {
+                       flex: 0 0 auto;
+                       margin-left: 10px;
                        
-                       &.active,
-                       &:hover {
-                               background-color: $wcfHeaderMenuBackgroundActive;
-                               color: $wcfHeaderMenuLinkActive;
+                       .button {
+                               background-color: $wcfHeaderMenuBackground;
+                               color: $wcfHeaderMenuLink;
+                               
+                               &.active,
+                               &:hover {
+                                       background-color: $wcfHeaderMenuBackgroundActive;
+                                       color: $wcfHeaderMenuLinkActive;
+                               }
                        }
                }
+               
+               @include small-screen-only {
+                       display: none;
+               }
        }
 }
 
        background-color: $wcfSidebarBackground;
        
        > .layoutBoundary {
-               padding: 10px 0 10px 160px;
+               padding: 10px 10px 10px 160px;
+               
+               @include small-screen-only {
+                       padding: 20px 10px 10px;
+               }
        }
 }