Skip to content

Commit b06b881

Browse files
author
Jani Giannoudis
committed
docfx: header restyling
1 parent 71ec3d2 commit b06b881

4 files changed

Lines changed: 31 additions & 37 deletions

File tree

docfx/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"output": "_site",
4343
"globalMetadata": {
4444
"_appTitle": "PE Script Reference",
45-
"_appName": "Client Scripting"
45+
"_appName": ""
4646
},
4747
"template": [
4848
"default",

docfx/logo.svg

Lines changed: 5 additions & 28 deletions
Loading

docfx/templates/darkerfx/styles/main.css

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docfx/templates/darkerfx/styles/toggle-theme.js

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
1-
// Inject app name next to logo
1+
// Inject role badge next to logo
22
document.addEventListener("DOMContentLoaded", function () {
33
var brand = document.querySelector(".navbar-brand");
44
if (brand) {
55
brand.style.cssText = "display:inline-flex;align-items:center;gap:10px;";
6-
var span = document.createElement("span");
7-
span.textContent = "Client Scripting";
8-
span.style.cssText = "font-size:.9rem;font-weight:700;color:#22d3a0;letter-spacing:.02em;white-space:nowrap;";
9-
brand.appendChild(span);
6+
var title = document.createElement("span");
7+
title.textContent = "Payroll Engine";
8+
title.style.cssText = "font-size:.85rem;font-weight:700;color:#fff;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;";
9+
brand.appendChild(title);
10+
var badge = document.createElement("span");
11+
badge.textContent = "Client Scripting";
12+
badge.style.cssText = [
13+
"font-size:.7rem",
14+
"font-weight:700",
15+
"letter-spacing:.05em",
16+
"text-transform:uppercase",
17+
"padding:.15rem .55rem",
18+
"border-radius:4px",
19+
"border-left:3px solid #22d3a0",
20+
"background:rgba(34,211,160,.1)",
21+
"color:#22d3a0",
22+
"white-space:nowrap",
23+
"line-height:1.6"
24+
].join(";");
25+
brand.appendChild(badge);
1026
}
1127
});
1228

0 commit comments

Comments
 (0)