Skip to content

Commit

Permalink
fixing Deprecation Warning: Using / for division
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jan 5, 2024
1 parent f3188e7 commit c765d73
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
%vertical-rhythm {
margin-bottom: $spacing-unit / 2;
margin-bottom: calc($spacing-unit / 2);
}

/**
Expand Down Expand Up @@ -154,15 +154,15 @@ pre {
@include media-query($on-laptop) {
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
max-width: calc(#{$content-width} - (#{$spacing-unit}));
padding-right: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
padding-right: calc($spacing-unit / 2);
padding-left: calc($spacing-unit / 2);
}

@include media-query($on-palm) {
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
max-width: calc(#{$content-width} - (#{$spacing-unit}));
padding-right: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
padding-right: calc($spacing-unit / 2);
padding-left: calc($spacing-unit / 2);
}
}

Expand All @@ -178,8 +178,8 @@ pre {
@include media-query($on-laptop) {
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
max-width: calc(#{$content-width} - (#{$spacing-unit}));
padding-right: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
padding-right: calc($spacing-unit / 2);
padding-left: calc($spacing-unit / 2);
}
}

Expand Down Expand Up @@ -210,4 +210,4 @@ pre {
fill: $github-color;
}
}
}
}
22 changes: 11 additions & 11 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
font-family: $cutive;
width: 90%;
float: left;
padding-top: $spacing-unit / 6;
padding-top: calc($spacing-unit / 6);
}

.datepost {
Expand All @@ -264,21 +264,21 @@
width: 100px;
float: left;
border-bottom: 1px dashed #e1e2e3;
padding-top: $spacing-unit / 6;
padding-top: calc($spacing-unit / 6);
text-align: left;
}

.content-col-wrapper {
font-size: $spacing-unit / 2;
font-size: calc($spacing-unit / 2);
color: #6c6c6c;
margin-left: -$spacing-unit / 2;
margin-left: calc($spacing-unit / -2);
@extend %clearfix;
}

.content-col {
float: left;
margin-bottom: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
margin-bottom: calc($spacing-unit / 2);
padding-left: calc($spacing-unit / 2);
width: 95%;
}

Expand Down Expand Up @@ -397,20 +397,20 @@

.footer-heading {
font-size: 18px;
margin-bottom: $spacing-unit / 2;
margin-bottom: calc($spacing-unit / 2);
}

.footer-col-wrapper {
font-size: 15px;
color: #4b4b4b;
margin-left: -$spacing-unit / 2;
margin-left: calc($spacing-unit / -2);
@extend %clearfix;
}

.footer-col {
float: left;
margin-bottom: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
margin-bottom: calc($spacing-unit / 2);
padding-left: calc($spacing-unit / 2);
}

@include media-query($on-palm) {
Expand All @@ -426,4 +426,4 @@
font-size: 14px;
color: #4b4b4b;
text-align: center;
}
}

0 comments on commit c765d73

Please sign in to comment.