PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.28.0
Code Block Pro – Beautiful Syntax Highlighting v1.28.0
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.28.0, at src/editor/components/headers/HeadlightsMuted.tsx

66 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { type AnyColor, colord } from 'colord';
2 import type { 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 >
18 <svg
19 xmlns="http://www.w3.org/2000/svg"
20 width={54}
21 height={14}
22 viewBox="0 0 54 14"
23 >
24 <g fill="none" fillRule="evenodd" transform="translate(1 1)">
25 <circle
26 cx="6"
27 cy="6"
28 r="6"
29 fill={colord(textColor as AnyColor)
30 .alpha(0.2)
31 .toHex()}
32 stroke={colord(textColor as AnyColor)
33 .alpha(0.3)
34 .toHex()}
35 strokeWidth=".5"
36 ></circle>
37 <circle
38 cx="26"
39 cy="6"
40 r="6"
41 fill={colord(textColor as AnyColor)
42 .alpha(0.2)
43 .toHex()}
44 stroke={colord(textColor as AnyColor)
45 .alpha(0.3)
46 .toHex()}
47 strokeWidth=".5"
48 ></circle>
49 <circle
50 cx="46"
51 cy="6"
52 r="6"
53 fill={colord(textColor as AnyColor)
54 .alpha(0.2)
55 .toHex()}
56 stroke={colord(textColor as AnyColor)
57 .alpha(0.3)
58 .toHex()}
59 strokeWidth=".5"
60 ></circle>
61 </g>
62 </svg>
63 </span>
64 );
65 };
66