質問編集履歴

2

修正しました。

2021/09/18 09:03

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
File without changes

1

追加しました

2021/09/18 09:03

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
@@ -20,6 +20,78 @@
20
20
 
21
21
 
22
22
 
23
+ ```mixin.scss
24
+
25
+ @charset "UTF-8";
26
+
27
+
28
+
29
+ // ブレイクポイント
30
+
31
+ $breakpoints: (
32
+
33
+ 'sm': 'screen and (max-width: 576px)',
34
+
35
+ 'md': 'screen and (max-width: 769px)',
36
+
37
+ 'lg': 'screen and (max-width: 992px)',
38
+
39
+ 'xl': 'screen and (max-width: 1200px)'
40
+
41
+ ) !default;
42
+
43
+ @mixin mq($breakpoint: md) {
44
+
45
+ @media #{map-get($breakpoints, $breakpoint)} {
46
+
47
+ @content;
48
+
49
+ }
50
+
51
+ }
52
+
53
+
54
+
55
+ @mixin mr($breakpoint: sm) {
56
+
57
+ @media #{map-get($breakpoints, $breakpoint)} {
58
+
59
+ @content;
60
+
61
+ }
62
+
63
+ }
64
+
65
+
66
+
67
+ @mixin ms($breakpoint: lg) {
68
+
69
+ @media #{map-get($breakpoints, $breakpoint)} {
70
+
71
+ @content;
72
+
73
+ }
74
+
75
+ }
76
+
77
+
78
+
79
+ @mixin mt($breakpoint: xl) {
80
+
81
+ @media #{map-get($breakpoints, $breakpoint)} {
82
+
83
+ @content;
84
+
85
+ }
86
+
87
+ }
88
+
89
+
90
+
91
+ ```
92
+
93
+
94
+
23
95
  ### 該当のソースコード
24
96
 
25
97