mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 12:23:46 +08:00
Improve time gap styling
This commit is contained in:
parent
054789038c
commit
0dfb9261ea
|
@ -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});
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user