Skip to content

Commit

Permalink
1. Loading version dropdown issue fix
Browse files Browse the repository at this point in the history
2. TOC fontsize and color fix

Signed-off-by: Rakesh PR <rakesh.pr@mayadata.io>
  • Loading branch information
rakeshPRaghu committed Sep 2, 2021
1 parent b52884e commit e48eb3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/hooks/useViewport.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState, useEffect } from "react";

export const useViewport = () => {
const [width, setWidth] = useState(0);
const [width, setWidth] = useState(window?.innerWidth);

useEffect(() => {
if(typeof window !== undefined) {
Expand Down
6 changes: 5 additions & 1 deletion docs/src/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
--color-lighter-blue: #{$blue-800};
--color-tealish-blue: #{$blue-400};
--ifm-code-background: #{$ifm-code-background};
--ifm-toc-link-color: #{$blue-500};
}

.markdown {
Expand Down Expand Up @@ -149,7 +150,10 @@
}

.docs-wrapper .table-of-contents__link {
font-size: 12px;
font-size: 13px;
&.table-of-contents__link--active{
font-weight: bold;
}
}

@media (min-width: 768px) {
Expand Down

0 comments on commit e48eb3a

Please sign in to comment.