Play List Remove
1K Views
48 Downloads - 4 API calls
35 Lines - 736 Bytes
Apr 23, 2020 multimedia music interface
1 .gg-play-list-remove { 2 box-sizing: border-box;
3 position: relative;
4 display: block;
5 transform: scale(var(--ggs,1 ));
6 width: 12px ;
7 height: 6px ;
8 border-top: 0 solid transparent;
9 border-bottom: 2px solid transparent;
10 box-shadow:
11 inset 0 -2px 0 ,
12 -2px 4px 0 -2px ,
13 0 -2px 0 0 14 } 15 16 .gg-play-list-remove::after ,
17 .gg-play-list-remove::before { 18 content: "";
19 display: block;
20 box-sizing: border-box;
21 position: absolute;
22 width: 8px ;
23 height: 2px ;
24 background: currentColor;
25 transform: rotate(-45deg );
26 top: 8px ;
27 right: -4px 28 } 29 30 .gg-play-list-remove::before { 31 width: 2px ;
32 height: 8px ;
33 top: 5px ;
34 right: -1px 35 }
1 <svg 2 width="24 " 3 height="24 " 4 viewBox="0 0 24 24 " 5 fill="none" 6 xmlns="http://www.w3 .org/2000 /svg" 7 > 8 <path d="M15.9644 4.63379 H3.96442 V6.63379 H15.9644 V4.63379 Z" fill="currentColor" /> 9 <path d="M15.9644 8.63379 H3.96442 V10.6338 H15.9644 V8.63379 Z" fill="currentColor" /> 10 <path d="M3.96442 12.6338 H11.9644 V14.6338 H3.96442 V12.6338 Z" fill="currentColor" /> 11 <path 12 d="M12.9645 13.7093 L14.3787 12.295 L16.5 14.4163 L18.6213 12.2951 L20.0355 13.7093 L17.9142 15.8305 L20.0356 17.9519 L18.6214 19.3661 L16.5 17.2447 L14.3786 19.3661 L12.9644 17.9519 L15.0858 15.8305 L12.9645 13.7093 Z" 13 fill="currentColor" 14 /> 15 </svg>
1 import React from 'react' 2 import styled from 'styled-components' 3 4 const StyledPlayListRemove = styled.i` 5 & { 6 box-sizing: border-box;7 position: relative;8 display: block;9 transform: scale(var(--ggs, 1 ));10 width: 12px ;11 height: 6px ;12 border-top: 0 solid transparent;13 border-bottom: 2px solid transparent;14 box-shadow: inset 0 -2px 0 , -2px 4px 0 -2px , 0 -2px 0 0 ;15 } 16 &::after , 17 &::before { 18 content: '';19 display: block;20 box-sizing: border-box;21 position: absolute;22 width: 8px ;23 height: 2px ;24 background: currentColor;25 transform: rotate(-45deg );26 top: 8px ;27 right: -4px ;28 } 29 &::before { 30 width: 2px ;31 height: 8px ;32 top: 5px ;33 right: -1px ;34 } 35 ` 36 37 export const PlayListRemove = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( 38 (props, ref) => { 39 return ( 40 <> 41 <StyledPlayListRemove { ...props} ref={ ref} icon-role="play-list-remove" /> 42 </> 43 ) 44 } , 45 ) 46
Play List Remove developed into a magic pure CSS icon created by practicing attributes like: transform, width, height, border-top, border-bottom, box-shadow, background, Fun facts, it has: 35 Lines of code at 736b & 527b minified. Pretty wonderful 🤗 huhh.