@@ -153,16 +153,16 @@ private function get_styles_css() {
153153 $ shimmer = esc_attr ( $ this ->args ['shimmer_color ' ] );
154154 $ dur = esc_attr ( $ this ->args ['shimmer_duration ' ] );
155155
156- return
157- " .shimmer-wrapper { display: inline-flex; align-items: center; gap: 8px; } " .
158- " .shimmer-spinner { flex-shrink: 0; } " .
159- " .spinner-rotate { transform-origin: center; animation: spinner-rotation 2s linear infinite; } " .
160- " .spinner-rotate circle { stroke-linecap: round; animation: spinner-stroke 1.5s ease-in-out infinite; } " .
161- " @keyframes spinner-rotation { 100% { transform: rotate(360deg); } } " .
162- " @keyframes spinner-stroke { 0% { stroke-dasharray: 0 150; stroke-dashoffset: 0; } 47.5% { stroke-dasharray: 42 150; stroke-dashoffset: -16; } 95%, 100% { stroke-dasharray: 42 150; stroke-dashoffset: -59; } } " .
156+ return
157+ ' .shimmer-wrapper { display: inline-flex; align-items: center; gap: 8px; } ' .
158+ ' .shimmer-spinner { flex-shrink: 0; } ' .
159+ ' .spinner-rotate { transform-origin: center; animation: spinner-rotation 2s linear infinite; } ' .
160+ ' .spinner-rotate circle { stroke-linecap: round; animation: spinner-stroke 1.5s ease-in-out infinite; } ' .
161+ ' @keyframes spinner-rotation { 100% { transform: rotate(360deg); } } ' .
162+ ' @keyframes spinner-stroke { 0% { stroke-dasharray: 0 150; stroke-dashoffset: 0; } 47.5% { stroke-dasharray: 42 150; stroke-dashoffset: -16; } 95%, 100% { stroke-dasharray: 42 150; stroke-dashoffset: -59; } } ' .
163163 ".shimmer-text { display: inline-block; color: {$ base }; line-height: 1.2; } " .
164164 ".shimmer { display: inline-block; color: {$ base }; line-height: 1.2; background: {$ base } linear-gradient(to left, {$ base }, {$ shimmer } 50%, {$ base }); background-position: -4rem top; background-repeat: no-repeat; background-size: 4rem 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer {$ dur } infinite; } " .
165- " @keyframes shimmer { 0% { background-position: -4rem top; } 70%, 100% { background-position: 12.5rem top; } } " ;
165+ ' @keyframes shimmer { 0% { background-position: -4rem top; } 70%, 100% { background-position: 12.5rem top; } } ' ;
166166 }
167167}
168168
0 commit comments