Skip to content

Commit

Permalink
Change to monospace font
Browse files Browse the repository at this point in the history
  • Loading branch information
foriequal0 committed Apr 29, 2019
1 parent e88edc4 commit 05c3281
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
#encoded-text {
width: 100%;
min-height: 24rem;
}
}
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class App extends React.Component<{}, AppState> {
body = (
<div className="App-body">
<div>
<textarea id="encoded-text" value={this.state.text} onChange={this.handleTextChange} />
<textarea id="encoded-text" className="code" value={this.state.text} onChange={this.handleTextChange} />
</div>
<button
id="decode-btn"
Expand Down Expand Up @@ -177,7 +177,7 @@ class Item extends React.Component<ItemProps, ItemState> {
return (
<div>
<div>
{this.renderSelector()} {this.state.decoded[this.state.type]}
{this.renderSelector()} <span className="code">{this.state.decoded[this.state.type]}</span>
</div>
<div />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body {
-moz-osx-font-smoothing: grayscale;
}

code {
.code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

0 comments on commit 05c3281

Please sign in to comment.