Этот коммит содержится в:
Asaad Mahmood
2015-08-18 11:58:15 +05:00
родитель a5bff83558
Коммит f68a8c8de3
10 изменённых файлов: 41 добавлений и 14 удалений

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

@@ -34,7 +34,7 @@ module.exports = React.createClass({
var copyLinkConfirm = null; var copyLinkConfirm = null;
if (this.state.copiedLink) { if (this.state.copiedLink) {
copyLinkConfirm = <p className='copy-link-confirm'>Link copied to clipboard.</p>; copyLinkConfirm = <p className='alert alert-success copy-link-confirm'><i className="fa fa-check"></i> Link copied to clipboard.</p>;
} }
if (currentUser != null) { if (currentUser != null) {

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

@@ -42,6 +42,9 @@ module.exports = React.createClass({
utils.changeCss('.modal .modal-header', 'background: ' + user.props.theme+';'); utils.changeCss('.modal .modal-header', 'background: ' + user.props.theme+';');
utils.changeCss('.mention', 'background: ' + user.props.theme+';'); utils.changeCss('.mention', 'background: ' + user.props.theme+';');
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';'); utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
utils.changeCss('.search-item-container:hover', 'background: ' + utils.changeOpacity(user.props.theme, 0.05) +';');
utils.changeCss('@media(max-width: 768px){.search-bar__container', 'background: ' + user.props.theme+';}'); utils.changeCss('@media(max-width: 768px){.search-bar__container', 'background: ' + user.props.theme+';}');
} }
if (user.props.theme != '#000000' && user.props.theme != '#585858') { if (user.props.theme != '#000000' && user.props.theme != '#585858') {

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

@@ -363,8 +363,8 @@ module.exports = React.createClass({
<li key={channel.name} ref={channel.name} className={linkClass}> <li key={channel.name} ref={channel.name} className={linkClass}>
<a className={'sidebar-channel ' + titleClass} href={href} onClick={clickHandler}> <a className={'sidebar-channel ' + titleClass} href={href} onClick={clickHandler}>
{status} {status}
{badge}
{channel.display_name} {channel.display_name}
{badge}
</a> </a>
</li> </li>
); );

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

@@ -855,6 +855,20 @@ module.exports.changeColor =function(col, amt) {
return (usePound?"#":"") + String("000000" + (g | (b << 8) | (r << 16)).toString(16)).slice(-6); return (usePound?"#":"") + String("000000" + (g | (b << 8) | (r << 16)).toString(16)).slice(-6);
}; };
module.exports.changeOpacity = function(oldColor, opacity) {
var col = oldColor;
if (col[0] === '#') {
col = col.slice(1);
}
var r = parseInt(col.substring(0, 2), 16);
var g = parseInt(col.substring(2, 4), 16);
var b = parseInt(col.substring(4, 6), 16);
return 'rgba(' + r + ',' + g + ',' + b + ',' + opacity + ')';
};
module.exports.getFullName = function(user) { module.exports.getFullName = function(user) {
if (user.first_name && user.last_name) { if (user.first_name && user.last_name) {
return user.first_name + " " + user.last_name; return user.first_name + " " + user.last_name;

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

@@ -10,7 +10,7 @@
display: inline-block; display: inline-block;
width: 120px; width: 120px;
height: 100px; height: 100px;
margin: 7px 10px 0 0; margin: 7px 0 0 5px;
vertical-align: top; vertical-align: top;
position: relative; position: relative;
border: 1px solid #DDD; border: 1px solid #DDD;
@@ -18,6 +18,9 @@
&:hover .remove-preview:after { &:hover .remove-preview:after {
@include opacity(1); @include opacity(1);
} }
&:first-child {
margin-left: 0;
}
.spinner { .spinner {
position:absolute; position:absolute;
top:50%; top:50%;
@@ -58,6 +61,8 @@
cursor: pointer; cursor: pointer;
z-index: 5; z-index: 5;
opacity: inherit; opacity: inherit;
text-shadow: 0 0px 3px #444;
text-shadow: 0 0px 3px rgba(0, 0, 0, 0.7);
} }
} }
} }

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

@@ -1,6 +1,6 @@
.copy-link-confirm { .copy-link-confirm {
position: fixed; display: inline-block;
color: rgb(153, 230, 153); float: left;
top: 84%; padding: 4px 10px;
left: 130px; margin: 3px 0 0 10px;
} }

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

@@ -55,7 +55,7 @@
font-size: 20px; font-size: 20px;
text-align: center; text-align: center;
color: #555; color: #555;
@include border-radius(3px); @include border-radius(32px);
} }
.mention-fullname { .mention-fullname {

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

@@ -214,9 +214,6 @@ body.ios {
.dropdown, .comment-icon__container { .dropdown, .comment-icon__container {
@include opacity(1); @include opacity(1);
} }
.dropdown-toggle:after {
content: '[...]';
}
} }
background: #f5f5f5; background: #f5f5f5;
} }
@@ -383,6 +380,9 @@ body.ios {
display: inline-block; display: inline-block;
@include opacity(0); @include opacity(0);
} }
.dropdown-toggle:after {
content: '[...]';
}
} }
} }
.post-profile-time { .post-profile-time {

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

@@ -11,8 +11,8 @@
.post { .post {
&.post--root { &.post--root {
padding: 0 1em 0; padding: 1em 1em 0;
margin: 1em 0; margin: 0 0 1em;
hr { hr {
border-color: #DDD; border-color: #DDD;
margin: 1em 0 0 0; margin: 1em 0 0 0;

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

@@ -26,7 +26,9 @@
.status { .status {
position:relative; position:relative;
top:1px; top:1px;
margin-right: 3px; margin-right: 6px;
width: 12px;
display: inline-block;
.online--icon { .online--icon {
fill: #7DBE00; fill: #7DBE00;
} }
@@ -79,6 +81,9 @@
line-height: 1.5; line-height: 1.5;
border-radius: 0; border-radius: 0;
color: #999; color: #999;
&.nav-more {
text-decoration: underline;
}
&.unread-title { &.unread-title {
color: #333; color: #333;
font-weight: 600; font-weight: 600;