2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00
wp-discourse/css/comments.css

178 lines
2.9 KiB
CSS
Raw Permalink Normal View History

2018-03-02 16:03:46 -08:00
/* Optional CSS for fixing oneboxes and quotes. */
aside.onebox {
2018-03-02 16:52:53 -08:00
border: 5px solid #e9e9e9;
margin-bottom: 1em;
padding: 12px 25px 12px 12px;
font-size: 1em;
2018-03-02 16:03:46 -08:00
}
aside.onebox .site-icon {
2018-03-02 16:52:53 -08:00
width: 16px;
height: 16px;
margin-right: 3px;
2018-03-02 16:03:46 -08:00
}
aside.onebox .onebox-body .onebox-avatar {
2018-03-02 16:52:53 -08:00
max-height: none;
max-width: none;
height: 60px;
width: 60px;
margin-right: 10px;
float: left;
2018-03-02 16:03:46 -08:00
}
.aspect-image {
2018-03-02 16:52:53 -08:00
max-width: 20%;
min-height: 60px;
max-height: 170px;
height: auto;
width: auto;
margin-right: 10px;
float: left;
clear: both;
2018-03-02 16:03:46 -08:00
}
.aspect-image:after {
2018-03-02 16:52:53 -08:00
content: "";
display: table;
clear: both;
2018-03-02 16:03:46 -08:00
}
aside.onebox .onebox-body img {
2018-03-02 16:52:53 -08:00
width: 100%;
height: auto;
2018-03-02 16:03:46 -08:00
}
aside.onebox header a[href] {
2018-03-02 16:52:53 -08:00
color: #919191;
text-decoration: none;
2018-03-02 16:03:46 -08:00
}
aside.onebox .onebox-body h3, aside.onebox .onebox-body h4 {
2018-03-02 16:52:53 -08:00
font-size: 1em;
max-width: calc(80% - 10px);
margin: 0 0 10px 0;
float: left;
clear: none;
padding-top: 0;
2018-03-02 16:03:46 -08:00
}
aside.onebox .onebox-body a[href] {
2018-03-02 16:52:53 -08:00
color: #08c;
text-decoration: none;
2018-03-02 16:03:46 -08:00
}
2018-03-13 14:07:28 -07:00
aside.onebox .onebox-body p,
.onebox-body .tweet {
2018-03-02 16:52:53 -08:00
float: left;
max-width: calc(80% - 20px);
clear: none;
2018-03-02 16:03:46 -08:00
}
article.onebox-body:after {
2018-03-02 16:52:53 -08:00
content: "";
display: table;
clear: both;
2018-03-02 16:03:46 -08:00
}
2018-03-13 14:07:28 -07:00
/* Twitter. */
.onebox-body .tweet, .onebox-body .tweet + .date {
float: left;
}
/* Quotes. */
2018-03-02 16:03:46 -08:00
.comment-body .quote .title {
2018-03-02 16:52:53 -08:00
border-left: 5px solid #e9e9e9;
background-color: #f9f9f9;
color: #646464;
padding: 12px 12px 1px 12px;
2018-03-02 16:03:46 -08:00
}
.comment-body .quote blockquote {
2018-03-02 16:52:53 -08:00
border-left: 5px solid #e9e9e9;
background-color: #f9f9f9;
font-size: 1em;
padding: 12px 12px 12px 12px;
2019-10-07 11:29:58 -07:00
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
2018-03-02 16:52:53 -08:00
margin-left: 0;
border-top: none;
border-right: none;
border-bottom: none;
2018-03-02 16:52:53 -08:00
clear: both;
2018-03-02 16:03:46 -08:00
}
2019-10-07 11:29:58 -07:00
.comment-body .quote blockquote p:last-child {
margin-bottom: 0;
}
2018-03-02 16:03:46 -08:00
.comment-body aside.quote .title .avatar {
2018-03-02 16:52:53 -08:00
margin-right: 7px;
2018-03-02 16:03:46 -08:00
}
.comment-body .quote .title a {
2018-03-02 16:52:53 -08:00
color: #08c;
2018-03-02 16:03:46 -08:00
}
.comment-body .quote .title a .badge-category {
2018-03-02 16:52:53 -08:00
color: #222;
2018-03-02 16:03:46 -08:00
}
.comment-body .comment-meta {
display: flex;
gap: 1em;
}
.comment-body .comment-author {
display: flex;
gap: 1em;
}
2018-03-02 16:03:46 -08:00
span.badge-category-bg {
2018-03-02 16:52:53 -08:00
width: 9px;
height: 9px;
display: inline-block;
margin-right: 5px;
margin-left: 5px;
2018-03-02 16:03:46 -08:00
}
2018-05-30 17:23:31 -07:00
/* Polls and Youtube links. */
.wpdc-poll-link,
.wpdc-onebox-link {
2018-05-30 17:23:31 -07:00
display: block;
}
/* Images. */
.lightbox-wrapper .meta {
display: none;
}
2020-05-29 15:35:15 -07:00
.discourse-comments-area ol {
list-style: none;
padding: 0;
2020-05-29 15:35:15 -07:00
}
.discourse-comments-area .comment-reply-title {
text-align: left;
}
.discourse-comments-area .comment-reply-title .wpdc-discourse-topic-link {
margin-left: 0.25em;
}
2020-05-29 15:35:15 -07:00
.discourse-comments-area .comment-respond p:not(.comment-notes) {
max-width: none;
}
.block-editor-block-preview__content-iframe .comments-title-wrap,
.block-editor-block-preview__content-iframe .comment-respond {
display: none;
}
.block-editor-block-preview__content-iframe .comment-body img.avatar {
width: 50px;
height: 50px;
}