import emojify from '../../../emoji';
import escapeTextContentForBrowser from 'react/lib/escapeTextContentForBrowser';
-const messageStyle = {
- marginLeft: '68px',
- padding: '8px 0',
- paddingBottom: '0',
- cursor: 'default',
- color: '#d9e1e8',
- fontSize: '15px',
- position: 'relative'
-};
-
const linkStyle = {
fontWeight: '500'
};
renderFollow (account, link) {
return (
<div className='notification'>
- <div style={messageStyle}>
+ <div className='notification__message'>
<div style={{ position: 'absolute', 'left': '-26px'}}>
- <i className='fa fa-fw fa-user-plus' style={{ color: '#2b90d9' }} />
+ <i className='fa fa-fw fa-user-plus' />
</div>
<FormattedMessage id='notification.follow' defaultMessage='{name} followed you' values={{ name: link }} />
renderFavourite (notification, link) {
return (
<div className='notification'>
- <div style={messageStyle}>
+ <div className='notification__message'>
<div style={{ position: 'absolute', 'left': '-26px'}}>
<i className='fa fa-fw fa-star' style={{ color: '#ca8f04' }} />
</div>
renderReblog (notification, link) {
return (
<div className='notification'>
- <div style={messageStyle}>
+ <div className='notification__message'>
<div style={{ position: 'absolute', 'left': '-26px'}}>
- <i className='fa fa-fw fa-retweet' style={{ color: '#2b90d9' }} />
+ <i className='fa fa-fw fa-retweet' />
</div>
<FormattedMessage id='notification.reblog' defaultMessage='{name} boosted your status' values={{ name: link }} />
import PureRenderMixin from 'react-addons-pure-render-mixin';
import ImmutablePropTypes from 'react-immutable-proptypes';
-const outerStyle = {
- display: 'flex',
- cursor: 'pointer',
- fontSize: '14px',
- border: '1px solid #363c4b',
- borderRadius: '4px',
- color: '#616b86',
- marginTop: '14px',
- textDecoration: 'none',
- overflow: 'hidden'
-};
-
const contentStyle = {
flex: '1 1 auto',
padding: '8px',
overflow: 'hidden'
};
-const titleStyle = {
- display: 'block',
- fontWeight: '500',
- marginBottom: '5px',
- color: '#d9e1e8',
- overflow: 'hidden',
- textOverflow: 'ellipsis',
- whiteSpace: 'nowrap'
-};
-
-const descriptionStyle = {
- color: '#d9e1e8'
-};
-
-const imageOuterStyle = {
- flex: '0 0 100px',
- background: '#373b4a'
-};
-
const imageStyle = {
display: 'block',
width: '100%',
if (card.get('image')) {
image = (
- <div style={imageOuterStyle}>
+ <div className='status-card__image'>
<img src={card.get('image')} alt={card.get('title')} style={imageStyle} />
</div>
);
}
return (
- <a style={outerStyle} href={card.get('url')} className='status-card'>
+ <a href={card.get('url')} className='status-card'>
{image}
- <div style={contentStyle}>
- <strong style={titleStyle} title={card.get('title')}>{card.get('title')}</strong>
- <p style={descriptionStyle}>{card.get('description').substring(0, 50)}</p>
- <span style={hostStyle}>{getHostname(card.get('url'))}</span>
+ <div className='status-card__content' style={contentStyle}>
+ <strong className='status-card__title' title={card.get('title')}>{card.get('title')}</strong>
+ <p className='status-card__description'>{card.get('description').substring(0, 50)}</p>
+ <span className='status-card__host' style={hostStyle}>{getHostname(card.get('url'))}</span>
</div>
</a>
);
.column-icon {
color: $color3;
background: lighten($color1, 4%);
-
+
&:hover {
color: lighten($color3, 7%);
}
a.status__content__spoiler-link {
display: inline-block;
border-radius: 2px;
- color: lighten($color1, 6%);
+ color: lighten($color1, 8%);
font-weight: 500;
font-size: 11px;
padding: 0px 6px;
padding-left: 68px;
position: relative;
min-height: 48px;
- border-bottom: 1px solid lighten($color1, 6%);
+ border-bottom: 1px solid lighten($color1, 8%);
cursor: default;
.status__relative-time {
.detailed-status {
background: lighten($color1, 4%);
-
+
.status__content {
font-size: 19px;
line-height: 24px;
}
}
+.detailed-status__meta {
+ margin-top: 15px;
+ color: lighten($color1, 26%);
+ font-size: 14px;
+ line-height: 18px;
+}
+
.detailed-status__action-bar {
background: lighten($color1, 4%);
display: flex;
flex-direction: row;
- border-top: 1px solid lighten($color1, 6%);
- border-bottom: 1px solid lighten($color1, 6%);
+ border-top: 1px solid lighten($color1, 8%);
+ border-bottom: 1px solid lighten($color1, 8%);
padding: 10px 0;
}
.account {
padding: 10px;
- border-bottom: 1px solid lighten($color1, 6%);
+ border-bottom: 1px solid lighten($color1, 8%);
.account__display-name {
flex: 1 1 auto;
font-weight: 400;
overflow: hidden;
color: $color3;
-
+
p {
margin-bottom: 20px;
}
.account__action-bar {
- border-top: 1px solid lighten($color1, 6%);
- border-bottom: 1px solid lighten($color1, 6%);
+ border-top: 1px solid lighten($color1, 8%);
+ border-bottom: 1px solid lighten($color1, 8%);
line-height: 36px;
overflow: hidden;
flex: 0 0 auto;
text-decoration: none;
overflow: hidden;
width: 80px;
- border-left: 1px solid lighten($color1, 6%);
+ border-left: 1px solid lighten($color1, 8%);
padding: 10px 5px;
& > span {
}
}
+.notification__message {
+ margin-left: 68px;
+ padding: 8px 0;
+ padding-bottom: 0;
+ cursor: default;
+ color: $color3;
+ font-size: 15px;
+ position: relative;
+
+ .fa {
+ color: $color4;
+ }
+}
+
.notification__display-name {
color: inherit;
text-decoration: none;
.tabs-bar {
display: flex;
- background: lighten($color1, 6%);
+ background: lighten($color1, 8%);
flex: 0 0 auto;
overflow-y: auto;
}
text-align: center;
font-size:12px;
font-weight: 500;
- border-bottom: 2px solid lighten($color1, 6%);
+ border-bottom: 2px solid lighten($color1, 8%);
&.active {
border-bottom: 2px solid $color4;
}
.column-link {
- background: lighten($color1, 6%);
+ background: lighten($color1, 8%);
color: $color5;
-
+
&:hover {
background: lighten($color1, 11%);
}
}
.status-card {
+ display: flex;
+ cursor: pointer;
+ font-size: 14px;
+ border: 1px solid lighten($color1, 8%);
+ border-radius: 4px;
+ color: lighten($color1, 26%);
+ margin-top: 14px;
+ text-decoration: none;
+ overflow: hidden;
+
&:hover {
- background: lighten($color1, 6%);
+ background: lighten($color1, 8%);
}
}
+.status-card__title {
+ display: block;
+ font-weight: 500;
+ margin-bottom: 5px;
+ color: $color3;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.status-card__description {
+ color: $color3;
+}
+
+.status-card__image {
+ flex: 0 0 100px;
+ background: lighten($color1, 8%);
+}
+
.load-more {
display: block;
color: lighten($color1, 26%);
text-decoration: none;
&:hover {
- background: lighten($color1, 6%);
+ background: lighten($color1, 8%);
}
}
}
.collapsable {
- color: $color5;
- background: lighten($color1, 6%);
+ color: $color5;
+ background: lighten($color1, 8%);
}
.media-spoiler {
}
.modal-container--preloader {
- background: lighten($color1, 6%);
+ background: lighten($color1, 8%);
}
.account--panel {
background: lighten($color1, 4%);
- border-top: 1px solid lighten($color1, 6%);
- border-bottom: 1px solid lighten($color1, 6%);
+ border-top: 1px solid lighten($color1, 8%);
+ border-bottom: 1px solid lighten($color1, 8%);
}
.column-settings--outer {
- background: lighten($color1, 6%);
+ background: lighten($color1, 8%);
}
.column-settings--section {
.entry {
background: lighten($color2, 8%);
- &, .detailed-status.light {
+ .detailed-status.light, .status.light {
border-bottom: 1px solid $color2;
}
&:last-child {
- &, .detailed-status.light {
+ &, .detailed-status.light, .status.light {
border-bottom: 0;
border-radius: 0 0 4px 4px;
}
}
&:first-child {
- &, .detailed-status.light {
+ &, .detailed-status.light, .status.light {
border-radius: 4px 4px 0 0;
}
&:last-child {
- &, .detailed-status.light {
+ &, .detailed-status.light, .status.light {
border-radius: 4px;
}
}