More Alt
2K Views
50 Downloads - 11 API calls
30 Lines - 481 Bytes
Apr 23, 2020 buttons interface
1 .gg-more-alt { 2 transform: scale(var(--ggs,1 ))
3 } 4 5 .gg-more-alt,
6 .gg-more-alt::after ,
7 .gg-more-alt::before { 8 box-sizing: border-box;
9 position: relative;
10 display: block;
11 width: 4px ;
12 height: 4px ;
13 background: currentColor;
14 border-radius: 100% 15 } 16 17 .gg-more-alt::after ,
18 .gg-more-alt::before { 19 content: "";
20 position: absolute;
21 top: 0 22 } 23 24 .gg-more-alt::after { 25 left: -6px 26 } 27 28 .gg-more-alt::before { 29 right: -6px 30 }
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="M8 12 C8 13.1046 7.10457 14 6 14 C4.89543 14 4 13.1046 4 12 C4 10.8954 4.89543 10 6 10 C7.10457 10 8 10.8954 8 12 Z" 10 fill="currentColor" 11 /> 12 <path 13 d="M14 12 C14 13.1046 13.1046 14 12 14 C10.8954 14 10 13.1046 10 12 C10 10.8954 10.8954 10 12 10 C13.1046 10 14 10.8954 14 12 Z" 14 fill="currentColor" 15 /> 16 <path 17 d="M18 14 C19.1046 14 20 13.1046 20 12 C20 10.8954 19.1046 10 18 10 C16.8954 10 16 10.8954 16 12 C16 13.1046 16.8954 14 18 14 Z" 18 fill="currentColor" 19 /> 20 </svg>
1 import React from 'react' 2 import styled from 'styled-components' 3 4 const StyledMoreAlt = styled.i` 5 & { 6 transform: scale(var(--ggs, 1 ));7 } 8 &, 9 &::after , 10 &::before { 11 box-sizing: border-box;12 position: relative;13 display: block;14 width: 4px ;15 height: 4px ;16 background: currentColor;17 border-radius: 100% ;18 } 19 &::after , 20 &::before { 21 content: '';22 position: absolute;23 top: 0 ;24 } 25 &::after { 26 left: -6px ;27 } 28 &::before { 29 right: -6px ;30 } 31 ` 32 33 export const MoreAlt = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( 34 (props, ref) => { 35 return ( 36 <> 37 <StyledMoreAlt { ...props} ref={ ref} icon-role="more-alt" /> 38 </> 39 ) 40 } , 41 ) 42
More Alt ended up a wonderful 100% CSS icon created by adopting properties like: transform, width, height, background, border-radius, .gg-more-alt, Fun facts, it has: 30 Lines of code at 481b & 353b after compiling. Pretty amazing 😲 .