From 2c5d1c62395d9d5a7162aaf9a823a140ca00c885 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 8 Mar 2018 22:11:08 +0900 Subject: :v: --- .../app/common/views/components/othello.game.vue | 11 +++-- .../app/common/views/components/othello.room.vue | 49 ++++++++++++++-------- 2 files changed, 39 insertions(+), 21 deletions(-) (limited to 'src/web/app/common') diff --git a/src/web/app/common/views/components/othello.game.vue b/src/web/app/common/views/components/othello.game.vue index f0254a0b71..b50d709d4a 100644 --- a/src/web/app/common/views/components/othello.game.vue +++ b/src/web/app/common/views/components/othello.game.vue @@ -12,7 +12,7 @@
@@ -200,13 +200,13 @@ export default Vue.extend({ user-select none &.empty - border solid 2px #f5f5f5 + border solid 2px #eee &.empty.can - background #f5f5f5 + background #eee &.empty.myTurn - border-color #eee + border-color #ddd &.can background #eee @@ -222,6 +222,9 @@ export default Vue.extend({ &.prev box-shadow 0 0 0 4px rgba($theme-color, 0.7) + &.isEnded + border-color #ddd + &.none border-color transparent !important diff --git a/src/web/app/common/views/components/othello.room.vue b/src/web/app/common/views/components/othello.room.vue index 445a0b45d6..bcae37b227 100644 --- a/src/web/app/common/views/components/othello.room.vue +++ b/src/web/app/common/views/components/othello.room.vue @@ -5,7 +5,9 @@

ゲームの設定

- + + +
@@ -21,18 +23,20 @@
-

- - - - -

- -
- キャンセル - 準備完了 - 準備続行 -
+
@@ -53,6 +57,10 @@ export default Vue.extend({ }, computed: { + mapCategories(): string[] { + const categories = Object.entries(maps).map(x => x[1].category); + return categories.filter((item, pos) => categories.indexOf(item) == pos); + }, isAccepted(): boolean { if (this.game.user1_id == (this as any).os.i.id && this.game.user1_accepted) return true; if (this.game.user2_id == (this as any).os.i.id && this.game.user2_accepted) return true; @@ -142,7 +150,7 @@ export default Vue.extend({ > div background transparent - border solid 2px #eee + border solid 2px #ddd border-radius 6px overflow hidden @@ -157,8 +165,15 @@ export default Vue.extend({ > .rules max-width 300px - margin 0 auto + margin 0 auto 32px auto + + > footer + position sticky + bottom 0 + padding 16px + background rgba(255, 255, 255, 0.9) + border-top solid 1px #c4cdd4 - > .actions - margin-bottom 16px + > .status + margin 0 0 16px 0 -- cgit v1.2.3-freya