Skip to content

Commit 58ac871

Browse files
committed
fix: deprecation warning for division in scss
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div($header-height, 1.5) or calc($header-height / 1.5) More info and automated migrator: https://sass-lang.com/d/slash-div
1 parent 25e15cf commit 58ac871

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

_sass/misc/article-menu.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.post-menu-content {
1717
ul {
1818
border-left: 1px solid #e9ecef;
19-
$indent: #{$base-font-size / 4};
19+
$indent: calc(#{$base-font-size} / 4);
2020
$active-bgcolor: #ecebec;
2121

2222
@for $i from 2 to 7 {

_sass/yat/_base.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ h1, h2, h3, h4, h5, h6,
4242
p, blockquote, pre,
4343
ul, ol, dl, figure,
4444
%vertical-rhythm {
45-
margin-bottom: #{$spacing-unit / 2};
45+
margin-bottom: calc(#{$spacing-unit} / 2);
4646
}
4747

4848

@@ -128,7 +128,7 @@ a {
128128
blockquote {
129129
color: $grey-color;
130130
border-left: 4px solid $grey-color-light;
131-
padding-left: #{$spacing-unit / 2};
131+
padding-left: calc(#{$spacing-unit} / 2);
132132
@include relative-font-size(1.125);
133133
letter-spacing: -1px;
134134
font-style: italic;
@@ -222,7 +222,7 @@ table {
222222
}
223223

224224
th, td {
225-
padding: #{$spacing-unit / 3} #{$spacing-unit / 2};
225+
padding: calc(#{$spacing-unit} / 3) calc(#{$spacing-unit} / 2);
226226
}
227227

228228
th {

_sass/yat/_layout.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ html {
107107

108108
.site-favicon {
109109
display: inline-block;
110-
height: #{$header-height / 1.5};
110+
height: calc(#{$header-height} / 1.5);
111111
margin-right: 5px;
112112
}
113113
}
@@ -695,7 +695,7 @@ html {
695695
}
696696

697697
@include media-query($on-palm) {
698-
height: #{$banner-height / 1.5};
698+
height: calc(#{$banner-height} / 1.5);
699699
}
700700
}
701701

0 commit comments

Comments
 (0)