mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 13:38:19 +08:00
Remove styling that affects the slot..
This commit is contained in:
@@ -50,11 +50,6 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bylineSecondary {
|
||||
color: #696969;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.editedMarker {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@@ -85,10 +85,6 @@ body {
|
||||
|
||||
/* Info Box Styles */
|
||||
|
||||
.hidden {
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.talk-plugin-infobox-info {
|
||||
top: 0;
|
||||
@@ -235,10 +231,6 @@ button.comment__action-button[disabled],
|
||||
color: #F00;
|
||||
}
|
||||
|
||||
.talk-plugin-pubdate-text {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Flag Styles */
|
||||
|
||||
.talk-plugin-flags-popup-form {
|
||||
@@ -367,4 +359,7 @@ button.comment__action-button[disabled],
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
.hidden {
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.pubdate {
|
||||
display: inline-block;
|
||||
color: #696969;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {timeago} from 'coral-framework/services/i18n';
|
||||
import cn from 'classnames';
|
||||
import styles from './PubDate.css';
|
||||
|
||||
const name = 'talk-plugin-pubdate';
|
||||
|
||||
const PubDate = ({created_at}) => <div className={`${name}-text`}>
|
||||
{timeago(created_at)}
|
||||
</div>;
|
||||
const PubDate = ({className, created_at}) => (
|
||||
<div className={cn(className, styles.pubdate, 'talk-comment-pubdate')}>
|
||||
{timeago(created_at)}
|
||||
</div>
|
||||
);
|
||||
|
||||
PubDate.propTypes = {
|
||||
className: PropTypes.string,
|
||||
created_at: PropTypes.string,
|
||||
};
|
||||
|
||||
|
||||
@@ -49,27 +49,32 @@
|
||||
|
||||
li {
|
||||
margin-bottom: 5px;
|
||||
|
||||
&:nth-child(1) {
|
||||
color: #5394D7;
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
color: #909090;
|
||||
}
|
||||
|
||||
|
||||
i {
|
||||
margin-right: 5px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.viewLink {
|
||||
color: #5394D7;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.iconView {
|
||||
margin-right: 5px;
|
||||
font-size: 15px;
|
||||
vertical-align: middle;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
.iconDate {
|
||||
margin-right: 5px;
|
||||
font-size: 15px;
|
||||
color: #696969;
|
||||
vertical-align: middle;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
@custom-media --mobile-viewport (max-width: 480px);
|
||||
|
||||
@media (--mobile-viewport) {
|
||||
@@ -92,7 +97,3 @@
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.iconView, .iconDate {
|
||||
vertical-align: middle;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class Comment extends React.Component {
|
||||
<div className={styles.sidebar}>
|
||||
<ul>
|
||||
<li>
|
||||
<a onClick={link(`${comment.asset.url}?commentId=${comment.id}`)}>
|
||||
<a onClick={link(`${comment.asset.url}?commentId=${comment.id}`)} className={styles.viewLink}>
|
||||
<Icon name="open_in_new" className={styles.iconView}/>{t('view_conversation')}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user