File tree 5 files changed +64
-11
lines changed
client/themes/geonode/less
templates/geonode-mapstore-client/snippets
5 files changed +64
-11
lines changed Original file line number Diff line number Diff line change 28
28
margin-bottom : 0 ;
29
29
}
30
30
31
- @media (max-width : 748px ) {
32
- #gn-brand-navbar .gn-menu-content-center > * {
33
- display : none ;
34
- }
31
+ @media (max-width : @screen-sm ) {
35
32
#gn-brand-navbar-bottom {
36
33
display : flex ;
34
+ gap : 0.5rem ;
35
+ align-items : center ;
37
36
width : calc (100% - 16px );
38
37
margin : 8px ;
38
+ .gn-search-bar {
39
+ max-width : 100% ;
40
+ }
41
+ .gn-brand-navbar-menu {
42
+ & .dropdown {
43
+ display : none ;
44
+ }
45
+ }
46
+ }
47
+ }
48
+
49
+ @media (max-width : @screen-xs ) {
50
+ #gn-brand-navbar {
51
+ .gn-brand-navbar-menu {
52
+ visibility : hidden ;
53
+ }
54
+ }
55
+ #gn-brand-navbar-bottom {
56
+ .gn-brand-navbar-menu {
57
+ & .dropdown {
58
+ display : block ;
59
+ .dropdown-menu {
60
+ li > a {
61
+ text-align : left ;
62
+ }
63
+ }
64
+ }
65
+ }
39
66
}
40
67
}
41
68
Original file line number Diff line number Diff line change 36
36
border-bottom-width : 1px ;
37
37
border-bottom-style : solid ;
38
38
min-width : 100px ;
39
- max-width : 200 px ;
39
+ max-width : 300 px ;
40
40
.btn {
41
41
border : transparent ;
42
42
}
83
83
84
84
}
85
85
86
- @media screen and (min-width : 768px ) {
87
- .gn-search-bar {
88
- min-width : 500px ;
86
+ @media screen and (min-width : @screen-md ) {
87
+ #gn-search-bar {
88
+ display : block ;
89
+ }
90
+ }
91
+ @media screen and (max-width : @screen-sm ) {
92
+ #gn-search-bar {
93
+ display : none ;
89
94
}
90
95
}
Original file line number Diff line number Diff line change 3175
3175
"name" : " ResourcesFiltersForm" ,
3176
3176
"cfg" : {
3177
3177
"resourcesGridId" : " catalog" ,
3178
- "headerNodeSelector" : " # gn-brand-navbar " ,
3178
+ "headerNodeSelector" : " . gn-main-header " ,
3179
3179
"footerNodeSelector" : " .gn-footer" ,
3180
3180
"fields" : [
3181
3181
{
3317
3317
{
3318
3318
"name" : " ResourceDetails" ,
3319
3319
"cfg" : {
3320
+ "headerNodeSelector" : " .gn-main-header" ,
3320
3321
"enableFilters" : true ,
3321
3322
"enablePreview" : true ,
3322
3323
"editingOverlay" : true
Original file line number Diff line number Diff line change 16
16
{% endif %}
17
17
</ a >
18
18
{% endblock %}
19
- < ul class ="ms-flex-fill ms-flex-box _flex _flex-gap-sm _flex-center-v ">
19
+ < ul class ="ms-flex-fill ms-flex-box _flex _flex-gap-sm _flex-center-v gn-brand-navbar-menu ">
20
20
{% for menu_item in BRAND_NAVBAR_MENU %}
21
21
{% include './menu_item.html' with menu_item=menu_item %}
22
22
{% endfor %}
38
38
</ nav >
39
39
< div id ="gn-brand-navbar-bottom ">
40
40
{% block bottom_menu %}
41
+ < div class ="gn-brand-navbar-menu dropdown ">
42
+ < button
43
+ class ="btn btn-primary dropdown-toggle "
44
+ type ="button "
45
+ id ="gn-brand-navbar-menu-btn "
46
+ data-toggle ="dropdown "
47
+ aria-haspopup ="true "
48
+ aria-expanded ="true "
49
+ >
50
+ < i class ="fa fa-bars "> </ i >
51
+ </ button >
52
+ < ul
53
+ class ="dropdown-menu "
54
+ aria-labelledby ="gn-brand-navbar-dropdown-menu "
55
+ >
56
+ {% for menu_item in BRAND_NAVBAR_MENU %}
57
+ {% include './menu_item.html' with menu_item=menu_item align_right=True %}
58
+ {% endfor %}
59
+ </ ul >
60
+ </ div >
41
61
{% include './search_bar.html' with search_bar_id='gn-search-bar-bottom' %}
42
62
{% endblock %}
43
63
</ div >
Original file line number Diff line number Diff line change 42
42
}
43
43
}
44
44
}
45
- const menuLinks = document . querySelectorAll ( '.gn-main -menu > li a' ) ;
45
+ const menuLinks = document . querySelectorAll ( '.gn-brand-navbar -menu > li a' ) ;
46
46
for ( var i = 0 ; i < menuLinks . length ; i ++ ) {
47
47
const menuLink = menuLinks [ i ] ;
48
48
const href = menuLink . getAttribute ( 'href' ) ;
You can’t perform that action at this time.
0 commit comments