Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
add an announcement bar about the docs merge, and supporting styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Feb 22, 2024
1 parent faa90d6 commit 3f16801
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'announcementBar-migration',
content: "🎉️ <strong>We're moving!!</strong> 🎉️ We're merging the Soroban documentation into the <a target='_blank' href='https://developers.stellar.org'>Stellar Developers</a> documentation. Please check <a target='_blank' href='https://github.com/stellar/soroban-docs/issues/740'>this GH issue</a> for progress and updates.",
},
image: 'img/meta.png',
docs: {
sidebar: {
Expand Down
23 changes: 23 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

/* You can override the default Infima variables here. */
:root {
--site-primary-hue-saturation: 179 68%;
--ifm-color-primary: #4daaa9;
// --ifm-background-color: #ffffff;
// --ifm-background-surface-color: #fafafa;
Expand Down Expand Up @@ -49,6 +50,7 @@

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme="dark"] {
--site-primary-hue-saturation: 50 94%;
--ifm-color-primary: #f9db4a;
--ifm-color-secondary: #4daaa9;
--ifm-navbar-background-color: #1b1b1d;
Expand Down Expand Up @@ -177,3 +179,24 @@ select[data-testid="example-pairing-select"] {
.sidebar-category-items-hidden ul {
display: none !important;
}

/* Announcement Bar(s) */

div[class^='announcementBar_'] {
font-size: 18px;

--site-announcement-bar-stripe-color1: hsl(
var(--site-primary-hue-saturation) 85%
);
--site-announcement-bar-stripe-color2: hsl(
var(--site-primary-hue-saturation) 95%
);

background: repeating-linear-gradient(
35deg,
var(--site-announcement-bar-stripe-color1),
var(--site-announcement-bar-stripe-color1) 20px,
var(--site-announcement-bar-stripe-color2) 10px,
var(--site-announcement-bar-stripe-color2) 40px
);
}

0 comments on commit 3f16801

Please sign in to comment.