[Connect|Trunk]
customization css: portal-button colors exclude uk-disabled add piwik ids for new communities add GSC verification code git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@60964 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
e6ec08d1ab
commit
cfb73f8a37
|
@ -62,14 +62,15 @@ export class CustomizationComponent {
|
|||
:root {
|
||||
--portal-main-color: ` + this.layout.identity.mainColor+`;
|
||||
--portal-dark-color: ` + this.layout.identity.secondaryColor+`;
|
||||
--background-light-color: ` + this.layout.backgrounds.light.color+`;
|
||||
}
|
||||
`;
|
||||
//Search SVG
|
||||
let search = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 532"><defs><style>.cls-1{isolation:isolate;}.cls-2{fill:{{color}};mix-blend-mode:multiply;}</style></defs><title>Asset 3</title><g class="cls-1"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-2" d="M0,431s362,109,841,62,632,68,1159-9V0H0Z"/><path class="cls-2" d="M0,514s1401,71,2000-69V0H0Z"/></g></g></g></svg>`;;
|
||||
let svg = 'data:image/svg+xml,' + encodeURIComponent(search.replace('{{color}}', this.layout.backgrounds.form.color));
|
||||
this.customizationCss = this.customizationCss.concat('.generalSearchForm,.publicationsSearchForm,.projectsSearchForm, .projectsTableSearchForm,.organizationsSearchForm,.datasourcesSearchForm {');
|
||||
this.customizationCss = this.customizationCss.concat(' background: ' + "url('" + svg + "') transparent no-repeat center bottom }");
|
||||
this.customizationCss = this.customizationCss.concat(' background: ' + "url('" + svg + "') transparent no-repeat center bottom; ");
|
||||
this.customizationCss = this.customizationCss.concat(" background-size: cover !important; ");
|
||||
this.customizationCss = this.customizationCss.concat(" height: inherit; }");
|
||||
|
||||
//Button link SVG
|
||||
let arrow = `<svg width="23" height="11" viewBox="0 0 23 11" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="{{color}}" points="17 1 22 5.5 17 10 " /><line fill="none" stroke="{{color}}" x1="0" y1="5.5" x2="22.4" y2="5.5" /></svg>`;;
|
||||
|
@ -84,7 +85,7 @@ export class CustomizationComponent {
|
|||
this.customizationCss = this.customizationCss.concat(' }');
|
||||
|
||||
|
||||
this.customizationCss = this.customizationCss.concat(' .uk-button:not(.uk-button-text):not(.uk-button-default):not(.uk-button-primary), .portal-button {');
|
||||
this.customizationCss = this.customizationCss.concat(' .uk-button:not(.uk-button-text):not(.uk-button-default):not(.uk-button-primary):not(.uk-disabled), .portal-button:not(.uk-disabled) {');
|
||||
this.customizationCss = this.customizationCss.concat(' background-color:' + (this.layout.buttons.lightBackground.backgroundColor != null ? this.layout.buttons.lightBackground.backgroundColor : `#003052`) + ';');
|
||||
this.customizationCss = this.customizationCss.concat(' color: ' + (this.layout.buttons.lightBackground.color != null ? this.layout.buttons.lightBackground.color : `white`) + ';');
|
||||
this.customizationCss = this.customizationCss.concat('border-color: ' + (this.layout.buttons.lightBackground.borderColor != null ? this.layout.buttons.lightBackground.borderColor : `transparent`) + ';');
|
||||
|
|
|
@ -20,7 +20,9 @@ export class PiwikHelper{
|
|||
"covid-19":267,
|
||||
"rural-digital-europe":319,
|
||||
"enermaps":318,
|
||||
"galaxy":453
|
||||
"galaxy":453,
|
||||
"gotriple":null,
|
||||
"neanias-underwater":474
|
||||
};
|
||||
public static getSiteId(communityId:string, environment:string){
|
||||
return this.siteIDs[communityId];
|
||||
|
|
|
@ -152,11 +152,3 @@ a:not(.uk-button),
|
|||
color: var(--portal-main-color) !important;
|
||||
}
|
||||
|
||||
.generalSearchForm,
|
||||
.publicationsSearchForm,
|
||||
.projectsSearchForm,
|
||||
.organizationsSearchForm,
|
||||
.datasourcesSearchForm{
|
||||
background-size: cover !important;
|
||||
height: inherit;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<meta property="og:description"
|
||||
content="OpenAIRE Connect, Connect,Community Dashboard, communities, open access, research, projects"/>
|
||||
<meta property="og:title" content="OpenAIRE - Connect "/>
|
||||
|
||||
<meta name="google-site-verification" content="rZ-58gIX8IqzBte6Qv4J5yY9aSiDP15Dfc1Yr9yezqE" />
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:url" content="https://connect.openaire.eu"/>
|
||||
<meta property="og:site_name" content="OpenAIRE - Connect"/>
|
||||
|
|
Loading…
Reference in New Issue