Skip to content

Commit

Permalink
feat(segment,grid): left and right attached variant
Browse files Browse the repository at this point in the history
This PR finally allows to have a vertical tabular menu flawlessly attached to a left or right segment inside a grid column.
To accomplish this the tabular menu has to stay inside a left/right attached column and a left/right attached segment has to stay in a left/right attached column
  • Loading branch information
lubber-de authored Feb 3, 2023
1 parent cf51e1c commit e1559e8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/definitions/collections/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -1972,4 +1972,13 @@
}
}

& when (@variationGridAttached) {
.ui.grid .left.attached.column {
padding-left: 0;
}
.ui.grid .right.attached.column {
padding-right: 0;
}
}

.loadUIOverrides();
8 changes: 8 additions & 0 deletions src/definitions/elements/segment.less
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,14 @@
.ui.tab.segment[class*="bottom attached"]:last-child {
margin-bottom: @verticalMargin;
}
.ui[class*="left attached"].segment {
border-left: none;
margin-left: 0;
}
.ui[class*="right attached"].segment {
border-right: none;
margin-right: 0;
}
}

& when (@variationSegmentFitted) {
Expand Down
1 change: 1 addition & 0 deletions src/themes/default/globals/variation.variables
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@
@variationGridDivided: true;
@variationGridVertical: true;
@variationGridAligned: true;
@variationGridAttached: true;
@variationGridStretched: true;
@variationGridJustified: true;
@variationGridReversed: true;
Expand Down

0 comments on commit e1559e8

Please sign in to comment.