aboutsummaryrefslogtreecommitdiffstats
path: root/src/bem/_vars.scss
blob: 5942d4fc30250ba0daf462e9e452e2ba61b997fe (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
////
/// @group BEM
///
/// @access public
////

///
/// Separating character sequence for elements.
///
/// @type string
///
$iro-bem-element-separator: '__' !default;

///
/// Separating character sequence for modifiers.
///
/// @type string
///
$iro-bem-modifier-separator: '--' !default;

///
/// Separating character sequence for BEMIT suffixes.
///
/// @type string
///
$iro-bem-suffix-separator: '\\@' !default;

///
/// Prefixes for all BEMIT namespaces.
///
/// @prop {string} utility   ['u']  - Utility namespace
/// @prop {string} object    ['o']  - Object namespace
/// @prop {string} component ['c']  - Component namespace
/// @prop {string} layout    ['l']  - Layout namespace
/// @prop {string} scope     ['s']  - Scope namespace
/// @prop {string} theme     ['t']  - Theme namespace
/// @prop {string} js        ['js'] - JS namespace
/// @prop {string} qa        ['qa'] - QA namespace
/// @prop {string} hack      ['_']  - Hack namespace
///
/// @type map
///
$iro-bem-namespaces: (
    object:    'o',
    component: 'c',
    layout:    'l',
    scope:     's',
    theme:     't',
    utility:   'u',
    js:        'js',
    qa:        'qa',
    hack:      '_'
) !default;

///
/// A list of all generated blocks. 
///
/// @type list
///
/// @access private
///
$iro-bem-blocks: ();

///
/// Maximum nesting depth of BEM mixins. The large default value means there is no effective limit.
/// 
/// @type number
///
$iro-bem-max-depth: 99 !default;

///
/// Indicates how nested elements should be handled.
///
/// 'allow' means elements will be nested, i.e. the result will be {e} {b}__element.
/// 'disallow' means an error will be emitted.
/// 'append' means the element name will be appended to the parent element, i.e. the result will be {e}__element.
/// Any other value is treated as 'allow'.
/// 
/// @type string
///
$iro-bem-element-nesting-policy: 'allow' !default;

///
/// Context ID used for all BEM-related mixins.
///
/// @type string
///
$iro-bem-context-id: 'bem' !default;

///
/// Debug mode.
///
/// @type bool
///
$iro-bem-debug: false !default;

///
/// Colors assigned to namespaces.
///
/// @type map
///
$iro-bem-debug-colors: (
    object:    #ffa500,
    component: #00f,
    layout:    #ff0,
    utility:   #008000,
    hack:      #f00
) !default;