mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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/foundation/colors";
|
||||||
@import "./common/base/onebox";
|
@import "./common/base/onebox";
|
||||||
|
|
||||||
article {
|
article.post {
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
|
|
||||||
&.deleted {
|
&.deleted {
|
||||||
@ -113,7 +113,7 @@ img.emoji {
|
|||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header.discourse {
|
||||||
padding: 10px 10px 20px 10px;
|
padding: 10px 10px 20px 10px;
|
||||||
font-size: 1.286em;
|
font-size: 1.286em;
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<header class='embedded'>
|
<header class='discourse'>
|
||||||
<% if @topic_view.topic.posts_count < 2 %>
|
<% if @topic_view.topic.posts_count < 2 %>
|
||||||
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
|
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
|
||||||
<% elsif @topic_view.topic.posts_count > 10 %>
|
<% elsif @topic_view.topic.posts_count > 10 %>
|
||||||
|
Loading…
Reference in New Issue
Block a user