Skip to content

Commit 042ed88

Browse files
committed
fix: variables.scssからhover-colorを参照するように変更
1 parent 13f1587 commit 042ed88

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

_sass/global/variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ $secondary-color: $purple;
1515
$third-color: $blue;
1616
$text-color: $black;
1717
$color-necessary: #ffe6cc;
18+
$hover-color: $yellow;
1819

1920
// SNS
2021
$color-facebook: #3b5998;

_sass/includes/footer.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
$footer-link-hover: #7cc224;
1+
@use '../global/variables' as *;
2+
23

34
.site-footer {
45
background: #fff;
@@ -29,7 +30,7 @@ $footer-link-hover: #7cc224;
2930
transition: background 0.2s, color 0.2s;
3031

3132
&:hover {
32-
background: $footer-link-hover;
33+
background: $hover-color;
3334
color: #fff;
3435
}
3536
}
@@ -47,7 +48,7 @@ $footer-link-hover: #7cc224;
4748
transition: color 0.2s;
4849

4950
&:hover {
50-
color: $footer-link-hover;
51+
color: $hover-color;
5152
}
5253
}
5354
}

0 commit comments

Comments
 (0)