Skip to content

Commit 0543f27

Browse files
committed
Upgrade css-loader and CSS Modules syntax
1 parent 6c5d2fd commit 0543f27

File tree

17 files changed

+67
-67
lines changed

17 files changed

+67
-67
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"autoprefixer-core": "^5.1.11",
2525
"babel-core": "^5.2.17",
2626
"babel-loader": "^5.0.0",
27-
"css-loader": "^0.14.4",
27+
"css-loader": "^0.15.1",
2828
"ejs": "^2.3.1",
2929
"extract-text-webpack-plugin": "^0.8.1",
3030
"file-loader": "^0.8.4",

src/components/3-ClassInheritance/ClassInheritance.js renamed to src/components/3-ClassComposition/ClassComposition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { Component } from 'react';
33
import StyleVariantA from './StyleVariantA/StyleVariantA';
44
import StyleVariantB from './StyleVariantB/StyleVariantB';
55

6-
export default class ClassInheritance extends Component {
6+
export default class ClassComposition extends Component {
77

88
render() {
99
return (

src/components/3-ClassInheritance/ClassInheritanceDemo.js renamed to src/components/3-ClassComposition/ClassCompositionDemo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ClassInheritance from './ClassInheritance';
1+
import ClassComposition from './ClassComposition';
22

33
import React, { Component } from 'react';
44

@@ -8,7 +8,7 @@ import layoutCss from '!!raw!shared/styles/layout.css';
88
import typographyCss from '!!raw!shared/styles/typography.css';
99
import Snippet from 'shared/Snippet/Snippet';
1010

11-
export default class ClassInheritanceDemo extends Component {
11+
export default class ClassCompositionDemo extends Component {
1212

1313
render() {
1414
const files = [
@@ -20,7 +20,7 @@ export default class ClassInheritanceDemo extends Component {
2020

2121
return (
2222
<Snippet files={files}>
23-
<ClassInheritance />
23+
<ClassComposition />
2424
</Snippet>
2525
);
2626
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.root {
2+
composes: box from "shared/styles/layout.css";
3+
border-color: red;
4+
}
5+
6+
.text {
7+
composes: heading from "shared/styles/typography.css";
8+
color: red;
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.root {
2+
composes: box from "shared/styles/layout.css";
3+
border-color: blue;
4+
}
5+
6+
.text {
7+
composes: heading from "shared/styles/typography.css";
8+
color: blue;
9+
}

src/components/3-ClassInheritance/StyleVariantA/StyleVariantA.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/components/3-ClassInheritance/StyleVariantB/StyleVariantB.css

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.root {
2+
composes: box from "shared/styles/layout.css";
3+
border-style: dotted;
4+
border-color: green;
5+
}
6+
7+
.text {
8+
composes: heading from "shared/styles/typography.css";
9+
font-weight: 200;
10+
color: green;
11+
}

0 commit comments

Comments
 (0)