Skip to content

Commit

Permalink
feat(divider): reduce css if variations are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Nov 9, 2024
1 parent a7c4fe8 commit f99e7ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/definitions/elements/divider.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

@import (multiple) "../../theme.config";

@notHorizontal: if(@variationDividerHorizontal, e(":not(.horizontal)"));
@notVertical: if(@variationDividerVertical, e(":not(.vertical)"));

/*******************************
Divider
*******************************/
Expand All @@ -37,7 +40,7 @@
Basic
--------------- */

.ui.divider:not(.vertical):not(.horizontal) {
.ui.divider@{notVertical}@{notHorizontal} {
border-top: @shadowWidth @borderStyle @shadowColor;
border-bottom: @highlightWidth @borderStyle @highlightColor;
}
Expand Down

0 comments on commit f99e7ba

Please sign in to comment.