Skip to content

Commit c0a7042

Browse files
Header Cleanup (#707)
- Use :host as the CSS Grid container instead of a wrapper <div>, removing unnecessary DOM nesting - Untrack settings.shared.json (already in .gitignore, was committed before the rule was added) - Add default HeaderBarSettings to settings.json (disabled, UNCLASSIFIED)
1 parent 262b85d commit c0a7042

File tree

4 files changed

+16
-20
lines changed

4 files changed

+16
-20
lines changed

src/app/app.component.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
Released under a MIT (SEI)-style license. See LICENSE.md in the project root for license information.
44
-->
55

6-
<div class="app-layout">
7-
<comn-header-bar></comn-header-bar>
6+
<comn-header-bar></comn-header-bar>
87

9-
<main class="main-content">
10-
<router-outlet></router-outlet>
11-
</main>
12-
</div>
8+
<main class="main-content">
9+
<router-outlet></router-outlet>
10+
</main>

src/app/app.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2021 Carnegie Mellon University. All Rights Reserved.
22
// Released under a MIT (SEI)-style license. See LICENSE.md in the project root for license information.
33

4-
.app-layout {
4+
:host {
55
display: grid;
66
grid-template-rows: auto 1fr;
77
height: 100vh;

src/assets/config/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,15 @@
2222
"AppTopBarHexColor": "#3B62A5",
2323
"AppTopBarHexTextColor": "#FFFFFF",
2424
"UseLocalAuthStorage": false,
25-
"DebugLogging": false
25+
"DebugLogging": false,
26+
"HeaderBarSettings": {
27+
"banner_background_color": "#007a33ff",
28+
"classification_text": "UNCLASSIFIED",
29+
"classification_text_color": "#ffffff",
30+
"classification_text_fontsize": "14",
31+
"message_text": "Maintenance Message",
32+
"message_text_color": "#ffff00",
33+
"message_text_fontsize": "14",
34+
"enabled": false
35+
}
2636
}

src/assets/config/settings.shared.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)