From 398b80d2280248e9a7dba038d614a0d06afe612d Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 17 Jun 2022 02:57:56 +0300 Subject: [PATCH] Change all offcanvas with uikit class. FIx search filter checkbox and radio label. Modal: Add container to avoid insert class at DOM --- .../result/resultLanding.component.html | 8 +-- .../notification-sidebar.component.css | 60 ------------------- .../notification-sidebar.component.less | 34 +++++++++++ .../notifications-sidebar.component.ts | 15 +++-- .../searchUtils/newSearchPage.component.html | 2 +- .../searchUtils/searchFilter.component.html | 8 +-- sharedComponents/navigationBar.component.html | 9 +-- sharedComponents/navigationBar.module.ts | 3 +- utils/modal/alert.ts | 5 +- 9 files changed, 59 insertions(+), 85 deletions(-) delete mode 100644 notifications/notifications-sidebar/notification-sidebar.component.css create mode 100644 notifications/notifications-sidebar/notification-sidebar.component.less diff --git a/landingPages/result/resultLanding.component.html b/landingPages/result/resultLanding.component.html index fe90e220..6226127d 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -406,17 +406,17 @@ -
+
- -
+
diff --git a/notifications/notifications-sidebar/notification-sidebar.component.css b/notifications/notifications-sidebar/notification-sidebar.component.css deleted file mode 100644 index c2b6f233..00000000 --- a/notifications/notifications-sidebar/notification-sidebar.component.css +++ /dev/null @@ -1,60 +0,0 @@ -#notifications-switcher { - top: 480px !important; -} - -#notifications .notification-list { - padding: 45px 0 45px 45px; -} - -#notifications .notification-list:not(:last-child) { - height: 440px; - border-bottom: 1px solid #E4E4E4; -} - -#notifications .notification-list ul { - overflow: auto; - padding: 10px 45px 10px 0; - height: calc(100% - 77px); -} - -#notifications .notification-list ul > li:nth-child(n+2){ - margin-top: 15px; -} - -#notifications .notify { - padding: 20px 45px; -} - -#notifications .notification { - padding: 45px 45px; - overflow: auto; -} - -/*#notifications .uk-offcanvas-bar a, #notifications .uk-offcanvas-bar button.uk-button-link {*/ -/* color: var(--secondary-color);*/ -/*}*/ - -#notifications .uk-offcanvas-bar button.uk-button-link:disabled { - color: var(--secondary-color); - opacity: 0.5; -} - -/*#notifications .uk-offcanvas-bar .uk-button-secondary {*/ -/* background-color: var(--secondary-color);*/ -/* color: #fff;*/ -/* border: 1px solid transparent;*/ -/*}*/ - -/*#notifications .uk-offcanvas-bar .uk-button-secondary:focus, #notifications .uk-offcanvas-bar .uk-button-secondary:hover {*/ -/* background-color: transparent;*/ -/* color: #4687e6;*/ -/* border-color: #4687e6;*/ -/*}*/ - -#notifications .uk-offcanvas-bar .uk-button-secondary:disabled { - background-color: transparent; - color: #bfbfbf; - border: 1px solid #ededed; - background-image: none; - box-shadow: none; -} diff --git a/notifications/notifications-sidebar/notification-sidebar.component.less b/notifications/notifications-sidebar/notification-sidebar.component.less new file mode 100644 index 00000000..48553951 --- /dev/null +++ b/notifications/notifications-sidebar/notification-sidebar.component.less @@ -0,0 +1,34 @@ +@import "~src/assets/openaire-theme/less/_import-variables"; + +#notifications-switcher { + top: 480px !important; +} + +#notifications .notification-list { + padding: @global-medium-gutter 0 @global-medium-gutter @global-medium-gutter; +} + +#notifications .notification-list:not(:last-child) { + height: 45vh; + border-bottom: @global-border-width solid @global-border; + overflow: hidden; +} + +#notifications .notification-list ul { + overflow: auto; + padding: 20px @global-medium-gutter 20px 0; + height: calc(100% - 77px); +} + +#notifications .notification-list ul > li:nth-child(n+2){ + margin-top: 15px; +} + +#notifications .notify { + padding: 20px @global-medium-gutter; +} + +#notifications .notification { + padding: @global-medium-gutter @global-medium-gutter; + overflow: auto; +} diff --git a/notifications/notifications-sidebar/notifications-sidebar.component.ts b/notifications/notifications-sidebar/notifications-sidebar.component.ts index 0eaabd94..94df2e22 100644 --- a/notifications/notifications-sidebar/notifications-sidebar.component.ts +++ b/notifications/notifications-sidebar/notifications-sidebar.component.ts @@ -11,18 +11,17 @@ declare var UIkit; @Component({ selector: 'notification-sidebar', template: ` -
+
- + {{unreadCount}}
-
-
- -

