SPR-742: Konfigurierbarkeit - search
This commit is contained in:
parent
7db19d88c1
commit
848988de45
1 changed files with 61 additions and 13 deletions
|
@ -5,35 +5,40 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.search.main-sidebar {
|
.search.main-sidebar {
|
||||||
;
|
|
||||||
@main-ico-dummy: @font-size-big + @margin-small*2; //FIXME copied from area_main-sidebar-nav
|
@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: @font-size-big;
|
@icon-search_font-size: @font-size-big;
|
||||||
|
|
||||||
p.toggleSearch a,
|
p.toggleSearch a,
|
||||||
button[type="submit"] {
|
button[type="submit"] {
|
||||||
.fontello();
|
.fontello();
|
||||||
.hide-text-show-before();
|
.hide-text-show-before();
|
||||||
.icon-search();
|
.icon-search();
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
width: @icon-size;
|
width: @icon-size;
|
||||||
min-height: @icon-size;
|
min-height: @icon-size;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
background-color: transparent;
|
background-color: transparent; // fix
|
||||||
color: @color-nav;
|
border: solid 1px transparent;
|
||||||
|
color: @color-nav; // fix
|
||||||
padding: 0;
|
padding: 0;
|
||||||
transition: @transition color, @transition background-color, @transition border-color;
|
transition: @transition color, @transition background-color, @transition border-color;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active {
|
&:active {
|
||||||
|
min-height: @icon-size;
|
||||||
background-color: @button_color;
|
background-color: @button_color;
|
||||||
border: solid 1px @button_background;
|
border: solid 1px @button_background;
|
||||||
color: @button_background;
|
color: @button_background;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
background-color: @button_background;
|
background-color: @button_background;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -42,54 +47,89 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p.toggleSearch {
|
p.toggleSearch {
|
||||||
display: none;
|
display: none;
|
||||||
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;
|
||||||
|
|
||||||
@media @screen_max-xxlg {
|
@media @screen_max-xxlg {
|
||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
min-width: (@toggle-showsidebar_width + 0.1); /* must be a bit a wider than @toggle-showsidebar_width to hide right border */
|
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;
|
width: @main-ico-dummy;
|
||||||
border: solid 1px transparent;
|
border-radius: @fix_border-radius;
|
||||||
border-bottom: solid 1px @color-border;
|
|
||||||
border-radius: @fix_border-radius 0 0 0;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
&:hover,
|
|
||||||
&:focus,
|
|
||||||
&:active {
|
|
||||||
border-radius: @fix_border-radius 0 0 @fix_border-radius;
|
|
||||||
}
|
|
||||||
&::before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
color: inherit;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: -(@icon-search_font-size / 2);
|
margin-top: -(@icon-search_font-size / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&:active {
|
||||||
|
background-color: @color-nav-hover-bg;
|
||||||
|
border-color: @color-nav-hover;
|
||||||
|
color: @color-nav-hover;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* + + + form + + + */
|
|
||||||
|
button[type="submit"] {
|
||||||
|
position: absolute;
|
||||||
|
top: 1px;
|
||||||
|
bottom: 1px;
|
||||||
|
right: 0;
|
||||||
|
height: auto;
|
||||||
|
min-height: (@icon-size - .2);
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus,
|
||||||
|
&:active {
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
min-height: @icon-size;
|
||||||
|
background-color: @button_color;
|
||||||
|
border: solid 1px @button_background;
|
||||||
|
color: @button_background;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* + + + form + + + */
|
||||||
form {
|
form {
|
||||||
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 0 @margin-default;
|
margin: 0 0 @margin-default;
|
||||||
|
|
||||||
.no {
|
.no {
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
#qsearch__in {
|
#qsearch__in {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: (@icon-size + 10);
|
padding-right: (@icon-size + 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
min-height: @icon-size;
|
min-height: @icon-size;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
button[type="submit"] {
|
button[type="submit"] {
|
||||||
border: solid 1px transparent;
|
border: solid 1px transparent;
|
||||||
border-right-color: @color-border;
|
border-right-color: @color-border;
|
||||||
margin-left: -(@icon-size);
|
margin-left: -(@icon-size);
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -109,23 +149,31 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* + + + + + wide page content + + + + + */
|
||||||
.wide-content {
|
.wide-content {
|
||||||
.search.main-sidebar {
|
.search.main-sidebar {
|
||||||
p.toggleSearch {
|
p.toggleSearch {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
float: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
input {
|
input {
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no {
|
.no {
|
||||||
#qsearch__in {
|
#qsearch__in {
|
||||||
width: 0;
|
width: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
button[type="submit"] {
|
button[type="submit"] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue