回答編集履歴

3

しゅうせい

2016/01/31 10:13

投稿

退会済みユーザー
test CHANGED
@@ -12,11 +12,11 @@
12
12
 
13
13
 
14
14
 
15
- 書き方の形式はBlock_Element-Modifierですよね?
15
+ 書き方の形式はBlock__Element--Modifierですよね?
16
16
 
17
17
 
18
18
 
19
- 疑問点としては、Block_Element-Modi_fierなのか、Block_Element-Modi-fierなのかということでしょうか?
19
+ 疑問点としては、Block__Element--Modi_fierなのか、Block__Element--Modi-fierなのかということでしょうか?
20
20
 
21
21
 
22
22
 
@@ -28,7 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- comment_button-withRoundedEdge
31
+ comment__button--withRoundedEdge
32
32
 
33
33
 
34
34
 
@@ -48,11 +48,11 @@
48
48
 
49
49
 
50
50
 
51
- snsBlock_button-facebook
51
+ snsBlock__button--facebook
52
52
 
53
- snsBlock_button-twitter
53
+ snsBlock__button--twitter
54
54
 
55
- snsBlock_button-hatena
55
+ snsBlock__button--hatena
56
56
 
57
57
 
58
58
 
@@ -70,9 +70,9 @@
70
70
 
71
71
 
72
72
 
73
- snsBlock_button-large
73
+ snsBlock__button--large
74
74
 
75
- snsBlock_button-small
75
+ snsBlock__button--small
76
76
 
77
77
 
78
78
 
@@ -84,11 +84,11 @@
84
84
 
85
85
 
86
86
 
87
- Block_Element-Modifier
87
+ Block__Element--Modifier
88
88
 
89
- お店の中にある_マネキンに-花柄のワンピースを着せる
89
+ お店の中にある__マネキンに--花柄のワンピースを着せる
90
90
 
91
- マリオブラザーズの_マリオを-フラワーマリオにする
91
+ マリオブラザーズの__マリオを--フラワーマリオにする
92
92
 
93
93
 
94
94
 

2

しゅうせい

2016/01/31 10:13

投稿

退会済みユーザー
test CHANGED
@@ -84,7 +84,7 @@
84
84
 
85
85
 
86
86
 
87
- Block_Element_Modifier
87
+ Block_Element-Modifier
88
88
 
89
89
  お店の中にある_マネキンに-花柄のワンピースを着せる
90
90
 

1

ついか

2016/01/31 10:08

投稿

退会済みユーザー
test CHANGED
@@ -63,3 +63,33 @@
63
63
  .snsBlock_buttonでボタンの大きさなど各SNSに依存しない装飾を定義しておいて、
64
64
 
65
65
  .snsBlock_button-sns名のクラスで各SNSに依存する装飾を定義するみたいなイメージです。
66
+
67
+
68
+
69
+ 他の例を挙げると、
70
+
71
+
72
+
73
+ snsBlock_button-large
74
+
75
+ snsBlock_button-small
76
+
77
+
78
+
79
+ のようにmodifierでボタンのサイズを変えるようなものもありますね。
80
+
81
+
82
+
83
+ 判断方法としてはmodifierを服とかアクセサリーのようなものだと捉えておけば良いのではないでしょうか?
84
+
85
+
86
+
87
+ Block_Element_Modifier
88
+
89
+ お店の中にある_マネキンに-花柄のワンピースを着せる
90
+
91
+ マリオブラザーズの_マリオを-フラワーマリオにする
92
+
93
+
94
+
95
+