From 1636474977d5182739a0d2dd892f409fab2d4964 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 15 Nov 2023 10:36:56 +0200 Subject: [PATCH] [master | WIP]: Rename irish-theme to extend-theme. Add uk-banner in dashboards. Adjust upload dois page --- src/app/app-routing.module.ts | 9 +- src/app/national/national.component.ts | 47 +++-- src/app/national/national.module.ts | 7 +- src/app/openaireLibrary | 2 +- .../my-orcid-links/myOrcidLinks.component.ts | 4 +- ...rchRecommendedResultsForOrcid.component.ts | 4 +- src/app/rfo/rfo.component.ts | 73 +++++--- src/app/rfo/rfo.module.ts | 7 +- src/app/rpo/rpo.component.ts | 84 ++++++--- .../browse-stakeholder.component.html | 4 +- .../browse-stakeholder.component.ts | 5 +- src/app/shared/irish.ts | 5 +- src/app/shared/monitor/monitor.component.html | 160 +++++++++++++++++- src/app/shared/monitor/monitor.component.ts | 1 - src/app/shared/monitor/monitor.module.ts | 10 +- .../upload-dois/upload-dois.component.html | 44 ++--- src/assets/chart-placeholder.png | Bin 0 -> 8561 bytes src/assets/common-assets | 2 +- .../extend-theme/less/_import-variables.less | 3 + src/assets/extend-theme/less/_import.less | 16 ++ src/assets/extend-theme/less/background.less | 1 + src/assets/extend-theme/less/banner.less | 78 +++++++++ .../less}/button.less | 12 ++ src/assets/extend-theme/less/color.less | 12 ++ .../less}/navbar.less | 0 .../less}/variables.less | 3 + src/assets/irish-monitor.less | 2 + src/assets/irish-theme/_import.less | 21 --- src/assets/irish-theme/background.less | 2 - src/assets/irish-theme/colors.less | 6 - src/assets/openaire-theme | 2 +- src/styles.less | 8 +- 32 files changed, 492 insertions(+), 142 deletions(-) create mode 100644 src/assets/chart-placeholder.png create mode 100644 src/assets/extend-theme/less/_import-variables.less create mode 100644 src/assets/extend-theme/less/_import.less create mode 100644 src/assets/extend-theme/less/background.less create mode 100644 src/assets/extend-theme/less/banner.less rename src/assets/{irish-theme => extend-theme/less}/button.less (52%) create mode 100644 src/assets/extend-theme/less/color.less rename src/assets/{irish-theme => extend-theme/less}/navbar.less (100%) rename src/assets/{irish-theme => extend-theme/less}/variables.less (89%) delete mode 100644 src/assets/irish-theme/_import.less delete mode 100644 src/assets/irish-theme/background.less delete mode 100644 src/assets/irish-theme/colors.less diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 7981a1a..74b5ff3 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -2,13 +2,8 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import {Irish} from "./shared/irish"; import {ErrorPageComponent} from "./openaireLibrary/error/errorPage.component"; -import {ClaimsModule} from "./claims/claims.module"; const routes: Routes = [ - { - path: '', - loadChildren: () => import('./national/national.module').then(m => m.NationalModule) - }, { path: 'rpo', loadChildren: () => import('./rpo/rpo.module').then(m => m.RpoModule), @@ -32,6 +27,10 @@ const routes: Routes = [ loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule), data: {title: Irish.METADATA_PREFIX + ' Admin | '}, }, + { + path: '', + loadChildren: () => import('./national/national.module').then(m => m.NationalModule) + }, {path: 'participate', loadChildren: () => import('./claims/claims.module').then(m => m.ClaimsModule)}, {path: 'orcid', loadChildren: () => import('./orcid/orcid.module').then(m => m.LibOrcidModule)}, {path: 'my-orcid-links', loadChildren: () => import('./orcid/my-orcid-links/myOrcidLinks.module').then(m => m.LibMyOrcidLinksModule)}, diff --git a/src/app/national/national.component.ts b/src/app/national/national.component.ts index 713a304..8078151 100644 --- a/src/app/national/national.component.ts +++ b/src/app/national/national.component.ts @@ -1,7 +1,6 @@ import {Component, OnInit} from "@angular/core"; import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder"; import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service"; -import {BaseComponent} from "../openaireLibrary/sharedComponents/base/base.component"; import {ActivatedRoute, Router} from "@angular/router"; import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service"; import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service"; @@ -9,23 +8,45 @@ import {Meta, Title} from "@angular/platform-browser"; import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class"; import {LinksResolver} from "../search/links-resolver"; import {CustomFilterService} from "../shared/customFilter.service"; +import {StakeholderBaseComponent} from "../openaireLibrary/monitor-admin/utils/stakeholder-base.component"; @Component({ selector: 'national', template: ` - - -
- -
-
+ + +
+
+
+

{{entities.country}} {{entities.stakeholder}}

+
+
+ +
+
+ +
+
+

+ No {{entities.country}} {{entities.stakeholder}} yet. +

` }) -export class NationalComponent extends BaseComponent implements OnInit { +export class NationalComponent extends StakeholderBaseComponent implements OnInit { stakeholder: Stakeholder; loading: boolean = true; + isSearch: boolean = false; constructor(private stakeholderService: StakeholderService, protected _router: Router, @@ -36,7 +57,9 @@ export class NationalComponent extends BaseComponent implements OnInit { protected _meta: Meta, private _customFilterService:CustomFilterService) { super(); - super.initRouterParams(this._route); + super.initRouterParams(this._route, event => { + this.isSearch = event.url.includes('search'); + }); } ngOnInit() { @@ -47,7 +70,7 @@ export class NationalComponent extends BaseComponent implements OnInit { LinksResolver.setProperties(""); this.loading = false; } else { - + this.loading = false; } }); } diff --git a/src/app/national/national.module.ts b/src/app/national/national.module.ts index b357cdc..67aa019 100644 --- a/src/app/national/national.module.ts +++ b/src/app/national/national.module.ts @@ -2,17 +2,18 @@ import {NgModule} from "@angular/core"; import {CommonModule} from "@angular/common"; import {Route, RouterModule} from "@angular/router"; import {NationalComponent} from "./national.component"; +import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module"; const routes: Route[] = [ { path: '', component: NationalComponent, children: [ + {path: 'search', loadChildren: () => import('../search/search.module').then(m => m.SearchModule)}, {path: '', loadChildren: () => import('../shared/monitor/monitor.module').then(m => m.MonitorModule)}, - {path: 'search', loadChildren: () => import('../search/search.module').then(m => m.SearchModule)} - ], data: {stakeholder: 'tubitak'} + ], data: {stakeholder: 'irish'} } ]; @NgModule({ - imports: [CommonModule, RouterModule.forChild(routes)], + imports: [CommonModule, RouterModule.forChild(routes), LoadingModule], declarations: [NationalComponent], exports: [NationalComponent], }) diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index a8c91dc..b8162fa 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit a8c91dc04cb65db6d09b21d6159319dc3294f2a8 +Subproject commit b8162fa1e37ee70628a6ec31d6b145586bd94083 diff --git a/src/app/orcid/my-orcid-links/myOrcidLinks.component.ts b/src/app/orcid/my-orcid-links/myOrcidLinks.component.ts index 7197544..70d6a54 100644 --- a/src/app/orcid/my-orcid-links/myOrcidLinks.component.ts +++ b/src/app/orcid/my-orcid-links/myOrcidLinks.component.ts @@ -3,7 +3,9 @@ import {Component} from '@angular/core'; @Component({ selector: 'openaire-my-orcid-links', template: ` - +
+ +
` }) diff --git a/src/app/orcid/recommend-orcid-links/searchRecommendedResultsForOrcid.component.ts b/src/app/orcid/recommend-orcid-links/searchRecommendedResultsForOrcid.component.ts index 8e11400..c906b6b 100644 --- a/src/app/orcid/recommend-orcid-links/searchRecommendedResultsForOrcid.component.ts +++ b/src/app/orcid/recommend-orcid-links/searchRecommendedResultsForOrcid.component.ts @@ -3,7 +3,9 @@ import {Component} from '@angular/core'; @Component({ selector: 'openaire-search-recommended-results-for-orcid', template: ` - +
+ +
` }) diff --git a/src/app/rfo/rfo.component.ts b/src/app/rfo/rfo.component.ts index 47498f1..5210d5d 100644 --- a/src/app/rfo/rfo.component.ts +++ b/src/app/rfo/rfo.component.ts @@ -1,7 +1,6 @@ -import {Component, OnDestroy, OnInit} from "@angular/core"; +import {Component, OnInit} from "@angular/core"; import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder"; import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service"; -import {BaseComponent} from "../openaireLibrary/sharedComponents/base/base.component"; import {ActivatedRoute, Router} from "@angular/router"; import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service"; import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service"; @@ -9,27 +8,49 @@ import {Meta, Title} from "@angular/platform-browser"; import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class"; import {LinksResolver} from "../search/links-resolver"; import {CustomFilterService} from "../shared/customFilter.service"; +import {StakeholderBaseComponent} from "../openaireLibrary/monitor-admin/utils/stakeholder-base.component"; @Component({ - selector: 'rpo', + selector: 'rfo', template: ` -
-
-
{{stakeholder.index_name}}
- - Browse results
-
-
- -
+ + +
+
+
+

{{stakeholder.name}}

+

{{entities.funders}}

+
+
+ +
+
+ +
+
` }) -export class RfoComponent extends BaseComponent implements OnInit { +export class RfoComponent extends StakeholderBaseComponent implements OnInit { stakeholder: Stakeholder; alias: string; + isSearch: boolean = false; + loading: boolean = false; constructor(private stakeholderService: StakeholderService, - private _customFilterService:CustomFilterService, + private _customFilterService: CustomFilterService, protected _router: Router, protected _route: ActivatedRoute, protected seoService: SEOService, @@ -37,7 +58,9 @@ export class RfoComponent extends BaseComponent implements OnInit { protected _title: Title, protected _meta: Meta) { super(); - super.initRouterParams(this._route); + super.initRouterParams(this._route, event => { + this.isSearch = event.url.includes('search'); + }); } @@ -45,17 +68,25 @@ export class RfoComponent extends BaseComponent implements OnInit { this.params.subscribe(params => { this._customFilterService.setCustomFilter(null); this.alias = params['stakeholder']; - if(this.alias) { - this.subscriptions.push(this.stakeholderService.getStakeholder(this.alias, true).subscribe(data => { - this.stakeholder = data; + if (this.alias) { + this.loading = true; + this.subscriptions.push(this.stakeholderService.getStakeholder(this.alias, true).subscribe(stakeholder => { + this.stakeholder = stakeholder; + if (this.stakeholder && this.stakeholder.type === 'funder') { LinksResolver.resetProperties(); LinksResolver.setSearchAndResultLanding("rfo/" + this.stakeholder.alias); let value = this.stakeholder.index_id + "||" + this.stakeholder.index_name + "||" + this.stakeholder.index_shortName; this._customFilterService.setCustomFilter( - [new SearchCustomFilter("National", "country", "IE", "Irish National Monitor", false), - new SearchCustomFilter("RF0", "relfunder", value, this.stakeholder.index_name, true) + [new SearchCustomFilter("National", "country", "IE", "Irish National Monitor", false), + new SearchCustomFilter("RF0", "relfunder", value, this.stakeholder.index_name, true) ]); - })); + this.loading = false; + } else { + this.navigateToError(); + } + })); + } else { + this.stakeholder = null; } }); } diff --git a/src/app/rfo/rfo.module.ts b/src/app/rfo/rfo.module.ts index 7e185e3..f5d647e 100644 --- a/src/app/rfo/rfo.module.ts +++ b/src/app/rfo/rfo.module.ts @@ -2,18 +2,19 @@ import {NgModule} from "@angular/core"; import {CommonModule} from "@angular/common"; import {Route, RouterModule} from "@angular/router"; import {RfoComponent} from "./rfo.component"; +import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module"; const routes: Route[] = [ { path: '', component: RfoComponent, children: [ {path: '', loadChildren: () => import('../shared/browse-stakeholders/browse-stakeholder.module').then(m => m.BrowseStakeholderModule)}, - {path: ':stakeholder', loadChildren: () => import('../shared/monitor/monitor.module').then(m => m.MonitorModule)}, - {path: ':stakeholder/search', loadChildren: () => import('../search/resultLanding.module').then(m => m.ResultLandingModule)} + {path: ':stakeholder/search', loadChildren: () => import('../search/resultLanding.module').then(m => m.ResultLandingModule)}, + {path: ':stakeholder', loadChildren: () => import('../shared/monitor/monitor.module').then(m => m.MonitorModule)} ] } ]; @NgModule({ - imports: [CommonModule, RouterModule.forChild(routes)], + imports: [CommonModule, RouterModule.forChild(routes), LoadingModule], declarations: [RfoComponent], exports: [RfoComponent], }) diff --git a/src/app/rpo/rpo.component.ts b/src/app/rpo/rpo.component.ts index 437a41f..ad706a0 100644 --- a/src/app/rpo/rpo.component.ts +++ b/src/app/rpo/rpo.component.ts @@ -1,32 +1,56 @@ -import {Component, OnDestroy, OnInit} from "@angular/core"; +import {Component, OnInit} from "@angular/core"; import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder"; import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service"; -import {BaseComponent} from "../openaireLibrary/sharedComponents/base/base.component"; import {ActivatedRoute, Router} from "@angular/router"; import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service"; import {PiwikService} from "../openaireLibrary/utils/piwik/piwik.service"; import {Meta, Title} from "@angular/platform-browser"; -import {CustomFilterService} from "../shared/customFilter.service"; -import {LinksResolver} from "../search/links-resolver"; import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class"; +import {LinksResolver} from "../search/links-resolver"; +import {CustomFilterService} from "../shared/customFilter.service"; +import {StakeholderBaseComponent} from "../openaireLibrary/monitor-admin/utils/stakeholder-base.component"; @Component({ selector: 'rpo', template: ` -
- -
-
- -
+ + +
+
+
+

{{stakeholder.name}}

+

{{entities.organizations}}

+
+
+ +
+
+ +
+
` }) -export class RpoComponent extends BaseComponent implements OnInit { +export class RpoComponent extends StakeholderBaseComponent implements OnInit { stakeholder: Stakeholder; alias: string; + isSearch: boolean = false; + loading: boolean = false; constructor(private stakeholderService: StakeholderService, - private _customFilterService:CustomFilterService, + private _customFilterService: CustomFilterService, protected _router: Router, protected _route: ActivatedRoute, protected seoService: SEOService, @@ -34,7 +58,9 @@ export class RpoComponent extends BaseComponent implements OnInit { protected _title: Title, protected _meta: Meta) { super(); - super.initRouterParams(this._route); + super.initRouterParams(this._route, event => { + this.isSearch = event.url.includes('search'); + }); } @@ -42,22 +68,28 @@ export class RpoComponent extends BaseComponent implements OnInit { this.params.subscribe(params => { this._customFilterService.setCustomFilter(null); this.alias = params['stakeholder']; - if(this.alias) { - this.subscriptions.push(this.stakeholderService.getStakeholder(this.alias, true).subscribe(data => { - this.stakeholder = data; - LinksResolver.resetProperties(); - LinksResolver.setSearchAndResultLanding("rpo/" + this.stakeholder.alias); - this._customFilterService.setCustomFilter( - [new SearchCustomFilter("National", "country", "IE", "Irish National Monitor", false), - new SearchCustomFilter("RPO", "relorganizationid", this.stakeholder.index_id, this.stakeholder.index_name, true) - ]); - - // TODO not correct id/ no irish? - - + if (this.alias) { + this.loading = true; + this.subscriptions.push(this.stakeholderService.getStakeholder(this.alias, true).subscribe(stakeholder => { + this.stakeholder = stakeholder; + if (this.stakeholder && this.stakeholder.type === 'organization') { + LinksResolver.resetProperties(); + LinksResolver.setSearchAndResultLanding("rfo/" + this.stakeholder.alias); + let value = this.stakeholder.index_id + "||" + this.stakeholder.index_name + "||" + this.stakeholder.index_shortName; + this._customFilterService.setCustomFilter( + [new SearchCustomFilter("National", "country", "IE", "Irish National Monitor", false), + new SearchCustomFilter("RPO", "relorganizationid", this.stakeholder.index_id, this.stakeholder.index_name, true) + ]); + this.loading = false; + } else { + this.navigateToError(); + } })); + } else { + this.stakeholder = null; } }); } } + diff --git a/src/app/shared/browse-stakeholders/browse-stakeholder.component.html b/src/app/shared/browse-stakeholders/browse-stakeholder.component.html index 714b231..71b9a30 100644 --- a/src/app/shared/browse-stakeholders/browse-stakeholder.component.html +++ b/src/app/shared/browse-stakeholders/browse-stakeholder.component.html @@ -3,7 +3,7 @@ - +
@@ -130,4 +130,4 @@
- +
diff --git a/src/app/shared/browse-stakeholders/browse-stakeholder.component.ts b/src/app/shared/browse-stakeholders/browse-stakeholder.component.ts index 9893ab3..25be9e9 100644 --- a/src/app/shared/browse-stakeholders/browse-stakeholder.component.ts +++ b/src/app/shared/browse-stakeholders/browse-stakeholder.component.ts @@ -11,7 +11,7 @@ import {debounceTime, distinctUntilChanged} from "rxjs/operators"; @Component({ selector: 'browse-stakeholder', - templateUrl: `browse-stakeholder.component.html` + templateUrl: 'browse-stakeholder.component.html' }) export class BrowseStakeholderComponent extends StakeholderBaseComponent implements OnInit { stakeholderType: StakeholderType; @@ -74,9 +74,6 @@ export class BrowseStakeholderComponent extends StakeholderBaseComponent impleme })); } - private navigateToError() { - this._router.navigate([this.properties.errorLink], {queryParams: {'page': this._router.url}}); - } private filtering(value) { if(!value){ diff --git a/src/app/shared/irish.ts b/src/app/shared/irish.ts index 7eb2988..42d44c1 100644 --- a/src/app/shared/irish.ts +++ b/src/app/shared/irish.ts @@ -1,5 +1,6 @@ import {Portal} from "../openaireLibrary/utils/entities/adminTool/portal"; import {StakeholderConfiguration} from "../openaireLibrary/monitor-admin/utils/indicator-utils"; +import {LayoutService} from "../openaireLibrary/dashboard/sharedComponents/sidebar/layout.service"; export class Irish { public static METADATA_PREFIX = 'NOAMI | '; @@ -27,7 +28,9 @@ export class Irish { StakeholderConfiguration.VISIBILITIES = [ {icon: 'earth', value: "PUBLIC", label: 'Public'}, - ] + ]; + + LayoutService.HEADER_HEIGHT = '60px'; } } diff --git a/src/app/shared/monitor/monitor.component.html b/src/app/shared/monitor/monitor.component.html index 26bd5e9..f721e1d 100644 --- a/src/app/shared/monitor/monitor.component.html +++ b/src/app/shared/monitor/monitor.component.html @@ -1,18 +1,166 @@ -
+
- +
- +
+ No {{entities.stakeholder}} yet. +
+
+ +
+
{{number.title}}
+ +
+
+
+
{{indicator.name}}
+
+ + -- +
+ +
+
+ +
+

+ {{indicator.description}} +

+

+ {{indicator.additionalDescription}} +

+
+
+
+
+
+
+
+
{{number.title}}
+
+
+ +
+
+
+
{{indicator.name}}
+
+ + -- +
+
+
+
+
+
+
+
+
+ +
+
{{chart.title}}
+
{{chart.title}}
+ +
+
+
+
+ {{indicator.name + " "}} +
+
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+

+ {{indicator.description}} +

+

+ {{indicator.additionalDescription}} +

+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/shared/monitor/monitor.component.ts b/src/app/shared/monitor/monitor.component.ts index f90bf45..9b34b78 100644 --- a/src/app/shared/monitor/monitor.component.ts +++ b/src/app/shared/monitor/monitor.component.ts @@ -17,7 +17,6 @@ import {SEOService} from "../../openaireLibrary/sharedComponents/SEO/SEO.service templateUrl: 'monitor.component.html' }) export class MonitorComponent extends MonitorIndicatorStakeholderBaseComponent { - tabsClass: string = 'uk-tab'; constructor(protected _route: ActivatedRoute, protected _router: Router, diff --git a/src/app/shared/monitor/monitor.module.ts b/src/app/shared/monitor/monitor.module.ts index 77a51a1..f9e8d52 100644 --- a/src/app/shared/monitor/monitor.module.ts +++ b/src/app/shared/monitor/monitor.module.ts @@ -4,11 +4,17 @@ import {RouterModule} from "@angular/router"; import {MonitorComponent} from "./monitor.component"; import {PageContentModule} from "../../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module"; import {SliderTabsModule} from "../../openaireLibrary/sharedComponents/tabs/slider-tabs.module"; +import {NumberRoundModule} from "../../openaireLibrary/utils/pipes/number-round.module"; +import {IconsModule} from "../../openaireLibrary/utils/icons/icons.module"; +import {ClickModule} from "../../openaireLibrary/utils/click/click.module"; @NgModule({ imports: [CommonModule, RouterModule.forChild([ - {path: '', component: MonitorComponent} - ]), PageContentModule, SliderTabsModule], + {path: '', component: MonitorComponent}, + {path: ':topic/', component: MonitorComponent}, + {path: ':topic/:category', component: MonitorComponent}, + {path: ':topic/:category/:subCategory', component: MonitorComponent} + ]), PageContentModule, SliderTabsModule, NumberRoundModule, IconsModule, ClickModule], declarations: [MonitorComponent], exports: [MonitorComponent] }) diff --git a/src/app/upload-dois/upload-dois.component.html b/src/app/upload-dois/upload-dois.component.html index 9e98f29..e98ea65 100644 --- a/src/app/upload-dois/upload-dois.component.html +++ b/src/app/upload-dois/upload-dois.component.html @@ -1,27 +1,29 @@
-
-
-
Title
-
Lorem ipsum.......
-
-
-
- - - - upload new file - - -
-
-
- -
+
+
+
- {{filesToUpload[0].name}} - +
Title
+
Lorem ipsum.......
+
+
+
+ +
+
+ +
+ {{filesToUpload[0].name}} + +
+
+
@@ -37,7 +39,7 @@
Maximum size: 5 MB
-
+
diff --git a/src/assets/chart-placeholder.png b/src/assets/chart-placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..dd343fd87ec8d5ccf45e1c06a815fbf03df25dde GIT binary patch literal 8561 zcmeHsXH?Tow{PeKkg9-6iBt={Ce%;_f>NX-2nd8CC3Hdw_652tbN~S0 z0!&BK2mm0PC4LXkQWO76Tpg{Fgo+{tRt z%QW0`=`A-Ejhov`|iu>HpU>7QmHxwy`Qps^6h1OQzp;(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~YTGXO?}l3}vG zww6xV(oq=*@FjiMDVgS6g4A=wCs=!9Oe@Jkuv27D_`S5GFOdsdVxtnTq8%ddmRCTz zFlj*Wc%^c8Bjd^Wn^9jA>n7Mt0QnMYO}5g$SEB&!|X|ILYPUOOYs6FHRHTSxytN z`$E55sz`;wNMrWvzBA3E^~S_sNwRkwzXh$G*B6XAe*SLEGvMypJC_qAazQZlqZ)|| i!Ndm7#s7PpoKb~sA$>#Wu_ li { + &:not(:first-child) { + margin-left: @banner-tab-gutter; + position: relative; + + &::before { + content: ''; + position: absolute; + left: -1 * (@banner-tab-gutter/2); + transform: translateX(-100%); + border-left: @banner-tab-divider; + height: @banner-tab-divider-height; + } + } + + a { + color: @banner-tab-item-color; + text-transform: uppercase; + text-decoration: none; + } + + &:hover a { + color:@banner-tab-item-hover-color; + } + + &.uk-active a { + color: @banner-tab-item-active-color; + font-weight: @text-bold-weight; + position: relative; + + &:after { + content: ''; + position: absolute; + bottom: -@banner-tab-margin-bottom; + left: 50%; + transform: translate(-50%, 50%); + width: 0; + height: 0; + border-left: 2*@banner-tab-margin-bottom solid transparent; + border-right: 2*@banner-tab-margin-bottom solid transparent; + border-bottom: @banner-tab-margin-bottom solid @banner-tab-item-active-indicator; + } + } + } + } + } +} + +.uk-banner:extend(.uk-light all) when (@banner-mode = light) {} diff --git a/src/assets/irish-theme/button.less b/src/assets/extend-theme/less/button.less similarity index 52% rename from src/assets/irish-theme/button.less rename to src/assets/extend-theme/less/button.less index b354e50..63ce1db 100644 --- a/src/assets/irish-theme/button.less +++ b/src/assets/extend-theme/less/button.less @@ -1,3 +1,15 @@ +/* Primary */ +@button-primary-background: @global-primary-background; +@button-primary-background-gradient: none; +@button-primary-color: @global-inverse-color; +@button-primary-box-shadow: @global-medium-box-shadow; +@button-primary-border: transparent; +@button-primary-hover-background: @global-secondary-background; +@button-primary-hover-background-gradient: none; +@button-primary-hover-color: @global-inverse-color; +@button-primary-hover-box-shadow: @global-small-box-shadow; +@button-primary-hover-border: transparent; + /* Secondary */ @button-secondary-background: @global-secondary-background; @button-secondary-background-gradient: none; diff --git a/src/assets/extend-theme/less/color.less b/src/assets/extend-theme/less/color.less new file mode 100644 index 0000000..5fe56b9 --- /dev/null +++ b/src/assets/extend-theme/less/color.less @@ -0,0 +1,12 @@ +@irish-primary-color: #009A49; +@irish-light-color: #25AE7A; +@irish-dark-color: #002B1A; +@irish-secondary-color: #FF7901; +@irish-thin-color: #DCE9E3; +@irish-global-background: #F9FBFC; + + +@funder-color: #4D276F; +@organization-color: #f5cc1c; +@country-color: @irish-primary-color; +@datasource-color: #D45E50; diff --git a/src/assets/irish-theme/navbar.less b/src/assets/extend-theme/less/navbar.less similarity index 100% rename from src/assets/irish-theme/navbar.less rename to src/assets/extend-theme/less/navbar.less diff --git a/src/assets/irish-theme/variables.less b/src/assets/extend-theme/less/variables.less similarity index 89% rename from src/assets/irish-theme/variables.less rename to src/assets/extend-theme/less/variables.less index d2241eb..f7bdd32 100644 --- a/src/assets/irish-theme/variables.less +++ b/src/assets/extend-theme/less/variables.less @@ -1,8 +1,11 @@ +@import "color"; + /** Backgrounds */ @global-primary-background: @irish-primary-color; @global-secondary-background: @irish-secondary-color; @global-background: @irish-global-background; @global-primary-gradient: radial-gradient(closest-side at 50% 50%, @irish-light-color 0%, @irish-dark-color 100%); +@global-muted-background: @gray-300; /** Borders */ @global-border: @gray-300; diff --git a/src/assets/irish-monitor.less b/src/assets/irish-monitor.less index 6128c36..4d98861 100644 --- a/src/assets/irish-monitor.less +++ b/src/assets/irish-monitor.less @@ -1,3 +1,5 @@ +@general-search-form-background: none; + .irish-monitor { /* Import OpenAIRE theme*/ @import (multiple) "~src/assets/openaire-theme/less/_import"; diff --git a/src/assets/irish-theme/_import.less b/src/assets/irish-theme/_import.less deleted file mode 100644 index cc8f41c..0000000 --- a/src/assets/irish-theme/_import.less +++ /dev/null @@ -1,21 +0,0 @@ -@import "~src/assets/openaire-theme/less/_import"; -@import "~src/assets/common-assets/less/general"; -@import "~src/assets/common-assets/less/user"; -@import "~src/assets/common-assets/less/landing"; -@import "~src/assets/common-assets/less/linking"; -@import "~src/assets/common-assets/less/dashboard"; -@import "~src/assets/common-assets/less/ckeditor"; - -@import "colors"; - -// Base -@import "variables"; - -// Elements -@import "button"; - -// Navs -@import "navbar"; - -// Utilities -@import "background"; diff --git a/src/assets/irish-theme/background.less b/src/assets/irish-theme/background.less deleted file mode 100644 index 376c73c..0000000 --- a/src/assets/irish-theme/background.less +++ /dev/null @@ -1,2 +0,0 @@ -@background-primary-background: @irish-primary-background; -@background-primary-background-gradient: none; diff --git a/src/assets/irish-theme/colors.less b/src/assets/irish-theme/colors.less deleted file mode 100644 index 9ac2f54..0000000 --- a/src/assets/irish-theme/colors.less +++ /dev/null @@ -1,6 +0,0 @@ -@irish-primary-color: #1B895F; -@irish-light-color: #25AE7A; -@irish-dark-color: #002B1A; -@irish-secondary-color: #FF7901; -@irish-primary-background: #DCE9E3; -@irish-global-background: #F9FBFC; diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme index 2dadcf8..928dfa1 160000 --- a/src/assets/openaire-theme +++ b/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 2dadcf85926bc0f11fff22ed94dc197ddd8587c6 +Subproject commit 928dfa11bd4aeadb30c2d72d408c7b7206d6598e diff --git a/src/styles.less b/src/styles.less index 269d904..5dd7d53 100644 --- a/src/styles.less +++ b/src/styles.less @@ -1,4 +1,10 @@ /* You can add global styles to this file, and also import other style files */ /* Import OpenAIRE theme*/ -@import "~src/assets/irish-theme/_import"; +@import "~src/assets/extend-theme/less/_import"; +@import "~src/assets/common-assets/less/general"; +@import "~src/assets/common-assets/less/user"; +@import "~src/assets/common-assets/less/landing"; +@import "~src/assets/common-assets/less/linking"; +@import "~src/assets/common-assets/less/dashboard"; +@import "~src/assets/common-assets/less/ckeditor"; @import "~src/assets/irish-monitor";