Skip to content

Commit

Permalink
Capella Operational vs Columnar IA distinction
Browse files Browse the repository at this point in the history
add a "capella-type" and format this as labels + alternate highlight in nav bar.
  • Loading branch information
osfameron committed Jul 16, 2024
1 parent dad3c50 commit 394d1de
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@
background-color: var(--color-brand-red);
}

.Columnar .nav-item-selected {
background-color: var(--color-brand-caution);
}

@media screen and (min-width: 1024px) {
.navbar-start > a.navbar-item:hover,
.navbar-start > .navbar-item:hover > .navbar-link {
Expand Down
15 changes: 15 additions & 0 deletions src/css/labels.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,21 @@
opacity: 0.6;
}

/* Capella types: columnar vs operational */
.doc .columnar {
color: var(--color-brand-caution);
border: 1px solid var(--color-brand-caution);
border-radius: 3px;
opacity: 1;
}

.doc .operational {
color: var(--color-brand-red);
border: 1px solid var(--color-brand-red);
border-radius: 3px;
opacity: 0.6;
}

.doc .edition.page-edition {
color: #999;
border: 1px solid #999;
Expand Down
2 changes: 1 addition & 1 deletion src/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{{! Start secondary header }}
<div class="header-bottom-row" id="topbar-menu">
<div class="container">
<nav class="navbar navbar-new-bottom">
<nav class="navbar navbar-new-bottom {{page.attributes.capella-type}}">

<div class="navbar-collapse collapse" id="navbar2">
<ul class="navbar-nav w-100 justify-content-start">
Expand Down
18 changes: 17 additions & 1 deletion src/partials/labels.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{{#with page.attributes.capella-type}}
<div class="labels">
<ul>
{{#if (eq this "Columnar")}}
<li class="columnar">
<i class="fas fa-chart-line"></i>
Capella Columnar</li>
{{else}}
<li class="operational">
<i class="fas fa-database"></i>
Capella Operational</li>
{{/if}}
</ul>
</div>
{{/with}}

{{#if (or page.attributes.topic-type)}}
<div class="labels">
<ul>{{#if (eq page.attributes.topic-type 'concept')}}
Expand All @@ -17,6 +33,7 @@
</ul>
</div>
{{/if}}

{{#if (or page.attributes.edition page.attributes.status)}}
<div class="labels">
<ul>
Expand All @@ -30,4 +47,3 @@
</div>
{{/if}}


0 comments on commit 394d1de

Please sign in to comment.