質問編集履歴
1
sassで使用しているブレークポイントのメディアクエリーを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,6 +46,42 @@
|
|
46
46
|
|
47
47
|
```scss
|
48
48
|
|
49
|
+
$layout-width-inner: 1226px;//インナーの幅
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
// ブレークポイント
|
54
|
+
|
55
|
+
$breakpoints: (
|
56
|
+
|
57
|
+
"sp": "screen and (max-width: 767px)",
|
58
|
+
|
59
|
+
"tab": "screen and (max-width: #{$layout-width-inner - 1px})",
|
60
|
+
|
61
|
+
"pc": "screen and (min-width: #{$layout-width-inner})",
|
62
|
+
|
63
|
+
);
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
// メディアクエリー
|
68
|
+
|
69
|
+
@mixin mq($breakpoint: sp) {
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
@media #{map-get($breakpoints, $breakpoint)} {
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
@content;
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
|
49
85
|
#access {
|
50
86
|
|
51
87
|
position: absolute;
|