From d07f664450ddaaebb44127a4bd057763d13d3f82 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Sun, 1 Nov 2020 20:55:14 +0100 Subject: Init --- src/bem/_vars.scss | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 src/bem/_vars.scss (limited to 'src/bem/_vars.scss') diff --git a/src/bem/_vars.scss b/src/bem/_vars.scss new file mode 100644 index 0000000..5942d4f --- /dev/null +++ b/src/bem/_vars.scss @@ -0,0 +1,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; -- cgit v1.3.1