Skip to content

Commit

Permalink
feat: enhancement of <hr /> element styling for easier changing color
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Apr 25, 2019
1 parent 82f5bc5 commit fe27aa2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/dnb-ui-lib/src/style/elements/hr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
position: relative;
margin: 0;
padding: 0;
height: 0; // so we dont distract the correct spacing
height: 1px;
margin-top: -1px;

border: 0;
color: var(--color-black-border);

&::after {
content: '';
Expand All @@ -20,7 +22,8 @@
top: 0;
width: 100%;
height: 1px;
background-color: var(--color-black-border);
color: inherit;
background-color: currentColor;
border-radius: 0.5px;
}
}
Expand Down

0 comments on commit fe27aa2

Please sign in to comment.