Skip to content

Commit

Permalink
Fix: Correct spacing (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitroidFPV authored Dec 13, 2023
1 parent 77127ca commit 8a2d794
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
const lightCodeTheme = require('prism-react-renderer').themes.github
const darkCodeTheme = require('prism-react-renderer').themes.dracula
const math = require('remark-math')
const katex = require('rehype-katex')

Expand Down Expand Up @@ -93,7 +93,7 @@ const config = {
},
blog: false,
theme: {
customCss: [require.resolve('./src/css/tailwind.scss'), require.resolve('./src/css/mermaid.scss'), require.resolve('./src/css/custom.css')],
customCss: [require.resolve('./src/css/mermaid.scss'), require.resolve('./src/css/custom.css'), require.resolve('./src/css/tailwind.scss')],
},
}),
],
Expand Down
9 changes: 7 additions & 2 deletions src/css/tailwind.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,13 @@ nav.menu.thin-scrollbar {
}

/* table of contents */
.theme-doc-toc-desktop {
@apply overflow-y-visible -mt-8 pt-6 pb-12 px-4 sticky;

.sidebar_node_modules-\@docusaurus-theme-classic-lib-theme-DocSidebar-Desktop-styles-module {
@apply overflow-y-visible pt-0 max-h-[90vh] #{!important};
}

.menu_node_modules-\@docusaurus-theme-classic-lib-theme-DocSidebar-Desktop-Content-styles-module {
@apply pt-0 pb-4 px-4 sticky;
}

.table-of-contents {
Expand Down
6 changes: 3 additions & 3 deletions src/pages/stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ const MinorChart = ({ type, data, maxY }) => {
anchor: 'bottom',
direction: 'row',
justify: false,
translateY: 64,
translateY: 100,
itemsSpacing: 32,
itemDirection: 'top-to-bottom',
itemWidth: 78,
itemHeight: 20,
itemWidth: 96,
itemHeight: 64,
symbolSize: 10,
symbolShape: 'circle',
symbolBorderColor: 'rgba(0, 0, 0, .5)',
Expand Down
1 change: 1 addition & 0 deletions src/theme/nivoThemeDark.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const themeDark = {
legends: {
text: {
fill: '#ffffff',
fontSize: 12,
},
},
};
1 change: 1 addition & 0 deletions src/theme/nivoThemeLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const themeLight = {
legends: {
text: {
fill: '#181818',
fontSize: 12,
},
},
};

0 comments on commit 8a2d794

Please sign in to comment.