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:
32
browser/styles/index.styl
Normal file
32
browser/styles/index.styl
Normal 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
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
@import '../../../node_modules/nib/lib/nib'
|
|
||||||
@import '../vars'
|
@import '../vars'
|
||||||
@import '../mixins/*'
|
@import '../mixins/*'
|
||||||
global-reset()
|
global-reset()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ var config = Object.assign({}, skeleton, {
|
|||||||
{
|
{
|
||||||
test: /\.styl?$/,
|
test: /\.styl?$/,
|
||||||
exclude: /(node_modules|bower_components)/,
|
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'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ var config = Object.assign({}, skeleton, {
|
|||||||
{
|
{
|
||||||
test: /\.styl?$/,
|
test: /\.styl?$/,
|
||||||
exclude: /(node_modules|bower_components)/,
|
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'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user