Skip to content

Commit 394d1de

Browse files
committed
Capella Operational vs Columnar IA distinction
add a "capella-type" and format this as labels + alternate highlight in nav bar.
1 parent dad3c50 commit 394d1de

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

src/css/header.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@
221221
background-color: var(--color-brand-red);
222222
}
223223

224+
.Columnar .nav-item-selected {
225+
background-color: var(--color-brand-caution);
226+
}
227+
224228
@media screen and (min-width: 1024px) {
225229
.navbar-start > a.navbar-item:hover,
226230
.navbar-start > .navbar-item:hover > .navbar-link {

src/css/labels.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,21 @@
126126
opacity: 0.6;
127127
}
128128

129+
/* Capella types: columnar vs operational */
130+
.doc .columnar {
131+
color: var(--color-brand-caution);
132+
border: 1px solid var(--color-brand-caution);
133+
border-radius: 3px;
134+
opacity: 1;
135+
}
136+
137+
.doc .operational {
138+
color: var(--color-brand-red);
139+
border: 1px solid var(--color-brand-red);
140+
border-radius: 3px;
141+
opacity: 0.6;
142+
}
143+
129144
.doc .edition.page-edition {
130145
color: #999;
131146
border: 1px solid #999;

src/partials/header-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{{! Start secondary header }}
3131
<div class="header-bottom-row" id="topbar-menu">
3232
<div class="container">
33-
<nav class="navbar navbar-new-bottom">
33+
<nav class="navbar navbar-new-bottom {{page.attributes.capella-type}}">
3434

3535
<div class="navbar-collapse collapse" id="navbar2">
3636
<ul class="navbar-nav w-100 justify-content-start">

src/partials/labels.hbs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
{{#with page.attributes.capella-type}}
2+
<div class="labels">
3+
<ul>
4+
{{#if (eq this "Columnar")}}
5+
<li class="columnar">
6+
<i class="fas fa-chart-line"></i>
7+
Capella Columnar</li>
8+
{{else}}
9+
<li class="operational">
10+
<i class="fas fa-database"></i>
11+
Capella Operational</li>
12+
{{/if}}
13+
</ul>
14+
</div>
15+
{{/with}}
16+
117
{{#if (or page.attributes.topic-type)}}
218
<div class="labels">
319
<ul>{{#if (eq page.attributes.topic-type 'concept')}}
@@ -17,6 +33,7 @@
1733
</ul>
1834
</div>
1935
{{/if}}
36+
2037
{{#if (or page.attributes.edition page.attributes.status)}}
2138
<div class="labels">
2239
<ul>
@@ -30,4 +47,3 @@
3047
</div>
3148
{{/if}}
3249

33-

0 commit comments

Comments
 (0)