Maximize Alt
1K Views
54 Downloads - 6 API calls
33 Lines - 691 Bytes
Apr 23, 2020 interface arrows
1 .gg-maximize-alt { 2 box-sizing: border-box;
3 position: relative;
4 display: block;
5 transform: scale(var(--ggs,1 ));
6 width: 14px ;
7 height: 14px ;
8 box-shadow:
9 -6px -6px 0 -4px ,
10 6px 6px 0 -4px ,
11 6px -6px 0 -4px ,
12 -6px 6px 0 -4px 13 } 14 15 .gg-maximize-alt::after ,
16 .gg-maximize-alt::before { 17 content: "";
18 display: block;
19 box-sizing: border-box;
20 position: absolute;
21 border-radius: 3px ;
22 width: 22px ;
23 height: 2px ;
24 border-left: 8px solid;
25 border-right: 8px solid;
26 transform: rotate(-45deg );
27 bottom: 6px ;
28 left: -4px 29 } 30 31 .gg-maximize-alt::before { 32 transform: rotate(45deg )
33 }
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="M3 3 H9 V5 H6.46173 L11.3047 9.84298 L9.8905 11.2572 L5 6.3667 V9 H3 V3 Z" 10 fill="currentColor" 11 /> 12 <path 13 d="M3 21 H9 V19 H6.3764 L11.3046 14.0718 L9.89038 12.6576 L5 17.548 V15 H3 V21 Z" 14 fill="currentColor" 15 /> 16 <path 17 d="M15 21 H21 V15 H19 V17.5244 L14.1332 12.6576 L12.719 14.0718 L17.6472 19 H15 V21 Z" 18 fill="currentColor" 19 /> 20 <path 21 d="M21 3 H15 V5 H17.5619 L12.7189 9.84301 L14.1331 11.2572 L19 6.39032 V9 H21 V3 Z" 22 fill="currentColor" 23 /> 24 </svg>
1 import React from 'react' 2 import styled from 'styled-components' 3 4 const StyledMaximizeAlt = styled.i` 5 & { 6 box-sizing: border-box;7 position: relative;8 display: block;9 transform: scale(var(--ggs, 1 ));10 width: 14px ;11 height: 14px ;12 box-shadow: -6px -6px 0 -4px , 6px 6px 0 -4px , 6px -6px 0 -4px , -6px 6px 0 -4px ;13 } 14 &::after , 15 &::before { 16 content: '';17 display: block;18 box-sizing: border-box;19 position: absolute;20 border-radius: 3px ;21 width: 22px ;22 height: 2px ;23 border-left: 8px solid;24 border-right: 8px solid;25 transform: rotate(-45deg );26 bottom: 6px ;27 left: -4px ;28 } 29 &::before { 30 transform: rotate(45deg );31 } 32 ` 33 34 export const MaximizeAlt = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( 35 (props, ref) => { 36 return ( 37 <> 38 <StyledMaximizeAlt { ...props} ref={ ref} icon-role="maximize-alt" /> 39 </> 40 ) 41 } , 42 ) 43
Maximize Alt became a wonderful pure CSS icon built by practicing attributes as follows: transform, width, height, box-shadow, border-radius, border-left, border-right, .gg-maximize-alt, Fun to know, it has: 33 Lines of code at 691b & 493b minified. Pretty amazing 😲 .