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