diff --git a/frappe/public/build.json b/frappe/public/build.json index ccb37bd202..310f51abbb 100755 --- a/frappe/public/build.json +++ b/frappe/public/build.json @@ -128,7 +128,6 @@ "public/js/frappe/ui/toolbar/awesome_bar.js", "public/js/frappe/ui/toolbar/about.js", "public/js/frappe/ui/toolbar/navbar.html", - "public/js/frappe/ui/toolbar/offcanvas_left_sidebar.html", "public/js/frappe/ui/toolbar/toolbar.js", "public/js/frappe/ui/toolbar/notifications.js", "public/js/frappe/views/communication.js", diff --git a/frappe/public/css/docs.css b/frappe/public/css/docs.css index 8c47d38318..ca262cdaf6 100644 --- a/frappe/public/css/docs.css +++ b/frappe/public/css/docs.css @@ -1,137 +1,3 @@ -html { - min-height: 100%; -} -body { - height: 100%; - /* The html and body elements cannot have any padding or margin. */ - margin: 0px; - padding: 0px !important; -} -html, -body { - overflow-x: hidden; - /* Prevent scroll on narrow devices */ -} -.offcanvas-main-section-overlay { - display: none; - cursor: pointer; - opacity: 0.5; -} -.sidebar-padding { - padding: 12px 14px; -} -.offcanvas .sidebar .sidebar-menu > li > .btn-group, -.offcanvas .sidebar .sidebar-menu > li > a, -.offcanvas .sidebar .dropdown-menu > li > a { - padding: 12px 14px; - display: block; - whitespace: nowrap; - transition: 0.2s; - text-decoration: none !important; -} -.offcanvas .sidebar .dropdown-menu { - padding: 0px; - font-size: inherit; -} -.offcanvas .sidebar .dropdown-menu > li > a { - padding-left: 28px; -} -.offcanvas .sidebar .divider { - height: 1px; - overflow: hidden; - background-color: #EBEFF2; - width: 100%; - margin: 0px; -} -.offcanvas .sidebar .badge { - right: 15px !important; - top: 11px !important; -} -.offcanvas .sidebar .sidebar-menu > li > a:hover, -.offcanvas .sidebar .dropdown-menu > li > a:hover, -.offcanvas .sidebar .sidebar-menu > li > a:focus, -.offcanvas .sidebar .dropdown-menu > li > a:focus, -.offcanvas .sidebar .sidebar-menu > li > a:active, -.offcanvas .sidebar .dropdown-menu > li > a:active { - background-color: #F0F4F7; -} -@media (max-width: 767px) { - .page-content { - min-height: 200px; - } - .offcanvas { - transition: 0.25s; - } - .offcanvas-main-section-overlay { - bottom: 0; - position: fixed; - } - .offcanvas-container, - .offcanvas, - .offcanvas-main-section { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - } - .offcanvas.active-left, - .offcanvas.active-right { - position: fixed; - } - .offcanvas.active-left .offcanvas-main-section-overlay, - .offcanvas.active-right .offcanvas-main-section-overlay { - z-index: 1031; - display: block; - bottom: 0; - } - .offcanvas.active-left { - -webkit-transform: translate3d(75%, 0, 0); - transform: translate3d(75%, 0, 0); - } - .offcanvas.active-right { - -webkit-transform: translate3d(-75%, 0, 0); - transform: translate3d(-75%, 0, 0); - } - .offcanvas .sidebar { - position: fixed; - top: 0; - bottom: 0; - width: 75%; - /* 9 columns */ - overflow-x: hidden; - overflow-y: auto; - font-size: 12px; - } - .offcanvas .sidebar-right { - left: 100%; - border-left: 1px solid #d1d8dd; - } - .offcanvas .sidebar-left { - right: 100%; - border-right: 1px solid #d1d8dd; - } - .offcanvas .sidebar-menu { - margin-bottom: 0; - } - .offcanvas .navbar-form { - margin: 0px; - } - .offcanvas .sidebar ul { - margin: 0px; - } - .offcanvas .sidebar-page-sidebar { - border-top: 1px solid #d1d8dd; - } - .offcanvas .sidebar-label { - text-transform: uppercase; - color: #8D99A6; - font-size: 85%; - margin: 0px; - font-weight: bold; - padding: 10px 15px 0px; - } -} .navbar .dropdown-toggle { padding-top: 8px; padding-bottom: 8px; diff --git a/frappe/public/css/mobile.css b/frappe/public/css/mobile.css index de6b36e7e4..556884f9ae 100644 --- a/frappe/public/css/mobile.css +++ b/frappe/public/css/mobile.css @@ -3,57 +3,12 @@ html { } body { height: 100%; - /* The html and body elements cannot have any padding or margin. */ margin: 0px; padding: 0px !important; } html, body { overflow-x: hidden; - /* Prevent scroll on narrow devices */ -} -.offcanvas-main-section-overlay { - display: none; - cursor: pointer; - opacity: 0.5; -} -.sidebar-padding { - padding: 12px 14px; -} -.offcanvas .sidebar .sidebar-menu > li > .btn-group, -.offcanvas .sidebar .sidebar-menu > li > a, -.offcanvas .sidebar .dropdown-menu > li > a { - padding: 12px 14px; - display: block; - whitespace: nowrap; - transition: 0.2s; - text-decoration: none !important; -} -.offcanvas .sidebar .dropdown-menu { - padding: 0px; - font-size: inherit; -} -.offcanvas .sidebar .dropdown-menu > li > a { - padding-left: 28px; -} -.offcanvas .sidebar .divider { - height: 1px; - overflow: hidden; - background-color: #EBEFF2; - width: 100%; - margin: 0px; -} -.offcanvas .sidebar .badge { - right: 15px !important; - top: 11px !important; -} -.offcanvas .sidebar .sidebar-menu > li > a:hover, -.offcanvas .sidebar .dropdown-menu > li > a:hover, -.offcanvas .sidebar .sidebar-menu > li > a:focus, -.offcanvas .sidebar .dropdown-menu > li > a:focus, -.offcanvas .sidebar .sidebar-menu > li > a:active, -.offcanvas .sidebar .dropdown-menu > li > a:active { - background-color: #F0F4F7; } @media (max-width: 991px) { .intro-area, @@ -130,61 +85,6 @@ body { .navbar-nav { margin: 0px; } - .offcanvas { - transition: 0.25s; - } - .offcanvas-main-section-overlay { - bottom: 0; - position: fixed; - } - .offcanvas-container, - .offcanvas, - .offcanvas-main-section { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - } - .offcanvas.active-left, - .offcanvas.active-right { - position: fixed; - } - .offcanvas.active-left .offcanvas-main-section-overlay, - .offcanvas.active-right .offcanvas-main-section-overlay { - z-index: 1031; - display: block; - bottom: 0; - } - .offcanvas.active-left { - -webkit-transform: translate3d(75%, 0, 0); - transform: translate3d(75%, 0, 0); - } - .offcanvas.active-right { - -webkit-transform: translate3d(-75%, 0, 0); - transform: translate3d(-75%, 0, 0); - } - .offcanvas .sidebar { - position: fixed; - top: 0; - bottom: 0; - width: 75%; - /* 9 columns */ - overflow-x: hidden; - overflow-y: auto; - font-size: 12px; - } - .offcanvas .sidebar-right { - left: 100%; - border-left: 1px solid #d1d8dd; - } - .offcanvas .sidebar-left { - right: 100%; - border-right: 1px solid #d1d8dd; - } - .offcanvas .sidebar-menu { - margin-bottom: 0; - } .sidebar .form-group { margin-bottom: 0px; } diff --git a/frappe/public/css/offcanvas-website.css b/frappe/public/css/offcanvas-website.css index 4a3502232b..dd10c4ae29 100644 --- a/frappe/public/css/offcanvas-website.css +++ b/frappe/public/css/offcanvas-website.css @@ -1,134 +1,2 @@ -html { - min-height: 100%; -} -body { - height: 100%; - /* The html and body elements cannot have any padding or margin. */ - margin: 0px; - padding: 0px !important; -} -html, -body { - overflow-x: hidden; - /* Prevent scroll on narrow devices */ -} -.offcanvas-main-section-overlay { - display: none; - cursor: pointer; - opacity: 0.5; -} -.sidebar-padding { - padding: 12px 14px; -} -.offcanvas .sidebar .sidebar-menu > li > .btn-group, -.offcanvas .sidebar .sidebar-menu > li > a, -.offcanvas .sidebar .dropdown-menu > li > a { - padding: 12px 14px; - display: block; - whitespace: nowrap; - transition: 0.2s; - text-decoration: none !important; -} -.offcanvas .sidebar .dropdown-menu { - padding: 0px; - font-size: inherit; -} -.offcanvas .sidebar .dropdown-menu > li > a { - padding-left: 28px; -} -.offcanvas .sidebar .divider { - height: 1px; - overflow: hidden; - background-color: #EBEFF2; - width: 100%; - margin: 0px; -} -.offcanvas .sidebar .badge { - right: 15px !important; - top: 11px !important; -} -.offcanvas .sidebar .sidebar-menu > li > a:hover, -.offcanvas .sidebar .dropdown-menu > li > a:hover, -.offcanvas .sidebar .sidebar-menu > li > a:focus, -.offcanvas .sidebar .dropdown-menu > li > a:focus, -.offcanvas .sidebar .sidebar-menu > li > a:active, -.offcanvas .sidebar .dropdown-menu > li > a:active { - background-color: #F0F4F7; -} @media (max-width: 767px) { - .page-content { - min-height: 200px; - } - .offcanvas { - transition: 0.25s; - } - .offcanvas-main-section-overlay { - bottom: 0; - position: fixed; - } - .offcanvas-container, - .offcanvas, - .offcanvas-main-section { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - } - .offcanvas.active-left, - .offcanvas.active-right { - position: fixed; - } - .offcanvas.active-left .offcanvas-main-section-overlay, - .offcanvas.active-right .offcanvas-main-section-overlay { - z-index: 1031; - display: block; - bottom: 0; - } - .offcanvas.active-left { - -webkit-transform: translate3d(75%, 0, 0); - transform: translate3d(75%, 0, 0); - } - .offcanvas.active-right { - -webkit-transform: translate3d(-75%, 0, 0); - transform: translate3d(-75%, 0, 0); - } - .offcanvas .sidebar { - position: fixed; - top: 0; - bottom: 0; - width: 75%; - /* 9 columns */ - overflow-x: hidden; - overflow-y: auto; - font-size: 12px; - } - .offcanvas .sidebar-right { - left: 100%; - border-left: 1px solid #d1d8dd; - } - .offcanvas .sidebar-left { - right: 100%; - border-right: 1px solid #d1d8dd; - } - .offcanvas .sidebar-menu { - margin-bottom: 0; - } - .offcanvas .navbar-form { - margin: 0px; - } - .offcanvas .sidebar ul { - margin: 0px; - } - .offcanvas .sidebar-page-sidebar { - border-top: 1px solid #d1d8dd; - } - .offcanvas .sidebar-label { - text-transform: uppercase; - color: #8D99A6; - font-size: 85%; - margin: 0px; - font-weight: bold; - padding: 10px 15px 0px; - } } diff --git a/frappe/public/css/offcanvas.css b/frappe/public/css/offcanvas.css index 850f6feb85..e69de29bb2 100644 --- a/frappe/public/css/offcanvas.css +++ b/frappe/public/css/offcanvas.css @@ -1,57 +0,0 @@ -html { - min-height: 100%; -} -body { - height: 100%; - /* The html and body elements cannot have any padding or margin. */ - margin: 0px; - padding: 0px !important; -} -html, -body { - overflow-x: hidden; - /* Prevent scroll on narrow devices */ -} -.offcanvas-main-section-overlay { - display: none; - cursor: pointer; - opacity: 0.5; -} -.sidebar-padding { - padding: 12px 14px; -} -.offcanvas .sidebar .sidebar-menu > li > .btn-group, -.offcanvas .sidebar .sidebar-menu > li > a, -.offcanvas .sidebar .dropdown-menu > li > a { - padding: 12px 14px; - display: block; - whitespace: nowrap; - transition: 0.2s; - text-decoration: none !important; -} -.offcanvas .sidebar .dropdown-menu { - padding: 0px; - font-size: inherit; -} -.offcanvas .sidebar .dropdown-menu > li > a { - padding-left: 28px; -} -.offcanvas .sidebar .divider { - height: 1px; - overflow: hidden; - background-color: #EBEFF2; - width: 100%; - margin: 0px; -} -.offcanvas .sidebar .badge { - right: 15px !important; - top: 11px !important; -} -.offcanvas .sidebar .sidebar-menu > li > a:hover, -.offcanvas .sidebar .dropdown-menu > li > a:hover, -.offcanvas .sidebar .sidebar-menu > li > a:focus, -.offcanvas .sidebar .dropdown-menu > li > a:focus, -.offcanvas .sidebar .sidebar-menu > li > a:active, -.offcanvas .sidebar .dropdown-menu > li > a:active { - background-color: #F0F4F7; -} diff --git a/frappe/public/css/sidebar.css b/frappe/public/css/sidebar.css index 5c58f3fb02..f742029c2b 100644 --- a/frappe/public/css/sidebar.css +++ b/frappe/public/css/sidebar.css @@ -3,61 +3,19 @@ html { } body { height: 100%; - /* The html and body elements cannot have any padding or margin. */ margin: 0px; padding: 0px !important; } html, body { overflow-x: hidden; - /* Prevent scroll on narrow devices */ } -.offcanvas-main-section-overlay { - display: none; - cursor: pointer; - opacity: 0.5; +.hide-form-sidebar .form-sidebar { + display: none !important; } .sidebar-padding { padding: 12px 14px; } -.offcanvas .sidebar .sidebar-menu > li > .btn-group, -.offcanvas .sidebar .sidebar-menu > li > a, -.offcanvas .sidebar .dropdown-menu > li > a { - padding: 12px 14px; - display: block; - whitespace: nowrap; - transition: 0.2s; - text-decoration: none !important; -} -.offcanvas .sidebar .dropdown-menu { - padding: 0px; - font-size: inherit; -} -.offcanvas .sidebar .dropdown-menu > li > a { - padding-left: 28px; -} -.offcanvas .sidebar .divider { - height: 1px; - overflow: hidden; - background-color: #EBEFF2; - width: 100%; - margin: 0px; -} -.offcanvas .sidebar .badge { - right: 15px !important; - top: 11px !important; -} -.offcanvas .sidebar .sidebar-menu > li > a:hover, -.offcanvas .sidebar .dropdown-menu > li > a:hover, -.offcanvas .sidebar .sidebar-menu > li > a:focus, -.offcanvas .sidebar .dropdown-menu > li > a:focus, -.offcanvas .sidebar .sidebar-menu > li > a:active, -.offcanvas .sidebar .dropdown-menu > li > a:active { - background-color: #F0F4F7; -} -.hide-form-sidebar .form-sidebar { - display: none !important; -} body[data-route=""] .main-menu .desk-sidebar, body[data-route="desk"] .main-menu .desk-sidebar { display: block !important; diff --git a/frappe/public/css/website.css b/frappe/public/css/website.css index 9d19b7ce02..c0cad574aa 100644 --- a/frappe/public/css/website.css +++ b/frappe/public/css/website.css @@ -764,140 +764,6 @@ a.active { .docs-attr-desc { padding-left: 30px; } -html { - min-height: 100%; -} -body { - height: 100%; - /* The html and body elements cannot have any padding or margin. */ - margin: 0px; - padding: 0px !important; -} -html, -body { - overflow-x: hidden; - /* Prevent scroll on narrow devices */ -} -.offcanvas-main-section-overlay { - display: none; - cursor: pointer; - opacity: 0.5; -} -.sidebar-padding { - padding: 12px 14px; -} -.offcanvas .sidebar .sidebar-menu > li > .btn-group, -.offcanvas .sidebar .sidebar-menu > li > a, -.offcanvas .sidebar .dropdown-menu > li > a { - padding: 12px 14px; - display: block; - whitespace: nowrap; - transition: 0.2s; - text-decoration: none !important; -} -.offcanvas .sidebar .dropdown-menu { - padding: 0px; - font-size: inherit; -} -.offcanvas .sidebar .dropdown-menu > li > a { - padding-left: 28px; -} -.offcanvas .sidebar .divider { - height: 1px; - overflow: hidden; - background-color: #EBEFF2; - width: 100%; - margin: 0px; -} -.offcanvas .sidebar .badge { - right: 15px !important; - top: 11px !important; -} -.offcanvas .sidebar .sidebar-menu > li > a:hover, -.offcanvas .sidebar .dropdown-menu > li > a:hover, -.offcanvas .sidebar .sidebar-menu > li > a:focus, -.offcanvas .sidebar .dropdown-menu > li > a:focus, -.offcanvas .sidebar .sidebar-menu > li > a:active, -.offcanvas .sidebar .dropdown-menu > li > a:active { - background-color: #F0F4F7; -} -@media (max-width: 767px) { - .page-content { - min-height: 200px; - } - .offcanvas { - transition: 0.25s; - } - .offcanvas-main-section-overlay { - bottom: 0; - position: fixed; - } - .offcanvas-container, - .offcanvas, - .offcanvas-main-section { - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - } - .offcanvas.active-left, - .offcanvas.active-right { - position: fixed; - } - .offcanvas.active-left .offcanvas-main-section-overlay, - .offcanvas.active-right .offcanvas-main-section-overlay { - z-index: 1031; - display: block; - bottom: 0; - } - .offcanvas.active-left { - -webkit-transform: translate3d(75%, 0, 0); - transform: translate3d(75%, 0, 0); - } - .offcanvas.active-right { - -webkit-transform: translate3d(-75%, 0, 0); - transform: translate3d(-75%, 0, 0); - } - .offcanvas .sidebar { - position: fixed; - top: 0; - bottom: 0; - width: 75%; - /* 9 columns */ - overflow-x: hidden; - overflow-y: auto; - font-size: 12px; - } - .offcanvas .sidebar-right { - left: 100%; - border-left: 1px solid #d1d8dd; - } - .offcanvas .sidebar-left { - right: 100%; - border-right: 1px solid #d1d8dd; - } - .offcanvas .sidebar-menu { - margin-bottom: 0; - } - .offcanvas .navbar-form { - margin: 0px; - } - .offcanvas .sidebar ul { - margin: 0px; - } - .offcanvas .sidebar-page-sidebar { - border-top: 1px solid #d1d8dd; - } - .offcanvas .sidebar-label { - text-transform: uppercase; - color: #8D99A6; - font-size: 85%; - margin: 0px; - font-weight: bold; - padding: 10px 15px 0px; - } -} @media (min-width: 768px) { .login-wrapper { border-right: 1px solid #f2f2f2; diff --git a/frappe/public/js/frappe/ui/toolbar/toolbar.js b/frappe/public/js/frappe/ui/toolbar/toolbar.js index 7054898e53..3789d7995a 100644 --- a/frappe/public/js/frappe/ui/toolbar/toolbar.js +++ b/frappe/public/js/frappe/ui/toolbar/toolbar.js @@ -18,14 +18,14 @@ frappe.ui.toolbar.Toolbar = Class.extend({ $('