Simplify navbar markup, update it for bootstrap4 beta1. (#23)

* Simplify navbar markup, update it for bootstrap4 beta1.

* Fix CSS classname for background color of navbar
This commit is contained in:
Matthew 2017-09-07 18:30:55 +10:00 committed by Thor77
parent 21f9f6581b
commit 35c5c91fb0
1 changed files with 5 additions and 8 deletions

View File

@ -27,17 +27,14 @@
</style> </style>
</head> </head>
<body> <body>
<nav class="navbar navbar-toggleable-md navbar-light bg-faded sticky-top"> <nav class="navbar navbar-expand-md navbar-light bg-light sticky-top">
<div class="d-flex justify-content-between hidden-lg-up">
<a href="" class="navbar-brand">{{ title }}</a> <a href="" class="navbar-brand">{{ title }}</a>
<button class="navbar-toggler hidden-lg-up" type="button" data-toggle="collapse" data-target="main-nav" aria-controls="main-nav" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="main-nav" aria-controls="main-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
</div>
<div id="main-nav" class="collapse navbar-collapse"> <div id="main-nav" class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<li class="hidden-md-down"><a href="" class="navbar-brand">{{ title }}</a></li>
{% for sid, _ in servers %} {% for sid, _ in servers %}
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#sid{{ sid }}">Server {{ sid }}</a> <a class="nav-link" href="#sid{{ sid }}">Server {{ sid }}</a>