TelegramPWA/src/components/ui/Separator.module.scss

34 lines
536 B
SCSS

.separator {
display: flex;
align-items: center;
color: var(--color-text-secondary);
text-align: center;
&::before,
&::after {
content: '';
flex: 1;
border-bottom: 0.0625rem solid var(--color-dividers);
}
&:not(:empty)::before {
margin-right: 0.5rem;
}
&:not(:empty)::after {
margin-left: 0.5rem;
}
&[dir="rtl"] {
&:not(:empty)::before {
margin-right: 0;
margin-left: 0.5rem;
}
&:not(:empty)::after {
margin-right: 0.5rem;
margin-left: 0;
}
}
}