Skip to content

Commit

Permalink
fix: fix font-weight inconsistency
Browse files Browse the repository at this point in the history
fixes #506
  • Loading branch information
RomanHotsiy committed May 29, 2018
1 parent d162bab commit 6ea2b7b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/common-elements/fields-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export const PropertyNameCell = withProps<{ kind?: string }>(PropertyCell.extend
line-height: 20px;
white-space: nowrap;
font-size: 0.929em;
font-weight: 300;
font-family: ${props => props.theme.headingsFont.family};
&.deprecated {
Expand Down
7 changes: 0 additions & 7 deletions src/components/Endpoint/styled.elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const EndpointInfo = withProps<{ expanded?: boolean; inverted?: boolean }
border-radius: ${props => (props.inverted ? '0' : '4px 4px 0 0')};
background-color: ${props => (props.inverted ? 'transparent' : '#222d32')};
display: block;
font-weight: 300;
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
Expand Down Expand Up @@ -50,12 +49,6 @@ export const HttpVerb = withProps<{ type: string }>(styled.span).attrs({
margin: 0;
`;

// background: transparent;
// border-bottom: 1px solid #cccccc;
// border-color: transparent;
// border-bottom: 1px solid rgba(0,0,0,0.33);
// padding-left: 10px;

export const ServersOverlay = withProps<{ expanded: boolean }>(styled.div)`
position: absolute;
width: 100%;
Expand Down
8 changes: 5 additions & 3 deletions src/components/Markdown/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { headerCommonMixin, linkifyMixin } from '../../common-elements';
import { css, ResolvedThemeInterface, StyledComponentClass } from '../../styled-components';

export const markdownCss = css`
font-family: ${props => props.theme.baseFont.family};
font-weight: ${props => props.theme.baseFont.weight};
line-height: ${props => props.theme.baseFont.lineHeight};
p {
&:last-of-type {
margin-bottom: 0;
Expand Down Expand Up @@ -79,9 +84,6 @@ export const markdownCss = css`
padding-left: 2em;
margin: 0;
margin-bottom: 1em;
font-family: ${props => props.theme.baseFont.family};
font-weight: ${props => props.theme.baseFont.weight};
line-height: ${props => props.theme.baseFont.lineHeight};
> li {
margin: 1em 0;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/Redoc/styled.elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import styled, {
export const RedocWrap = styled.div`
font-family: ${props => props.theme.baseFont.family};
font-size: ${props => props.theme.baseFont.size};
font-weight: ${props => props.theme.baseFont.weight};
line-height: ${props => props.theme.baseFont.lineHeight};
color: ${props => props.theme.colors.text};
display: flex;
Expand Down

0 comments on commit 6ea2b7b

Please sign in to comment.