Skip to content

Commit

Permalink
Refactor #6647 - For Divider
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 25, 2024
1 parent 7f5c8b9 commit 1880a49
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions packages/primevue/src/divider/style/DividerStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const theme = ({ dt }) => `
.p-divider-horizontal:before {
position: absolute;
display: block;
top: 50%;
left: 0;
inset-block-start: 50%;
inset-inline-start: 0;
width: 100%;
content: "";
border-top: 1px solid ${dt('divider.border.color')};
border-block-start: 1px solid ${dt('divider.border.color')};
}
.p-divider-horizontal .p-divider-content {
Expand All @@ -26,7 +26,6 @@ const theme = ({ dt }) => `
.p-divider-vertical {
min-height: 100%;
margin: 0 1rem;
display: flex;
position: relative;
justify-content: center;
Expand All @@ -37,11 +36,11 @@ const theme = ({ dt }) => `
.p-divider-vertical:before {
position: absolute;
display: block;
top: 0;
left: 50%;
inset-block-start: 0;
inset-inline-start: 50%;
height: 100%;
content: "";
border-left: 1px solid ${dt('divider.border.color')};
border-inline-start: 1px solid ${dt('divider.border.color')};
}
.p-divider.p-divider-vertical .p-divider-content {
Expand All @@ -55,27 +54,32 @@ const theme = ({ dt }) => `
}
.p-divider-solid.p-divider-horizontal:before {
border-top-style: solid;
border-block-start-style: solid;
}
.p-divider-solid.p-divider-vertical:before {
border-left-style: solid;
border-inline-start-style: solid;
}
.p-divider-dashed.p-divider-horizontal:before {
border-top-style: dashed;
border-block-start-style: dashed;
}
.p-divider-dashed.p-divider-vertical:before {
border-left-style: dashed;
border-inline-start-style: dashed;
}
.p-divider-dotted.p-divider-horizontal:before {
border-top-style: dotted;
border-block-start-style: dotted;
}
.p-divider-dotted.p-divider-vertical:before {
border-left-style: dotted;
border-inline-start-style: dotted;
}
.p-divider-left:dir(rtl),
.p-divider-right:dir(rtl) {
flex-direction: row-reverse;
}
`;

Expand Down

0 comments on commit 1880a49

Please sign in to comment.