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 / HeadlightsMutedAlt.tsx

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

55 lines 1.1 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
4 export const HeadlightsMutedAlt = ({ bgColor }: Attributes) => {
5 const bgC = colord(bgColor as AnyColor);
6 const bg = bgC.isDark() ? bgC.lighten(0.05) : bgC.darken(0.05);
7 return (
8 <span
9 style={{
10 display: 'flex',
11 alignItems: 'center',
12 padding: '10px 0px 10px 16px',
13 marginBottom: '-2px',
14 width: '100%',
15 textAlign: 'left',
16 backgroundColor: bg.toHex(),
17 }}
18 >
19 <svg
20 xmlns="http://www.w3.org/2000/svg"
21 width={62}
22 height={20}
23 viewBox="0 0 62 20"
24 >
25 <g fill="none" fillRule="evenodd" transform="translate(1 1)">
26 <circle
27 cx="8"
28 cy="8"
29 r="8"
30 fill={bgColor}
31 stroke={bgColor}
32 strokeWidth=".5"
33 ></circle>
34 <circle
35 cx="30"
36 cy="8"
37 r="8"
38 fill={bgColor}
39 stroke={bgColor}
40 strokeWidth=".5"
41 ></circle>
42 <circle
43 cx="52"
44 cy="8"
45 r="8"
46 fill={bgColor}
47 stroke={bgColor}
48 strokeWidth=".5"
49 ></circle>
50 </g>
51 </svg>
52 </span>
53 );
54 };
55