Skip to content

Commit 6ea2b7b

Browse files
committed
fix: fix font-weight inconsistency
fixes #506
1 parent d162bab commit 6ea2b7b

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

src/common-elements/fields-layout.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export const PropertyNameCell = withProps<{ kind?: string }>(PropertyCell.extend
6868
line-height: 20px;
6969
white-space: nowrap;
7070
font-size: 0.929em;
71-
font-weight: 300;
7271
font-family: ${props => props.theme.headingsFont.family};
7372
7473
&.deprecated {

src/components/Endpoint/styled.elements.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const EndpointInfo = withProps<{ expanded?: boolean; inverted?: boolean }
2222
border-radius: ${props => (props.inverted ? '0' : '4px 4px 0 0')};
2323
background-color: ${props => (props.inverted ? 'transparent' : '#222d32')};
2424
display: block;
25-
font-weight: 300;
2625
white-space: nowrap;
2726
overflow-x: hidden;
2827
text-overflow: ellipsis;
@@ -50,12 +49,6 @@ export const HttpVerb = withProps<{ type: string }>(styled.span).attrs({
5049
margin: 0;
5150
`;
5251

53-
// background: transparent;
54-
// border-bottom: 1px solid #cccccc;
55-
// border-color: transparent;
56-
// border-bottom: 1px solid rgba(0,0,0,0.33);
57-
// padding-left: 10px;
58-
5952
export const ServersOverlay = withProps<{ expanded: boolean }>(styled.div)`
6053
position: absolute;
6154
width: 100%;

src/components/Markdown/styles.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { headerCommonMixin, linkifyMixin } from '../../common-elements';
44
import { css, ResolvedThemeInterface, StyledComponentClass } from '../../styled-components';
55

66
export const markdownCss = css`
7+
8+
font-family: ${props => props.theme.baseFont.family};
9+
font-weight: ${props => props.theme.baseFont.weight};
10+
line-height: ${props => props.theme.baseFont.lineHeight};
11+
712
p {
813
&:last-of-type {
914
margin-bottom: 0;
@@ -79,9 +84,6 @@ export const markdownCss = css`
7984
padding-left: 2em;
8085
margin: 0;
8186
margin-bottom: 1em;
82-
font-family: ${props => props.theme.baseFont.family};
83-
font-weight: ${props => props.theme.baseFont.weight};
84-
line-height: ${props => props.theme.baseFont.lineHeight};
8587
> li {
8688
margin: 1em 0;
8789
}

src/components/Redoc/styled.elements.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import styled, {
99
export const RedocWrap = styled.div`
1010
font-family: ${props => props.theme.baseFont.family};
1111
font-size: ${props => props.theme.baseFont.size};
12+
font-weight: ${props => props.theme.baseFont.weight};
1213
line-height: ${props => props.theme.baseFont.lineHeight};
1314
color: ${props => props.theme.colors.text};
1415
display: flex;

0 commit comments

Comments
 (0)