From 0e98e88a7b141a8e00339f0fd4560c51ae086e56 Mon Sep 17 00:00:00 2001 From: Torsten Brendgen Date: Wed, 19 Aug 2026 23:55:36 +0200 Subject: [PATCH] feat: Add custom branding CSS and example JSON for communications site --- ...m-branding.css => custom-branding-communicationsite.css} | 5 ++++- ....json => custom-branding-communicationsite.example.json} | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) rename examples/{custom-branding.css => custom-branding-communicationsite.css} (98%) rename examples/{custom-branding.example.json => custom-branding-communicationsite.example.json} (91%) diff --git a/examples/custom-branding.css b/examples/custom-branding-communicationsite.css similarity index 98% rename from examples/custom-branding.css rename to examples/custom-branding-communicationsite.css index 74fcfa0..409fa9b 100644 --- a/examples/custom-branding.css +++ b/examples/custom-branding-communicationsite.css @@ -9,7 +9,6 @@ #CustomHeader { align-items: stretch; background: #ffffff; - border-bottom: 1px solid #edebe9; box-sizing: border-box; display: grid; font-family: "Segoe UI", "Segoe UI Web (West European)", sans-serif; @@ -209,6 +208,10 @@ background-repeat: no-repeat; } +.ms-compositeHeader { + display: none !important; +} + @media (forced-colors: active) { #CustomHeader, .portal-branding, diff --git a/examples/custom-branding.example.json b/examples/custom-branding-communicationsite.example.json similarity index 91% rename from examples/custom-branding.example.json rename to examples/custom-branding-communicationsite.example.json index 8ce4a03..43e48ba 100644 --- a/examples/custom-branding.example.json +++ b/examples/custom-branding-communicationsite.example.json @@ -10,7 +10,7 @@ "allowedCssHosts": [], "cssfiles": [ { - "path": "~sitecollection/SiteAssets/branding/custom-branding.css", + "path": "http://portal.contoso.local/SiteAssets/branding/custom-branding.css", "media": "all" } ], @@ -36,7 +36,7 @@ "type": "a", "attributes": { "class": "portal-branding-home", - "href": "~sitecollection/SitePages/Home.aspx", + "href": "http://portal.contoso.local/SitePages/Home.aspx", "title": "Zur Portal-Startseite" }, "children": [ @@ -44,7 +44,7 @@ "type": "img", "attributes": { "class": "portal-branding-logo", - "src": "~sitecollection/SiteAssets/branding/logo.png", + "src": "http://portal.contoso.local/Branding/Images/logo.png", "alt": "Zentrale Abbildende Aufklärung" } }