aboutsummaryrefslogtreecommitdiffstats
path: root/src/bem-shortcodes.scss
blob: 11abeed49b42c67fc43c9a9812ac55a1157ed5fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
////
/// Shorter version of the bem-related mixins. Useful to reduce clutter.
///
/// @group BEM shortcodes
///
/// @access public
////

///
/// @alias iro-bem-block
///
@mixin block($name, $type: null) {
    @include iro-bem-block($name, $type: null) {
        @content;
    }
}

///
/// @alias block
///
@mixin b($name, $type: null) {
    @include block($name, $type: null) {
        @content;
    }
}

///
/// @alias iro-bem-object
///
@mixin object($name) {
    @include iro-bem-object($name) {
        @content;
    }
}

///
/// @alias object
///
@mixin ob($name) {
    @include object($name) {
        @content;
    }
}

///
/// @alias iro-bem-component
///
@mixin component($name) {
    @include iro-bem-component($name) {
        @content;
    }
}

///
/// @alias component
///
@mixin cb($name) {
    @include component($name) {
        @content;
    }
}

///
/// @alias iro-bem-layout
///
@mixin layout($name) {
    @include iro-bem-layout($name) {
        @content;
    }
}

///
/// @alias layout
///
@mixin lb($name) {
    @include layout($name) {
        @content;
    }
}

///
/// @alias iro-bem-utility
///
@mixin utility($name) {
    @include iro-bem-utility($name) {
        @content;
    }
}

///
/// @alias utility
///
@mixin ub($name) {
    @include utility($name) {
        @content;
    }
}

///
/// @alias iro-bem-scope
///
@mixin scope($name) {
    @include iro-bem-scope($name) {
        @content;
    }
}

///
/// @alias scope
///
@mixin sb($name) {
    @include scope($name) {
        @content;
    }
}

///
/// @alias iro-bem-theme
///
@mixin theme($name) {
    @include iro-bem-theme($name) {
        @content;
    }
}

///
/// @alias theme
///
@mixin tb($name) {
    @include theme($name) {
        @content;
    }
}

///
/// @alias iro-bem-js
///
@mixin js($name) {
    @include iro-bem-js($name) {
        @content;
    }
}

///
/// @alias iro-bem-qa
///
@mixin qa($name) {
    @include iro-bem-qa($name) {
        @content;
    }
}

///
/// @alias iro-bem-hack
///
@mixin hack($name) {
    @include iro-bem-hack($name) {
        @content;
    }
}

///
/// @alias iro-bem-composed-of
///
@mixin composed-of($block, $blocks...) {
    @include iro-bem-composed-of($block, $blocks...) {
        @content;
    }
}

///
/// @alias composed-of
///
@mixin co($block, $blocks...) {
    @include composed-of($block, $blocks...) {
        @content;
    }
}

///
/// @alias iro-bem-element
///
@mixin element($name, $names...) {
    @include iro-bem-element($name, $names...) {
        @content;
    }
}

///
/// @alias element
///
@mixin e($name, $names...) {
    @include element($name, $names...) {
        @content;
    }
}

///
/// @alias iro-bem-related-element
///
@mixin related-element($sign, $name, $names...) {
    @include iro-bem-related-element($sign, $name, $names...) {
        @content;
    }
}

///
/// @alias related-element
///
@mixin re($sign, $name, $names...) {
    @include related-element($sign, $name, $names...) {
        @content;
    }
}

///
/// @alias iro-bem-sibling-element
///
@mixin sibling-element($name, $names...) {
    @include iro-bem-sibling-element($name, $names...) {
        @content;
    }
}

///
/// @alias sibling-element
///
@mixin se($name, $names...) {
    @include sibling-element($name, $names...) {
        @content;
    }
}

///
/// @alias iro-bem-next-element
///
@mixin next-element($name, $names...) {
    @include iro-bem-next-element($name, $names...) {
        @content;
    }
}

///
/// @alias next-element
///
@mixin ne($name, $names...) {
    @include next-element($name, $names...) {
        @content;
    }
}

///
/// @alias iro-bem-next-twin-element
///
@mixin next-twin-element {
    @include iro-bem-next-twin-element {
        @content;
    }
}

///
/// @alias next-twin-element
///
@mixin te {
    @include next-twin-element {
        @content;
    }
}

///
/// @alias iro-bem-modifier
///
@mixin modifier($name, $names...) {
    @include iro-bem-modifier($name, $names...) {
        @content;
    }
}

///
/// @alias modifier
///
@mixin m($name, $names...) {
    @include modifier($name, $names...) {
        @content;
    }
}

///
/// @alias iro-bem-suffix
///
@mixin suffix($name) {
    @include iro-bem-suffix($name) {
        @content;
    }
}

///
/// @alias suffix
///
@mixin s($name) {
    @include suffix($name) {
        @content;
    }
}

///
/// @alias iro-bem-is
///
@mixin is($state, $states...) {
    @include iro-bem-is($state, $states...) {
        @content;
    }
}

///
/// @alias iro-bem-has
///
@mixin has($state, $states...) {
    @include iro-bem-has($state, $states...) {
        @content;
    }
}

///
/// @alias iro-bem-at-theme
///
@mixin at-theme($name, $names...) {
    @include iro-bem-at-theme($name, $names...) {
        @content;
    }
}

///
/// @alias theme
///
@mixin at($name, $names...) {
    @include at-theme($name, $names...) {
        @content;
    }
}

///
/// @alias iro-bem-multi
///
@mixin multi($first, $others...) {
    @include iro-bem-multi($first, $others...) {
        @content;
    }
}