8000 Make horizontal rule direction aware by codecalm · Pull Request #2021 · tabler/tabler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make horizontal rule direction aware #2021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chilly-vans-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---

Make horizontal rule direction aware
4 changes: 2 additions & 2 deletions docs/components/divider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ You can modify the position of the text which is to be included in a separator a
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
</p>
<div class="hr-text hr-text-left">Left divider</div>
<div class="hr-text hr-text-start">Start divider</div>
<p>
Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
</p>
<div class="hr-text">Centered divider</div>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
</p>
<div class="hr-text hr-text-right">Right divider</div>
<div class="hr-text hr-text-end">End divider</div>
<p>
Dicta error hic illo iure necessitatibus nihil officiis omnis perferendis, praesentium repellendus rerum, saepe sed, sit!
</p>
Expand Down
6 changes: 4 additions & 2 deletions src/scss/ui/typo/_hr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ Hr text
color: var(--#{$prefix}secondary);
}

&.hr-text-left {
&.hr-text-left,
&.hr-text-start {
&:before {
content: none;
}
Expand All @@ -50,7 +51,8 @@ Hr text
}
}

&.hr-text-right {
&.hr-text-right,
&.hr-text-end {
&:before {
content: "";
}
Expand Down
Loading
0