@@ -517,6 +517,34 @@ a[class*=" icon-"]:hover {
517517 padding : 5px 0 ;
518518 z-index : 99 ;
519519 background-color : rgba (217 , 240 , 255 , 0.75 );
520+ position : relative ;
521+ overflow : visible ;
522+ }
523+
524+ .nav ::before ,
525+ .nav ::after {
526+ content : " " ;
527+ position : absolute ;
528+ top : 5px ;
529+ width : 10px ;
530+ height : 14px ;
531+ border-radius : 55% 55% 45% 45% ;
532+ background :
533+ linear-gradient (#d9b260 , #d9b260 ) center top / 1px 4px no-repeat ,
534+ radial-gradient (circle at 50% 30% , #ffd68a 0 , #ffb05e 28% , #dd4a2d 68% , #a41f1a 100% );
535+ box-shadow : 0 2px 4px rgba (164 , 31 , 26 , 0.2 );
536+ pointer-events : none ;
537+ transform-origin : top center ;
538+ animation : spring- lantern- swing- mobile 2.6s ease-in-out infinite ;
539+ }
540+
541+ .nav ::before {
542+ left : 6px ;
543+ }
544+
545+ .nav ::after {
546+ right : 6px ;
547+ animation-delay : -1.3s ;
520548}
521549
522550.nav .wrapper {
@@ -2033,6 +2061,17 @@ code .dec {
20332061 color : #999 ;
20342062}
20352063
2064+ @keyframes spring-lantern-swing-mobile {
2065+ 0%,
2066+ 100% {
2067+ transform : rotate (-7deg );
2068+ }
2069+
2070+ 50% {
2071+ transform : rotate (7deg );
2072+ }
2073+ }
2074+
20362075.index {
20372076 .module-list .title {
20382077 margin-right : 30px ;
@@ -2047,6 +2086,56 @@ code .dec {
20472086 color : #fff ;
20482087 }
20492088 }
2089+
2090+ .spring-festival-banner {
2091+ margin : 10px 10px 0 ;
2092+ padding : 8px 10px ;
2093+ border-radius : 8px ;
2094+ border : 1px solid rgba (212 , 73 , 44 , 0.22 );
2095+ background : linear-gradient (90deg , #fff6e4 0% , #ffe7cf 100% );
2096+ box-shadow : 0 2px 8px rgba (177 , 58 , 42 , 0.12 );
2097+ display : flex ;
2098+ align-items : center ;
2099+ justify-content : center ;
2100+ gap : 8px ;
2101+ color : #b13a2a ;
2102+ }
2103+
2104+ .spring-festival-banner__text {
2105+ font-size : 13px ;
2106+ font-weight : 600 ;
2107+ letter-spacing : .5px ;
2108+ }
2109+
2110+ .spring-festival-banner__lantern {
2111+ position : relative ;
2112+ width : 12px ;
2113+ height : 16px ;
2114+ border-radius : 55% 55% 45% 45% ;
2115+ background :
2116+ linear-gradient (#d9b260 , #d9b260 ) center top / 2px 5px no-repeat ,
2117+ radial-gradient (circle at 50% 30% , #ffd68a 0 , #ffb05e 28% , #dd4a2d 68% , #a41f1a 100% );
2118+ box-shadow : 0 2px 4px rgba (164 , 31 , 26 , 0.22 );
2119+ transform-origin : top center ;
2120+ animation : spring- lantern- swing- mobile 2.6s ease-in-out infinite ;
2121+
2122+ & ::after {
2123+ content : " " ;
2124+ position : absolute ;
2125+ left : 50% ;
2126+ bottom : -5px ;
2127+ width : 2px ;
2128+ height : 5px ;
2129+ border-radius : 2px ;
2130+ background : linear-gradient (#f5d286 , #d79b3b );
2131+ transform : translateX (-50% );
2132+ }
2133+ }
2134+
2135+ .spring-festival-banner__lantern :last-child {
2136+ animation-delay : -1.3s ;
2137+ }
2138+
20502139}
20512140
20522141/* end index */
@@ -4138,4 +4227,4 @@ body.night {
41384227
41394228 font-size : 14px ; /* emoji/文字统一尺寸 */
41404229 line-height : 1 ; /* 防止 emoji 撑高 */
4141- }
4230+ }
0 commit comments