UX: better twitter onebox in embedded comments
This commit is contained in:
parent
b1488b430a
commit
56abd247e1
|
@ -5,7 +5,7 @@
|
|||
@import "./common/foundation/colors";
|
||||
@import "./common/base/onebox";
|
||||
|
||||
article {
|
||||
article.post {
|
||||
border-bottom: 1px solid #ddd;
|
||||
|
||||
&.deleted {
|
||||
|
@ -113,7 +113,7 @@ img.emoji {
|
|||
color: #999;
|
||||
}
|
||||
|
||||
header {
|
||||
header.discourse {
|
||||
padding: 10px 10px 20px 10px;
|
||||
font-size: 1.286em;
|
||||
border-bottom: 1px solid #ddd;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<header class='embedded'>
|
||||
<header class='discourse'>
|
||||
<% if @topic_view.topic.posts_count < 2 %>
|
||||
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
|
||||
<% elsif @topic_view.topic.posts_count > 10 %>
|
||||
|
|
Loading…
Reference in New Issue