From 35047b4b238e0f903e9f4d9db4ac635fb3a17c11 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 23 Mar 2013 15:20:36 +0100 Subject: [PATCH] Add optimizations for mobile devices (WIP) --- wcfsetup/install/files/style/alert.less | 15 +++++++++++++++ wcfsetup/install/files/style/layout.less | 8 -------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/style/alert.less b/wcfsetup/install/files/style/alert.less index d50ad4d147..881ed51d29 100644 --- a/wcfsetup/install/files/style/alert.less +++ b/wcfsetup/install/files/style/alert.less @@ -30,6 +30,21 @@ } } +@media only screen and (max-width: 640px) { + .info, + .error, + .success, + .warning { + margin-left: @wcfGapSmall; + margin-right: @wcfGapSmall; + padding: @wcfGapTiny @wcfGapSmall; + + &:after { + display: none; + } + } +} + /* types */ .info { background-color: @wcfInfoBackgroundColor; diff --git a/wcfsetup/install/files/style/layout.less b/wcfsetup/install/files/style/layout.less index ca429f72ab..b0f812bd64 100644 --- a/wcfsetup/install/files/style/layout.less +++ b/wcfsetup/install/files/style/layout.less @@ -711,10 +711,6 @@ -webkit-box-sizing:border-box; padding-left: @wcfGapSmall; padding-right: @wcfGapSmall; - - > * { - margin-top: @wcfGapSmall; - } } } @@ -1624,10 +1620,6 @@ ul.inlineDataList { } } } - - .contentNavigation .pageNavigation { - margin-top: @wcfGapSmall + 5; - } } .statusDisplay .pageNavigation { -- 2.20.1