Skip to content

Commit 3785e64

Browse files
committed
fix: 精选页面文字太多导致换行,以及图片适配bug修护
1 parent b06a4de commit 3785e64

File tree

1 file changed

+70
-47
lines changed

1 file changed

+70
-47
lines changed

src/pages/dashboard/featured.vue

Lines changed: 70 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
</template>
3333

3434
<style lang="stylus" rel="stylesheet/stylus" scoped type="text/stylus">
35-
.box{
36-
width 100%
37-
height 100%
38-
margin-top 50px
35+
.box {
36+
width: 100%;
37+
height: 100%;
38+
margin-top: 50px;
3939
}
40+
4041
.boxSize {
4142
position: relative;
4243
float: left;
@@ -48,8 +49,9 @@
4849
border: 1px solid #ddd;
4950
// overflow: hidden;
5051
border-radius: 5px;
51-
cursor pointer
52-
transition: transform 0.4s ease
52+
cursor: pointer;
53+
transition: transform 0.4s ease;
54+
5355
.sourceName {
5456
overflow: hidden;
5557
text-overflow: ellipsis;
@@ -59,25 +61,35 @@
5961
font-size: 16px;
6062
color: #333;
6163
line-height: 28px;
62-
padding 10px 15px
64+
padding: 10px 15px;
65+
6366
i {
64-
font-style normal
67+
font-style: normal;
6568
}
69+
6670
.itemName {
67-
float left
71+
float: left;
72+
width: 126px;
73+
text-overflow: ellipsis;
74+
white-space: nowrap;
75+
overflow: hidden;
6876
}
77+
6978
.fork {
70-
float right
71-
.num{
79+
float: right;
80+
81+
.num {
7282
font-weight: 400;
7383
color: #666;
74-
margin-left 10px
84+
margin-left: 10px;
7585
}
7686
}
7787
}
78-
.bottom{
79-
margin-top 10px
88+
89+
.bottom {
90+
margin-top: 10px;
8091
}
92+
8193
.sourceKey {
8294
width: 200px;
8395
overflow: hidden;
@@ -97,7 +109,7 @@
97109
&:hover {
98110
cursor: pointer;
99111
// box-shadow: 0 10px 30px 0 hsla(0,0%,84.3%,.5);
100-
transform: translate3d(0,-4px,0);
112+
transform: translate3d(0, -4px, 0);
101113
box-shadow: 0px 0px 8px #8D8E8F;
102114
}
103115
@@ -115,15 +127,14 @@
115127
filter: blur(10px);
116128
position: absolute;
117129
width: 100%;
118-
z-index 1
119-
left 0
130+
z-index: 1;
131+
left: 0;
120132
}
121133
122134
.logo {
123-
position relative
135+
position: relative;
124136
width: 100%;
125-
height: 100%;
126-
z-index 2
137+
z-index: 2;
127138
}
128139
}
129140
@@ -138,43 +149,49 @@
138149
top: 34px;
139150
// background-color: rgba(4, 1, 1, 0.53);
140151
// padding: 10px;
141-
z-index 3
152+
z-index: 3;
142153
}
143154
}
155+
144156
.qr {
145-
float left
157+
float: left;
146158
cursor: pointer;
147-
top 8px
148-
margin 0 10px
149-
border 0
159+
top: 8px;
160+
margin: 0 10px;
161+
border: 0;
162+
150163
.qrBox {
151-
position relative
164+
position: relative;
152165
background-color: #eee;
153166
border-radius: 3px;
154167
text-align: center;
155-
width 36px
156-
height 36px
168+
width: 36px;
169+
height: 36px;
157170
}
171+
158172
&:hover {
159173
.qrBox {
160174
background-color: #1593ff;
161175
}
176+
162177
.qrcode {
163178
display: block;
164179
}
165180
}
181+
166182
.eqf-QRcode {
167183
position: absolute;
168184
width: 20px;
169185
height: 20px;
170186
font-size: 20px;
171-
background url('../../assets/image/project/qr.png')
172-
background-repeat: no-repeat
173-
background-size: 100% 100%
174-
top 50%
175-
transform translate(-50%, -50%)
187+
background: url('../../assets/image/project/qr.png');
188+
background-repeat: no-repeat;
189+
background-size: 100% 100%;
190+
top: 50%;
191+
transform: translate(-50%, -50%);
176192
}
177193
}
194+
178195
.editButton {
179196
display: inline-block;
180197
height: 32px;
@@ -185,46 +202,52 @@
185202
background: #1593ff;
186203
border-radius: 3px;
187204
float: right;
188-
margin-right 20px
205+
margin-right: 20px;
189206
}
207+
190208
.act_btn:hover {
191209
.actions {
192-
display block
210+
display: block;
193211
}
194212
}
213+
195214
.actions {
196-
display none
197-
position absolute
198-
right 21px
199-
bottom 50px
215+
display: none;
216+
position: absolute;
217+
right: 21px;
218+
bottom: 50px;
200219
width: 50%;
201220
text-align: left;
202221
background-color: #fff;
203222
box-shadow: 0px 0px 8px #8D8E8F;
204223
z-index: 999;
224+
205225
.action {
206226
font-family: PingFang-SC-Medium;
207-
text-decoration:none;
208-
color:#333;
227+
text-decoration: none;
228+
color: #333;
209229
font-size: 13px;
210230
cursor: pointer;
211231
transition: background-color 0.4s ease-in-out;
212-
margin 0
232+
margin: 0;
213233
line-height: 25px;
214234
padding: 4px 10px;
235+
215236
&:hover {
216237
background-color: #1593ff;
217238
}
218239
}
240+
219241
.last {
220-
width 100%
221-
height 10px
222-
margin 0
223-
padding 0
242+
width: 100%;
243+
height: 10px;
244+
margin: 0;
245+
padding: 0;
224246
background-color: rgba(220, 196, 196, 0.2);
225247
}
248+
226249
.dele:hover {
227-
background-color #f56c6c
250+
background-color: #f56c6c;
228251
}
229252
}
230253
}

0 commit comments

Comments
 (0)