chore(docs): replace CompareBlock component with admonition syntax

This commit is contained in:
Greg Annandale
2026-04-07 10:19:06 +01:00
parent 541c8d645a
commit 059a9c741d
4 changed files with 35 additions and 95 deletions
@@ -1,5 +0,0 @@
import React from 'react';
export default function CompareBlock({ variant, children }) {
return <p className={`compare-${variant}`}>{children}</p>;
}
-34
View File
@@ -270,40 +270,6 @@ table th p {
transform: scale(1.05);
}
.compare-better:before {
content: 'thumb_up';
color: #1e8e3e;
font-family: 'Material Icons' !important;
font-weight: normal;
font-style: normal;
font-size: 24px;
margin-inline: 0 4px;
vertical-align: middle;
width: 24px;
}
.compare-worse:before {
content: 'thumb_down';
color: #d50000;
font-family: 'Material Icons' !important;
font-weight: normal;
font-style: normal;
font-size: 24px;
margin-inline: 0 4px;
vertical-align: middle;
width: 24px;
}
.compare-better,
.compare-worse {
font-weight: 700;
}
.compare-better p,
.compare-worse p {
margin-top: 0;
}
.appendInputImg {
width: 145px !important;
}