Enrich styleguide with new features, rules and changes

The styleguide for usage of visual elements has not been updated for a long time. In the course of this story it should be adapted to the current standards and rules. In addition, heavy violations were rectified directly.
This commit is contained in:
Florian Scholdei
2021-01-28 12:46:42 +01:00
committed by GitHub
parent 0046c78b40
commit 57c9484d41
12 changed files with 2530 additions and 1003 deletions

View File

@@ -58,10 +58,6 @@ const Header = styled.div`
padding: 0.5em 0.75em;
`;
const VCenteredChild = styled.div`
align-items: center;
`;
const RightMarginIcon = styled(Icon)`
margin-right: 0.5em;
`;
@@ -128,7 +124,7 @@ class Content extends React.Component<Props, State> {
return (
<span className="has-cursor-pointer">
<VCenteredChild className={classNames("media", "is-flex")}>
<div className={classNames("media", "is-flex", "is-align-items-center")}>
<div className="media-content" onClick={this.toggleCollapse}>
<RightMarginIcon name={icon} color="inherit" />
<span className="is-word-break">{file.name}</span>
@@ -151,7 +147,7 @@ class Content extends React.Component<Props, State> {
renderAll={true}
/>
</div>
</VCenteredChild>
</div>
</span>
);
}