Skip to content

Commit

Permalink
feat(popup): color variants
Browse files Browse the repository at this point in the history
Color variant for popup/tooltip. The @variationPopupColors variable already exists, i just forgot to prepare that for 2.9.0
  • Loading branch information
lubber-de authored Nov 13, 2022
1 parent ea9251d commit a927bd2
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/definitions/modules/popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,56 @@
}
}

& when not (@variationPopupColors = false) {
each(@variationPopupColors, {
@color: @value;
@c: @colors[@@color][color];
@l: @colors[@@color][light];

& when not (@variationPopupTooltip) {
.ui.ui.ui.@{color}.popup::before,
.ui.@{color}.popup {
background: @c;
color: @white;
border: none;
}
.ui.ui.ui.@{color}.popup::before {
box-shadow: none;
}
& when (@variationPopupInverted) {
.ui.inverted.@{color}.popup::before,
.ui.inverted.@{color}.popup {
background: @l;
color: @black;
}
}
}
& when (@variationPopupTooltip) {
.ui.ui.ui.@{color}.popup::before,
.ui.@{color}.popup,
[data-tooltip][data-variation~="@{color}"]::after,
[data-tooltip][data-variation~="@{color}"]::before {
background: @c;
color: @white;
border: none;
}
.ui.ui.ui.@{color}.popup::before,
[data-tooltip][data-variation~="@{color}"]::before {
box-shadow: none;
}
& when (@variationPopupInverted) {
.ui.ui.ui.inverted.@{color}.popup::before,
.ui.inverted.@{color}.popup,
[data-tooltip][data-inverted][data-variation~="@{color}"]::after,
[data-tooltip][data-inverted][data-variation~="@{color}"]::before {
background: @l;
color: @black;
}
}
}
})
}

& when (@variationPopupFlowing) {
/*--------------
Flowing
Expand Down

0 comments on commit a927bd2

Please sign in to comment.