Revert "Fix usertools vertical alignment"

This reverts commit ed2d0a6275.
This commit is contained in:
Andreas Gohr 2021-06-08 17:43:50 +02:00
commit 3d614df88e
2 changed files with 34 additions and 12 deletions

View file

@ -66,18 +66,35 @@
border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
text-align: center; text-align: center;
margin: 0; margin: 0;
@media @screen_md-xlg {
padding-top: .14rem;
}
} }
/* !!! &.user-task FIND in plugins/do_tasks.less !!! */ /* !!! &.user-task FIND in plugins/do_tasks.less !!! */
&.user { &.user {
position: relative; position: relative;
display: table; display: table-cell;
background-color: @ini_background_site; background-color: @ini_background_site;
border: solid 1px @wikiicons-border; border: solid 1px @wikiicons-border;
border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
color: @ini_text_webframe; color: @ini_text_webframe;
padding-right: .3rem; 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 { @media @screen_max-xs {
position: absolute; position: absolute;
top: @headericons-margin-xxs; top: @headericons-margin-xxs;
@ -85,19 +102,14 @@
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
margin: -1px 0 0; margin: -1px 0 0;
padding-top: .4rem;
} }
@media @screen_max-xxs { @media @screen_max-xxs {
left: -10px; left: -10px;
right: 0; right: 0;
width: auto; width: auto;
} padding-top: .35rem;
> span {
display: table-cell;
vertical-align: middle;
border: unset;
min-width: unset;
} }
> a { > a {
@ -188,6 +200,19 @@
left: -2px; left: -2px;
font-size: 1.4rem; font-size: 1.4rem;
margin: 0; margin: 0;
@media @screen_min-xxlg {
top: -.25rem;
}
@media @screen_max-xxlg {
top: -.2rem;
}
@media @screen_max-xs {
top: -.25rem;
}
} }
} }
} // user } // user
@ -277,13 +302,11 @@
li.user { li.user {
color: @ini_background_site; color: @ini_background_site;
margin: 0;
bdi { bdi {
position: absolute; position: absolute;
width: 0; width: 0;
padding: 0; padding: 0;
margin: 0;
text-indent: -10000px; text-indent: -10000px;
&:before { &:before {
@ -291,7 +314,6 @@
background-color: @ini_background_site; background-color: @ini_background_site;
color: @ini_nav_menu_color; color: @ini_nav_menu_color;
text-indent: 0; text-indent: 0;
left: -4px;
} }
} }

View file

@ -22,7 +22,7 @@
<?php <?php
if (!empty($_SERVER['REMOTE_USER'])) { if (!empty($_SERVER['REMOTE_USER'])) {
echo '<li class="user"><span><span class="sr-only">'.$lang['loggedinas'].' </span>'.userlink().'</span></li>'; echo '<li class="user"><span class="sr-only">'.$lang['loggedinas'].' </span>'.userlink().'</li>';
}?> }?>
<?php /* dokuwiki user tools */ <?php /* dokuwiki user tools */