mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
d4c7566aad
commit
faca0962ef
@ -7,7 +7,7 @@ $searchDashboard->setUser($this->Auth()->getUser());
|
|||||||
|
|
||||||
if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?>
|
if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?>
|
||||||
<form action="<?= $this->href('search') ?>" method="get" role="search" class="search-control">
|
<form action="<?= $this->href('search') ?>" method="get" role="search" class="search-control">
|
||||||
<input type="text" name="q" id="search" class="search search-input"
|
<input type="text" name="q" id="search" class="search search-input" required
|
||||||
placeholder="<?= $this->translate('Search') ?> …"
|
placeholder="<?= $this->translate('Search') ?> …"
|
||||||
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
|
||||||
<button class="search-reset icon-cancel" type="reset"></button>
|
<button class="search-reset icon-cancel" type="reset"></button>
|
||||||
|
@ -55,6 +55,10 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item > a {
|
#layout:not(.minimal-layout).sidebar-collapsed #menu .nav-level-1 > .nav-item > a {
|
||||||
// Clip overflowing content
|
// Clip overflowing content
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -411,10 +415,13 @@ input[type=text].search-input {
|
|||||||
color: @gray-light;
|
color: @gray-light;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-input ~ .search-reset {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.search-input:valid ~ .search-reset {
|
.search-input:valid ~ .search-reset {
|
||||||
animation-duration: .4s;
|
|
||||||
animation-name: search-reset-in;
|
|
||||||
display: block;
|
display: block;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input:invalid,
|
.search-input:invalid,
|
||||||
@ -424,17 +431,6 @@ input[type=text].search-input {
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes search-reset-in {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translate3d(-20%, 0, 0);
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
opacity: 1;
|
|
||||||
transform: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Toggle sidebar button
|
// Toggle sidebar button
|
||||||
#toggle-sidebar {
|
#toggle-sidebar {
|
||||||
// Reset button styles
|
// Reset button styles
|
||||||
|
Loading…
x
Reference in New Issue
Block a user