Skip to content

Commit 7068ae1

Browse files
committed
🐛 fix drawer theme on docs page
1 parent c41e188 commit 7068ae1

File tree

2 files changed

+3
-36
lines changed

2 files changed

+3
-36
lines changed

doc/gatsby-node.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,3 @@
55
*/
66

77
// You can delete this file if you're not using it
8-
const path = require('path');
9-
10-
exports.onCreateWebpackConfig = ({
11-
actions, stage,
12-
}) => {
13-
const { setWebpackConfig } = actions;
14-
const PRODUCTION = stage !== 'develop';
15-
16-
const sassLoader = PRODUCTION ?
17-
'sass-loader' :
18-
`${require.resolve('sass-loader')}?sourceMap`;
19-
20-
const styleLoader = [
21-
'style-loader',
22-
sassLoader,
23-
];
24-
25-
setWebpackConfig({
26-
module: {
27-
rules: [
28-
{
29-
test: /\.s(a|c)ss$/,
30-
include: path.resolve(__dirname, './doc'),
31-
use: styleLoader,
32-
},
33-
{
34-
test: /\.module\.s(a|c)ss$/,
35-
include: path.resolve(__dirname, './doc'),
36-
use: styleLoader,
37-
},
38-
],
39-
},
40-
});
41-
};

doc/src/components/WithComponentsBar/theme.module.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:local(.drawer) {
2-
padding: 0;
3-
height: calc(100% - 100px);
2+
padding-left: 0 !important;
3+
padding-right: 0 !important;
4+
height: calc(100% - 100px) !important;
45
@media only screen and (min-width: 992px) {
56
left: 0 !important;
67
}

0 commit comments

Comments
 (0)