Skip to content

Commit

Permalink
Language sidebar header
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 31, 2024
1 parent 26765ce commit 22715b9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,13 @@ article a[target="_blank"]:after {
content: url("/img/external_link.svg");
padding-left: 5px;
}

/* Language sidebar header */
.sidebar-header {
font-family: 'GT Eesti Display', sans-serif;
font-weight: bold;
font-size: 16px;
line-height: 26px;
color: #4A4E52;
padding: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal);
}
5 changes: 5 additions & 0 deletions src/sidebars/ligoSidebar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */

const ligoSidebar = [
{
type: 'html',
value: '<div class="sidebar-header">LIGO language reference</div>',
className: 'menu__list-item',
},
{
type: 'ref',
id: 'languages',
Expand Down
5 changes: 5 additions & 0 deletions src/sidebars/smartpySidebar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */

const smartpySidebar = [
{
type: 'html',
value: '<div class="sidebar-header">SmartPy language reference</div>',
className: 'menu__list-item',
},
{
type: 'ref',
id: 'languages',
Expand Down

0 comments on commit 22715b9

Please sign in to comment.