mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
Removing styles from default.css
This commit is contained in:
@@ -61,7 +61,7 @@ export default class PermalinkButton extends React.Component {
|
||||
const {asset} = this.props;
|
||||
return (
|
||||
<ClickOutside onClickOutside={this.handleClickOutside}>
|
||||
<div className={`${name}-container`}>
|
||||
<div className={cn(`${name}-container`, styles.container)}>
|
||||
<button
|
||||
ref={(ref) => this.linkButton = ref}
|
||||
onClick={this.toggle}
|
||||
@@ -69,15 +69,16 @@ export default class PermalinkButton extends React.Component {
|
||||
{t('permalink')}
|
||||
<i className={`${name}-icon material-icons`} aria-hidden={true}>link</i>
|
||||
</button>
|
||||
|
||||
<div
|
||||
ref={(ref) => this.popover = ref}
|
||||
className={cn([`${name}-popover`, styles.container, {active: popoverOpen}])}>
|
||||
className={cn([`${name}-popover`, styles.popover, {[styles.active]: popoverOpen}])}>
|
||||
|
||||
<input
|
||||
className={cn(styles.input, `${name}-copy-field`)}
|
||||
type='text'
|
||||
ref={(input) => this.permalinkInput = input}
|
||||
value={`${asset.url}#${this.props.commentId}`}
|
||||
defaultValue={`${asset.url}#${this.props.commentId}`}
|
||||
/>
|
||||
|
||||
<Button
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
.container {
|
||||
.popover {
|
||||
display: none;
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
|
||||
border-radius: 3px;
|
||||
padding: 15px 10px;
|
||||
box-sizing: border-box;
|
||||
@@ -7,7 +11,7 @@
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
.container::before {
|
||||
.popover::before {
|
||||
content: '';
|
||||
border: 10px solid transparent;
|
||||
border-top-color: white;
|
||||
@@ -17,7 +21,7 @@
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.container::after{
|
||||
.popover::after{
|
||||
content: '';
|
||||
border: 10px solid transparent;
|
||||
border-top-color: rgba(153, 153, 153, 0.33);
|
||||
@@ -64,3 +68,11 @@
|
||||
background-color: #FF5252;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.container {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.active {
|
||||
display: block;
|
||||
}
|
||||
Reference in New Issue
Block a user