Feed
Views
52 Downloads - 15 API calls
36 Lines - 612 Bytes
Apr 23, 2020 buttons interface
1 .gg-feed,
2 .gg-feed::after ,
3 .gg-feed::before { 4 display: block;
5 box-sizing: border-box;
6 background: currentColor;
7 box-shadow: 0 10px 0 0 8 } 9 10 .gg-feed { 11 margin-left: -8px ;
12 margin-top: -8px ;
13 position: relative;
14 transform: scale(var(--ggs,1 ));
15 width: 7px ;
16 height: 7px ;
17 border-radius: 1px 18 } 19 20 .gg-feed::after ,
21 .gg-feed::before { 22 content: "";
23 position: absolute;
24 border-radius: 3px ;
25 width: 12px ;
26 height: 2px ;
27 top: 1px ;
28 left: 9px ;
29 opacity: .8 30 } 31 32 .gg-feed::after { 33 width: 8px ;
34 top: 4px ;
35 opacity: .5 36 }
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 9 d="M12.552 8 C11.9997 8 11.552 8.44772 11.552 9 C11.552 9.55228 11.9997 10 12.552 10 H16.552 C17.1043 10 17.552 9.55228 17.552 9 C17.552 8.44772 17.1043 8 16.552 8 H12.552 Z" 10 fill="currentColor" 11 fill-opacity="0.5 " 12 /> 13 <path 14 d="M12.552 17 C11.9997 17 11.552 17.4477 11.552 18 C11.552 18.5523 11.9997 19 12.552 19 H16.552 C17.1043 19 17.552 18.5523 17.552 18 C17.552 17.4477 17.1043 17 16.552 17 H12.552 Z" 15 fill="currentColor" 16 fill-opacity="0.5 " 17 /> 18 <path 19 d="M12.552 5 C11.9997 5 11.552 5.44772 11.552 6 C11.552 6.55228 11.9997 7 12.552 7 H20.552 C21.1043 7 21.552 6.55228 21.552 6 C21.552 5.44772 21.1043 5 20.552 5 H12.552 Z" 20 fill="currentColor" 21 fill-opacity="0.8 " 22 /> 23 <path 24 d="M12.552 14 C11.9997 14 11.552 14.4477 11.552 15 C11.552 15.5523 11.9997 16 12.552 16 H20.552 C21.1043 16 21.552 15.5523 21.552 15 C21.552 14.4477 21.1043 14 20.552 14 H12.552 Z" 25 fill="currentColor" 26 fill-opacity="0.8 " 27 /> 28 <path 29 d="M3.448 4.00208 C2.89571 4.00208 2.448 4.44979 2.448 5.00208 V10.0021 C2.448 10.5544 2.89571 11.0021 3.448 11.0021 H8.448 C9.00028 11.0021 9.448 10.5544 9.448 10.0021 V5.00208 C9.448 4.44979 9.00028 4.00208 8.448 4.00208 H3.448 Z" 30 fill="currentColor" 31 /> 32 <path 33 d="M3.448 12.9979 C2.89571 12.9979 2.448 13.4456 2.448 13.9979 V18.9979 C2.448 19.5502 2.89571 19.9979 3.448 19.9979 H8.448 C9.00028 19.9979 9.448 19.5502 9.448 18.9979 V13.9979 C9.448 13.4456 9.00028 12.9979 8.448 12.9979 H3.448 Z" 34 fill="currentColor" 35 /> 36 </svg>
1 import React from 'react' 2 import styled from 'styled-components' 3 4 const StyledFeed = styled.i` 5 &, 6 &::after , 7 &::before { 8 display: block;9 box-sizing: border-box;10 background: currentColor;11 box-shadow: 0 10px 0 0 ;12 } 13 & { 14 margin-left: -8px ;15 margin-top: -8px ;16 position: relative;17 transform: scale(var(--ggs, 1 ));18 width: 7px ;19 height: 7px ;20 border-radius: 1px ;21 } 22 &::after , 23 &::before { 24 content: '';25 position: absolute;26 border-radius: 3px ;27 width: 12px ;28 height: 2px ;29 top: 1px ;30 left: 9px ;31 opacity: 0.8 ;32 } 33 &::after { 34 width: 8px ;35 top: 4px ;36 opacity: 0.5 ;37 } 38 ` 39 40 export const Feed = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( 41 (props, ref) => { 42 return ( 43 <> 44 <StyledFeed { ...props} ref={ ref} icon-role="feed" /> 45 </> 46 ) 47 } , 48 ) 49
Feed developed into a CSS icon built by adopting features such as: .gg-feed, background, box-shadow, transform, width, height, border-radius, opacity, Fun to know, it has: 36 Lines of code at 612b & 428b after compression. Quite marvelous 💎 don't you think ?.