UX: Tweak the timestamp line in Twitter onebox (#13551)

Fixed alignment and made the color less intrusive to make the actual content pop out more.
This commit is contained in:
Jarek Radosz 2021-06-28 15:04:33 +02:00 committed by GitHub
parent d015907668
commit 04baca593b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 13 deletions

View File

@ -637,6 +637,28 @@ aside.onebox.twitterstatus .onebox-body {
} }
} }
} }
.date {
display: flex;
line-height: $line-height-small;
.timestamp {
color: var(--primary-medium);
}
}
.like,
.retweet {
align-items: center;
color: var(--primary-medium);
display: flex;
margin-left: 0.75em;
svg {
fill: currentColor;
margin-right: 0.25em;
}
}
} }
// Onebox - Imgur/Flickr - Album // Onebox - Imgur/Flickr - Album
@ -780,18 +802,6 @@ aside.onebox.xkcd .onebox-body img {
} }
} }
.onebox.twitterstatus {
.like,
.retweet {
color: var(--primary-med-or-secondary-med);
padding-left: 10px;
svg {
fill: currentColor;
vertical-align: middle;
}
}
}
// mobile specific style // mobile specific style
.mobile-view article.onebox-body { .mobile-view article.onebox-body {
border-top: none; border-top: none;

View File

@ -16,7 +16,7 @@
</div> </div>
<div class="date"> <div class="date">
<a href="{{link}}" target="_blank" rel="noopener">{{timestamp}}</a> <a href="{{link}}" class="timestamp" target="_blank" rel="noopener">{{timestamp}}</a>
{{#likes}} {{#likes}}
<span class="like"> <span class="like">