Skip to content

Commit 5f9f130

Browse files
committed
変数を移動
1 parent 20f6057 commit 5f9f130

File tree

3 files changed

+22
-27
lines changed

3 files changed

+22
-27
lines changed

src/app/_variables.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
$tablet-width: 768px;
2-
$pages-max-width: 1080px;
2+
$pages-max-width: 1080px;
3+
$hovering-color: #7FCC8F;
4+
$span-color: #47B660;
5+
$heroImage-change-width: 1280px;
6+
$header-change-width: 1200px;
7+
$background-color: #F1F1F1;

src/app/news/page.module.scss

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
@use 'src/app/variables';
2-
$hovering-color: #7FCC8F;
3-
$span-color: #47B660;
4-
$heroImage-change-width: 1280px;
5-
$header-change-width: 1200px;
6-
$background-color: #F1F1F1;
72

83
/* heroImageとヘッダーのpadding調整 */
9-
@media (min-width: $heroImage-change-width) {
4+
@media (min-width: variables.$heroImage-change-width) {
105
.heroImage {
116
height: 60vh;
127
}
138
}
149

15-
@media (max-width: $heroImage-change-width) {
10+
@media (max-width: variables.$heroImage-change-width) {
1611
.heroImage {
1712
height: 100%;
1813
}
1914
}
2015

21-
@media (max-width: $header-change-width) {
16+
@media (max-width: variables.$header-change-width) {
2217
.main {
2318
padding-top: 64px;
2419
}
2520
}
2621

27-
@media (min-width: $header-change-width) {
22+
@media (min-width: variables.$header-change-width) {
2823
.main {
2924
padding-top: 72px;
3025
}
@@ -76,21 +71,21 @@ $background-color: #F1F1F1;
7671

7772
.main {
7873
flex-direction: column;
79-
background-color: $background-color;
74+
background-color: variables.$background-color;
8075
}
8176

8277
.container {
8378
display: flex;
8479
flex-direction: column;
85-
background-color: $background-color;
80+
background-color: variables.$background-color;
8681
}
8782

8883
.hero {
8984
align-items: center;
9085
justify-content: center;
9186
display: flex;
9287
flex-direction: column;
93-
background-color: $background-color;
88+
background-color: variables.$background-color;
9489
}
9590

9691
.breadcrumb {

src/app/page.module.scss

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
@use 'src/app/variables';
2-
$hovering-color: #7FCC8F;
3-
$span-color: #47B660;
4-
$heroImage-change-width: 1280px;
5-
$header-change-width: 1200px;
6-
$background-color: #F1F1F1;
72

83
/* heroImageとヘッダーのpadding調整 */
9-
@media (min-width: $heroImage-change-width) {
4+
@media (min-width: variables.$heroImage-change-width) {
105
.heroImage {
116
height: 60vh;
127
}
138
}
149

15-
@media (max-width: $heroImage-change-width) {
10+
@media (max-width: variables.$heroImage-change-width) {
1611
.heroImage {
1712
height: 100%;
1813
}
1914
}
2015

21-
@media (max-width: $header-change-width) {
16+
@media (max-width: variables.$header-change-width) {
2217
.main {
2318
padding-top: 64px;
2419
}
2520
}
2621

27-
@media (min-width: $header-change-width) {
22+
@media (min-width: variables.$header-change-width) {
2823
.main {
2924
padding-top: 72px;
3025
}
@@ -211,21 +206,21 @@ $background-color: #F1F1F1;
211206

212207
.main {
213208
flex-direction: column;
214-
background-color: $background-color;
209+
background-color: variables.$background-color;
215210
}
216211

217212
.container {
218213
display: flex;
219214
flex-direction: column;
220-
background-color: $background-color;
215+
background-color: variables.$background-color;
221216
}
222217

223218
.hero {
224219
align-items: center;
225220
justify-content: center;
226221
display: flex;
227222
flex-direction: column;
228-
background-color: $background-color;
223+
background-color: variables.$background-color;
229224
}
230225

231226
.breadcrumb {
@@ -311,15 +306,15 @@ $background-color: #F1F1F1;
311306
}
312307

313308
.breadcrumbLink:hover {
314-
color: $hovering-color;
309+
color: variables.$hovering-color;
315310
}
316311

317312
.bold {
318313
font-weight: bold;
319314
}
320315

321316
.span {
322-
color: $span-color;
317+
color: variables.$span-color;
323318
}
324319

325320
.news {

0 commit comments

Comments
 (0)