commit | author | age
|
56a4b8
|
1 |
<template> |
I |
2 |
<div class="blog-main"> |
|
3 |
<a-row> |
|
4 |
<a-col v-bind="colApiLeft"> |
|
5 |
<music :searchType="searchType"></music> |
|
6 |
</a-col> |
|
7 |
<a-col v-bind="colApiMain "> |
|
8 |
<boxModule></boxModule> |
|
9 |
<!-- <boxLeft></boxLeft> --> |
|
10 |
</a-col> |
|
11 |
<a-col v-bind="colApiRight"> |
|
12 |
</a-col> |
|
13 |
</a-row> |
|
14 |
</div> |
|
15 |
</template> |
|
16 |
|
|
17 |
<script> |
|
18 |
import music from "./music.vue" |
|
19 |
import musicPanal from "./musicPanal.vue" |
|
20 |
import boxLeft from "./boxLeft.vue" |
|
21 |
import boxModule from "./module.vue" |
|
22 |
export default { |
|
23 |
components: { |
|
24 |
music, |
|
25 |
musicPanal, |
|
26 |
boxLeft, |
|
27 |
boxModule, |
|
28 |
}, |
|
29 |
|
|
30 |
data() { |
|
31 |
return { |
|
32 |
searchType:"动漫搜索", |
|
33 |
colApiLeft: { |
|
34 |
xs: 0, |
|
35 |
sm: 0, |
|
36 |
md: 0, |
|
37 |
lg: 8, |
|
38 |
xl: 8, |
|
39 |
xxl: 6, |
|
40 |
}, |
|
41 |
colApiRight: { |
|
42 |
xs: 0, |
|
43 |
sm: 0, |
|
44 |
md: 0, |
|
45 |
lg: 0, |
|
46 |
xl: 0, |
|
47 |
xxl: 4, |
|
48 |
}, |
|
49 |
colApiMain: { |
|
50 |
xs: 24, |
|
51 |
sm: 24, |
|
52 |
md: 24, |
|
53 |
lg: 14, |
|
54 |
xl: 14, |
|
55 |
xxl: 14, |
|
56 |
} |
|
57 |
} |
|
58 |
} |
|
59 |
} |
|
60 |
</script> |
|
61 |
|
|
62 |
<style lang="less"> |
|
63 |
.blog-main { |
|
64 |
padding-left: 5%; |
|
65 |
padding-right: 5%; |
|
66 |
} |
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
/*左右两边的盒子容器*/ |
|
71 |
.blog-cell { |
|
72 |
opacity: 0.8; |
|
73 |
padding: 0px 25px 10px; |
|
74 |
} |
|
75 |
|
|
76 |
/*左边部分*/ |
|
77 |
.blog-left-side { |
|
78 |
position: sticky; |
|
79 |
// top: 80px; |
|
80 |
padding-left: 2%; |
|
81 |
/*padding-right: 2%;*/ |
|
82 |
z-index: 100; |
|
83 |
} |
|
84 |
|
|
85 |
/*中间部分*/ |
|
86 |
.blog-body { |
|
87 |
padding-top: 10px; |
|
88 |
/*padding-left: 3%;*/ |
|
89 |
/*padding-right: 3%;*/ |
|
90 |
} |
|
91 |
|
|
92 |
/*右边部分*/ |
|
93 |
.blog-right-side { |
|
94 |
position: sticky; |
|
95 |
top: -19%; |
|
96 |
padding-top: 10px; |
|
97 |
/*padding-left: 2%;*/ |
|
98 |
/*padding-right: 2%;*/ |
|
99 |
z-index: 100; |
|
100 |
} |
|
101 |
|
|
102 |
div .blog-right-side-meta div { |
|
103 |
padding-left: 6%; |
|
104 |
padding-right: 6%; |
|
105 |
margin-bottom: 3%; |
|
106 |
} |
|
107 |
|
|
108 |
|
|
109 |
/*--------------------- |
|
110 |
| 核心盒子构成start | |
|
111 |
------- ---------------*/ |
|
112 |
.blog-container { |
|
113 |
border-radius: 15px; |
|
114 |
background-color: white; |
|
115 |
|
|
116 |
line-height: 1.4; |
|
117 |
white-space: nowrap; |
|
118 |
/*规定段落中的文本不进行换行:*/ |
|
119 |
text-align: center; |
|
120 |
padding-top: 20px; |
|
121 |
padding-bottom: 20px; |
|
122 |
max-height: 300px; |
|
123 |
/*margin-top: 10px;*/ |
|
124 |
/*min-height: 200px;*/ |
|
125 |
|
|
126 |
// overflow-x: hidden; |
|
127 |
// overflow-y: overlay; |
|
128 |
// display: block; |
|
129 |
|
|
130 |
padding-top: 10px; |
|
131 |
padding-bottom: 20px; |
|
132 |
overflow: hidden; |
|
133 |
box-shadow: 1px 1px 1px 2px #1196c459 |
|
134 |
} |
|
135 |
|
|
136 |
.show-line { |
|
137 |
border-top: 1px solid #999; |
|
138 |
} |
|
139 |
|
|
140 |
.blog-scroll { |
|
141 |
padding-top: 10px; |
|
142 |
max-height: 200px; |
|
143 |
|
|
144 |
overflow-x: hidden; |
|
145 |
overflow-y: overlay; |
|
146 |
} |
|
147 |
|
|
148 |
|
|
149 |
.blog-scroll:hover::-webkit-scrollbar { |
|
150 |
display: block; |
|
151 |
} |
|
152 |
|
|
153 |
.blog-scroll:hover::-webkit-scrollbar { |
|
154 |
display: block; |
|
155 |
} |
|
156 |
|
|
157 |
.blog-scroll::-webkit-scrollbar { |
|
158 |
width: 5px; |
|
159 |
display: none; |
|
160 |
} |
|
161 |
|
|
162 |
.blog-scroll::-webkit-scrollbar-thumb { |
|
163 |
background-color: rgba(153, 154, 170, 0.3); |
|
164 |
border-radius: 2px; |
|
165 |
} |
|
166 |
|
|
167 |
/*margin滚动条上偏移*/ |
|
168 |
.blog-scroll::-webkit-scrollbar-track { |
|
169 |
margin-top: 5px; |
|
170 |
margin-bottom: 5px; |
|
171 |
} |
|
172 |
</style> |