Extension Add
2K Views
43 Downloads - 7 API calls
32 Lines - 724 Bytes
Apr 23, 2020 interface content
1 .gg-extension-add { 2 box-sizing: border-box;
3 position: relative;
4 display: block;
5 transform: scale(var(--ggs,1 ));
6 background:
7 linear-gradient(
8 to left,currentColor 10px ,transparent 0 )
9 no-repeat 10px 2px /6px 2px ,
10 linear-gradient(
11 to left,currentColor 10px ,transparent 0 )
12 no-repeat 12px 0 /2px 6px ;
13 width: 16px ;
14 height: 16px 15 } 16 17 .gg-extension-add::after ,
18 .gg-extension-add::before { 19 content: "";
20 display: block;
21 position: absolute;
22 box-sizing: border-box;
23 width: 8px ;
24 height: 14px ;
25 border: 2px solid;
26 bottom: 0 27 } 28 29 .gg-extension-add::after { 30 width: 14px ;
31 height: 8px 32 }
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="M16 4 H18 V6 H20 V8 H18 V10 H16 V8 H14 V6 H16 V4 Z" fill="currentColor" /> 9 <path 10 fill-rule="evenodd" 11 clip-rule="evenodd" 12 d="M12 12 V6 H4 V20 H18 V12 H12 ZM6 8 H10 V12 H6 V8 ZM10 14 V18 H6 V14 H10 ZM16 14 V18 H12 V14 H16 Z" 13 fill="currentColor" 14 /> 15 </svg>
1 import React from 'react' 2 import styled from 'styled-components' 3 4 const StyledExtensionAdd = styled.i` 5 & { 6 box-sizing: border-box;7 position: relative;8 display: block;9 transform: scale(var(--ggs, 1 ));10 background: linear-gradient(to left, currentColor 10px , transparent 0 ) no-repeat 10px 2px /6px 11 2px , 12 linear-gradient(to left, currentColor 10px , transparent 0 ) no-repeat 12px 0 /2px 6px ; 13 width: 16px ;14 height: 16px ;15 } 16 &::after , 17 &::before { 18 content: '';19 display: block;20 position: absolute;21 box-sizing: border-box;22 width: 8px ;23 height: 14px ;24 border: 2px solid;25 bottom: 0 ;26 } 27 &::after { 28 width: 14px ;29 height: 8px ;30 } 31 ` 32 33 export const ExtensionAdd = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( 34 (props, ref) => { 35 return ( 36 <> 37 <StyledExtensionAdd { ...props} ref={ ref} icon-role="extension-add" /> 38 </> 39 ) 40 } , 41 ) 42
Extension Add developed into a 100% CSS icon created by using features like: transform, background, width, height, border, Fun to know, it has: 32 Lines of code at 724b & 511b after compiling. Truly amazing 😲 .