mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14:56 +03:00
add copy
This commit is contained in:
parent
6a8843f23e
commit
ab7a2457f3
|
@ -10,7 +10,7 @@ import { ApiLogo } from '../ApiLogo/ApiLogo';
|
|||
import { ContentItems } from '../ContentItems/ContentItems';
|
||||
import { SideMenu } from '../SideMenu/SideMenu';
|
||||
import { StickyResponsiveSidebar } from '../StickySidebar/StickyResponsiveSidebar';
|
||||
import { ApiContentWrap, BackgroundStub, RedocWrap } from './styled.elements';
|
||||
import { ApiContentWrap, BackgroundStub, Copyright, RedocWrap } from './styled.elements';
|
||||
|
||||
import { SearchBox } from '../SearchBox/SearchBox';
|
||||
import { StoreProvider } from '../StoreBuilder';
|
||||
|
@ -59,6 +59,11 @@ export class Redoc extends React.Component<RedocProps> {
|
|||
<ApiInfo store={store} />
|
||||
<ContentItems items={menu.items as any} />
|
||||
</ApiContentWrap>
|
||||
<Copyright>
|
||||
<a href="https://github.com/Rebilly/ReDoc" target="_blank" title="Swagger-generated API Reference Documentation">
|
||||
Powered by <b>ReDoc</b>
|
||||
</a>
|
||||
</Copyright>
|
||||
<BackgroundStub />
|
||||
</RedocWrap>
|
||||
</OptionsProvider>
|
||||
|
|
|
@ -37,6 +37,21 @@ export const ApiContentWrap = styled.div`
|
|||
contain: layout;
|
||||
`;
|
||||
|
||||
export const Copyright = styled.div`
|
||||
color: #c2c2c2;
|
||||
position: absolute;
|
||||
bottom: 14px;
|
||||
right: 40px;
|
||||
z-index: 5;
|
||||
|
||||
a {
|
||||
color: #c2c2c2;
|
||||
b {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const BackgroundStub = styled.div`
|
||||
background: ${({ theme }) => theme.rightPanel.backgroundColor};
|
||||
position: absolute;
|
||||
|
|
Loading…
Reference in New Issue
Block a user