From 724e812972cdaf55b0c2e8d3ebbb31637c405f57 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 8 Jun 2018 20:57:02 +0900 Subject: Refactor --- .../app/mobile/views/components/note-preview.vue | 79 +-------------------- .../app/mobile/views/components/note.sub.vue | 81 +--------------------- src/client/app/mobile/views/components/note.vue | 78 +-------------------- 3 files changed, 6 insertions(+), 232 deletions(-) (limited to 'src/client/app/mobile') diff --git a/src/client/app/mobile/views/components/note-preview.vue b/src/client/app/mobile/views/components/note-preview.vue index 77ca99e978..388ac5c090 100644 --- a/src/client/app/mobile/views/components/note-preview.vue +++ b/src/client/app/mobile/views/components/note-preview.vue @@ -2,26 +2,7 @@
-
- - {{ note.user | userName }} - %i18n:@admin% - %i18n:@bot% - %i18n:@cat% - -
- %fa:mobile-alt% - - - - - - - - - -
-
+
@@ -79,64 +60,8 @@ root(isDark) flex 1 min-width 0 - > header - display flex - align-items baseline + > .header margin-bottom 2px - white-space nowrap - - > .avatar - flex-shrink 0 - margin-right 8px - width 18px - height 18px - border-radius 100% - - > .name - display block - margin 0 .5em 0 0 - padding 0 - overflow hidden - color isDark ? #fff : #607073 - font-size 1em - font-weight 700 - text-align left - text-decoration none - text-overflow ellipsis - - > .is-admin - > .is-bot - > .is-cat - align-self center - margin 0 0.5em 0 0 - padding 1px 6px - font-size 0.8em - color isDark ? #758188 : #aaa - border solid 1px isDark ? #57616f : #ddd - border-radius 3px - - &.is-admin - border-color isDark ? #d42c41 : #f56a7b - color isDark ? #d42c41 : #f56a7b - - > .username - margin 0 .5em 0 0 - overflow hidden - text-overflow ellipsis - color isDark ? #606984 : #d1d8da - - > .info - margin-left auto - font-size 0.9em - - > * - color isDark ? #606984 : #b2b8bb - - > .mobile - margin-right 6px - - > .visibility - margin-left 6px > .body diff --git a/src/client/app/mobile/views/components/note.sub.vue b/src/client/app/mobile/views/components/note.sub.vue index f487b7647e..f757b2e522 100644 --- a/src/client/app/mobile/views/components/note.sub.vue +++ b/src/client/app/mobile/views/components/note.sub.vue @@ -2,26 +2,7 @@
-
- - {{ note.user | userName }} - %i18n:@admin% - %i18n:@bot% - %i18n:@cat% - -
- %fa:mobile-alt% - - - - - - - - - -
-
+
@@ -92,66 +73,8 @@ root(isDark) flex 1 min-width 0 - > header - display flex - align-items baseline + > .header margin-bottom 2px - white-space nowrap - - > .avatar - flex-shrink 0 - margin-right 8px - width 18px - height 18px - border-radius 100% - - > .name - display block - margin 0 0.5em 0 0 - padding 0 - overflow hidden - color isDark ? #fff : #607073 - font-size 1em - font-weight 700 - text-align left - text-decoration none - text-overflow ellipsis - - &:hover - text-decoration underline - - > .is-admin - > .is-bot - > .is-cat - align-self center - margin 0 0.5em 0 0 - padding 1px 5px - font-size 0.8em - color isDark ? #758188 : #aaa - border solid 1px isDark ? #57616f : #ddd - border-radius 3px - - &.is-admin - border-color isDark ? #d42c41 : #f56a7b - color isDark ? #d42c41 : #f56a7b - - > .username - text-align left - margin 0 - color isDark ? #606984 : #d1d8da - - > .info - margin-left auto - font-size 0.9em - - > * - color isDark ? #606984 : #b2b8bb - - > .mobile - margin-right 6px - - > .visibility - margin-left 6px > .body diff --git a/src/client/app/mobile/views/components/note.vue b/src/client/app/mobile/views/components/note.vue index 37d86fe235..127f62868e 100644 --- a/src/client/app/mobile/views/components/note.vue +++ b/src/client/app/mobile/views/components/note.vue @@ -14,26 +14,7 @@
-
- - {{ p.user | userName }} - admin - bot - cat - -
- %fa:mobile-alt% - - - - - - - - - -
-
+

{{ p.cw }} @@ -358,65 +339,10 @@ root(isDark) flex 1 min-width 0 - > header - display flex - align-items baseline - white-space nowrap - + > .header @media (min-width 500px) margin-bottom 2px - > .avatar - flex-shrink 0 - margin-right 8px - width 20px - height 20px - border-radius 100% - - > .name - display block - margin 0 0.5em 0 0 - padding 0 - overflow hidden - color isDark ? #fff : #627079 - font-weight bold - text-decoration none - text-overflow ellipsis - - > .is-admin - > .is-bot - > .is-cat - align-self center - margin 0 0.5em 0 0 - padding 1px 6px - font-size 0.8em - color isDark ? #758188 : #aaa - border solid 1px isDark ? #57616f : #ddd - border-radius 3px - - &.is-admin - border-color isDark ? #d42c41 : #f56a7b - color isDark ? #d42c41 : #f56a7b - - > .username - margin 0 0.5em 0 0 - overflow hidden - text-overflow ellipsis - color isDark ? #606984 : #ccc - - > .info - margin-left auto - font-size 0.9em - - > * - color isDark ? #606984 : #c0c0c0 - - > .mobile - margin-right 6px - - > .visibility - margin-left 6px - > .body @media (min-width 700px) font-size 1.1em -- cgit v1.2.3-freya