Skip to content

Commit 6a32f17

Browse files
committed
adding mobile css for our menu
- fix screenshot issue
1 parent 6b4c977 commit 6a32f17

6 files changed

Lines changed: 83 additions & 70 deletions

File tree

plugins/CoreHome/stylesheets/layout.less

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ nav {
167167

168168
#secondNavBar {
169169
flex: 0 0 224px;
170+
background-color: @theme-color-menu-contrast-background;
171+
box-shadow: none !important;
172+
padding: 16px 16px;
170173
}
171174

172175
.layoutWithSidebarContent {
@@ -183,6 +186,24 @@ nav {
183186
@media all and (max-width: 992px) {
184187
#secondNavBar {
185188
width: 0 !important;
189+
.quick-access {
190+
display: none;
191+
}
192+
193+
&.mobileLeftMenuOpen {
194+
width: auto !important;
195+
196+
> .quick-access {
197+
margin-left: 16px;
198+
display: block;
199+
z-index: 1000;
200+
position: fixed;
201+
top: 15px;
202+
}
203+
.sidenav > .no-padding:first-child {
204+
padding-top: 65px !important;
205+
}
206+
}
186207
}
187208

188209
.pageWrap {
@@ -208,36 +229,13 @@ nav {
208229

209230
display: block;
210231
}
211-
212-
.quick-access {
213-
width: auto !important;
214-
215-
input {
216-
padding-left: 15px !important;
217-
}
218-
219-
.icon-search {
220-
position: absolute;
221-
left: unset;
222-
right: 36px;
223-
}
224-
}
225232
}
226233
}
227-
228234
#ajaxLoadingDiv {
229235
margin-bottom: 10px;
230236
}
231237

232238
#secondNavBar {
233-
width: 224px;
234-
min-height: 100vh;
235-
height: auto;
236-
flex: none;
237-
background-color: @theme-color-menu-contrast-background;
238-
box-shadow: none !important;
239-
padding: 16px 16px;
240-
241239
.navbar {
242240
padding-top: 16px;
243241
padding-bottom: 20px;
@@ -463,21 +461,18 @@ nav {
463461
padding: 0;
464462
}
465463
}
466-
467-
.quick-access {
468-
@media screen and (max-width: 600px){
469-
z-index: 1000;
470-
position: absolute;
471-
width: 208px;
472-
margin-left: 16px;
473-
}
474-
}
475-
476464
.top_controls {
477465
visibility: hidden;
478466
opacity: 0;
479-
padding-left: 16px;
467+
padding-left: 18px;
480468

469+
.quickAccessPlaceholder {
470+
width: 0;
471+
visibility: hidden;
472+
display: inline-block;
473+
position: relative;
474+
margin: 0;
475+
}
481476
@media screen and (max-width: 600px){
482477
visibility: hidden;
483478
opacity: 0;

plugins/CoreHome/vue/dist/CoreHome.umd.js

Lines changed: 37 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)