Improve time gap styling

This commit is contained in:
Sam 2015-06-19 11:24:10 +10:00
parent 054789038c
commit 0dfb9261ea
3 changed files with 20 additions and 4 deletions

View File

@ -4,6 +4,8 @@ export default Ember.Component.extend({
render(buffer) {
const gapDays = this.get('gapDays');
buffer.push("<div class='topic-avatar'><i class='fa fa-clock-o'></i></div>");
let timeGapWords;
if (gapDays < 30) {
timeGapWords = I18n.t('dates.later.x_days', {count: gapDays});

View File

@ -720,16 +720,26 @@ $topic-avatar-width: 45px;
.time-gap {
width: 755px;
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
.topic-avatar {
padding: 5px 0;
border-top: none;
}
}
.time-gap .topic-avatar i {
font-size: 35px;
width: 45px;
text-align: center;
color: lighten($primary, 75%);
}
.time-gap-words {
display: inline-block;
padding: 0.5em 1em;
margin: 0.5em 0 0.5em 56px;
margin-top: 9px;
text-transform: uppercase;
font-weight: bold;
font-size: 0.8em;
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
color: lighten($primary, 30%);
font-size: 0.9em;
color: lighten($primary, 60%);
}
.posts-wrapper {

View File

@ -6,6 +6,10 @@
margin: 10px 0;
}
.time-gap {
display: none;
}
.topic-post {
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
padding: 6px 0 3px 0;