mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 22:54:51 +03:00
fix: AppInfo and MiddlePanel support RTL
This commit is contained in:
parent
d6f9778232
commit
f787bc14af
|
@ -4,6 +4,8 @@ import styled, { media } from '../styled-components';
|
||||||
export const MiddlePanel = styled.div`
|
export const MiddlePanel = styled.div`
|
||||||
width: calc(100% - ${props => props.theme.rightPanel.width});
|
width: calc(100% - ${props => props.theme.rightPanel.width});
|
||||||
padding: 0 ${props => props.theme.spacing.sectionHorizontal}px;
|
padding: 0 ${props => props.theme.spacing.sectionHorizontal}px;
|
||||||
|
direction: ${props => props.theme.typography.direction || 'ltr'};
|
||||||
|
text-align: ${props => (props.theme.typography.direction === 'rtl') ? 'right' : 'inherit'};
|
||||||
|
|
||||||
${media.lessThan('medium', true)`
|
${media.lessThan('medium', true)`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -28,7 +28,15 @@ export const DownloadButton = styled.a`
|
||||||
export const InfoSpan = styled.span`
|
export const InfoSpan = styled.span`
|
||||||
&::before {
|
&::before {
|
||||||
content: '|';
|
content: '|';
|
||||||
display: inline-block;
|
display: ${props => (props.theme.typography.direction === 'ltr') ? 'inline-block' : 'none'};
|
||||||
|
opacity: 0.5;
|
||||||
|
width: ${delimiterWidth}px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: '|';
|
||||||
|
display: ${props => (props.theme.typography.direction === 'rtl') ? 'inline-block' : 'none'};
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
width: ${delimiterWidth}px;
|
width: ${delimiterWidth}px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user