mirror of
https://github.com/google/blockly.git
synced 2026-05-01 17:40:11 +02:00
chore(docs): replace CompareBlock component with admonition syntax
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
export default function CompareBlock({ variant, children }) {
|
||||
return <p className={`compare-${variant}`}>{children}</p>;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user