Skip to content

Commit

Permalink
fix: make custom css
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamenon4 committed Nov 20, 2024
1 parent 1446ea5 commit 7c6e7c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/MessageDivider/MessageDivider.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
@use '../../utils/variables';

divider {
.message-divider {
display: flex;
font-size: 15px;
}
divider:before, divider:after{
.message-divider:before, .message-divider:after{
content: "";
flex: 1 1;
border-bottom: 1px solid;
margin: auto;
}
divider:before {
.message-divider:before {
margin-right: 10px;
margin-left: 10px;
}
divider:after {
.message-divider:after {
margin-right: 10px;
margin-left: 10px;
}
4 changes: 2 additions & 2 deletions src/components/MessageDivider/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import './MessageDivider.scss';
import PropTypes from 'prop-types';

const MessageDivider = ({ text }) => (
<divider>
<div className="message-divider">
{text}
</divider>
</div>
);

MessageDivider.propTypes = {
Expand Down

0 comments on commit 7c6e7c7

Please sign in to comment.