Skip to content

Commit 4925a66

Browse files
committed
style: mp模块stylelint
1 parent b45b859 commit 4925a66

File tree

13 files changed

+236
-204
lines changed

13 files changed

+236
-204
lines changed

src/views/mp/account/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
v-if="scope.row.qrCodeUrl"
4747
:src="scope.row.qrCodeUrl"
4848
alt="二维码"
49-
style="height: 100px; display: inline-block"
49+
style="display: inline-block; height: 100px"
5050
/>
5151
<el-button
5252
link

src/views/mp/components/wx-material-select/main.vue

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -227,29 +227,6 @@ onMounted(async () => {
227227
})
228228
</script>
229229
<style lang="scss" scoped>
230-
/*瀑布流样式*/
231-
.waterfall {
232-
width: 100%;
233-
column-gap: 10px;
234-
column-count: 5;
235-
margin: 0 auto;
236-
}
237-
238-
.waterfall-item {
239-
padding: 10px;
240-
margin-bottom: 10px;
241-
break-inside: avoid;
242-
border: 1px solid #eaeaea;
243-
}
244-
245-
.material-img {
246-
width: 100%;
247-
}
248-
249-
p {
250-
line-height: 30px;
251-
}
252-
253230
@media (min-width: 992px) and (max-width: 1300px) {
254231
.waterfall {
255232
column-count: 3;
@@ -276,5 +253,25 @@ p {
276253
}
277254
}
278255
279-
/*瀑布流样式*/
256+
.waterfall {
257+
width: 100%;
258+
column-gap: 10px;
259+
column-count: 5;
260+
margin: 0 auto;
261+
}
262+
263+
.waterfall-item {
264+
padding: 10px;
265+
margin-bottom: 10px;
266+
break-inside: avoid;
267+
border: 1px solid #eaeaea;
268+
}
269+
270+
.material-img {
271+
width: 100%;
272+
}
273+
274+
p {
275+
line-height: 30px;
276+
}
280277
</style>

src/views/mp/components/wx-msg/card.scss

Lines changed: 47 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,115 @@
1-
.avue-card{
2-
&__item{
1+
.avue-card {
2+
&__item {
33
margin-bottom: 16px;
44
border: 1px solid #e8e8e8;
55
background-color: #fff;
66
box-sizing: border-box;
7-
color: rgba(0,0,0,.65);
7+
color: rgba(0, 0, 0, 0.65);
88
font-size: 14px;
99
font-variant: tabular-nums;
1010
line-height: 1.5;
1111
list-style: none;
12-
font-feature-settings: "tnum";
12+
font-feature-settings: 'tnum';
1313
cursor: pointer;
14-
height:200px;
15-
&:hover{
16-
border-color: rgba(0,0,0,.09);
17-
box-shadow: 0 2px 8px rgba(0,0,0,.09);
14+
height: 200px;
15+
16+
&:hover {
17+
border-color: rgba(0, 0, 0, 0.09);
18+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
1819
}
19-
&--add{
20-
border:1px dashed #000;
20+
21+
&--add {
22+
border: 1px dashed #000;
2123
width: 100%;
22-
color: rgba(0,0,0,.45);
24+
color: rgba(0, 0, 0, 0.45);
2325
background-color: #fff;
2426
border-color: #d9d9d9;
2527
border-radius: 2px;
2628
display: flex;
2729
align-items: center;
2830
justify-content: center;
2931
font-size: 16px;
30-
i{
32+
33+
i {
3134
margin-right: 10px;
3235
}
33-
&:hover{
36+
37+
&:hover {
3438
color: #40a9ff;
3539
background-color: #fff;
3640
border-color: #40a9ff;
3741
}
3842
}
3943
}
40-
&__body{
44+
45+
&__body {
4146
display: flex;
4247
padding: 24px;
4348
}
44-
&__detail{
45-
flex:1
49+
50+
&__detail {
51+
flex: 1;
4652
}
47-
&__avatar{
53+
54+
&__avatar {
4855
width: 48px;
4956
height: 48px;
5057
border-radius: 48px;
5158
overflow: hidden;
5259
margin-right: 12px;
53-
img{
60+
61+
img {
5462
width: 100%;
5563
height: 100%;
5664
}
5765
}
58-
&__title{
59-
color: rgba(0,0,0,.85);
66+
67+
&__title {
68+
color: rgba(0, 0, 0, 0.85);
6069
margin-bottom: 12px;
6170
font-size: 16px;
62-
&:hover{
63-
color:#1890ff;
71+
72+
&:hover {
73+
color: #1890ff;
6474
}
6575
}
66-
&__info{
67-
color: rgba(0,0,0,.45);
76+
77+
&__info {
78+
color: rgba(0, 0, 0, 0.45);
6879
display: -webkit-box;
6980
-webkit-box-orient: vertical;
7081
-webkit-line-clamp: 3;
7182
overflow: hidden;
7283
height: 64px;
7384
}
74-
&__menu{
85+
86+
&__menu {
7587
display: flex;
76-
justify-content:space-around;
88+
justify-content: space-around;
7789
height: 50px;
7890
background: #f7f9fa;
79-
color: rgba(0,0,0,.45);
91+
color: rgba(0, 0, 0, 0.45);
8092
text-align: center;
8193
line-height: 50px;
82-
&:hover{
83-
color:#1890ff;
94+
95+
&:hover {
96+
color: #1890ff;
8497
}
8598
}
8699
}
87100

88101
/** joolun 额外加的 */
89102
.avue-comment__main {
90-
flex: unset!important;
91-
border-radius: 5px!important;
92-
margin: 0 8px!important;
103+
flex: unset !important;
104+
border-radius: 5px !important;
105+
margin: 0 8px !important;
93106
}
107+
94108
.avue-comment__header {
95109
border-top-left-radius: 5px;
96110
border-top-right-radius: 5px;
97111
}
112+
98113
.avue-comment__body {
99114
border-bottom-right-radius: 5px;
100115
border-bottom-left-radius: 5px;

src/views/mp/components/wx-msg/comment.scss

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,105 @@
11
/* 来自 https://github.com/nmxiaowei/avue/blob/master/styles/src/element-ui/comment.scss */
2-
.avue-comment{
2+
.avue-comment {
33
margin-bottom: 30px;
44
display: flex;
55
align-items: flex-start;
6-
&--reverse{
7-
flex-direction:row-reverse;
8-
.avue-comment__main{
9-
&:before,&:after{
6+
7+
&--reverse {
8+
flex-direction: row-reverse;
9+
10+
.avue-comment__main {
11+
&:before,
12+
&:after {
1013
left: auto;
1114
right: -8px;
1215
border-width: 8px 0 8px 8px;
1316
}
14-
&:before{
17+
18+
&:before {
1519
border-left-color: #dedede;
1620
}
17-
&:after{
21+
22+
&:after {
1823
border-left-color: #f8f8f8;
1924
margin-right: 1px;
2025
margin-left: auto;
2126
}
2227
}
2328
}
24-
&__avatar{
29+
30+
&__avatar {
2531
width: 48px;
2632
height: 48px;
2733
border-radius: 50%;
2834
border: 1px solid transparent;
2935
box-sizing: border-box;
3036
vertical-align: middle;
3137
}
32-
&__header{
38+
39+
&__header {
3340
padding: 5px 15px;
3441
background: #f8f8f8;
3542
border-bottom: 1px solid #eee;
3643
display: flex;
3744
align-items: center;
3845
justify-content: space-between;
3946
}
40-
&__author{
47+
48+
&__author {
4149
font-weight: 700;
4250
font-size: 14px;
4351
color: #999;
4452
}
45-
&__main{
46-
flex:1;
53+
54+
&__main {
55+
flex: 1;
4756
margin: 0 20px;
4857
position: relative;
4958
border: 1px solid #dedede;
5059
border-radius: 2px;
51-
&:before,&:after{
60+
61+
&:before,
62+
&:after {
5263
position: absolute;
5364
top: 10px;
5465
left: -8px;
5566
right: 100%;
5667
width: 0;
5768
height: 0;
5869
display: block;
59-
content: " ";
70+
content: ' ';
6071
border-color: transparent;
6172
border-style: solid solid outset;
6273
border-width: 8px 8px 8px 0;
6374
pointer-events: none;
6475
}
76+
6577
&:before {
6678
border-right-color: #dedede;
6779
z-index: 1;
6880
}
69-
&:after{
81+
82+
&:after {
7083
border-right-color: #f8f8f8;
7184
margin-left: 1px;
7285
z-index: 2;
7386
}
7487
}
75-
&__body{
88+
89+
&__body {
7690
padding: 15px;
7791
overflow: hidden;
7892
background: #fff;
79-
font-family: Segoe UI,Lucida Grande,Helvetica,Arial,Microsoft YaHei,FreeSans,Arimo,Droid Sans,wenquanyi micro hei,Hiragino Sans GB,Hiragino Sans GB W3,FontAwesome,sans-serif;color: #333;
93+
font-family: Segoe UI, Lucida Grande, Helvetica, Arial, Microsoft YaHei, FreeSans, Arimo,
94+
Droid Sans, wenquanyi micro hei, Hiragino Sans GB, Hiragino Sans GB W3, FontAwesome,
95+
sans-serif;
96+
color: #333;
8097
font-size: 14px;
8198
}
82-
blockquote{
83-
margin:0;
84-
font-family: Georgia,Times New Roman,Times,Kai,Kaiti SC,KaiTi,BiauKai,FontAwesome,serif;
99+
100+
blockquote {
101+
margin: 0;
102+
font-family: Georgia, Times New Roman, Times, Kai, Kaiti SC, KaiTi, BiauKai, FontAwesome, serif;
85103
padding: 1px 0 1px 15px;
86104
border-left: 4px solid #ddd;
87105
}

src/views/mp/components/wx-music/main.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ defineExpose({
5656

5757
<style lang="scss" scoped>
5858
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scc */
59-
@import '../wx-msg/card.scss';
59+
@import url('../wx-msg/card.scss');
6060
</style>

src/views/mp/components/wx-reply/components/TabImage.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@ const selectMaterial = (item) => {
123123
.select-item {
124124
width: 280px;
125125
padding: 10px;
126-
margin: 0 auto 10px auto;
126+
margin: 0 auto 10px;
127127
border: 1px solid #eaeaea;
128128
129129
.material-img {
130130
width: 100%;
131131
}
132132
133133
.item-name {
134-
font-size: 12px;
135134
overflow: hidden;
135+
font-size: 12px;
136+
text-align: center;
136137
text-overflow: ellipsis;
137138
white-space: nowrap;
138-
text-align: center;
139139
140140
.item-infos {
141141
width: 30%;
@@ -149,18 +149,18 @@ const selectMaterial = (item) => {
149149
}
150150
151151
.col-select {
152-
border: 1px solid rgb(234, 234, 234);
153-
padding: 50px 0px;
154-
height: 160px;
155152
width: 49.5%;
153+
height: 160px;
154+
padding: 50px 0;
155+
border: 1px solid rgb(234 234 234);
156156
}
157157
158158
.col-add {
159-
border: 1px solid rgb(234, 234, 234);
160-
padding: 50px 0px;
161-
height: 160px;
162-
width: 49.5%;
163159
float: right;
160+
width: 49.5%;
161+
height: 160px;
162+
padding: 50px 0;
163+
border: 1px solid rgb(234 234 234);
164164
165165
.el-upload__tip {
166166
line-height: 18px;

0 commit comments

Comments
 (0)