Merge pull request #240 from asaadmahmoodspin/master

Minor UI Improvements
Этот коммит содержится в:
Corey Hulen
2015-07-22 18:17:15 -08:00
родитель f4c3eaa8c0 78e3cdefb9
Коммит 37c8193dce
13 изменённых файлов: 32 добавлений и 23 удалений

Просмотреть файл

@@ -18,7 +18,7 @@
<tr> <tr>
<td style="border-bottom: 1px solid #ddd; padding: 0 0 20px;"> <td style="border-bottom: 1px solid #ddd; padding: 0 0 20px;">
<h2 style="font-weight: normal; margin-top: 10px;">You were mentioned</h2> <h2 style="font-weight: normal; margin-top: 10px;">You were mentioned</h2>
<p>CHANNEL: {{.Props.ChannelName}}<br>{{.Props.SenderName}} - {{.Props.Hour}}:{{.Props.Minute}} GMT, {{.Props.Month}} {{.Props.Day}}<br><pre style="text-align:left;font-family: 'Lato', sans-serif;">{{.Props.PostMessage}}</pre></p> <p>CHANNEL: {{.Props.ChannelName}}<br>{{.Props.SenderName}} - {{.Props.Hour}}:{{.Props.Minute}} GMT, {{.Props.Month}} {{.Props.Day}}<br><pre style="text-align:left;font-family: 'Lato', sans-serif; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">{{.Props.PostMessage}}</pre></p>
<p style="margin: 20px 0 15px"> <p style="margin: 20px 0 15px">
<a href="{{.Props.TeamLink}}" style="background: #2389D7; display: inline-block; border-radius: 3px; color: #fff; border: none; outline: none; min-width: 170px; padding: 15px 25px; font-size: 14px; font-family: inherit; cursor: pointer; -webkit-appearance: none;text-decoration: none;">Go To Channel</a> <a href="{{.Props.TeamLink}}" style="background: #2389D7; display: inline-block; border-radius: 3px; color: #fff; border: none; outline: none; min-width: 170px; padding: 15px 25px; font-size: 14px; font-family: inherit; cursor: pointer; -webkit-appearance: none;text-decoration: none;">Go To Channel</a>
</p> </p>

Просмотреть файл

