|
3 | 3 | <el-row :gutter="15"> |
4 | 4 | <el-col :lg="12" :md="12" :sm="12" :xl="12" :xs="4"> |
5 | 5 | <div class="left-panel"> |
6 | | - <i |
7 | | - :class="collapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'" |
| 6 | + <vab-icon |
| 7 | + :icon="['fas', collapse ? 'indent' : 'outdent']" |
8 | 8 | :title="collapse ? '展开' : '收起'" |
9 | 9 | class="fold-unfold" |
10 | 10 | @click="handleCollapse" |
11 | | - ></i> |
| 11 | + /> |
12 | 12 | <vab-breadcrumb class="hidden-xs-only" /> |
13 | 13 | </div> |
14 | 14 | </el-col> |
|
102 | 102 | align-items: center; |
103 | 103 | justify-items: center; |
104 | 104 | height: $base-nav-bar-height; |
| 105 | + } |
105 | 106 |
|
| 107 | + ::v-deep { |
106 | 108 | .fold-unfold { |
107 | | - display: flex; |
108 | | - align-items: center; |
109 | | - justify-content: center; |
110 | | - width: 38px; |
111 | | - height: 38px; |
| 109 | + margin-right: 12px; |
| 110 | + } |
| 111 | + svg { |
| 112 | + width: 1em; |
| 113 | + height: 1em; |
| 114 | + padding: 9px; |
112 | 115 | color: rgba(0, 0, 0, 0.7); |
113 | 116 | background: rgba(255, 255, 255, 0.7); |
114 | 117 | border: 1px solid rgba(0, 0, 0, 0.08); |
115 | 118 | border-radius: 50%; |
116 | 119 | cursor: pointer; |
| 120 | + fill: rgba(0, 0, 0, 0.7); |
117 | 121 | transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
118 | 122 | backdrop-filter: blur(10px); |
119 | 123 | -webkit-backdrop-filter: blur(10px); |
120 | | - margin-right: $base-padding; |
121 | 124 |
|
122 | 125 | &:hover { |
123 | 126 | color: rgba(0, 0, 0, 0.9); |
|
132 | 135 | box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05); |
133 | 136 | } |
134 | 137 | } |
135 | | - } |
136 | | -
|
137 | | - .right-panel { |
138 | | - position: relative; |
139 | | - display: flex; |
140 | | - align-content: center; |
141 | | - align-items: center; |
142 | | - justify-content: flex-end; |
143 | | - height: $base-nav-bar-height; |
144 | | - gap: 12px; |
145 | 138 |
|
146 | | - ::v-deep { |
| 139 | + button { |
147 | 140 | svg { |
148 | | - width: 1.25em; |
149 | | - height: 1.25em; |
150 | | - padding: 9px; |
151 | | - color: rgba(0, 0, 0, 0.7); |
| 141 | + margin-right: 0; |
| 142 | + color: rgba(255, 255, 255, 0.95); |
| 143 | + background: linear-gradient(135deg, rgba(77, 138, 240, 0.9) 0%, rgba(52, 120, 246, 0.95) 100%); |
| 144 | + border-color: rgba(77, 138, 240, 0.8); |
| 145 | + cursor: pointer; |
| 146 | + fill: rgba(255, 255, 255, 0.95); |
| 147 | +
|
| 148 | + &:hover { |
| 149 | + background: linear-gradient(135deg, rgba(77, 138, 240, 1) 0%, rgba(52, 120, 246, 1) 100%); |
| 150 | + border-color: rgba(77, 138, 240, 1); |
| 151 | + box-shadow: 0 4px 12px rgba(77, 138, 240, 0.3), 0 2px 4px rgba(77, 138, 240, 0.2); |
| 152 | + } |
| 153 | + } |
| 154 | + } |
| 155 | +
|
| 156 | + .el-badge { |
| 157 | + margin-right: 0; |
| 158 | +
|
| 159 | + .el-button { |
152 | 160 | background: rgba(255, 255, 255, 0.7); |
153 | 161 | border: 1px solid rgba(0, 0, 0, 0.08); |
154 | | - border-radius: 50%; |
155 | | - cursor: pointer; |
156 | | - fill: rgba(0, 0, 0, 0.7); |
157 | | - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| 162 | + border-radius: 12px; |
158 | 163 | backdrop-filter: blur(10px); |
159 | 164 | -webkit-backdrop-filter: blur(10px); |
| 165 | + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
160 | 166 |
|
161 | 167 | &:hover { |
162 | | - color: rgba(0, 0, 0, 0.9); |
163 | 168 | background: rgba(255, 255, 255, 0.9); |
164 | 169 | border-color: rgba(0, 0, 0, 0.15); |
165 | | - transform: translateY(-1px); |
166 | 170 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08); |
167 | 171 | } |
168 | | -
|
169 | | - &:active { |
170 | | - transform: translateY(0); |
171 | | - box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05); |
172 | | - } |
173 | | - } |
174 | | -
|
175 | | - button { |
176 | | - svg { |
177 | | - margin-right: 0; |
178 | | - color: rgba(255, 255, 255, 0.95); |
179 | | - background: linear-gradient(135deg, rgba(77, 138, 240, 0.9) 0%, rgba(52, 120, 246, 0.95) 100%); |
180 | | - border-color: rgba(77, 138, 240, 0.8); |
181 | | - cursor: pointer; |
182 | | - fill: rgba(255, 255, 255, 0.95); |
183 | | -
|
184 | | - &:hover { |
185 | | - background: linear-gradient(135deg, rgba(77, 138, 240, 1) 0%, rgba(52, 120, 246, 1) 100%); |
186 | | - border-color: rgba(77, 138, 240, 1); |
187 | | - box-shadow: 0 4px 12px rgba(77, 138, 240, 0.3), 0 2px 4px rgba(77, 138, 240, 0.2); |
188 | | - } |
189 | | - } |
190 | | - } |
191 | | -
|
192 | | - .el-badge { |
193 | | - margin-right: 0; |
194 | | -
|
195 | | - .el-button { |
196 | | - background: rgba(255, 255, 255, 0.7); |
197 | | - border: 1px solid rgba(0, 0, 0, 0.08); |
198 | | - border-radius: 12px; |
199 | | - backdrop-filter: blur(10px); |
200 | | - -webkit-backdrop-filter: blur(10px); |
201 | | - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
202 | | -
|
203 | | - &:hover { |
204 | | - background: rgba(255, 255, 255, 0.9); |
205 | | - border-color: rgba(0, 0, 0, 0.15); |
206 | | - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08); |
207 | | - } |
208 | | - } |
209 | 172 | } |
| 173 | + } |
210 | 174 |
|
211 | | - .user-name { |
212 | | - color: rgba(0, 0, 0, 0.8); |
213 | | - font-weight: 500; |
214 | | - } |
| 175 | + .user-name { |
| 176 | + color: rgba(0, 0, 0, 0.8); |
| 177 | + font-weight: 500; |
| 178 | + } |
215 | 179 |
|
216 | | - .user-avatar { |
217 | | - border: 2px solid rgba(255, 255, 255, 0.8); |
218 | | - box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); |
219 | | - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| 180 | + .user-avatar { |
| 181 | + border: 2px solid rgba(255, 255, 255, 0.8); |
| 182 | + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); |
| 183 | + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
220 | 184 |
|
221 | | - &:hover { |
222 | | - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1); |
223 | | - transform: translateY(-1px); |
224 | | - } |
| 185 | + &:hover { |
| 186 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1); |
| 187 | + transform: translateY(-1px); |
225 | 188 | } |
226 | 189 | } |
227 | 190 | } |
| 191 | +
|
| 192 | + .right-panel { |
| 193 | + position: relative; |
| 194 | + display: flex; |
| 195 | + align-content: center; |
| 196 | + align-items: center; |
| 197 | + justify-content: flex-end; |
| 198 | + height: $base-nav-bar-height; |
| 199 | + gap: 12px; |
| 200 | + } |
228 | 201 | } |
229 | 202 | </style> |
0 commit comments