Skip to content

Commit ccef66c

Browse files
committed
perf:styles
1 parent 397dcd5 commit ccef66c

6 files changed

Lines changed: 18 additions & 14 deletions

File tree

src/assets/css/community/community.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,13 @@
305305
display: flex;
306306
flex-wrap: wrap;
307307
gap: 5px;
308-
color: rgba(64, 128, 255, 1);
308+
// color: rgba(64, 128, 255, 1);
309309
// margin-bottom: 10px;
310310
span {
311311
font-size: 12px;
312312
cursor: pointer;
313313
padding: 1px 8px;
314-
background-color: #4080ff;
314+
background-color: @color;
315315
color: #fff;
316316
border-radius: 3px;
317317
line-height: 20px;

src/assets/css/community/header.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989
.u-more {
9090
&:hover {
9191
background: rgba(235, 244, 255, 1);
92-
color: rgba(64, 128, 255, 1);
92+
// color: rgba(64, 128, 255, 1);
93+
color:@color-link;
9394
}
9495
&.is-disabled {
9596
cursor: not-allowed;

src/assets/css/community/reply_item.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
height: 32px;
4242
}
4343
.u-reply-btn {
44-
background: rgba(64, 128, 255, 1);
45-
border-color: rgba(64, 128, 255, 1);
44+
// background: rgba(64, 128, 255, 1);
45+
// border-color: rgba(64, 128, 255, 1);
4646
&:hover {
4747
opacity: 0.8;
4848
}
@@ -52,6 +52,7 @@
5252
}
5353
}
5454
.u-praise-btn {
55+
margin-left:10px !important;
5556
background: rgba(255, 112, 146, 1);
5657
border-color: rgba(255, 112, 146, 1);
5758
&.is-disabled {

src/components/community/comment_editor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ export default {
294294
}
295295
.u-publish {
296296
margin-bottom: 4px;
297-
background: #4080ff;
298-
border: 1px solid #4080ff;
297+
// background: #4080ff;
298+
// border: 1px solid #4080ff;
299299
&:hover {
300300
opacity: 0.9;
301301
}

src/components/community/post_header.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
</i>
3030
<span :style="hightStyle" class="u-title-text">{{ title }}</span>
3131
<div class="u-title-toolbar">
32-
<el-button size="small" @click="onEditClick" v-if="isPostOwner" type="warning" icon="el-icon-edit"
32+
<!-- <el-button size="small" @click="onEditClick" v-if="isPostOwner" type="warning" icon="el-icon-edit"
3333
>编辑</el-button
34-
>
34+
> -->
3535
<el-button
3636
size="small"
3737
:class="`u-only-btn ${onlyAuthor && 'u-unset'}`"
@@ -363,8 +363,8 @@ export default {
363363
.fr;
364364
.u-only-btn {
365365
position: relative;
366-
background: rgba(64, 128, 255, 1);
367-
border: 1px solid rgba(64, 128, 255, 1);
366+
// background: @color-link;
367+
// border: 1px solid rgba(64, 128, 255, 1);
368368
display: inline-block;
369369
height: 32px;
370370
&.u-unset {
@@ -416,7 +416,7 @@ export default {
416416
.u-client {
417417
// .fl;
418418
font-style: normal;
419-
.fz(12px);
419+
.fz(12px,20px);
420420
padding: 0px 5px;
421421
.r(3px);
422422
// .mr(10px);

src/views/CommunitySingle.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
:defaultVisible="collection_collapse"
6363
@collectionUpdate="updateCollection"
6464
/>
65-
<el-divider content-position="left">JX3BOX</el-divider>
65+
<el-divider class="m-community-header__divider" content-position="left">JX3BOX</el-divider>
6666
</div>
6767
</template>
6868
</ReplyItem>
@@ -572,7 +572,9 @@ export default {
572572
573573
<style lang="less">
574574
@import "~@/assets/css/community/community-single.less";
575-
575+
.m-community-header__divider{
576+
margin: 10px 0 20px 0;
577+
}
576578
.w-jx3-element-pop {
577579
position: fixed;
578580
.z(2000);

0 commit comments

Comments
 (0)