| 1 |
.pst-async-banner-revealer { |
| 2 |
// Setting height to 0 and overflow to hidden allows us to add up the heights |
| 3 |
// of this element's children before revealing them. |
| 4 |
height: 0; |
| 5 |
overflow: hidden; |
| 6 |
|
| 7 |
// Height to be set by JavaScript, which should trigger the following |
| 8 |
// transition rule (unless the user has set their system to reduce motion). |
| 9 |
transition: height 300ms ease-in-out; |
| 10 |
|
| 11 |
@media (prefers-reduced-motion) { |
| 12 |
transition: none; |
| 13 |
} |
| 14 |
} |
| 15 |
|
| 16 |
#bd-header-version-warning, |
| 17 |
.bd-header-announcement { |
| 18 |
min-height: 3rem; |
| 19 |
width: 100%; |
| 20 |
display: flex; |
| 21 |
position: relative; |
| 22 |
align-items: center; |
| 23 |
justify-content: center; |
| 24 |
text-align: center; |
| 25 |
padding: 0.5rem 12.5%; // Horizontal padding so the width is 75% |
| 26 |
// One breakpoint less than $breakpoint-sidebar-primary. See variables/_layout.scss for more info. |
| 27 |
@include media-breakpoint-down(lg) { |
| 28 |
// Announcements can take a bit more width on mobile |
| 29 |
padding: 0.5rem 2%; |
| 30 |
} |
| 31 |
|
| 32 |
p { |
| 33 |
font-weight: bold; |
| 34 |
margin: 0; |
| 35 |
} |
| 36 |
|
| 37 |
// Ensure there is enough contrast against the background |
| 38 |
a { |
| 39 |
color: var(--pst-color-link-higher-contrast); |
| 40 |
|
| 41 |
&:hover { |
| 42 |
// applying the same style as the SD "buttons" |
| 43 |
@include link-style-hover; |
| 44 |
|
| 45 |
cursor: pointer; |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
// The "Switch to stable version" link (styled like a button) |
| 50 |
.pst-button-link-to-stable-version { |
| 51 |
@include box-shadow; |
| 52 |
|
| 53 |
$background-color: var(--pst-color-danger); |
| 54 |
$hover-background-color: var(--pst-color-danger-highlight); |
| 55 |
$color: var(--pst-color-danger-text); |
| 56 |
|
| 57 |
background-color: $background-color; |
| 58 |
border-color: $background-color; |
| 59 |
color: $color; |
| 60 |
border-radius: 0.25rem; |
| 61 |
|
| 62 |
&:hover { |
| 63 |
// applying the same style as the SD "buttons" |
| 64 |
@include link-style-hover; |
| 65 |
|
| 66 |
text-decoration-thickness: 1px; |
| 67 |
background-color: $hover-background-color; |
| 68 |
border-color: $hover-background-color; |
| 69 |
color: var(--pst-color-danger-highlight-text); |
| 70 |
} |
| 71 |
|
| 72 |
&:focus-visible { |
| 73 |
outline: $focus-ring-width solid $background-color; |
| 74 |
outline-offset: $focus-ring-width; |
| 75 |
} |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
// Bg color is now defined in the theme color palette - using our secondary color |
| 80 |
.bd-header-announcement { |
| 81 |
background-color: var(--pst-color-secondary-bg); |
| 82 |
} |
| 83 |
|
| 84 |
#bd-header-version-warning { |
| 85 |
background-color: var(--pst-color-danger-bg); |
| 86 |
} |