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

50 lines 1.6 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
4 export const HeadlightsMutedAlt = ({ bgColor }: Partial<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 <svg
19 xmlns="http://www.w3.org/2000/svg"
20 width={62}
21 height={20}
22 viewBox="0 0 62 20">
23 <g fill="none" fillRule="evenodd" transform="translate(1 1)">
24 <circle
25 cx="8"
26 cy="8"
27 r="8"
28 fill={bgColor}
29 stroke={bgColor}
30 strokeWidth=".5"></circle>
31 <circle
32 cx="30"
33 cy="8"
34 r="8"
35 fill={bgColor}
36 stroke={bgColor}
37 strokeWidth=".5"></circle>
38 <circle
39 cx="52"
40 cy="8"
41 r="8"
42 fill={bgColor}
43 stroke={bgColor}
44 strokeWidth=".5"></circle>
45 </g>
46 </svg>
47 </span>
48 );
49 };
50