Skip to content

Commit c41e188

Browse files
committed
⚗ Update theme files extensions t modules
Attemp to fix gatsby sass issue
1 parent 5bf515b commit c41e188

File tree

9 files changed

+40
-39
lines changed

9 files changed

+40
-39
lines changed

doc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"scripts": {
2424
"build": "gatsby build",
2525
"develop": "gatsby develop",
26+
"serve": "rm -rf ./cache && rm -rf ./public && gatsby build && gatsby serve",
2627
"format": "prettier --write '**/*.js'",
2728
"test": "echo \"Error: no test specified\" && exit 1"
2829
},

doc/src/components/WithComponentsBar/WithComponentBar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { componentList } from '../common/componentList';
99
import Button from '../../../../lib/button';
1010
import Drawer from '../../../../lib/drawer';
1111

12-
import theme from './styles.scss';
12+
import theme from './theme.module.scss';
13+
import './styles.scss';
1314

1415
class WithComponentBar extends React.Component {
1516
componentDidUpdate(prevProps) {

doc/src/components/WithComponentsBar/styles.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,3 @@
151151
}
152152
}
153153
}
154-
155-
:local(.drawer) {
156-
padding: 0;
157-
height: calc(100% - 100px);
158-
@media only screen and (min-width: 992px) {
159-
left: 0 !important;
160-
}
161-
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:local(.drawer) {
2+
padding: 0;
3+
height: calc(100% - 100px);
4+
@media only screen and (min-width: 992px) {
5+
left: 0 !important;
6+
}
7+
}

doc/src/components/documentation/Documentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { LiveProvider, LivePreview, LiveError } from 'react-live';
55

66
import * as components from '../../../../lib';
77
import match from '../../images/match.svg';
8-
import tableTheme from './tableTheme.scss';
8+
import tableTheme from './tableTheme.module.scss';
99
import componentTheme from '../common/componentData/theme.scss';
1010
import './styles.scss';
1111

doc/src/pages/pgTheme.module.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:local(.menu){
2+
z-index: 50;
3+
}
4+
5+
:local(.selectInput) {
6+
input {
7+
font-size: 1.06em;
8+
}
9+
border-bottom-color: #8a908c;
10+
}
11+
12+
:local(.option) {
13+
padding: 5%;
14+
}
15+
16+
:local(.border-animation) {
17+
&::after {
18+
background: #6679cc !important;
19+
}
20+
}
21+
22+
:local(.button) {
23+
background-color: transparent;
24+
&:hover {
25+
background-color: #cecaca8a;
26+
}
27+
}

doc/src/pages/playground.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ import Select from '../../../lib/select';
1010
import Button from '../../../lib/button';
1111
import Preloader from '../../../lib/preloader';
1212
import Layout from '../components/layout';
13-
import theme from './playground.scss';
1413
import match from '../images/match.svg';
14+
import theme from './pgTheme.module.scss';
15+
import './playground.scss';
1516

1617
export default class Playground extends Component {
1718
static propTypes = {

doc/src/pages/playground.scss

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -108,34 +108,6 @@
108108
color: #3d8fd1 !important;
109109
}
110110

111-
:local(.menu){
112-
z-index: 50;
113-
}
114-
115-
:local(.selectInput) {
116-
input {
117-
font-size: 1.06em;
118-
}
119-
border-bottom-color: #8a908c;
120-
}
121-
122-
:local(.option) {
123-
padding: 5%;
124-
}
125-
126-
:local(.border-animation) {
127-
&::after {
128-
background: #6679cc !important;
129-
}
130-
}
131-
132-
:local(.button) {
133-
background-color: transparent;
134-
&:hover {
135-
background-color: #cecaca8a;
136-
}
137-
}
138-
139111
.playground-editor {
140112
margin: 0 10% !important;
141113
overflow: scroll;

0 commit comments

Comments
 (0)