From 3274716c1441bcba970a521a16b376f38c562a86 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 11 Nov 2013 14:48:24 +0100 Subject: [PATCH] Overriding collapsed sidebar in mobile optimization --- wcfsetup/install/files/style/layout.less | 38 +++++++++++++----------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/wcfsetup/install/files/style/layout.less b/wcfsetup/install/files/style/layout.less index 40c4754e8b..9c33bc1f8b 100644 --- a/wcfsetup/install/files/style/layout.less +++ b/wcfsetup/install/files/style/layout.less @@ -644,24 +644,6 @@ display: none; } } - - &.sidebarOrientationRight { - &.sidebarCollapsed > div > div { - > .sidebar { - width: 20px; - - > span > .collapsibleButton { - &::before { - content: "\f053"; - } - } - - > div { - width: 0; - } - } - } - } } @media only screen and (max-width: 800px) { @@ -787,6 +769,26 @@ } } +@media only screen and (min-width: 801px) { + #main.sidebarOrientationRight.sidebarCollapsed { + > div > div { + > .sidebar { + width: 20px; + + > span > .collapsibleButton { + &::before { + content: "\f053"; + } + } + + > div { + width: 0; + } + } + } + } +} + /* basic layout elements */ .boxHeadline { margin-top: @wcfGapMedium; -- 2.20.1