-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearrange the styles to deal with a bug in the ExtractTextPlugin
where inconsistent import order fails the build: webpack-contrib/extract-text-webpack-plugin#80
- Loading branch information
1 parent
3887ac9
commit 5595d9b
Showing
9 changed files
with
161 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import './buttons.mcss'; | ||
@import './colours.mcss'; | ||
@import './typography.mcss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.base { | ||
margin-bottom: 1.5rem; | ||
margin-bottom: 1.6em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@value styles: '../styles.mcss'; | ||
@value greyLight, highlight from styles; | ||
|
||
.label { | ||
position: relative; | ||
} | ||
.label:after { | ||
top: 50%; | ||
right: 1em; | ||
border: solid transparent; | ||
content: " "; | ||
height: 0; | ||
width: 0; | ||
position: absolute; | ||
pointer-events: none; | ||
border-color: transparent; | ||
border-top-color: greyLight; | ||
border-width: 0.3em; | ||
margin-left: -0.3em; | ||
margin-top: -0.1em; | ||
} | ||
|
||
.labelError:after { | ||
border-top-color: error from styles; | ||
} | ||
.labelFocus:after { | ||
border-top-color: highlight; | ||
} | ||
|
||
.select { | ||
composes: inputBox from '../input-boxes.mcss'; | ||
appearance: none; | ||
} | ||
|
||
/* States */ | ||
|
||
.error { | ||
composes: error from '../input-boxes.mcss'; | ||
} | ||
|
||
.focus { | ||
composes: focus from '../input-boxes.mcss'; | ||
} | ||
|
||
/* Sizes */ | ||
|
||
.mini { | ||
composes: mini from '../input-boxes.mcss'; | ||
} | ||
|
||
.small { | ||
composes: small from '../input-boxes.mcss'; | ||
} | ||
|
||
.normal { | ||
composes: normal from '../input-boxes.mcss'; | ||
} | ||
|
||
.large { | ||
composes: large from '../input-boxes.mcss'; | ||
} | ||
|
||
.huge { | ||
composes: huge from '../input-boxes.mcss'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import './buttons.mcss'; | ||
@import './colours.mcss'; | ||
@import './typography.mcss'; |