feat: Add custom branding CSS and example JSON for communications site

This commit is contained in:
Torsten Brendgen
2026-08-19 23:55:36 +02:00
parent 281dfa68de
commit 0e98e88a7b
2 changed files with 7 additions and 4 deletions
@@ -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,
@@ -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"
}
}