Skip to content

Commit

Permalink
Move styles to stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
gnestor authored and Nelyus committed Jun 10, 2020
1 parent 4ad6009 commit 5b986fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/static/notebook/js/menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ define([
var link_element = el.children('a');
var text = link_element.text();
link_element.text('');
link_element.attr('style', 'display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end;');
link_element.addClass('menu-shortcut-container');
link_element.append('<span class="action">' + text + '</span>');
link_element.append('<span class="kb">' + shortcut + '</span>');
}
Expand Down
7 changes: 7 additions & 0 deletions notebook/static/notebook/less/menubar.less
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ i.menu-icon {
.pull-left();
}

ul.dropdown-menu li a.menu-shortcut-container {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-end;
}

ul#help_menu li a{
overflow: hidden;
padding-right: 2.2em;
Expand Down

0 comments on commit 5b986fc

Please sign in to comment.