SPR-838: pixel search toggle vs. nav main ico

This commit is contained in:
Jana Deutschländer 2017-02-22 16:32:36 +01:00
commit e6265a933f

View file

@ -5,8 +5,11 @@
*/ */
.search.main-sidebar { .search.main-sidebar {
;
@main-ico-dummy: @font-size-big + @margin-small*2; //FIXME copied from area_main-sidebar-nav
@icon-size: @page-header_height; @icon-size: @page-header_height;
@icon-search_font-size: 25px; @icon-search_font-size: @font-size-big;
p.toggleSearch a, p.toggleSearch a,
button[type="submit"] { button[type="submit"] {
.fontello(); .fontello();
@ -44,7 +47,8 @@
margin: -2px 0 0; // reverse transparent border and box-sizing of a child margin: -2px 0 0; // reverse transparent border and box-sizing of a child
padding: 0; padding: 0;
a { a {
width: @toggle-showsidebar_width + 0.1; /* must be a bit a wider than @toggle-showsidebar_width to hide right border on hover / focus */ min-width: (@toggle-showsidebar_width + 0.1); /* must be a bit a wider than @toggle-showsidebar_width to hide right border */
width: @main-ico-dummy;
border: solid 1px transparent; border: solid 1px transparent;
border-bottom: solid 1px @color-border; border-bottom: solid 1px @color-border;
border-radius: @fix_border-radius 0 0 0; border-radius: @fix_border-radius 0 0 0;
@ -58,8 +62,8 @@
&::before { &::before {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: .8rem; left: 0;
text-align: left; text-align: center;
margin-top: -(@icon-search_font-size / 2); margin-top: -(@icon-search_font-size / 2);
} }
} }