@@ -64,7 +64,7 @@ module.exports = React.createClass({
<div>{"URL: " + currentAudit.action.replace("/api/v1", "")}</div> <div>{"URL: " + currentAudit.action.replace("/api/v1", "")}</div>
</div> </div>
: :
<a href="#" onClick={this.handleMoreInfo.bind(this, i)}>More info</a> <a href="#" className="theme" onClick={this.handleMoreInfo.bind(this, i)}>More info</a>
} }
</div> </div>
{i < this.state.audits.length - 1 ? {i < this.state.audits.length - 1 ?

Просмотреть файл

@@ -68,6 +68,9 @@ module.exports = React.createClass({
else if (currentSession.props.platform === "Macintosh" || currentSession.props.platform === "iPhone") { else if (currentSession.props.platform === "Macintosh" || currentSession.props.platform === "iPhone") {
devicePicture = "fa fa-apple"; devicePicture = "fa fa-apple";
} }
else if (currentSession.props.platform === "Linux") {
devicePicture = "fa fa-linux";
}
activityList[i] = ( activityList[i] = (
<div className="activity-log__table"> <div className="activity-log__table">
@@ -83,7 +86,7 @@ module.exports = React.createClass({
<div>{"Session ID: " + currentSession.alt_id}</div> <div>{"Session ID: " + currentSession.alt_id}</div>
</div> </div>
: :
<a href="#" onClick={this.handleMoreInfo.bind(this, i)}>More info</a> <a className="theme" href="#" onClick={this.handleMoreInfo.bind(this, i)}>More info</a>
} }
</div> </div>
</div> </div>

Просмотреть файл

@@ -25,9 +25,9 @@ module.exports = React.createClass({
var img = null; var img = null;
if (this.props.picture) { if (this.props.picture) {
img = (<img ref="image" className="col-xs-5 profile-img" src=""/>); img = (<img ref="image" className="profile-img" src=""/>);
} else { } else {
img = (<img ref="image" className="col-xs-5 profile-img" src={this.props.src}/>); img = (<img ref="image" className="profile-img" src={this.props.src}/>);
} }
var self = this; var self = this;
@@ -37,7 +37,7 @@ module.exports = React.createClass({
<li className="col-xs-12 section-title">{this.props.title}</li> <li className="col-xs-12 section-title">{this.props.title}</li>
<li className="col-xs-offset-3 col-xs-8"> <li className="col-xs-offset-3 col-xs-8">
<ul className="setting-list"> <ul className="setting-list">
<li className="row setting-list-item"> <li className="setting-list-item">
{img} {img}
</li> </li>
<li className="setting-list-item"> <li className="setting-list-item">

Просмотреть файл

@@ -69,7 +69,9 @@ module.exports = React.createClass({
{ name_error } { name_error }
</div> </div>
{ server_error } { server_error }
<button className="btn btn-md btn-primary" type="submit">Sign up for Free</button> <div className="form-group">
<button className="btn btn-md btn-primary" type="submit">Sign up for Free</button>
</div>
<div className="form-group form-group--small"> <div className="form-group form-group--small">
<span><a href="/find_team">{"Find my " + strings.Team}</a></span> <span><a href="/find_team">{"Find my " + strings.Team}</a></span>
</div> </div>

Просмотреть файл

@@ -246,7 +246,7 @@ TeamURLPage = React.createClass({
<h2>{utils.toTitleCase(strings.Team) + " URL"}</h2> <h2>{utils.toTitleCase(strings.Team) + " URL"}</h2>
<div className={ name_error ? "form-group has-error" : "form-group" }> <div className={ name_error ? "form-group has-error" : "form-group" }>
<div className="row"> <div className="row">
<div className="col-sm-9"> <div className="col-sm-11">
<div className="input-group"> <div className="input-group">
<span className="input-group-addon">{ window.location.origin + "/" }</span> <span className="input-group-addon">{ window.location.origin + "/" }</span>
<input type="text" ref="name" className="form-control" placeholder="" maxLength="128" defaultValue={this.props.state.team.name} autoFocus={true} onFocus={this.handleFocus}/> <input type="text" ref="name" className="form-control" placeholder="" maxLength="128" defaultValue={this.props.state.team.name} autoFocus={true} onFocus={this.handleFocus}/>

Просмотреть файл

@@ -73,13 +73,12 @@ var FeatureTab = React.createClass({
var inputs = []; var inputs = [];
inputs.push( inputs.push(
<div className="col-sm-12"> <div>
<div className="btn-group" data-toggle="buttons-radio"> <div className="btn-group" data-toggle="buttons-radio">
<button className={"btn btn-default "+valetActive[0]} onClick={function(){self.handleValetRadio("true")}}>On</button> <button className={"btn btn-default "+valetActive[0]} onClick={function(){self.handleValetRadio("true")}}>On</button>
<button className={"btn btn-default "+valetActive[1]} onClick={function(){self.handleValetRadio("false")}}>Off</button> <button className={"btn btn-default "+valetActive[1]} onClick={function(){self.handleValetRadio("false")}}>Off</button>
</div> </div>
<div><br/>Valet is a preview feature for enabling a non-user account limited to basic member permissions that can be manipulated by 3rd parties.<br/><br/>IMPORTANT: The preview version of Valet should not be used without a secure connection and a trusted 3rd party, since user credentials are used to connect. OAuth2 will be used in the final release.</div> <div><br/>Valet is a preview feature for enabling a non-user account limited to basic member permissions that can be manipulated by 3rd parties.<br/><br/>IMPORTANT: The preview version of Valet should not be used without a secure connection and a trusted 3rd party, since user credentials are used to connect. OAuth2 will be used in the final release.</div>
<br></br>
</div> </div>
); );

Просмотреть файл

@@ -577,9 +577,9 @@ var SecurityTab = React.createClass({
{ passwordSection } { passwordSection }
<div className="divider-dark"/> <div className="divider-dark"/>
<br></br> <br></br>
<a data-toggle="modal" className="security-links" data-target="#access-history" href="#" onClick={this.handleHistoryOpen}><i className="fa fa-clock-o"></i>View Access History</a> <a data-toggle="modal" className="security-links theme" data-target="#access-history" href="#" onClick={this.handleHistoryOpen}><i className="fa fa-clock-o"></i>View Access History</a>
<b> </b> <b> </b>
<a data-toggle="modal" className="security-links" data-target="#activity-log" href="#" onClick={this.handleDevicesOpen}><i className="fa fa-globe"></i>View and Logout of Active Devices</a> <a data-toggle="modal" className="security-links theme" data-target="#activity-log" href="#" onClick={this.handleDevicesOpen}><i className="fa fa-globe"></i>View and Logout of Active Devices</a>
</div> </div>
</div> </div>
); );

Просмотреть файл

@@ -12,7 +12,7 @@
} }
.access__date { .access__date {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 15px;
width: 190px; width: 190px;
} }
.access__report { .access__report {
@@ -21,7 +21,7 @@
} }
.report__time { .report__time {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 15px;
} }
.report__info { .report__info {
color: #999; color: #999;

Просмотреть файл

@@ -92,10 +92,10 @@
.navbar-right { .navbar-right {
font-size: 0.85em; font-size: 0.85em;
position: absolute; position: absolute;
top: 20px; top: 10px;
right: 22px; right: 22px;
.dropdown-toggle { .dropdown-toggle {
padding: 0 10px; padding: 10px;
} }
.dropdown-menu { .dropdown-menu {
li a { li a {
@@ -119,6 +119,7 @@
} }
.header__info { .header__info {
color: #fff; color: #fff;
padding-left: 3px
} }
.team__name, .user__name { .team__name, .user__name {
display: block; display: block;

Просмотреть файл

@@ -451,13 +451,15 @@
color: #fff; color: #fff;
.search__form { .search__form {
border: none; border: none;
padding: 0 60px 0 25px; padding: 0 60px 0 35px;
.form-control { .form-control {
line-height: 31px; line-height: normal;
background: none; background: none;
color: #fff; color: #fff;
border-radius: 0; border-radius: 0;
padding: 0 10px 0; padding: 0;
border-bottom: 1px solid #FFF;
border-bottom: 1px solid rgba(#fff, 0.6);
@include input-placeholder { @include input-placeholder {
color: rgba(#fff, 0.6); color: rgba(#fff, 0.6);
} }

Просмотреть файл

@@ -163,8 +163,10 @@
} }
.profile-img { .profile-img {
width:158px; width:128px;
max-height:128px; height:128px;
margin-bottom: 10px;
@include border-radius(128px);
} }
.sel-btn { .sel-btn {
@@ -232,4 +234,4 @@
.color-btn { .color-btn {
margin:4px; margin:4px;
} }

Просмотреть файл

@@ -6,7 +6,7 @@
} }
.signup-team__container { .signup-team__container {
padding: 100px 0px 50px 0px; padding: 100px 0px 50px 0px;
max-width: 600px; max-width: 380px;
margin: 0 auto; margin: 0 auto;
font-size: 1.1em; font-size: 1.1em;
position: relative; position: relative;