From b4a9bd98ec42e057f3ea4636ea3949dc5e2dc375 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 21 Mar 2016 15:19:12 +0100 Subject: [PATCH] Improved mobile optimization for `.contentNavigation` --- .../install/files/style/layout/content.scss | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/wcfsetup/install/files/style/layout/content.scss b/wcfsetup/install/files/style/layout/content.scss index 354f9aa16a..82cfbd044c 100644 --- a/wcfsetup/install/files/style/layout/content.scss +++ b/wcfsetup/install/files/style/layout/content.scss @@ -273,19 +273,10 @@ fieldset { } @include small-screen-only { - > nav + nav > ul { - // gap between pagination and navigation buttons - margin-top: 10px; - } - ul { margin-top: 30px; > li { - & + li { - margin-top: 10px; - } - > .button { display: block; padding: 7px 10px; @@ -293,5 +284,24 @@ fieldset { } } } + + > nav:not(.pagination) > ul > li + li { + margin-top: 10px; + } + } +} + +@include small-screen-only { + .contentNavigation > .pagination { + display: none; + } + + .section ~ .contentNavigation > .pagination { + display: block; + + & + nav { + // gap between pagination and navigation buttons + margin-top: 10px; + } } } -- 2.20.1