Skip to content

Commit 592ec83

Browse files
committed
Added the mazak and okuma links into the viewer for the demo.
1 parent e65b0c1 commit 592ec83

2 files changed

Lines changed: 23 additions & 11 deletions

File tree

‎demo/styles/viewer.html‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,14 @@
5050
<option value="xml">XML</option>
5151
<option value="json">JSON</option>
5252
</select>
53-
<div style="padding: 5px 5px">
54-
<li>
55-
<a style="color: white" href="/twin/index.html?device=Mazak">Mazak Digital Twin</a>
56-
</li>
57-
<li>
58-
<a style="color: white" href="/twin/index.html?device=OKUMA">Okuma Digital Twin</a>
59-
</li>
60-
</div>
6153
<button id="raw" type="button" class="btn">Raw</button>
6254
<button id="help" type="button" class="btn">?</button>
6355
</div>
6456
</form>
57+
<ul class="nav navbar-nav navbar-right mtc-links">
58+
<li><a href="/twin/index.html?device=Mazak">Mazak Twin</a></li>
59+
<li><a href="/twin/index.html?device=OKUMA">Okuma Twin</a></li>
60+
</ul>
6561
</div>
6662
</nav>
6763

‎styles/viewer.css‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@
2222
padding: 5px 10px;
2323
}
2424

25-
.mtc-path {
25+
/* Bootstrap sets .navbar-form .form-control to width: auto, so these need the same specificity */
26+
.navbar-form .mtc-path {
2627
width: 18em;
2728
margin-right: 6px;
2829
}
2930

30-
.mtc-small {
31+
.navbar-form .mtc-small {
3132
width: 6em;
3233
margin-right: 6px;
3334
}
3435

35-
.mtc-format {
36+
.navbar-form .mtc-format {
3637
display: inline-block;
3738
width: auto;
3839
margin-right: 6px;
@@ -42,6 +43,21 @@
4243
margin-right: 6px;
4344
}
4445

46+
/* Extra links at the right of the navbar, such as the demo's digital twins. No horizontal
47+
padding, so the links are spaced by their margins and the bar fits on one row. */
48+
.navbar-nav.mtc-links {
49+
margin-right: 12px;
50+
}
51+
52+
.navbar-nav.mtc-links > li {
53+
margin-left: 12px;
54+
}
55+
56+
.navbar-nav.mtc-links > li > a {
57+
padding-left: 0;
58+
padding-right: 0;
59+
}
60+
4561
.mtc-notice {
4662
margin: 0;
4763
padding: 6px 12px;

0 commit comments

Comments
 (0)