Skip to content

Commit d50fad4

Browse files
authored
feat(segment): border to top instead of bottom for vertical variant
This makes it easier to remove the border if needed, because you're able to target the second segment with + in CSS. For example, in case you have 2 adjacent vertical segments with a custom class of 'white', you want to remove the border and top padding to make them appear as 1. This currently requires a few overrides, but with a top border this would become: .ui.vertical.segment.white + .white { border-top: none; padding-top: 0; }
1 parent ed58b7f commit d50fad4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/definitions/elements/segment.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
border-radius: 0;
5050
box-shadow: none;
5151
border: none;
52-
border-bottom: @borderWidth solid @borderColor;
52+
border-top: @borderWidth solid @borderColor;
5353
}
54-
.ui.vertical.segment:last-child {
55-
border-bottom: none;
54+
.ui.vertical.segment:first-child {
55+
border-top: none;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)