diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-15 07:56:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-15 07:56:56 +0900 |
| commit | 0ac9120064b295a363b74a2c2afc487db2b50908 (patch) | |
| tree | 9b57129c2df6e17691f2f202d362e5150cc4d29c /src/client/app/common/views/components/ui | |
| parent | wip (diff) | |
| download | misskey-0ac9120064b295a363b74a2c2afc487db2b50908.tar.gz misskey-0ac9120064b295a363b74a2c2afc487db2b50908.tar.bz2 misskey-0ac9120064b295a363b74a2c2afc487db2b50908.zip | |
wip
Diffstat (limited to 'src/client/app/common/views/components/ui')
7 files changed, 24 insertions, 13 deletions
diff --git a/src/client/app/common/views/components/ui/button.vue b/src/client/app/common/views/components/ui/button.vue index 7723c83f57..e778750354 100644 --- a/src/client/app/common/views/components/ui/button.vue +++ b/src/client/app/common/views/components/ui/button.vue @@ -1,6 +1,6 @@ <template> -<div class="ui-button"> - <button :type="type"> +<div class="ui-button" :class="[styl]"> + <button :type="type" @click="$emit('click')"> <slot></slot> </button> </div> @@ -20,7 +20,9 @@ export default Vue.extend({ styl: 'fill' }; }, - inject: ['isCardChild'], + inject: { + isCardChild: { default: false } + }, created() { if (this.isCardChild) { this.styl = 'line'; diff --git a/src/client/app/common/views/components/ui/card.vue b/src/client/app/common/views/components/ui/card.vue index e2b15240e4..05c51bca6b 100644 --- a/src/client/app/common/views/components/ui/card.vue +++ b/src/client/app/common/views/components/ui/card.vue @@ -25,9 +25,13 @@ export default Vue.extend({ root(isDark) margin 16px padding 16px + color isDark ? #fff : #000 background isDark ? #282C37 : #fff box-shadow 0 3px 1px -2px rgba(#000, 0.2), 0 2px 2px 0 rgba(#000, 0.14), 0 1px 5px 0 rgba(#000, 0.12) + @media (min-width 500px) + padding 32px + > header font-weight normal font-size 24px diff --git a/src/client/app/common/views/components/ui/form.vue b/src/client/app/common/views/components/ui/form.vue index b6b4a76d2a..fc8fdad9c4 100644 --- a/src/client/app/common/views/components/ui/form.vue +++ b/src/client/app/common/views/components/ui/form.vue @@ -11,7 +11,7 @@ import Vue from 'vue'; export default Vue.extend({ props: { disabled: { - type: String, + type: Boolean, required: false } } diff --git a/src/client/app/common/views/components/ui/input.vue b/src/client/app/common/views/components/ui/input.vue index 167dd4e2a9..ec91ca364c 100644 --- a/src/client/app/common/views/components/ui/input.vue +++ b/src/client/app/common/views/components/ui/input.vue @@ -1,7 +1,7 @@ <template> <div class="ui-input" :class="[{ focused, filled }, styl]"> <div class="icon" ref="icon"><slot name="icon"></slot></div> - <div class="input" @click="focus"> + <div class="input" @click="focus" @mousedown="focus"> <div class="password-meter" v-if="withPasswordMeter" v-show="passwordStrength != ''" :data-strength="passwordStrength"> <div class="value" ref="passwordMetar"></div> </div> @@ -62,7 +62,6 @@ export default Vue.extend({ required: false }, autocomplete: { - type: String, required: false }, withPasswordMeter: { @@ -113,7 +112,9 @@ export default Vue.extend({ } } }, - inject: ['isCardChild'], + inject: { + isCardChild: { default: false } + }, created() { if (this.isCardChild) { this.styl = 'line'; @@ -160,6 +161,7 @@ root(isDark, fill) > .input display flex + cursor text if fill padding 6px 12px diff --git a/src/client/app/common/views/components/ui/radio.vue b/src/client/app/common/views/components/ui/radio.vue index 2b7f1d9dd4..04a46c5a96 100644 --- a/src/client/app/common/views/components/ui/radio.vue +++ b/src/client/app/common/views/components/ui/radio.vue @@ -87,7 +87,7 @@ root(isDark) width 20px height 20px background none - border solid 2px rgba(#000, 0.54) + border solid 2px isDark ? rgba(#fff, 0.7) : rgba(#000, 0.54) border-radius 100% transition inherit diff --git a/src/client/app/common/views/components/ui/select.vue b/src/client/app/common/views/components/ui/select.vue index 4577a15f68..4273a4a0de 100644 --- a/src/client/app/common/views/components/ui/select.vue +++ b/src/client/app/common/views/components/ui/select.vue @@ -48,7 +48,9 @@ export default Vue.extend({ this.v = v; } }, - inject: ['isCardChild'], + inject: { + isCardChild: { default: false } + }, created() { if (this.isCardChild) { this.styl = 'line'; @@ -101,7 +103,7 @@ root(isDark, fill) left 0 right 0 height 1px - background rgba(#000, 0.42) + background isDark ? rgba(#fff, 0.7) : rgba(#000, 0.42) &:after content '' @@ -141,14 +143,15 @@ root(isDark, fill) font-weight fill ? bold : normal font-size 16px height 32px + color isDark ? #fff : #000 background transparent border none border-radius 0 outline none box-shadow none - &[type='file'] - display none + * + color #000 > .prefix > .suffix diff --git a/src/client/app/common/views/components/ui/switch.vue b/src/client/app/common/views/components/ui/switch.vue index 24611b9aa0..a9e00d73d2 100644 --- a/src/client/app/common/views/components/ui/switch.vue +++ b/src/client/app/common/views/components/ui/switch.vue @@ -92,7 +92,7 @@ root(isDark) margin 3px 0 0 0 width 34px height 14px - background isDark ? rgba(#fff, 0.1) : rgba(#000, 0.25) + background isDark ? rgba(#fff, 0.15) : rgba(#000, 0.25) outline none border-radius 14px transition inherit |