Просмотр исходного кода

hide toggle-sidebar on single_column

version-14
Faris Ansari 9 лет назад
Родитель
Сommit
86b65adf7e
7 измененных файлов: 32 добавлений и 15 удалений
  1. +1
    -0
      frappe/desk/page/modules/modules.js
  2. +6
    -6
      frappe/public/css/docs.css
  3. +7
    -0
      frappe/public/css/mobile.css
  4. +6
    -6
      frappe/public/css/navbar.css
  5. +2
    -2
      frappe/public/js/frappe/ui/toolbar/navbar.html
  6. +9
    -0
      frappe/public/less/mobile.less
  7. +1
    -1
      frappe/public/less/navbar.less

+ 1
- 0
frappe/desk/page/modules/modules.js Просмотреть файл

@@ -140,6 +140,7 @@ frappe.pages['modules'].on_page_load = function(wrapper) {

frappe.pages['modules'].on_page_show = function(wrapper) {
var route = frappe.get_route();
$("body").attr("data-sidebar", 1);
if(route.length > 1) {
// activate section based on route
frappe.modules_page.activate_link(


+ 6
- 6
frappe/public/css/docs.css Просмотреть файл

@@ -185,21 +185,21 @@ body {
width: 60% !important;
}
}
#searchModal .modal-dialog,
#searchModal .modal-content {
#search-modal .modal-dialog,
#search-modal .modal-content {
background: transparent;
}
#searchModal .modal-header {
#search-modal .modal-header {
background: #fff;
display: table;
width: 100%;
}
#searchModal .modal-header form,
#searchModal .modal-header button {
#search-modal .modal-header form,
#search-modal .modal-header button {
display: table-cell;
vertical-align: middle;
}
#searchModal .modal-header button {
#search-modal .modal-header button {
height: 30px;
}
.dropdown-navbar-new-comments > a {


+ 7
- 0
frappe/public/css/mobile.css Просмотреть файл

@@ -293,6 +293,13 @@ body {
body[data-route="desktop"] .toggle-sidebar {
display: none !important;
}
body[data-sidebar="0"] .toggle-sidebar {
display: none !important;
}
body[data-sidebar="0"] #navbar-breadcrumbs,
body[data-sidebar="0"] .navbar-home {
margin-left: 15px !important;
}
.linked-with-dialog {
width: 100% !important;
}


+ 6
- 6
frappe/public/css/navbar.css Просмотреть файл

@@ -51,21 +51,21 @@
width: 60% !important;
}
}
#searchModal .modal-dialog,
#searchModal .modal-content {
#search-modal .modal-dialog,
#search-modal .modal-content {
background: transparent;
}
#searchModal .modal-header {
#search-modal .modal-header {
background: #fff;
display: table;
width: 100%;
}
#searchModal .modal-header form,
#searchModal .modal-header button {
#search-modal .modal-header form,
#search-modal .modal-header button {
display: table-cell;
vertical-align: middle;
}
#searchModal .modal-header button {
#search-modal .modal-header button {
height: 30px;
}
.dropdown-navbar-new-comments > a {


+ 2
- 2
frappe/public/js/frappe/ui/toolbar/navbar.html Просмотреть файл

@@ -12,7 +12,7 @@

<ul class="nav navbar-nav navbar-right">
<li class="visible-xs">
<a class="navbar-search-button" href="#" data-toggle="modal" data-target="#searchModal"><i class="octicon octicon-search"></i></a>
<a class="navbar-search-button" href="#" data-toggle="modal" data-target="#search-modal"><i class="octicon octicon-search"></i></a>
</li>
<li class="dropdown dropdown-navbar-user">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"
@@ -53,7 +53,7 @@
</li>
</ul>

<div id="searchModal" class="modal fade" role="dialog">
<div id="search-modal" class="modal fade" role="dialog">
<div class="modal-dialog" style="height: 50px;">
<div class="modal-content">
<div class="modal-header">


+ 9
- 0
frappe/public/less/mobile.less Просмотреть файл

@@ -208,6 +208,15 @@
}
}

body[data-sidebar="0"] {
.toggle-sidebar {
display: none !important;
}
#navbar-breadcrumbs, .navbar-home {
margin-left: 15px !important;
}
}

.linked-with-dialog {
width: 100% !important;
}


+ 1
- 1
frappe/public/less/navbar.less Просмотреть файл

@@ -63,7 +63,7 @@
}
}

#searchModal {
#search-modal {
.modal-dialog, .modal-content {
background: transparent;
}


Загрузка…
Отмена
Сохранить