From 4b4df6c792ad0c9fbf6de7d9635a50941da7da5a Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 13 Oct 2018 14:52:17 -0700 Subject: [PATCH] Remove all additional string literals with calc --- src/definitions/collections/grid.less | 4 ++-- src/definitions/collections/menu.less | 2 +- src/definitions/modules/dropdown.less | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/definitions/collections/grid.less b/src/definitions/collections/grid.less index 9c0772298d..05c0a2b4d2 100755 --- a/src/definitions/collections/grid.less +++ b/src/definitions/collections/grid.less @@ -139,7 +139,7 @@ margin: (@rowSpacing / 2) (@gutterWidth / 2); } .ui.grid .column + .ui.vertical.divider { - height: ~"calc(50% - "(@rowSpacing/2)~")"; + height: calc(50% - (@rowSpacing / 2)); } /* Remove Border on Last Horizontal Segment */ @@ -1077,7 +1077,7 @@ top: 0em; left: 0px; - width: ~"calc(100% - "@gutterWidth~")"; + width: calc(100% - @gutterWidth); height: 1px; margin: 0% (@gutterWidth / 2); diff --git a/src/definitions/collections/menu.less b/src/definitions/collections/menu.less index 3806b0075e..5e48306576 100755 --- a/src/definitions/collections/menu.less +++ b/src/definitions/collections/menu.less @@ -211,7 +211,7 @@ /* Menu */ .ui.menu .dropdown.item .menu { - min-width: ~"calc(100% - 1px)"; + min-width: calc(100% - 1px); border-radius: 0em 0em @dropdownMenuBorderRadius @dropdownMenuBorderRadius; background: @dropdownBackground; margin: @dropdownMenuDistance 0px 0px; diff --git a/src/definitions/modules/dropdown.less b/src/definitions/modules/dropdown.less index 4e8ce57f53..721aa01efb 100755 --- a/src/definitions/modules/dropdown.less +++ b/src/definitions/modules/dropdown.less @@ -1110,7 +1110,7 @@ select.ui.dropdown { @media all and (-ms-high-contrast:none) { .ui.scrolling.dropdown .menu, .ui.dropdown .scrolling.menu { - min-width: ~"calc(100% - "@scrollbarWidth~")"; + min-width: calc(100% - @scrollbarWidth); } } @media only screen and (max-width : @largestMobileScreen) {