Skip to content

Commit 9e297d4

Browse files
doc: Remove migration banner (TheThingsIndustries#370)
1 parent fc6056e commit 9e297d4

3 files changed

Lines changed: 0 additions & 42 deletions

File tree

doc/assets/css/header/nav.scss

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
#migration-text {
2-
color: $white;
3-
font-weight: bold;
4-
padding-right: 30px;
5-
}
6-
7-
#migration-button {
8-
border: 1px $white;
9-
border-style: solid;
10-
}
11-
12-
#migration-info {
13-
width: 100vw;
14-
height: $banner-height;
15-
font-size: 15px;
16-
justify-content: center;
17-
align-items: center;
18-
background-color: $blue;
19-
display: none; // or `flex`
20-
padding: 0 2rem 0 2rem;
21-
}
22-
231
.navbar {
242
display: block;
253
border-bottom: 1px solid #e9ecef;

doc/assets/js/theme.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -106,24 +106,8 @@ function addTabs(){
106106
init()
107107
}
108108

109-
function addMigrationBar(){
110-
var migrationInfoAccepted = window.localStorage.getItem('migrationInfoAccepted')
111-
if(migrationInfoAccepted != 'true') {
112-
var migrationBar = document.getElementById('migration-info')
113-
migrationBar.style.display = 'flex';
114-
document.documentElement.classList.add("has-navbar-banner-top")
115-
var migrationButton = document.getElementById('migration-button')
116-
migrationButton.addEventListener('click', function (){
117-
window.localStorage.setItem('migrationInfoAccepted', true)
118-
migrationBar.style.display = 'none';
119-
document.documentElement.classList.remove("has-navbar-banner-top")
120-
})
121-
}
122-
}
123-
124109
document.addEventListener('DOMContentLoaded', function () {
125110
addAnchors()
126-
addMigrationBar()
127111
addNavBarBurgers()
128112
addTabs()
129113
})

doc/layouts/partials/header/nav.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
2-
<div id="migration-info">
3-
<div id="migration-text">thethingsstack.io has moved to thethingsindustries.com/docs</div>
4-
<div id="migration-button" class="button is-primary">Got it</div>
5-
</div>
62
<div class="container is-fluid">
73
<div class="navbar-brand">
84
<a class="navbar-item" href="{{ relURL "/" }}">

0 commit comments

Comments
 (0)