This commit is contained in:
syuilo 2018-03-03 13:47:55 +09:00
parent 521b855738
commit 87d17517f3
58 changed files with 165 additions and 47 deletions

View file

@ -223,6 +223,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-autocomplete .mk-autocomplete
position fixed position fixed
z-index 65535 z-index 65535

View file

@ -39,6 +39,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-connect-failed .mk-connect-failed
width 100% width 100%
padding 32px 18px padding 32px 18px

View file

@ -9,7 +9,9 @@
</template> </template>
<style lang="stylus" scoped> <style lang="stylus" scoped>
.a @import '~const.styl'
.a
display block display block
position absolute position absolute
top 0 top 0

View file

@ -195,6 +195,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-messaging-form .mk-messaging-form
> textarea > textarea
cursor auto cursor auto

View file

@ -228,6 +228,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-messaging-room .mk-messaging-room
display flex display flex
flex 1 flex 1

View file

@ -165,6 +165,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-messaging .mk-messaging
&[data-compact] &[data-compact]

View file

@ -67,6 +67,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-poll-editor .mk-poll-editor
padding 8px padding 8px

View file

@ -66,6 +66,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-poll .mk-poll
> ul > ul

View file

@ -106,6 +106,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
$border-color = rgba(27, 31, 35, 0.15) $border-color = rgba(27, 31, 35, 0.15)
.mk-reaction-picker .mk-reaction-picker

View file

@ -53,6 +53,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-signin .mk-signin
&.signing &.signing
&, * &, *

View file

@ -153,6 +153,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-signup .mk-signup
min-width 302px min-width 302px

View file

@ -84,6 +84,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-switch .mk-switch
display flex display flex
margin 8px 0 margin 8px 0

View file

@ -81,6 +81,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-uploader .mk-uploader
overflow auto overflow auto

View file

@ -107,6 +107,8 @@ export default define({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mkw-calendar .mkw-calendar
padding 16px 0 padding 16px 0
color #777 color #777

View file

@ -131,6 +131,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-calendar .mk-calendar
color #777 color #777
background #fff background #fff

View file

@ -59,6 +59,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" module> <style lang="stylus" module>
@import '~const.styl'
.title .title
> [data-fa] > [data-fa]
margin-right 4px margin-right 4px

View file

@ -37,6 +37,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" module> <style lang="stylus" module>
@import '~const.styl'
.title .title
> [data-fa] > [data-fa]
margin-right 4px margin-right 4px

View file

@ -29,6 +29,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.menu .menu
$width = 240px $width = 240px
$item-height = 38px $item-height = 38px

View file

@ -61,6 +61,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" module> <style lang="stylus" module>
@import '~const.styl'
.header .header
> [data-fa] > [data-fa]
margin-right 4px margin-right 4px

View file

@ -91,6 +91,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-dialog .mk-dialog
> .bg > .bg
display block display block
@ -151,6 +153,8 @@ export default Vue.extend({
</style> </style>
<style lang="stylus" module> <style lang="stylus" module>
@import '~const.styl'
.header .header
margin 1em 0 margin 1em 0
color $theme-color color $theme-color

View file

@ -184,6 +184,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.root.file .root.file
padding 8px 0 0 0 padding 8px 0 0 0
height 180px height 180px

View file

@ -218,6 +218,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.root.folder .root.folder
padding 8px padding 8px
height 64px height 64px

View file

@ -568,6 +568,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-drive .mk-drive
> nav > nav

View file

@ -92,6 +92,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-follow-button .mk-follow-button
display block display block
cursor pointer cursor pointer

View file

@ -214,6 +214,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-home .mk-home
display block display block

View file

@ -77,6 +77,8 @@ export default Vue.extend({
<style lang="stylus" module> <style lang="stylus" module>
@import '~const.styl'
.header .header
> [data-fa] > [data-fa]
margin-right 4px margin-right 4px

View file

@ -81,6 +81,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-mentions .mk-mentions
background #fff background #fff
border solid 1px rgba(0, 0, 0, 0.075) border solid 1px rgba(0, 0, 0, 0.075)

View file

@ -177,6 +177,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-post-detail .mk-post-detail
margin 0 margin 0
padding 0 padding 0

View file

@ -250,6 +250,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-post-form .mk-post-form
display block display block
padding 16px padding 16px

View file

@ -256,6 +256,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.post .post
margin 0 margin 0
padding 0 padding 0

View file

@ -37,6 +37,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" module> <style lang="stylus" module>
@import '~const.styl'
.body .body
padding 18px 24px 24px 24px padding 18px 24px 24px 24px

View file

@ -57,6 +57,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-repost-form .mk-repost-form
> .mk-post-preview > .mk-post-preview

View file

@ -222,6 +222,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-settings .mk-settings
display flex display flex
width 100% width 100%

View file

@ -84,6 +84,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.account .account
> .header > .header
display block display block

View file

@ -86,6 +86,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.nav .nav
display inline-block display inline-block
margin 0 margin 0

View file

@ -82,6 +82,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.notifications .notifications
> button > button

View file

@ -17,6 +17,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.post .post
display inline-block display inline-block
padding 8px padding 8px

View file

@ -24,6 +24,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.search .search
> [data-fa] > [data-fa]

View file

@ -83,6 +83,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-user-preview .mk-user-preview
position absolute position absolute
z-index 2048 z-index 2048

View file

@ -69,6 +69,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-users-list .mk-users-list
height 100% height 100%
background #fff background #fff

View file

@ -425,6 +425,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-window .mk-window
display block display block

View file

@ -54,6 +54,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mkp-selectdrive .mkp-selectdrive
display block display block
position fixed position fixed

View file

@ -61,6 +61,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.header .header
$banner-height = 320px $banner-height = 320px
$footer-height = 58px $footer-height = 58px

View file

@ -97,6 +97,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.timeline .timeline
background #fff background #fff

View file

@ -57,6 +57,8 @@ export default Vue.extend({
</style> </style>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-welcome .mk-welcome
display flex display flex
flex-direction column flex-direction column

View file

@ -54,6 +54,8 @@ export default define({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mkw-post-form .mkw-post-form
background #fff background #fff
overflow hidden overflow hidden

View file

@ -67,6 +67,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.file .file
display block display block
text-decoration none !important text-decoration none !important

View file

@ -82,6 +82,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-follow-button .mk-follow-button
display block display block
user-select none user-select none

View file

@ -175,6 +175,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-post-detail .mk-post-detail
overflow hidden overflow hidden
margin 0 auto margin 0 auto

View file

@ -115,6 +115,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-post-form .mk-post-form
max-width 500px max-width 500px
width calc(100% - 16px) width calc(100% - 16px)

View file

@ -195,6 +195,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.post .post
font-size 12px font-size 12px
border-bottom solid 1px #eaeaea border-bottom solid 1px #eaeaea

View file

@ -49,6 +49,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-posts .mk-posts
background #fff background #fff
border-radius 8px border-radius 8px

View file

@ -128,6 +128,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.header .header
$height = 48px $height = 48px

View file

@ -109,6 +109,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.nav .nav
.backdrop .backdrop
position fixed position fixed

View file

@ -65,6 +65,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
.mk-users-list .mk-users-list
> nav > nav

View file

@ -108,6 +108,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" module> <style lang="stylus" module>
@import '~const.styl'
.content .content
margin 8px auto margin 8px auto
max-width 500px max-width 500px

View file

@ -105,6 +105,8 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
@import '~const.styl'
main main
> header > header
box-shadow 0 4px 4px rgba(0, 0, 0, 0.3) box-shadow 0 4px 4px rgba(0, 0, 0, 0.3)

View file

@ -72,20 +72,6 @@ module.exports = Object.keys(langs).map(lang => {
search: /%base64:(.+?)%/g.toString(), search: /%base64:(.+?)%/g.toString(),
replace: 'base64replacement' replace: 'base64replacement'
} }
}, {
loader: 'webpack-replace-loader',
options: {
search: '$theme-color',
replace: constants.themeColor,
attr: 'g'
}
}, {
loader: 'webpack-replace-loader',
query: {
search: '$theme-color-foreground',
replace: constants.themeColorForeground,
attr: 'g'
}
}, { }, {
loader: 'replace', loader: 'replace',
query: { query: {
@ -108,10 +94,16 @@ module.exports = Object.keys(langs).map(lang => {
}, { }, {
test: /\.styl$/, test: /\.styl$/,
exclude: /node_modules/, exclude: /node_modules/,
use: [ use: [{
{ loader: 'style-loader' }, loader: 'style-loader'
{ loader: 'css-loader' }, }, {
{ loader: 'stylus-loader' } loader: 'css-loader',
options: {
minimize: true
}
}, {
loader: 'stylus-loader'
}
] ]
}, { }, {
test: /\.scss$/, test: /\.scss$/,
@ -119,7 +111,10 @@ module.exports = Object.keys(langs).map(lang => {
use: [{ use: [{
loader: 'style-loader' loader: 'style-loader'
}, { }, {
loader: 'css-loader' loader: 'css-loader',
options: {
minimize: true
}
}, { }, {
loader: 'sass-loader', loader: 'sass-loader',
options: { options: {
@ -128,10 +123,14 @@ module.exports = Object.keys(langs).map(lang => {
}] }]
}, { }, {
test: /\.css$/, test: /\.css$/,
use: [ use: [{
{ loader: 'style-loader' }, loader: 'style-loader'
{ loader: 'css-loader' } }, {
] loader: 'css-loader',
options: {
minimize: true
}
}]
}, { }, {
test: /\.(eot|woff|woff2|svg|ttf)([\?]?.*)$/, test: /\.(eot|woff|woff2|svg|ttf)([\?]?.*)$/,
loader: 'url-loader' loader: 'url-loader'
@ -165,7 +164,10 @@ module.exports = Object.keys(langs).map(lang => {
resolve: { resolve: {
extensions: [ extensions: [
'.js', '.ts', '.json' '.js', '.ts', '.json'
] ],
alias: {
'const.styl': __dirname + '/../src/web/const.styl'
}
}, },
resolveLoader: { resolveLoader: {
modules: ['node_modules', './webpack/loaders'] modules: ['node_modules', './webpack/loaders']