mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
fix: align logo by center
This commit is contained in:
parent
49c23c9345
commit
18ec3ac17b
|
@ -1,9 +1,7 @@
|
||||||
import { observer } from 'mobx-react';
|
import { observer } from 'mobx-react';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { OpenAPIInfo } from '../../types';
|
import { OpenAPIInfo } from '../../types';
|
||||||
import { LogoImgEl, LogoWrap } from './styled.elements';
|
import { LogoImgEl, LogoWrap, LinkWrap } from './styled.elements';
|
||||||
|
|
||||||
const LinkWrap = url => Component => <a href={url}>{Component}</a>;
|
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class ApiLogo extends React.Component<{ info: OpenAPIInfo }> {
|
export class ApiLogo extends React.Component<{ info: OpenAPIInfo }> {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import * as React from 'react';
|
||||||
import styled from '../../styled-components';
|
import styled from '../../styled-components';
|
||||||
|
|
||||||
export const LogoImgEl = styled.img`
|
export const LogoImgEl = styled.img`
|
||||||
|
@ -10,3 +11,9 @@ export const LogoImgEl = styled.img`
|
||||||
export const LogoWrap = styled.div`
|
export const LogoWrap = styled.div`
|
||||||
text-align: center;
|
text-align: center;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const Link = styled.a`
|
||||||
|
display: inline-block;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const LinkWrap = url => Component => <Link href={url}>{Component}</Link>;
|
Loading…
Reference in New Issue
Block a user