Skip to content

Commit 103567c

Browse files
committed
feat(eng-8901-5): finished css with colors
1 parent e4a0393 commit 103567c

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

src/app/core/components/osf-banners/cookie-consent-banner/cookie-consent-banner.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@if (this.displayBanner()) {
2-
<div class="p-3" @fadeInOut>
3-
<div class="p-message">
2+
<div class="cookie-consent-container" @fadeInOut>
3+
<div class="w-full p-message">
44
<div class="grid flex-row p-message-content">
55
<div class="col">{{ 'toast.cookie-consent.message' | translate }}</div>
66
<div class="col-fixed flex justify-content-end">
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1-
.p-message {
2-
width: 100%;
1+
@use "styles/mixins" as mix;
2+
3+
.cookie-consent-container {
4+
padding: 1rem !important;
5+
display: block !important;
6+
7+
.p-message {
8+
background-color: #886d3f;
9+
color: var(--white);
10+
width: 100%;
11+
border-radius: var(--p-message-border-radius, 6px);
12+
outline-width: var(--p-message-border-width, 1px);
13+
outline-style: solid;
14+
15+
.p-message-content {
16+
display: flex;
17+
align-items: center;
18+
padding: var(--p-message-content-padding, 1.5rem);
19+
gap: var(--p-message-content-gap, 0.5rem);
20+
height: 100%;
21+
}
22+
}
323
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.w-full {
2+
height: 108px !important;
3+
}

src/app/core/components/osf-banners/scheduled-banner/scheduled-banner.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { BannersSelector, GetCurrentScheduledBanner } from '@osf/shared/stores/b
1919
@Component({
2020
selector: 'osf-scheduled-banner',
2121
templateUrl: './scheduled-banner.component.html',
22+
styleUrls: ['./scheduled-banner.component.scss'],
2223
changeDetection: ChangeDetectionStrategy.OnPush,
2324
})
2425
export class ScheduledBannerComponent implements OnInit {

0 commit comments

Comments
 (0)