Skip to content

Commit

Permalink
Merge pull request #1116 from Aravindh-Raju/aravindhr/make-navbars-fixed
Browse files Browse the repository at this point in the history
Make menu bars fixed
  • Loading branch information
arpit4ever committed Aug 30, 2022
2 parents 72976c8 + 7e8e7ec commit d14ef31
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/portal/app/views/header.scala.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@(rootAccountName: String)(implicit request: play.api.mvc.Request[Any])

<div class="top_nav">
<div class="top_nav" id="fixed-top-nav">
<div class="nav_menu">
<nav>
<div class="nav toggle">
Expand Down
2 changes: 1 addition & 1 deletion modules/portal/app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<div class="main_container" ng-cloak ng-controller="@controller">

<!-- START PAGE SIDEBAR -->
<div class="col-md-3 left_col">
<div class="col-md-3 left_col" id="fixed-side-menu">
<div class="left_col scroll-view">
<div class="navbar nav_title vinyldns-nav-title">
<a href="/index"><span><img src="/assets/images/vinyldns-portal.png" class="vinyldns-logo"/></span></a>
Expand Down
11 changes: 11 additions & 0 deletions modules/portal/public/css/vinyldns.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,14 @@ input[type="file"] {
.modal-backdrop.show {
opacity: 0.75;
}

#fixed-side-menu {
position: fixed;
top: 0;
}

#fixed-top-nav {
position: sticky;
top: 0;
z-index: 1000;
}

0 comments on commit d14ef31

Please sign in to comment.