Skip to content

Commit

Permalink
Make the method signatures stand out more
Browse files Browse the repository at this point in the history
Summary:
And more delineated from other parts of the method
information.

Hopefully this makes it easier to parse through.
Closes facebook#8421

Differential Revision: D3488251

Pulled By: JoelMarcey

fbshipit-source-id: 44f2ed00b16849396cac94fd46567eaab48c50f3
  • Loading branch information
JoelMarcey authored and bubblesunyum committed Aug 23, 2016
1 parent 6d21f06 commit fe02dee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/layout/AutodocsLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,12 @@ var Method = React.createClass({
render: function() {
return (
<div className="prop">
<Header level={4} className="propTitle" toSlug={this.props.name}>
{this.props.modifiers && this.props.modifiers.length && <span className="propType">
<Header level={4} className="methodTitle" toSlug={this.props.name}>
{this.props.modifiers && this.props.modifiers.length && <span className="methodType">
{this.props.modifiers.join(' ') + ' '}
</span> || ''}
{this.props.name}
<span className="propType">
<span className="methodType">
({this.props.params && this.props.params.length && this.props.params
.map((param) => {
var res = param.name;
Expand Down
27 changes: 27 additions & 0 deletions website/src/react-native/css/react-native.css
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,23 @@ div[data-twttr-id] iframe {
margin-left: 20px;
}

.methodTitle {
font-weight: bold;
font-size: 24px;
color: #E9967A;
}

.compactProps .methodTitle {
font-size: 14px;
margin-bottom: 0;
margin-top: 0;
}

.compactProps .methodTitle div {
font-weight: normal;
margin-left: 20px;
}

.prop {
padding: 5px 10px;
}
Expand All @@ -1255,6 +1272,16 @@ div[data-twttr-id] iframe {
font-size: 13px;
}

.methodType {
font-weight: normal;
font-size: 24px;
}

.compactProps .methodType {
font-weight: normal;
font-size: 13px;
}

.platform {
background-color: hsl(198, 100%, 87%);
border-radius: 5px;
Expand Down

0 comments on commit fe02dee

Please sign in to comment.