1 | import React from 'react' |
2 | import styled from 'styled-components' |
3 | |
4 | const StyledAttribution = styled.i` |
5 | & { |
6 | display: block; |
7 | box-sizing: border-box; |
8 | transform: scale(var(--ggs, 1)); |
9 | width: 16px; |
10 | height: 18px; |
11 | background: linear-gradient(to left, currentColor 14px, transparent 0) no-repeat 1px 2px/8px 2px, |
12 | linear-gradient(to left, currentColor 14px, transparent 0) no-repeat 6px 14px/6px 2px, |
13 | radial-gradient(circle, currentColor 60%, transparent 40%) no-repeat 10px 12px/6px 6px, |
14 | radial-gradient(circle, currentColor 60%, transparent 40%) no-repeat 0 0/6px 6px; |
15 | } |
16 | &::after, |
17 | &::before { |
18 | content: ''; |
19 | display: block; |
20 | box-sizing: border-box; |
21 | position: absolute; |
22 | width: 8px; |
23 | height: 8px; |
24 | border: 2px solid; |
25 | } |
26 | &::before { |
27 | border-right: 0; |
28 | border-top-left-radius: 10px; |
29 | border-bottom-left-radius: 10px; |
30 | top: 8px; |
31 | left: 2px; |
32 | } |
33 | &::after { |
34 | border-left: 0; |
35 | border-top-right-radius: 10px; |
36 | border-bottom-right-radius: 10px; |
37 | right: 2px; |
38 | top: 2px; |
39 | } |
40 | ` |
41 | |
42 | export const Attribution = React.forwardRef<HTMLElement, React.HTMLAttributes<HTMLElement>>( |
43 | (props, ref) => { |
44 | return ( |
45 | <> |
46 | <StyledAttribution {...props} ref={ref} icon-role="attribution" /> |
47 | </> |
48 | ) |
49 | }, |
50 | ) |
51 | |