| :root { |
| --docusaurus-announcement-bar-height: auto; |
| } |
| |
| .announcementBar { |
| display: flex; |
| align-items: center; |
| height: var(--docusaurus-announcement-bar-height); |
| /* background: linear-gradient(0deg, rgba(247, 249, 254, 0.8) 0%, rgba(247, 249, 254, 0.8) 100%), #fff; */ |
| background: linear-gradient(89deg, #9748FF 0.05%, #471CF0 74.19%); |
| color: var(--ifm-color-black); |
| |
| /* |
| Unfortunately we can't make announcement bar render above the navbar |
| IE need to use border-bottom instead of shadow |
| See https://github.com/facebookincubator/infima/issues/275 |
| |
| box-shadow: var(--ifm-global-shadow-lw); |
| z-index: calc(var(--ifm-z-index-fixed) + 1); |
| */ |
| border-bottom: 1px solid var(--ifm-color-emphasis-100); |
| } |
| |
| html[data-announcement-bar-initially-dismissed='true'] .announcementBar { |
| display: none; |
| } |
| |
| .announcementBarPlaceholder { |
| flex: 0 0 10px; |
| } |
| |
| .announcementBarClose { |
| flex: 0 0 30px; |
| align-self: stretch; |
| } |
| |
| .announcementBarContent { |
| flex: 1 1 auto; |
| } |
| |
| .announcementBarContent:hover p { |
| text-decoration: underline !important; |
| } |
| |
| .announcementBarContent > a:active { |
| background: transparent !important; |
| } |
| |
| @media print { |
| .announcementBar { |
| display: none; |
| } |
| } |
| |
| @media (min-width: 997px) { |
| :root { |
| --docusaurus-announcement-bar-height: 48px; |
| } |
| |
| .announcementBarPlaceholder, |
| .announcementBarClose { |
| flex-basis: 50px; |
| } |
| } |