-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vanita Barrett
committed
Oct 13, 2020
1 parent
7f06734
commit 7f742ce
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@include govuk-exports("govuk/component/notification-banner") { | ||
/* stylelint-disable */ | ||
|
||
.govuk-notification-banner { | ||
@include govuk-font($size: 19); | ||
@include govuk-responsive-margin(8, "bottom"); | ||
|
||
border: $govuk-border-width solid $govuk-brand-colour; | ||
|
||
&:focus { | ||
outline: $govuk-focus-width solid $govuk-focus-colour; | ||
} | ||
} | ||
|
||
.govuk-notification-banner--success { | ||
border-color: $govuk-success-colour; | ||
} | ||
|
||
.govuk-notification-banner--error { | ||
border-color: $govuk-error-colour; | ||
} | ||
|
||
.govuk-notification-banner__header { | ||
padding: 0 govuk-spacing(3) govuk-spacing(1); | ||
background-color: $govuk-brand-colour; | ||
|
||
|
||
@include govuk-media-query($from: tablet) { | ||
padding: (govuk-spacing(2) - $govuk-border-width) govuk-spacing(4) govuk-spacing(2); | ||
} | ||
} | ||
|
||
.govuk-notification-banner--success .govuk-notification-banner__header { | ||
background-color: $govuk-success-colour; | ||
} | ||
|
||
.govuk-notification-banner--error .govuk-notification-banner__header { | ||
background-color: $govuk-error-colour; | ||
} | ||
|
||
.govuk-notification-banner__title { | ||
@include govuk-font($size: 19, $weight: bold); | ||
color: govuk-colour("white"); | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.govuk-notification-banner__content { | ||
@include govuk-font($size: 24, $weight: bold); | ||
padding: govuk-spacing(3); | ||
|
||
@include govuk-media-query($from: tablet) { | ||
padding: govuk-spacing(4); | ||
} | ||
} | ||
|
||
.govuk-notification-banner__link { | ||
@include govuk-typography-weight-bold; | ||
@include govuk-link-common; | ||
@include govuk-link-style-default; | ||
} | ||
|
||
.govuk-notification-banner__link--success { | ||
@include govuk-link-style-success; | ||
} | ||
|
||
.govuk-notification-banner__link--error { | ||
@include govuk-link-style-error; | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
src/govuk/components/notification-banner/_notification-banner.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import "../../base"; | ||
@import "./index"; |