Folder Add
2K Views
59 Downloads - 8 API calls
42 Lines - 917 Bytes
Apr 23, 2020 interface files
1 .gg-folder-add { 2 background:
3 linear-gradient(to left,
4 currentColor 10px ,transparent 0 )
5 no-repeat center center/2px 6px ;
6 box-sizing: border-box;
7 position: relative;
8 display: block;
9 transform: scale(var(--ggs,1 ));
10 width: 22px ;
11 height: 16px ;
12 border: 2px solid;
13 border-radius: 3px 14 } 15 16 .gg-folder-add::after ,
17 .gg-folder-add::before { 18 content: "";
19 display: block;
20 box-sizing: border-box;
21 position: absolute
22 } 23 24 .gg-folder-add::before { 25 background: currentColor;
26 left: 6px ;
27 width: 6px ;
28 height: 2px ;
29 top: 5px 30 } 31 32 .gg-folder-add::after { 33 width: 10px ;
34 height: 4px ;
35 border: 2px solid;
36 border-bottom: 0 ;
37 border-top-left-radius: 2px ;
38 border-top-right-radius: 4px ;
39 border-bottom-left-radius: 0 ;
40 border-bottom-right-radius: 0 ;
41 top: -5px 42 }
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="M11 14.5 V16.5 H13 V14.5 H15 V12.5 H13 V10.5 H11 V12.5 H9 V14.5 H11 Z" 10 fill="currentColor" 11 /> 12 <path 13 fill-rule="evenodd" 14 clip-rule="evenodd" 15 d="M4 1.5 C2.89543 1.5 2 2.39543 2 3.5 V4.5 C2 4.55666 2.00236 4.61278 2.00698 4.66825 C0.838141 5.07811 0 6.19118 0 7.5 V19.5 C0 21.1569 1.34315 22.5 3 22.5 H21 C22.6569 22.5 24 21.1569 24 19.5 V7.5 C24 5.84315 22.6569 4.5 21 4.5 H11.874 C11.4299 2.77477 9.86384 1.5 8 1.5 H4 ZM9.73244 4.5 C9.38663 3.9022 8.74028 3.5 8 3.5 H4 V4.5 H9.73244 ZM3 6.5 C2.44772 6.5 2 6.94772 2 7.5 V19.5 C2 20.0523 2.44772 20.5 3 20.5 H21 C21.5523 20.5 22 20.0523 22 19.5 V7.5 C22 6.94772 21.5523 6.5 21 6.5 H3 Z" 16 fill="currentColor" 17 /> 18 </svg>
1 import React from 'react' 2 import styled from 'styled-components' 3 4 const StyledFolderAdd = styled.i` 5 & { 6 background: linear-gradient(to left, currentColor 10px , transparent 0 ) no-repeat center7 center/2px 6px ; 8 box-sizing: border-box;9 position: relative;10 display: block;11 transform: scale(var(--ggs, 1 ));12 width: 22px ;13 height: 16px ;14 border: 2px solid;15 border-radius: 3px ;16 } 17 &::after , 18 &::before { 19 content: '';20 display: block;21 box-sizing: border-box;22 position: absolute;23 } 24 &::before { 25 background: currentColor;26 left: 6px ;27 width: 6px ;28 height: 2px ;29 top: 5px ;30 } 31 &::after { 32 width: 10px ;33 height: 4px ;34 border: 2px solid;35 border-bottom: 0 ;36 border-top-left-radius: 2px ;37 border-top-right-radius: 4px ;38 border-bottom-left-radius: 0 ;39 border-bottom-right-radius: 0 ;40 top: -5px ;41 } 42 ` 43 44 export const FolderAdd = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( 45 (props, ref) => { 46 return ( 47 <> 48 <StyledFolderAdd { ...props} ref={ ref} icon-role="folder-add" /> 49 </> 50 ) 51 } , 52 ) 53
Folder Add is a 100% CSS icon built by using properties as follows: background, transform, width, height, border, border-radius, border-bottom, Some stats, it has: 42 Lines of code at 917b & 649b minified. Pretty marvelous 💎 for a CSS designed icon.