mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
style tweaks
This commit is contained in:
parent
9e1a76a08e
commit
02f8193743
@ -102,10 +102,12 @@ let Form = React.createClass({
|
||||
|
||||
if (this.state.edited){
|
||||
buttons = (
|
||||
<div className="row" style={{margin: 0}}>
|
||||
<p className="pull-right">
|
||||
<Button className="ascribe-btn" type="submit">Save</Button>
|
||||
<Button className="ascribe-btn" onClick={this.reset}>Cancel</Button>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -133,19 +133,13 @@ let BitcoinWalletSettings = React.createClass({
|
||||
name='btc_public_key'
|
||||
label="Bitcoin public key"
|
||||
editable={false}>
|
||||
<input
|
||||
type="text"
|
||||
defaultValue={this.state.walletSettings.btc_public_key}
|
||||
placeholder="Enter your username"
|
||||
required/>
|
||||
<pre className="ascribe-pre">{this.state.walletSettings.btc_public_key}</pre>
|
||||
</Property>
|
||||
<Property
|
||||
name='btc_root_address'
|
||||
label="Root Address"
|
||||
editable={false}>
|
||||
<input
|
||||
type="text"
|
||||
defaultValue={this.state.walletSettings.btc_root_address}/>
|
||||
<pre className="ascribe-pre">{this.state.walletSettings.btc_root_address}</pre>
|
||||
</Property>
|
||||
<hr />
|
||||
</Form>);
|
||||
@ -204,7 +198,7 @@ let APISettings = React.createClass({
|
||||
handleTokenRefresh: function(event){
|
||||
let applicationName = event.target.getAttribute('data-id');
|
||||
ApplicationActions.refreshApplicationToken(applicationName);
|
||||
let notification = new GlobalNotificationModel('Token refreshed', 'success');
|
||||
let notification = new GlobalNotificationModel('Token refreshed', 'success', 2000);
|
||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||
},
|
||||
render() {
|
||||
@ -237,7 +231,6 @@ let APISettings = React.createClass({
|
||||
<hr />
|
||||
</Form>
|
||||
</div>);
|
||||
|
||||
}
|
||||
return (
|
||||
<CollapsibleParagraph
|
||||
@ -257,6 +250,9 @@ let APISettings = React.createClass({
|
||||
</Property>
|
||||
<hr />
|
||||
</Form>
|
||||
<pre>
|
||||
Usage: curl <url> -H 'Authorization: Bearer <token>'
|
||||
</pre>
|
||||
{content}
|
||||
</CollapsibleParagraph>
|
||||
);
|
||||
|
@ -39,10 +39,7 @@
|
||||
span {
|
||||
cursor: default;
|
||||
}
|
||||
div {
|
||||
color: #666;
|
||||
}
|
||||
input {
|
||||
input, div, pre {
|
||||
cursor: default;
|
||||
color: #666;
|
||||
}
|
||||
@ -60,8 +57,10 @@
|
||||
|
||||
cursor:pointer;
|
||||
|
||||
span {
|
||||
input, div, span, pre {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
span {
|
||||
font-weight: normal;
|
||||
font-size: 0.9em;
|
||||
color: rgba(0,0,0,.7);
|
||||
@ -79,7 +78,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
input, pre {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 1.1em;
|
||||
|
@ -18,4 +18,7 @@
|
||||
font-family: inherit;
|
||||
text-align: justify;
|
||||
background-color: white;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin:0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user