2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-divider-horizontal {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
align-items: center;
|
|
|
|
margin: 1rem 0;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-horizontal:before {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
top: 50%;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
content: "";
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top: 1px solid ${dt('divider.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-horizontal .p-divider-content {
|
|
|
|
padding: 0 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-vertical {
|
|
|
|
min-height: 100%;
|
|
|
|
margin: 0 1rem;
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 0 1rem;
|
|
|
|
padding: 1rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-vertical:before {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
top: 0;
|
|
|
|
left: 50%;
|
|
|
|
height: 100%;
|
|
|
|
content: "";
|
2024-03-12 08:19:23 +00:00
|
|
|
border-left: 1px solid ${dt('divider.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider.p-divider-vertical .p-divider-content {
|
|
|
|
padding: 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-content {
|
|
|
|
z-index: 1;
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('divider.content.background')};
|
|
|
|
color: ${dt('divider.content.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-solid.p-divider-horizontal:before {
|
|
|
|
border-top-style: solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-solid.p-divider-vertical:before {
|
|
|
|
border-left-style: solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-dashed.p-divider-horizontal:before {
|
|
|
|
border-top-style: dashed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-dashed.p-divider-vertical:before {
|
|
|
|
border-left-style: dashed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-dotted.p-divider-horizontal:before {
|
|
|
|
border-top-style: dotted;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-divider-dotted.p-divider-vertical:before {
|
|
|
|
border-left-style: dotted;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|