-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #345 from nationalarchives/feature/banner
Add announcement banner on the death of Queen Elizabeth
- Loading branch information
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
ds_judgements_public_ui/sass/includes/_announcement_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,64 @@ | ||
.announcement-banner { | ||
background-color: $color__black; | ||
color: $color__white; | ||
padding: calc($spacer__unit); | ||
|
||
&__container { | ||
} | ||
|
||
&__notice { | ||
padding: 0.3em 0; | ||
font-family: "Roboto", sans-serif; | ||
font-size: 1.1rem; | ||
text-align: center; | ||
|
||
@media (min-width: $grid__breakpoint-large) { | ||
text-align: center; | ||
font-size: 1.2rem; | ||
} | ||
|
||
a { | ||
background-color: $color__white; | ||
padding: 0.5rem 1rem; | ||
color: $color__black; | ||
display: inline-block; | ||
font-weight: bold; | ||
text-decoration: none; | ||
font-family: "Roboto", sans-serif; | ||
|
||
&:focus { | ||
outline: 0.3rem solid $color__yellow; | ||
background-color: $color__dark-blue; | ||
color: $color__white; | ||
} | ||
|
||
&:hover { | ||
background-color: $color__dark-blue; | ||
color: $color__white; | ||
} | ||
} | ||
} | ||
|
||
&__phase { | ||
background-color: $color__white; | ||
color: $color__black; | ||
text-transform: uppercase; | ||
padding: 0 calc($spacer__unit / 4); | ||
margin-right: $spacer__unit; | ||
font-weight: 700; | ||
} | ||
|
||
&__message { | ||
margin: 0; | ||
display: block; | ||
line-height: 1.8rem; | ||
font-size: 1.6rem; | ||
padding: 1rem; | ||
font-weight: bold; | ||
} | ||
&__sub-message { | ||
display: block; | ||
font-size: 1.1rem; | ||
font-weight: normal; | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
ds_judgements_public_ui/templates/includes/announcement_banner.html
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,7 @@ | ||
<div class="announcement-banner"> | ||
<div class="announcement-banner__container"> | ||
<div class="announcement-banner__notice"> | ||
<p class="announcement-banner__message">HM QUEEN ELIZABETH II <span class="announcement-banner__sub-message">21 April 1926 - 08 September 2022</span></p> | ||
</div> | ||
</div> | ||
</div> |
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