parent
d4c7566aad
commit
faca0962ef
|
@ -7,7 +7,7 @@ $searchDashboard->setUser($this->Auth()->getUser());
|
|||
|
||||
if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?>
|
||||
<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') ?> …"
|
||||
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
|
||||
<button class="search-reset icon-cancel" type="reset"></button>
|
||||
|
|
|
@ -55,6 +55,10 @@
|
|||
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 {
|
||||
// Clip overflowing content
|
||||
overflow: hidden;
|
||||
|
@ -411,10 +415,13 @@ input[type=text].search-input {
|
|||
color: @gray-light;
|
||||
}
|
||||
|
||||
.search-input ~ .search-reset {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.search-input:valid ~ .search-reset {
|
||||
animation-duration: .4s;
|
||||
animation-name: search-reset-in;
|
||||
display: block;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.search-input:invalid,
|
||||
|
@ -424,17 +431,6 @@ input[type=text].search-input {
|
|||
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 {
|
||||
// Reset button styles
|
||||
|
|
Loading…
Reference in New Issue