11<template >
22 <div >
3- <div class =" el-button" @click =" togglePopupSize" :class =" ['linuxDoLevelPopup', isMinimized ? 'minimized' : '']"
4- title =" 等级查询" >
3+ <div class =" el-button" @click =" togglePopupSize" title =" 等级查询" >
54 <span >等级</span >
65 </div >
76 <div v-if =" !isMinimized" id =" linuxDoLevelPopupContent" >
@@ -177,22 +176,27 @@ export default {
177176 </script >
178177
179178<style scoped lang="less">
180- @keyframes breathAnimation {
181-
182- 0% ,
183- 100% {
184- transform : scale (1 );
185- box-shadow : 0 0 5px rgba (0 , 0 , 0 , 0.5 );
179+ @keyframes fadeIn {
180+ from {
181+ opacity : 0 ;
182+ transform : translateY (10px );
186183 }
187-
188- 50% {
189- transform : scale (1.1 );
190- box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.7 );
184+ to {
185+ opacity : 1 ;
186+ transform : translateY (0 );
191187 }
192188}
193189
194- .breath-animation {
195- animation : breathAnimation 4s ease-in-out infinite ;
190+ @keyframes pulse {
191+ 0% {
192+ box-shadow : 0 0 0 0 rgba (var (--primary-rgb ), 0.4 );
193+ }
194+ 70% {
195+ box-shadow : 0 0 0 10px rgba (var (--primary-rgb ), 0 );
196+ }
197+ 100% {
198+ box-shadow : 0 0 0 0 rgba (var (--primary-rgb ), 0 );
199+ }
196200}
197201
198202.minimized {
@@ -202,43 +206,118 @@ export default {
202206 padding : 0 !important ;
203207 overflow : hidden ;
204208 cursor : pointer ;
209+ animation : pulse 2s infinite ;
205210}
206211
207212#linuxDoLevelPopupContent {
208213 line-height : 1.6 ;
209214 position : fixed ;
210215 bottom : 20px ;
211216 right : 90px ;
212- width : 250 px ;
217+ width : 300 px ;
213218 height : auto ;
214- background-color : var (--tertiary-low );
215- padding : 15 px ;
219+ background-color : var (--secondary );
220+ padding : 20 px ;
216221 z-index : 10000 ;
217222 font-size : 14px ;
218- border-radius : 5px ;
223+ border-radius : 12px ;
224+ box-shadow : 0 4px 20px rgba (0 , 0 , 0 , 0.15 );
225+ animation : fadeIn 0.3s ease-out ;
226+ border : 1px solid var (--primary-low );
227+ box-sizing : border-box ;
228+
229+ * {
230+ box-sizing : border-box ;
231+ }
232+
233+ strong {
234+ color : var (--primary );
235+ font-weight : 600 ;
236+ }
219237}
220238
221239#linuxDoUserSearch {
222240 width : 100% ;
223- margin-top : 10px ;
241+ margin-top : 15px ;
242+ padding : 10px 12px ;
243+ border : 2px solid var (--primary-low );
244+ border-radius : 8px ;
245+ font-size : 14px ;
246+ transition : all 0.3s ease ;
247+
248+ & :focus {
249+ outline : none ;
250+ border-color : var (--primary );
251+ box-shadow : 0 0 0 3px rgba (var (--primary-rgb ), 0.1 );
252+ }
224253}
225254
226- .button {
255+ .btn {
256+ width : 100% ;
257+ padding : 12px 24px ;
258+ font-size : 14px ;
259+ font-weight : 500 ;
260+ color : #fff ;
261+ background : linear-gradient (135deg , var (--primary ) 0% , var (--primary-medium ) 100% );
262+ border : none ;
263+ border-radius : 12px ;
264+ cursor : pointer ;
265+ transition : all 0.3s cubic-bezier (0.4 , 0 , 0.2 , 1 );
266+ box-shadow : 0 4px 15px rgba (var (--primary-rgb ), 0.2 );
267+ position : relative ;
268+ overflow : hidden ;
227269 margin-top : 10px ;
270+
271+ & ::before {
272+ content : ' ' ;
273+ position : absolute ;
274+ top : 0 ;
275+ left : 0 ;
276+ width : 100% ;
277+ height : 100% ;
278+ background : linear-gradient (135deg , rgba (255 ,255 ,255 ,0.1 ) 0% , rgba (255 ,255 ,255 ,0 ) 100% );
279+ opacity : 0 ;
280+ transition : opacity 0.3s ease ;
281+ }
282+
283+ & :hover {
284+ transform : translateY (-2px );
285+ box-shadow : 0 6px 20px rgba (var (--primary-rgb ), 0.3 );
286+
287+ & ::before {
288+ opacity : 1 ;
289+ }
290+ }
291+
292+ & :active {
293+ transform : translateY (0 );
294+ box-shadow : 0 2px 10px rgba (var (--primary-rgb ), 0.2 );
295+ }
296+
297+ .d-button-label {
298+ position : relative ;
299+ z-index : 1 ;
300+ }
228301}
229302
230303.minimize-button {
231304 position : absolute ;
232- top : 5 px ;
233- right : 5 px ;
305+ top : 8 px ;
306+ right : 8 px ;
234307 z-index : 10001 ;
235308 background : transparent ;
236309 border : none ;
237310 cursor : pointer ;
238311 border-radius : 50% ;
239312 text-align : center ;
240- line-height : 40px ;
241- width : 40px ;
242- height : 40px ;
313+ line-height : 32px ;
314+ width : 32px ;
315+ height : 32px ;
316+ color : var (--primary );
317+ transition : all 0.3s ease ;
318+
319+ & :hover {
320+ background : var (--primary-low );
321+ }
243322}
244323 </style >
0 commit comments