mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 22:24:54 +03:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6de485ceba
|
@ -37,9 +37,10 @@ export const ShelfIcon = styled(IntShelfIcon)`
|
|||
height: ${props => props.size || '18px'};
|
||||
width: ${props => props.size || '18px'};
|
||||
vertical-align: middle;
|
||||
float: ${props => props.float || ''};
|
||||
float: ${props => (props.theme.typography.direction === 'rtl') ? 'right' : props.float || '' };
|
||||
transition: transform 0.2s ease-out;
|
||||
transform: rotateZ(${props => directionMap[props.direction || 'down']});
|
||||
transform: rotateZ(${props => (props.theme.typography.direction === 'rtl') ?
|
||||
(directionMap[ props.direction === 'right' ? 'left' : 'down' || 'down']) : (directionMap[props.direction || 'down'])});
|
||||
|
||||
polygon {
|
||||
fill: ${props =>
|
||||
|
|
|
@ -67,6 +67,7 @@ export const Tabs = styled(ReactTabs)`
|
|||
|
||||
& > div > pre {
|
||||
padding: 0;
|
||||
direction: ltr;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
|
|
@ -7,7 +7,7 @@ export const jsonStyles = css`
|
|||
|
||||
font-family: ${props => props.theme.typography.code.fontFamily};
|
||||
font-size: ${props => props.theme.typography.code.fontSize};
|
||||
|
||||
direction: ltr;
|
||||
white-space: ${({ theme }) => (theme.typography.code.wrap ? 'pre-wrap' : 'pre')};
|
||||
contain: content;
|
||||
overflow-x: auto;
|
||||
|
|
|
@ -11,7 +11,7 @@ export const StyledResponseTitle = styled(ResponseTitle)`
|
|||
line-height: 1.5em;
|
||||
background-color: #f2f2f2;
|
||||
cursor: pointer;
|
||||
|
||||
text-align:${({ theme }) => (theme.typography.direction === 'rtl') ? 'right' : 'left'};
|
||||
color: ${props => props.theme.colors.responses[props.type].color};
|
||||
background-color: ${props => props.theme.colors.responses[props.type].backgroundColor};
|
||||
|
||||
|
@ -35,7 +35,7 @@ export const ResponseDetailsWrap = styled.div`
|
|||
`;
|
||||
|
||||
export const HeadersCaption = styled(UnderlinedHeader.withComponent('caption'))`
|
||||
text-align: left;
|
||||
text-align: ${({ theme }) => (theme.typography.direction === 'rtl') ? 'right' : 'left'};
|
||||
margin-top: 1em;
|
||||
caption-side: top;
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user