PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.3
Code Block Pro – Beautiful Syntax Highlighting v1.27.3
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / src / editor / components / headers / HeadlightsMuted.tsx

HeadlightsMuted.tsx in Code Block Pro – Beautiful Syntax Highlighting 1.27.3, at src/editor/components/headers/HeadlightsMuted.tsx

61 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { colord, AnyColor } from 'colord';
2 import { Attributes } from '../../../types';
3 import { findBackgroundColor } from '../../../util/colors';
4
5 export const HeadlightsMuted = (attributes: Attributes) => {
6 const { textColor } = attributes;
7 return (
8 <span
9 style={{
10 display: 'block',
11 padding: '16px 0 0 16px',
12 marginBottom: '-1px',
13 width: '100%',
14 textAlign: 'left',
15 backgroundColor: findBackgroundColor(attributes),
16 }}>
17 <svg
18 xmlns="http://www.w3.org/2000/svg"
19 width={54}
20 height={14}
21 viewBox="0 0 54 14">
22 <g fill="none" fillRule="evenodd" transform="translate(1 1)">
23 <circle
24 cx="6"
25 cy="6"
26 r="6"
27 fill={colord(textColor as AnyColor)
28 .alpha(0.2)
29 .toHex()}
30 stroke={colord(textColor as AnyColor)
31 .alpha(0.3)
32 .toHex()}
33 strokeWidth=".5"></circle>
34 <circle
35 cx="26"
36 cy="6"
37 r="6"
38 fill={colord(textColor as AnyColor)
39 .alpha(0.2)
40 .toHex()}
41 stroke={colord(textColor as AnyColor)
42 .alpha(0.3)
43 .toHex()}
44 strokeWidth=".5"></circle>
45 <circle
46 cx="46"
47 cy="6"
48 r="6"
49 fill={colord(textColor as AnyColor)
50 .alpha(0.2)
51 .toHex()}
52 stroke={colord(textColor as AnyColor)
53 .alpha(0.3)
54 .toHex()}
55 strokeWidth=".5"></circle>
56 </g>
57 </svg>
58 </span>
59 );
60 };
61