Notifications

@@ -43,7 +42,7 @@ declare var UIkit;

- +
{{getDate(notification.date)}} @@ -76,7 +75,7 @@ declare var UIkit;
`, - styleUrls: ['notification-sidebar.component.css'], + styleUrls: ['notification-sidebar.component.less'], encapsulation: ViewEncapsulation.None }) export class NotificationsSidebarComponent implements OnInit, OnDestroy { diff --git a/searchPages/searchUtils/newSearchPage.component.html b/searchPages/searchUtils/newSearchPage.component.html index ca0d8923..943754ed 100644 --- a/searchPages/searchUtils/newSearchPage.component.html +++ b/searchPages/searchUtils/newSearchPage.component.html @@ -201,7 +201,7 @@
- +
diff --git a/searchPages/searchUtils/searchFilter.component.html b/searchPages/searchUtils/searchFilter.component.html index a923ec76..b593f672 100644 --- a/searchPages/searchUtils/searchFilter.component.html +++ b/searchPages/searchUtils/searchFilter.component.html @@ -41,7 +41,7 @@ - + - + {{value.name=='true'?'Yes':'No'}} {{_formatName(value)}} - + ({{value.number|number}}) + diff --git a/sharedComponents/navigationBar.component.html b/sharedComponents/navigationBar.component.html index 2c3a84d4..7f8c1004 100644 --- a/sharedComponents/navigationBar.component.html +++ b/sharedComponents/navigationBar.component.html @@ -18,17 +18,18 @@
+ class="uk-offcanvas uk-hidden@m">
- + + +
    diff --git a/sharedComponents/navigationBar.module.ts b/sharedComponents/navigationBar.module.ts index f302555b..ba856688 100644 --- a/sharedComponents/navigationBar.module.ts +++ b/sharedComponents/navigationBar.module.ts @@ -9,12 +9,13 @@ import { NavigationBarComponent} from './navigationBar.component'; import { UserMiniModule} from '../login/userMiniModule.module'; import {SearchBarModule} from "./searchBar/searchBar.module"; import {HelpContentService} from '../services/help-content.service'; +import {IconsModule} from "../utils/icons/icons.module"; @NgModule({ imports: [ CommonModule, FormsModule, RouterModule, - UserMiniModule + UserMiniModule, IconsModule, // , SearchBarModule ], declarations: [ diff --git a/utils/modal/alert.ts b/utils/modal/alert.ts index 1f3e8be6..9e16d872 100644 --- a/utils/modal/alert.ts +++ b/utils/modal/alert.ts @@ -1,12 +1,11 @@ -import {Component, ViewEncapsulation, ElementRef, EventEmitter, Output, Input, ViewChild} from '@angular/core'; -import {properties} from "../../../../environments/environment"; +import {Component, ElementRef, EventEmitter, Input, Output, ViewChild, ViewEncapsulation} from '@angular/core'; declare var UIkit: any; @Component({ selector: 'modal-alert', template: ` -
    +