Browse Source

[mobile ui] improved searchbar

version-14
Faris Ansari 9 years ago
parent
commit
921fd7d5a3
4 changed files with 23 additions and 15 deletions
  1. +7
    -5
      frappe/public/css/docs.css
  2. +7
    -5
      frappe/public/css/navbar.css
  3. +1
    -1
      frappe/public/js/frappe/ui/toolbar/navbar.html
  4. +8
    -4
      frappe/public/less/navbar.less

+ 7
- 5
frappe/public/css/docs.css View File

@@ -57,16 +57,18 @@
}
#search-modal .modal-header {
background: #fff;
display: table;
width: 100%;
}
#search-modal .modal-header form,
#search-modal .modal-header button {
display: table-cell;
#search-modal .modal-header form {
vertical-align: middle;
}
#search-modal .modal-header button {
height: 30px;
line-height: 0;
position: absolute;
right: 0;
top: 0;
z-index: 9;
padding: 9px;
}
.dropdown-navbar-new-comments > a {
border: 0;


+ 7
- 5
frappe/public/css/navbar.css View File

@@ -57,16 +57,18 @@
}
#search-modal .modal-header {
background: #fff;
display: table;
width: 100%;
}
#search-modal .modal-header form,
#search-modal .modal-header button {
display: table-cell;
#search-modal .modal-header form {
vertical-align: middle;
}
#search-modal .modal-header button {
height: 30px;
line-height: 0;
position: absolute;
right: 0;
top: 0;
z-index: 9;
padding: 9px;
}
.dropdown-navbar-new-comments > a {
border: 0;


+ 1
- 1
frappe/public/js/frappe/ui/toolbar/navbar.html View File

@@ -61,9 +61,9 @@
<div class="input-group" style="width: 100%">
<input id="modal-search" type="text" class="form-control"
placeholder="{%= __("Search or type a command") %}" aria-haspopup="true">
<button type="reset" class="close"><i class="octicon octicon-x"></i></button>
</div>
</form>
<button type="button" class="close" data-dismiss="modal"><i class="octicon octicon-x"></i></button>
</div>
</div>
</div>


+ 8
- 4
frappe/public/less/navbar.less View File

@@ -69,15 +69,19 @@
}
.modal-header {
background: #fff;
display: table;
width: 100%;

form, button {
display: table-cell;
form {
vertical-align: middle;
}

button {
height: 30px;
line-height: 0;
position: absolute;
right: 0;
top: 0;
z-index: 9;
padding: 9px;
}
}
}


Loading…
Cancel
Save