Skip to content

Commit

Permalink
fix(segment, menu): "secondary segment" or "secondary menu" have a di…
Browse files Browse the repository at this point in the history
…fferent meaning

Closes #364
  • Loading branch information
lubber-de authored and Sean committed Jan 7, 2019
1 parent 62fe856 commit cd75067
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 6 additions & 4 deletions src/definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -1288,10 +1288,12 @@ each(@colors, {
@color: replace(@key, '@', '');
@c: @colors[@@color][color];

.ui.menu .@{color}.active.item,
.ui.@{color}.menu .active.item {
border-color: @c;
color: @c;
& when not (@color=secondary) {
.ui.menu .@{color}.active.item,
.ui.@{color}.menu .active.item {
border-color: @c;
color: @c;
}
}
})

Expand Down
14 changes: 8 additions & 6 deletions src/definitions/elements/segment.less
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,14 @@
each(@colors,{
@color: replace(@key,'@','');
@c: @colors[@@color][color];
.ui.@{color}.segment.segment.segment.segment.segment:not(.inverted) {
border-top: @coloredBorderSize solid @c;
}
.ui.inverted.@{color}.segment.segment.segment.segment.segment {
background-color: @c;
color: @white;
& when not (@color=primary) and not (@color=secondary) {
.ui.@{color}.segment.segment.segment.segment.segment:not(.inverted) {
border-top: @coloredBorderSize solid @c;
}
.ui.inverted.@{color}.segment.segment.segment.segment.segment {
background-color: @c;
color: @white;
}
}
})

Expand Down

0 comments on commit cd75067

Please sign in to comment.