mirror of
https://github.com/Lissy93/web-check.git
synced 2025-06-20 03:37:41 +02:00
Makes heading flex layout, with icon compatibility
This commit is contained in:
parent
73d7b56401
commit
7b2c27c0b1
@ -14,6 +14,13 @@ interface HeadingProps {
|
|||||||
const StyledHeading = styled.h1<HeadingProps>`
|
const StyledHeading = styled.h1<HeadingProps>`
|
||||||
margin: 0.5rem 0;
|
margin: 0.5rem 0;
|
||||||
text-shadow: 2px 2px 0px ${colors.bgShadowColor};
|
text-shadow: 2px 2px 0px ${colors.bgShadowColor};
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
align-items: center;
|
||||||
|
img {
|
||||||
|
width: 2rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
${props => {
|
${props => {
|
||||||
switch (props.size) {
|
switch (props.size) {
|
||||||
case 'xSmall': return `font-size: ${TextSizes.small};`;
|
case 'xSmall': return `font-size: ${TextSizes.small};`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user