Parcourir la source

[mobile ui] improved searchbar

version-14
Faris Ansari il y a 9 ans
Parent
révision
921fd7d5a3
4 fichiers modifiés avec 23 ajouts et 15 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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;
}
}
}


Chargement…
Annuler
Enregistrer