feat: Add custom branding CSS and example JSON for communications site
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
#CustomHeader {
|
#CustomHeader {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-bottom: 1px solid #edebe9;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: grid;
|
display: grid;
|
||||||
font-family: "Segoe UI", "Segoe UI Web (West European)", sans-serif;
|
font-family: "Segoe UI", "Segoe UI Web (West European)", sans-serif;
|
||||||
@@ -209,6 +208,10 @@
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ms-compositeHeader {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
@media (forced-colors: active) {
|
@media (forced-colors: active) {
|
||||||
#CustomHeader,
|
#CustomHeader,
|
||||||
.portal-branding,
|
.portal-branding,
|
||||||
+3
-3
@@ -10,7 +10,7 @@
|
|||||||
"allowedCssHosts": [],
|
"allowedCssHosts": [],
|
||||||
"cssfiles": [
|
"cssfiles": [
|
||||||
{
|
{
|
||||||
"path": "~sitecollection/SiteAssets/branding/custom-branding.css",
|
"path": "http://portal.contoso.local/SiteAssets/branding/custom-branding.css",
|
||||||
"media": "all"
|
"media": "all"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
"type": "a",
|
"type": "a",
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"class": "portal-branding-home",
|
"class": "portal-branding-home",
|
||||||
"href": "~sitecollection/SitePages/Home.aspx",
|
"href": "http://portal.contoso.local/SitePages/Home.aspx",
|
||||||
"title": "Zur Portal-Startseite"
|
"title": "Zur Portal-Startseite"
|
||||||
},
|
},
|
||||||
"children": [
|
"children": [
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
"type": "img",
|
"type": "img",
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"class": "portal-branding-logo",
|
"class": "portal-branding-logo",
|
||||||
"src": "~sitecollection/SiteAssets/branding/logo.png",
|
"src": "http://portal.contoso.local/Branding/Images/logo.png",
|
||||||
"alt": "Zentrale Abbildende Aufklärung"
|
"alt": "Zentrale Abbildende Aufklärung"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user