Skip to content

Commit f451d15

Browse files
authored
feat(segment):larger margin only for tab attached segment
This PR corrects #19 @hammy2899 already smelled it somehow by his comment 😄 The related issue was related to tab attached segments, but the fix was applied to all attached segments. This now had impact in some other (non tab) situations. Most recognizable when an attached segment is used inside a stretched grid row. (See screenshots below) I also fixed the same situation for top attached tab segments (it was the same issue, but not mentioned/used)
1 parent 353515d commit f451d15

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/definitions/elements/segment.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ each(@colors,{
735735
}
736736

737737
/* Top */
738-
.ui[class*="top attached"].segment {
738+
.ui.segment[class*="top attached"] {
739739
bottom: 0;
740740
margin-bottom: 0;
741741
top: @attachedTopOffset;
@@ -745,6 +745,9 @@ each(@colors,{
745745
.ui.segment[class*="top attached"]:first-child {
746746
margin-top: 0;
747747
}
748+
.ui.tab.segment[class*="top attached"]:first-child {
749+
margin-top: @verticalMargin;
750+
}
748751

749752
/* Bottom */
750753
.ui.segment[class*="bottom attached"] {
@@ -756,6 +759,9 @@ each(@colors,{
756759
border-radius: 0 0 @borderRadius @borderRadius;
757760
}
758761
.ui.segment[class*="bottom attached"]:last-child {
762+
margin-bottom: 0;
763+
}
764+
.ui.tab.segment[class*="bottom attached"]:last-child {
759765
margin-bottom: @verticalMargin;
760766
}
761767
}

0 commit comments

Comments
 (0)