Internal
2K Views
51 Downloads - 27 API calls
39 Lines - 747 Bytes
Apr 23, 2020 interface arrows
1 .gg-internal { 2 box-sizing: border-box;
3 position: relative;
4 display: block;
5 transform: scale(var(--ggs,1 ));
6 width: 12px ;
7 height: 12px ;
8 box-shadow:
9 -2px 2px 0 0 ,
10 -4px -4px 0 -2px ,
11 4px 4px 0 -2px ;
12 margin-left: -2px ;
13 margin-top: 1px 14 } 15 16 .gg-internal::after ,
17 .gg-internal::before { 18 content: "";
19 display: block;
20 box-sizing: border-box;
21 position: absolute;
22 left: 2px 23 } 24 25 .gg-internal::before { 26 background: currentColor;
27 transform: rotate(-45deg );
28 width: 14px ;
29 height: 2px ;
30 bottom: 8px 31 } 32 33 .gg-internal::after { 34 width: 7px ;
35 height: 7px ;
36 border-left: 2px solid;
37 border-bottom: 2px solid;
38 bottom: 2px 39 }
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="M20.7084 4.41165 L10.4586 14.6986 H14.0488 V16.6986 H7.04883 V9.69861 H9.04883 V13.2799 L19.2916 3 L20.7084 4.41165 Z" 10 fill="currentColor" 11 /> 12 <path 13 d="M11 4.70581 V6.70581 H5 V18.7058 H17 V12.7058 H19 V20.7058 H3 V4.70581 H11 Z" 14 fill="currentColor" 15 /> 16 </svg>
1 import React from 'react' 2 import styled from 'styled-components' 3 4 const StyledInternal = 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: 12px ;12 box-shadow: -2px 2px 0 0 , -4px -4px 0 -2px , 4px 4px 0 -2px ;13 margin-left: -2px ;14 margin-top: 1px ;15 } 16 &::after , 17 &::before { 18 content: '';19 display: block;20 box-sizing: border-box;21 position: absolute;22 left: 2px ;23 } 24 &::before { 25 background: currentColor;26 transform: rotate(-45deg );27 width: 14px ;28 height: 2px ;29 bottom: 8px ;30 } 31 &::after { 32 width: 7px ;33 height: 7px ;34 border-left: 2px solid;35 border-bottom: 2px solid;36 bottom: 2px ;37 } 38 ` 39 40 export const Internal = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( 41 (props, ref) => { 42 return ( 43 <> 44 <StyledInternal { ...props} ref={ ref} icon-role="internal" /> 45 </> 46 ) 47 } , 48 ) 49
Internal turned into an amazing 100% CSS icon built by applying features like: transform, width, height, box-shadow, border-left, border-bottom, Fun to know, it has: 39 Lines of code at 747b & 524b after compiling. Pretty amazing 😲 don't you think ?.