diff --git a/config.json b/config.json index b4de035..e02b30b 100755 --- a/config.json +++ b/config.json @@ -42,6 +42,27 @@ "text": "Components", "link": "/components/" }, + { + "badge": "New", + "badge_variant": "Note", + "text": "Document Title", + "link": "#" + }, + { + "badge": "Outdated", + "badge_variant": "Warning", + "text": "Document Title", + "link": "#" + }, + { + "badge": "Deprecated", + "badge_variant": "Dangerous", + "text": "Document Title", + "link": "#" + }, + { + "heading": "Heading" + }, { "text": "Document Title", "link": "#" diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index 1bd3774..186de82 100755 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -6,14 +6,42 @@ import { SiteSettings, SidebarItems } from '@config' @@ -23,4 +51,14 @@ import { SiteSettings, SidebarItems } from '@config' var CurrentURLPath = window.location.pathname document.querySelector('.sidebar a[href="' + SiteSettings.SiteProtocol + '://' + SiteSettings.SiteDomain + SiteSettings.SiteBase + CurrentURLPath + '"]').style.background = '#323232' document.querySelector('.sidebar .mobile-s a[href="' + SiteSettings.SiteProtocol + '://' + SiteSettings.SiteDomain + SiteSettings.SiteBase + CurrentURLPath + '"]').style.background = '#323232' - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index 4fc8033..3c43adb 100755 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -19,6 +19,13 @@ a { text-decoration: underline; } +ul { + padding-left: 24px; + li { + padding: 4px 0px; + } +} + table { font-family: Arial, Helvetica, sans-serif; border-collapse: collapse; @@ -263,19 +270,48 @@ header { h2 { margin: 12px 0px 12px 12px; + font-size: 18px; + cursor: default; } a { text-decoration: none; font-size: 14px; background: transparent; - color: white; + color: rgba(255, 255, 255, 0.75); border-radius: 6px; padding: 8px 16px; border: 1px transparent solid; &:hover { border-color: #323232; } + .sidebar-badge { + background: transparent; + border-radius: 6px; + padding: 2px 4px; + float: right; + display: block; + margin: -3px -6px 0px 0px; + border: 1px white solid; + font-size: 12px; + transform: translate(0px, 1px); + } + .badge-variant-Warning { + border-color: var(--aside-warning); + color: var(--aside-warning); + } + .badge-variant-Note { + border-color: var(--aside-note); + color: var(--aside-note); + } + .badge-variant-Success { + border-color: var(--aside-success); + color: var(--aside-success); + } + .badge-variant-Dangerous { + border-color: var(--aside-dangerous); + color: var(--aside-dangerous); + } } }