mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 06:34:53 +03:00
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/common-elements/panels.ts
This commit is contained in:
commit
eff165618c
|
@ -15,6 +15,7 @@
|
|||
}
|
||||
</style>
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||
<link href="https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
</style>
|
||||
{{{redocHead}}}
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||
<link href="https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
}
|
||||
</style>
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||
<link href="https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
}
|
||||
</style>
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||
<link href="https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
openapi: 3.0.0
|
||||
servers:
|
||||
- url: //petstore.swagger.io/v2
|
||||
description: Default server
|
||||
description: سرور پیش فرض
|
||||
- url: //petstore.swagger.io/sandbox
|
||||
description: Sandbox server
|
||||
description: sandbox سرور
|
||||
info:
|
||||
description: |
|
||||
این یک فایل تست api-doc است که مرتبط با مدیریت یک پتشاپ طراحی و نوشته شده است.
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
}
|
||||
</style>
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||
<link href="https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -40,6 +40,7 @@ const server = http.createServer(async (request, response) => {
|
|||
</style>
|
||||
<script src="redoc.standalone.js"></script>
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||
<link href="https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css" rel="stylesheet">
|
||||
${css}
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -4,7 +4,8 @@ import styled, { media } from '../styled-components';
|
|||
export const MiddlePanel = styled.div`
|
||||
width: calc(100% - ${props => props.theme.rightPanel.width});
|
||||
padding: 0 ${props => props.theme.spacing.sectionHorizontal}px;
|
||||
text-align: ${({ theme }) => (theme.typography.direction === 'rtl') ? 'right' : 'left'};
|
||||
direction: ${props => props.theme.typography.direction || 'ltr'};
|
||||
text-align: ${props => (props.theme.typography.direction === 'rtl') ? 'right' : 'inherit'};
|
||||
|
||||
${media.lessThan('medium', true)`
|
||||
width: 100%;
|
||||
|
|
|
@ -28,7 +28,15 @@ export const DownloadButton = styled.a`
|
|||
export const InfoSpan = styled.span`
|
||||
&::before {
|
||||
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;
|
||||
width: ${delimiterWidth}px;
|
||||
text-align: center;
|
||||
|
|
|
@ -25,6 +25,7 @@ export const EndpointInfo = styled.div<{ expanded?: boolean; inverted?: boolean
|
|||
border: ${props => (props.inverted ? '0' : '1px solid transparent')};
|
||||
border-bottom: ${props => (props.inverted ? '1px solid #ccc' : '0')};
|
||||
transition: border-color 0.25s ease;
|
||||
direction: ltr;
|
||||
|
||||
${props =>
|
||||
(props.expanded && !props.inverted && `border-color: ${props.theme.colors.border.dark};`) || ''}
|
||||
|
@ -59,7 +60,7 @@ export const ServersOverlay = styled.div<{ expanded: boolean }>`
|
|||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
transition: all 0.25s ease;
|
||||
|
||||
text-align: ${({ theme }) => (theme.typography.direction === 'rtl') ? 'right' : 'left'};
|
||||
${props => (props.expanded ? '' : 'transform: translateY(-50%) scaleY(0);')}
|
||||
`;
|
||||
|
||||
|
@ -68,6 +69,7 @@ export const ServerItem = styled.div`
|
|||
`;
|
||||
|
||||
export const ServerUrl = styled.div`
|
||||
text-align: left;
|
||||
padding: 5px;
|
||||
border: 1px solid #ccc;
|
||||
background: #fff;
|
||||
|
@ -75,5 +77,5 @@ export const ServerUrl = styled.div`
|
|||
color: ${props => props.theme.colors.primary.main};
|
||||
> span {
|
||||
color: ${props => props.theme.colors.text.primary};
|
||||
}
|
||||
};
|
||||
`;
|
||||
|
|
|
@ -99,17 +99,17 @@ const defaultTheme: ThemeInterface = {
|
|||
fontWeightRegular: '400',
|
||||
fontWeightBold: '600',
|
||||
fontWeightLight: '300',
|
||||
fontFamily: 'Roboto, sans-serif',
|
||||
fontFamily: 'Roboto, sans-serif, Vazir',
|
||||
smoothing: 'antialiased',
|
||||
optimizeSpeed: true,
|
||||
headings: {
|
||||
fontFamily: 'Montserrat, sans-serif',
|
||||
fontFamily: 'Montserrat, sans-serif, Vazir',
|
||||
fontWeight: '400',
|
||||
lineHeight: '1.6em',
|
||||
},
|
||||
code: {
|
||||
fontSize: '13px',
|
||||
fontFamily: 'Courier, monospace',
|
||||
fontFamily: 'Courier, monospace, Vazir',
|
||||
lineHeight: ({ typography }) => typography.lineHeight,
|
||||
fontWeight: ({ typography }) => typography.fontWeightRegular,
|
||||
color: '#e53935',
|
||||
|
|
Loading…
Reference in New Issue
Block a user