Skip to content

Commit

Permalink
Remove all additional string literals with calc
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Oct 13, 2018
1 parent 1b922b6 commit 4b4df6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/definitions/collections/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -1077,7 +1077,7 @@
top: 0em;
left: 0px;

width: ~"calc(100% - "@gutterWidth~")";
width: calc(100% - @gutterWidth);
height: 1px;

margin: 0% (@gutterWidth / 2);
Expand Down
2 changes: 1 addition & 1 deletion src/definitions/collections/menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4b4df6c

Please sign in to comment.