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

Commit

Permalink
feat: update styling
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Jun 11, 2020
1 parent d4e27e6 commit 5b77d41
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 7 additions & 1 deletion packages/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ module.exports = {
theme: require("prism-react-renderer/themes/shadesOfPurple"),
},
navbar: {
hideOnScroll: false,
title: "craft.js",
links: [
{ to: "docs/overview", label: "Documentation", position: "left" },
{
to: "docs/overview",
label: "Documentation",
position: "left",
activeBasePath: `docs`,
},
{ to: "docs/support", label: "Support Craft.js", position: "right" },
{
href: "https://github.com/prevwong/craft.js",
Expand Down
14 changes: 6 additions & 8 deletions packages/docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ header + .markdown > .badge-wrapper:first-child {
margin-top: -10px !important;
}

@media only screen and (max-width: 996px) {
header + .markdown > .badge-wrapper:first-child {
margin-top: -20px !important;
}
}

.badge {
display: inline-block;
color: #fff;
Expand Down Expand Up @@ -376,6 +370,10 @@ html[data-theme="dark"] .api-description {
color: var(--ifm-sidebar-color);
}

.docMainContainer_node_modules-\@docusaurus-theme-classic-src-theme-DocPage- {
overflow: hidden;
.navbar .navbar-sidebar a.navbar__brand .navbar__title {
color: var(--ifm-sidebar-color);
}

.navbar .navbar-sidebar .navbar-sidebar__items .navbar__link--active {
color: var(--ifm-color-primary);
}

0 comments on commit 5b77d41

Please sign in to comment.