1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

ready to use CSSModules

This commit is contained in:
Rokt33r
2016-04-18 12:43:34 +09:00
parent 948377ba93
commit d06d52deda
4 changed files with 34 additions and 3 deletions

32
browser/styles/index.styl Normal file
View File

@@ -0,0 +1,32 @@
$brand-color = #2BAC8F
$danger-color = red
$danger-lighten-color = #FFE5E6
/*
* # Border
*/
$border-color = #D0D0D0
$active-border-color = #369DCD
$default-border = solid 1px $border-color
$active-border = solid 1px $active-border-color
/**
* # Modal Stuff
* These will be moved lib/modal
*/
$modal-z-index = 1002
$modal-background = white
$modal-margin = 64px auto 0
$modal-border-radius = 5px
modal()
position relative
z-index $modal-z-index
margin $modal-margin
background-color $modal-background
overflow hidden
border-radius $modal-border-radius

View File

@@ -1,4 +1,3 @@
@import '../../../node_modules/nib/lib/nib'
@import '../vars'
@import '../mixins/*'
global-reset()

View File

@@ -14,7 +14,7 @@ var config = Object.assign({}, skeleton, {
{
test: /\.styl?$/,
exclude: /(node_modules|bower_components)/,
loader: 'style-loader!css-loader!stylus-loader'
loader: 'style!css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]!stylus?sourceMap'
}
]
},

View File

@@ -12,7 +12,7 @@ var config = Object.assign({}, skeleton, {
{
test: /\.styl?$/,
exclude: /(node_modules|bower_components)/,
loader: 'style-loader!css-loader!stylus-loader'
loader: 'style!css?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]!stylus?sourceMap'
}
]
},