Skip to content

Commit afd081f

Browse files
committed
Convert calc calls to math.div or *
1 parent d367dee commit afd081f

15 files changed

+40
-40
lines changed

source/_sass/_site/elements/calendar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
tbody {
2626
td {
27-
width: calc(1 / 7) * 100%;
27+
width: math.div(1, 7) * 100%;
2828
}
2929
}
3030
}

source/_sass/_site/elements/mobile-nav.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ $hamburger-width: header.$header-height;
6969
width: $hamburger-width;
7070
top: 0;
7171
height: header.$header-height;
72-
padding: calc(variables.$base-font-size / 1.5) 0;
72+
padding: math.div(variables.$base-font-size, 1.5) 0;
7373
font-size: variables.$base-font-size * 2;
7474
text-align: center;
7575
color: colors.$gray-03;

source/_sass/_site/elements/search.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
border-bottom: 1px solid colors.$gray-10;
2929
height: header.$header-height;
3030
left: sidebar.$sidebar-width;
31-
padding: calc(utilities-variables.$base-font-size / 1.2);
31+
padding: math.div(utilities-variables.$base-font-size, 1.2);
3232
position: fixed;
3333
right: 0;
3434
top: 0;
@@ -44,7 +44,7 @@
4444
border: 0;
4545
box-shadow: none;
4646
font-size: utilities-variables.$base-font-size * 1.2;
47-
padding: calc(utilities-variables.$base-font-size / 2);
47+
padding: utilities-variables.$base-font-size & 0.5;
4848
padding-left: 2em;
4949
width: 100%;
5050

@@ -66,9 +66,9 @@
6666

6767
.search__icon {
6868
font-size: utilities-variables.$base-font-size * 1.2;
69-
left: calc(utilities-variables.$base-font-size / 0.6);
69+
left: math.div(utilities-variables.$base-font-size, 0.6);
7070
position: absolute;
71-
top: calc(utilities-variables.$base-font-size / 0.6);
71+
top: math.div(utilities-variables.$base-font-size, 0.6);
7272

7373
@include breakpoints.bp-max (sidebar.$sidebar-hide-at) {
7474
display: none;

source/_sass/_site/elements/sectionmenu.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $section-menu-width: 240px;
6666
font-size: utilities-variables.$base-font-size * 1.2;
6767
font-weight: 400;
6868
margin-top: 3px;
69-
padding: calc(utilities-variables.$base-line-height / 1.2) 0;
69+
padding: math.div(utilities-variables.$base-line-height, 1.2) 0;
7070
text-transform: uppercase;
7171
width: 100%;
7272
}
@@ -105,7 +105,7 @@ $section-menu-width: 240px;
105105
display: inline-block;
106106
font-size: 13px;
107107
font-weight: bold;
108-
margin: calc(utilities-variables.$base-line-height / 4) 0;
108+
margin: utilities-variables.$base-line-height * 0.25 0;
109109
padding: 0.5em;
110110
}
111111

source/_sass/_site/elements/sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $sidebar-hide-at: xs;
6262
font-size: utilities-variables.$base-font-size * 1.2;
6363
height: header.$header-height;
6464
left: 0;
65-
padding: calc(utilities-variables.$base-line-height / 1.2) 0;
65+
padding: math.div(utilities-variables.$base-line-height, 1.2) 0;
6666
position: absolute;
6767
text-align: center;
6868
top: 0;

source/_sass/_site/mmenu/addons/jquery.mmenu.buttonbars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
.mm-buttonbar {
1010
border: 1px solid transparent;
11-
border-radius: calc(variables.$mm_padding / 2);
11+
border-radius: variables.$mm_padding * 0.5;
1212
text-align: center;
1313
line-height: variables.$mm_buttonbarHeight;
1414
overflow: hidden;

source/_sass/_site/mmenu/addons/jquery.mmenu.counters.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ em.mm-counter {
1010
font-size: variables.$mm_fontSize;
1111
font-style: normal;
1212
text-indent: 0;
13-
line-height: calc(variables.$mm_btnSize / 2);
13+
line-height: variables.$mm_btnSize * 0.5;
1414
display: block;
15-
margin-top: - calc(variables.$mm_btnSize / 4);
15+
margin-top: - variables.$mm_btnSize * 0.25;
1616
position: absolute;
1717
right: variables.$mm_subopenWidth;
1818
top: 50%;
@@ -34,7 +34,7 @@ em.mm-counter {
3434
// vertical submenu
3535
.mm-vertical {
3636
em.mm-counter {
37-
top: calc((variables.$mm_btnSize / 4) + 2px);
37+
top: (variables.$mm_btnSize * 0.25) + 2px;
3838
margin-top: 0;
3939
}
4040
}

source/_sass/_site/mmenu/addons/jquery.mmenu.header.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
background: inherit;
1111
border-bottom: 1px solid transparent;
1212
text-align: center;
13-
line-height: calc(variables.$mm_btnSize / 2);
13+
line-height: variables.$mm_btnSize * 0.5;
1414

1515
box-sizing: border-box;
1616
width: 100%;
@@ -72,12 +72,12 @@
7272
&.mm-prev:before {
7373
@include mixins.mm_arrow-prev;
7474
margin-left: 2px;
75-
margin-right: calc(variables.$mm_padding / 2);
75+
margin-right: variables.$mm_padding * 0.5;
7676
}
7777

7878
&.mm-next:after,
7979
&.mm-close:after {
80-
margin-left: calc(variables.$mm_padding / 2);
80+
margin-left: variables.$mm_padding * 0.5;
8181
margin-right: -2px;
8282
}
8383

source/_sass/_site/mmenu/addons/jquery.mmenu.labels.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
.mm-menu.mm-vertical .mm-list {
2828
>li.mm-label {
2929
>a.mm-subopen:after {
30-
top: calc(variables.$mm_labelHeight / 2) - 4;
30+
top: variables.$mm_labelHeight * 0.5 - 4;
3131
}
3232
}
3333
}

source/_sass/_site/mmenu/addons/jquery.mmenu.toggles.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ label.mm-toggle {
3030
border-radius: variables.$mm_toggleHeight;
3131
width: variables.$mm_toggleWidth;
3232
height: variables.$mm_toggleHeight;
33-
margin-bottom: - calc(variables.$mm_toggleHeight / 2);
33+
margin-bottom: - variables.$mm_toggleHeight * 0.5;
3434

3535
&:before {
3636
border-radius: variables.$mm_toggleHeight;
@@ -47,7 +47,7 @@ input.mm-toggle:checked~label.mm-toggle:before {
4747
label.mm-check {
4848
width: variables.$mm_checkWidth;
4949
height: variables.$mm_checkHeight;
50-
margin-bottom: - calc(variables.$mm_checkHeight / 2);
50+
margin-bottom: - variables.$mm_checkHeight * 0.5;
5151

5252
&:before {
5353
border-left: 3px solid;
@@ -77,12 +77,12 @@ input.mm-check:checked~label.mm-check:before {
7777
}
7878

7979
&.mm-toggle {
80-
top: calc((variables.$mm_btnSize - variables.$mm_toggleHeight ) / 2);
80+
top: (variables.$mm_btnSize - variables.$mm_toggleHeight ) * 0.5;
8181

8282
}
8383

8484
&.mm-check {
85-
top: calc((variables.$mm_btnSize - variables.$mm_checkHeight ) / 2);
85+
top: (variables.$mm_btnSize - variables.$mm_checkHeight ) * 0.5;
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)