Implement secondary "navbar" containing top buttons.
This commit is contained in:
parent
c10d5f4e44
commit
736ec8c09a
2 changed files with 32 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
<title>The Nim programming language forum</title>
|
<title>The Nim programming language forum</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="nimforum.css">
|
<link rel="stylesheet" href="nimforum.css">
|
||||||
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.12/css/all.css" integrity="sha384-G0fIWCsCzJIMAVNQPfjH08cyYaUtMwjJwqiRKxxE/rx96Uroj1BtIQ6MLJuheaO9" crossorigin="anonymous">
|
||||||
<link rel="icon" href="images/favicon.png">
|
<link rel="icon" href="images/favicon.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -29,6 +30,26 @@
|
||||||
</section>
|
</section>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<section class="navbar container grid-xl" id="main-buttons">
|
||||||
|
<section class="navbar-section">
|
||||||
|
<div class="dropdown bg-secondary">
|
||||||
|
<a href="#" class="btn btn-link dropdown-toggle" tabindex="0">
|
||||||
|
Filter <i class="fas fa-caret-down"></i>
|
||||||
|
</a>
|
||||||
|
<ul class="menu">
|
||||||
|
<li>community</li>
|
||||||
|
<li>dev</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="navbar-section">
|
||||||
|
<button class="btn btn-primary">Latest</button>
|
||||||
|
<button class="btn btn-link">Most Active</button>
|
||||||
|
<button class="btn btn-link">Categories</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -7,6 +7,12 @@ $dark-color: #3e396b;
|
||||||
// Import full Spectre source code
|
// Import full Spectre source code
|
||||||
@import "spectre/src/spectre";
|
@import "spectre/src/spectre";
|
||||||
|
|
||||||
|
// Global styles.
|
||||||
|
// - TODO: Make these non-global.
|
||||||
|
.btn {
|
||||||
|
margin-left: $control-padding-x;
|
||||||
|
}
|
||||||
|
|
||||||
// Custom styles.
|
// Custom styles.
|
||||||
// - Navigation bar.
|
// - Navigation bar.
|
||||||
$navbar-height: 60px;
|
$navbar-height: 60px;
|
||||||
|
|
@ -24,5 +30,10 @@ $logo-height: $navbar-height - 20px;
|
||||||
|
|
||||||
.navbar-control {
|
.navbar-control {
|
||||||
margin-left: $control-padding-x;
|
margin-left: $control-padding-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
// - Main buttons
|
||||||
|
#main-buttons {
|
||||||
|
margin-top: $control-padding-y;
|
||||||
|
margin-bottom: $control-padding-y;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue