summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-20 03:56:58 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-20 03:56:58 +0900
commitcba07d08d033e26051d37f73f3b0e9da636899ab (patch)
tree23a37d8f124498e1c8644d5586104f23d1163823 /src/client
parent[wip] darkmode (diff)
downloadmisskey-cba07d08d033e26051d37f73f3b0e9da636899ab.tar.gz
misskey-cba07d08d033e26051d37f73f3b0e9da636899ab.tar.bz2
misskey-cba07d08d033e26051d37f73f3b0e9da636899ab.zip
[wip] darkmode
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/desktop/views/components/activity.vue76
-rw-r--r--src/client/app/desktop/views/widgets/notifications.vue54
2 files changed, 29 insertions, 101 deletions
diff --git a/src/client/app/desktop/views/components/activity.vue b/src/client/app/desktop/views/components/activity.vue
index ea33bf9ff6..bd952c39d2 100644
--- a/src/client/app/desktop/views/components/activity.vue
+++ b/src/client/app/desktop/views/components/activity.vue
@@ -1,14 +1,15 @@
<template>
-<div class="mk-activity" :data-melt="design == 2">
- <template v-if="design == 0">
- <p class="title">%fa:chart-bar%%i18n:@title%</p>
- <button @click="toggle" title="%i18n:@toggle%">%fa:sort%</button>
- </template>
- <p class="fetching" v-if="fetching">%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p>
- <template v-else>
- <x-calendar v-show="view == 0" :data="[].concat(activity)"/>
- <x-chart v-show="view == 1" :data="[].concat(activity)"/>
- </template>
+<div class="mk-activity">
+ <mk-widget-container :show-header="design == 0" :naked="design == 2">
+ <template slot="header">%fa:chart-bar%%i18n:@title%</template>
+ <button slot="func" title="%i18n:@toggle%" @click="toggle">%fa:sort%</button>
+
+ <p :class="$style.fetching" v-if="fetching">%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p>
+ <template v-else>
+ <x-calendar v-show="view == 0" :data="[].concat(activity)"/>
+ <x-chart v-show="view == 1" :data="[].concat(activity)"/>
+ </template>
+ </mk-widget-container>
</div>
</template>
@@ -64,53 +65,14 @@ export default Vue.extend({
});
</script>
-<style lang="stylus" scoped>
-.mk-activity
- background #fff
- border solid 1px rgba(0, 0, 0, 0.075)
- border-radius 6px
-
- &[data-melt]
- background transparent !important
- border none !important
-
- > .title
- z-index 1
- margin 0
- padding 0 16px
- line-height 42px
- font-size 0.9em
- font-weight bold
- color #888
- box-shadow 0 1px rgba(0, 0, 0, 0.07)
-
- > [data-fa]
- margin-right 4px
-
- > button
- position absolute
- z-index 2
- top 0
- right 0
- padding 0
- width 42px
- font-size 0.9em
- line-height 42px
- color #ccc
-
- &:hover
- color #aaa
-
- &:active
- color #999
-
- > .fetching
- margin 0
- padding 16px
- text-align center
- color #aaa
+<style lang="stylus" module>
+.fetching
+ margin 0
+ padding 16px
+ text-align center
+ color #aaa
- > [data-fa]
- margin-right 4px
+ > [data-fa]
+ margin-right 4px
</style>
diff --git a/src/client/app/desktop/views/widgets/notifications.vue b/src/client/app/desktop/views/widgets/notifications.vue
index 0c2fa0434d..091b0d8b98 100644
--- a/src/client/app/desktop/views/widgets/notifications.vue
+++ b/src/client/app/desktop/views/widgets/notifications.vue
@@ -1,10 +1,11 @@
<template>
<div class="mkw-notifications">
- <template v-if="!props.compact">
- <p class="title">%fa:R bell%%i18n:@title%</p>
- <button @click="settings" title="%i18n:@settings%">%fa:cog%</button>
- </template>
- <mk-notifications/>
+ <mk-widget-container :show-header="!props.compact">
+ <template slot="header">%fa:R bell%%i18n:@title%</template>
+ <button slot="func" title="%i18n:@settings%" @click="settings">%fa:cog%</button>
+
+ <mk-notifications :class="$style.notifications"/>
+ </mk-widget-container>
</div>
</template>
@@ -27,44 +28,9 @@ export default define({
});
</script>
-<style lang="stylus" scoped>
-.mkw-notifications
- background #fff
- border solid 1px rgba(0, 0, 0, 0.075)
- border-radius 6px
-
- > .title
- z-index 1
- margin 0
- padding 0 16px
- line-height 42px
- font-size 0.9em
- font-weight bold
- color #888
- box-shadow 0 1px rgba(0, 0, 0, 0.07)
-
- > [data-fa]
- margin-right 4px
-
- > button
- position absolute
- z-index 2
- top 0
- right 0
- padding 0
- width 42px
- font-size 0.9em
- line-height 42px
- color #ccc
-
- &:hover
- color #aaa
-
- &:active
- color #999
-
- > .mk-notifications
- max-height 300px
- overflow auto
+<style lang="stylus" module>
+.notifications
+ max-height 300px
+ overflow auto
</style>