From 3d614df88e815215d92a368c55d5e204838d3f7d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 8 Jun 2021 17:43:50 +0200 Subject: [PATCH] Revert "Fix usertools vertical alignment" This reverts commit ed2d0a627543bf8d7734381ce06ee6b5328f94ec. --- css/area_nav-usertools.less | 44 ++++++++++++++++++++++++++--------- tpl/nav-usertools-buttons.php | 2 +- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/css/area_nav-usertools.less b/css/area_nav-usertools.less index a8fbe76..fdba9c3 100755 --- a/css/area_nav-usertools.less +++ b/css/area_nav-usertools.less @@ -66,18 +66,35 @@ border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius text-align: center; margin: 0; + + @media @screen_md-xlg { + padding-top: .14rem; + } } /* !!! &.user-task FIND in plugins/do_tasks.less !!! */ &.user { position: relative; - display: table; + display: table-cell; background-color: @ini_background_site; border: solid 1px @wikiicons-border; border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius color: @ini_text_webframe; padding-right: .3rem; + @media @screen_min-md { + padding-top: .35rem; + } + + @media @screen_max-md { + min-height: @toggle-size; + padding-top: .3rem; + } + + @media @screen_max-sm { + padding-top: .35rem; + } + @media @screen_max-xs { position: absolute; top: @headericons-margin-xxs; @@ -85,19 +102,14 @@ overflow: hidden; white-space: nowrap; margin: -1px 0 0; + padding-top: .4rem; } @media @screen_max-xxs { left: -10px; right: 0; width: auto; - } - - > span { - display: table-cell; - vertical-align: middle; - border: unset; - min-width: unset; + padding-top: .35rem; } > a { @@ -188,6 +200,19 @@ left: -2px; font-size: 1.4rem; margin: 0; + + @media @screen_min-xxlg { + top: -.25rem; + } + + @media @screen_max-xxlg { + top: -.2rem; + } + + @media @screen_max-xs { + top: -.25rem; + + } } } } // user @@ -277,13 +302,11 @@ li.user { color: @ini_background_site; - margin: 0; bdi { position: absolute; width: 0; padding: 0; - margin: 0; text-indent: -10000px; &:before { @@ -291,7 +314,6 @@ background-color: @ini_background_site; color: @ini_nav_menu_color; text-indent: 0; - left: -4px; } } diff --git a/tpl/nav-usertools-buttons.php b/tpl/nav-usertools-buttons.php index 6ddef4a..f93cbb4 100755 --- a/tpl/nav-usertools-buttons.php +++ b/tpl/nav-usertools-buttons.php @@ -22,7 +22,7 @@ '.$lang['loggedinas'].' '.userlink().''; + echo '
  • '.$lang['loggedinas'].' '.userlink().'
  • '; }?>