Skip to content

Commit

Permalink
fix: add label API docs by Redocly (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiia-developer committed Jul 27, 2022
1 parent a5804db commit dcdab83
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/components/SideMenu/SideMenu.tsx
Expand Up @@ -27,7 +27,8 @@ export class SideMenu extends React.Component<{ menu: MenuStore; className?: str
<MenuItems items={store.items} onActivate={this.activate} root={true} />
<RedocAttribution>
<a target="_blank" rel="noopener noreferrer" href="https://redocly.com/redoc/">
Documentation Powered by Redocly
<img src={'https://cdn.redoc.ly/redoc/logo-mini.svg'} alt={'redocly logo'} /> API docs
by Redocly
</a>
</RedocAttribution>
</PerfectScrollbarWrap>
Expand Down
28 changes: 20 additions & 8 deletions src/components/SideMenu/styled.elements.ts
Expand Up @@ -2,7 +2,7 @@ import { default as classnames } from 'classnames';
import { darken } from 'polished';

import { deprecatedCss, ShelfIcon } from '../../common-elements';
import styled, { css, ResolvedThemeInterface } from '../../styled-components';
import styled, { css, media, ResolvedThemeInterface } from '../../styled-components';

export const OperationBadge = styled.span.attrs((props: { type: string }) => ({
className: `operation-type ${props.type}`,
Expand Down Expand Up @@ -172,18 +172,30 @@ export const RedocAttribution = styled.div`
${({ theme }) => `
font-size: 0.8em;
margin-top: ${theme.spacing.unit * 2}px;
padding: 0 ${theme.spacing.unit * 4}px;
text-align: left;
opacity: 0.7;
text-align: center;
position: fixed;
width: ${theme.sidebar.width};
bottom: 0px;
background: ${theme.sidebar.backgroundColor};
a,
a:visited,
a:hover {
color: ${theme.sidebar.textColor} !important;
border-top: 1px solid ${darken(0.1, theme.sidebar.backgroundColor)};
padding: ${theme.spacing.unit}px 0;
display: block;
border-top: 1px solid ${darken(0.1, theme.sidebar.backgroundColor)};
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
}
`};
img {
width: 15px;
margin-right: 5px;
}
${media.lessThan('small')`
width: 100%;
`};
`;

0 comments on commit dcdab83

Please sign in to comment.