8000 [FIX] documentation-user: mobile menu button · asantos82/documentation-user@9a478fa · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 9a478fa

Browse files
stefanoriganomart-e
authored andcommitted
[FIX] documentation-user: mobile menu button
It was invisible because the doc’s website use material icons rather then the ‘fa’ ones. Replaced the icon with the material one and styled the “pressed” state.
1 parent de70a65 commit 9a478fa

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

_extensions/odoo/layout.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@
5050
<a class="pull-left o_logo" href="/"></a>
5151
<a href="#" class="o_mobile_menu_toggle visible-xs-block pull-right">
5252
<span class="sr-only">Toggle navigation</span>
53-
<span class="icon-bar"></span>
54-
<span class="icon-bar"></span>
55-
<span class="icon-bar"></span>
53+
<span class="mdi-navigation-menu"></span>
5654
</a>
5755
<div class="o_header_buttons">
5856
<a href="http://www.odoo.com/trial" class="btn btn-primary">Start Now</a>

_extensions/odoo/static/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11155,6 +11155,13 @@ body > footer .o_footer_bottom .social-links .fa {
1115511155
display: none;
1115611156
}
1115711157
}
11158+
.o_main_header .mdi-navigation-menu {
11159+
padding: 13px;
11160+
}
11161+
.o_main_header.o_mobile_menu_opened .mdi-navigation-menu {
11162+
background-color: #282f33;
11163+
color: #f2f2f2;
11164+
}
1115811165
.o_main_header .o_sub_nav .collapse .nav {
1115911166
margin-right: 0;
1116011167
margin-bottom: 0;

_extensions/odoo/static/style.less

Lines changed: 10 additions & 0 deletions
< 7E3D /tr>
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
// The following rules are specific for the documentation website.
2323

2424
.o_main_header {
25+
26+
.mdi-navigation-menu {
27+
padding: 13px;
28+
}
29+
30+
&.o_mobile_menu_opened .mdi-navigation-menu {
31+
background-color: @footer-bg-color;
32+
color: @gray-lighter;
33+
}
34+
2535
.o_sub_nav {
2636
.collapse .nav {
2737
margin-right: 0;

0 commit comments

Comments
 (0)
0