Skip to content

Commit 3bcddbf

Browse files
committed
perf:styles
1 parent fb829fe commit 3bcddbf

7 files changed

Lines changed: 51 additions & 51 deletions

File tree

src/assets/css/community/reply_item.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
}
110110
.u-reply-op {
111111
margin-left: 5px;
112+
.pr;top:-1px;
113+
*{
114+
font-weight: normal;
115+
}
112116
}
113117
.u-boxcoin {
114118
.pa;
@@ -226,6 +230,7 @@
226230
padding: 0 24px;
227231
width: 220px;
228232
box-sizing: content-box;
233+
// background-color:@bg-light;
229234
.pr;
230235
.u-top-right {
231236
text-align: right;
Lines changed: 27 additions & 46 deletions
Loading

src/assets/img/qqbot/qqbot.gif

35.8 KB
Loading

src/components/nav/ListNav.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
</a>
3333
</div>
3434
</div>
35+
36+
<div class="m-nav__qqbot">
37+
<a href="/qqbot" target="_blank"><img src="@/assets/img/qqbot/qqbot.gif" alt="魔盒QQ机器人"></a>
38+
</div>
3539
</div>
3640
</template>
3741

@@ -158,5 +162,9 @@ export default {
158162
.m-nav{
159163
padding:5px;
160164
}
165+
.m-nav__qqbot{
166+
.r(6px);
167+
overflow: hidden;
168+
}
161169
@import "@/assets/css/common/side_nav.less";
162170
</style>

src/views/community/components/CommentUserInfo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ export default {
147147
.u-displayname {
148148
.lh(2.2);
149149
.bold;
150-
// color: @v4primary;
150+
color: #24292e;
151151
.nobreak;
152152
&:hover {
153-
color: #f39;
153+
color: @pink;
154154
}
155155
}
156156
.u-anonymous {

src/views/community/components/ListItem.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ showMark(<i v-for="mark in item.mark" class="u-mark" :key="mark">{{ mark) }}</i>
104104
<span v-else>神秘侠士</span>
105105
</div>
106106
<span class="u-date">
107-
Updated on
107+
<!-- Updated on
108108
<time v-if="order == 'update'">{{ dateFormat(item.post_modified) }}</time>
109-
<time v-else>{{ dateFormat(item.updated_at) }}</time>
109+
<time v-else>{{ dateFormat(item.updated_at) }}</time> -->
110+
111+
Last replied on
112+
<time>{{ dateFormat(item.latest_reply_at) }}</time>
110113
</span>
111114
</div>
112115
</li>

vue.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ module.exports = {
4848
pathname: "/ws",
4949
},
5050
},
51-
watchFiles: ["src/**/*", "public/**/*"],
51+
// `src` 内源码本来就由 webpack 自己监听并走 HMR。
52+
// 这里如果再用 dev-server 的 watchFiles 监听一次,会让 less/css 变更退化成整页 live reload。
53+
// 只保留对 public 目录的额外监听,用于模板/静态资源变更时刷新页面。
54+
watchFiles: ["public/**/*"],
5255
},
5356

5457
// 依赖包(element-plus/theme-chalk 等)会输出大量 Sass deprecation 警告

0 commit comments

Comments
 (0)