Add optimizations for mobile devices (WIP)
authorMarcel Werk <burntime@woltlab.com>
Mon, 18 Mar 2013 00:37:00 +0000 (01:37 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 18 Mar 2013 00:37:00 +0000 (01:37 +0100)
wcfsetup/install/files/style/layout.less

index e7a956372ad9b6b725e77e84dd5fa9031a1c10dd..d7eb386f673fd07c22ac043feb8c5c0027645f3e 100644 (file)
 
 @media only screen and (max-device-width: 480px) {
        .mainMenu {
+               float: left;
                min-height: 38px;
                position: relative;
                z-index: 150;
                                font-size: 120% !important;
                                margin: 0 !important;
                                padding: 0 !important;
-                               width: 100%;
+                               overflow: hidden;
+                               text-overflow: ellipsis;
+                               width: 120px;
+                               white-space: nowrap;
                                
                                &.active {
                                        display: block;
                                                        content: "\f03a";
                                                        font-family: FontAwesome;
                                                        font-size: 14px;
-                                                       left: 10px;
+                                                       left: 7px;
                                                        position: absolute;
                                                        top: 7px;
                                                }
                                        border: 0 !important;
                                        color: @wcfMainMenuColor !important;
                                        font-weight: normal !important;
-                                       padding: 5px 5px 5px 32px !important;
+                                       padding: 4px 4px 4px 28px !important;
                                        position: relative;
                                        text-align: left !important;
                                }
        .navigationHeader {
                background-color: transparent;
                border: 0;
+               float: left;
+               margin-left: 127px;
                min-height: 38px;
                position: relative;
                z-index: 149;
                                display: none;
                                font-size: 120% !important;
                                margin: 0 !important;
-                               width: 100%;
+                               overflow: hidden;
+                               text-overflow: ellipsis;
+                               width: 176px;
+                               white-space: nowrap;
                                
                                &:first-child {
                                        display: block;
                                                        content: "\f03a";
                                                        font-family: FontAwesome;
                                                        font-size: 14px;
-                                                       left: 10px;
+                                                       left: 7px;
                                                        position: absolute;
                                                        top: 7px;
                                                }
                                        color: @wcfMainMenuColor !important;
                                        display: inline-block;
                                        font-weight: normal !important;
-                                       padding: 5px 5px 5px 32px !important;
+                                       padding: 4px 4px 4px 28px !important;
                                        position: relative;
                                        text-align: left !important;
                                }
 @media only screen and (max-device-width: 480px) {
        /* hide sidebar */
        #main {
+               margin-top: 96px;
+               
                .sidebar {
                        display: none;
                }