aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-06 10:52:16 +0100
committerVolpeon <git@volpeon.ink>2022-02-06 10:52:16 +0100
commit9f1653f2ab64ef8cb4c545416da4241baa481557 (patch)
tree80d208dcacba3f3552d9488fe231243252ff80cc
parentLint (diff)
downloadiro-sass-9f1653f2ab64ef8cb4c545416da4241baa481557.tar.gz
iro-sass-9f1653f2ab64ef8cb4c545416da4241baa481557.tar.bz2
iro-sass-9f1653f2ab64ef8cb4c545416da4241baa481557.zip
Rename next-twin-element to next-twin-elem
-rw-r--r--src/bem/_element.scss12
-rw-r--r--test/bem/_next-twin-element.scss18
2 files changed, 15 insertions, 15 deletions
diff --git a/src/bem/_element.scss b/src/bem/_element.scss
index 25377d6..64862b0 100644
--- a/src/bem/_element.scss
+++ b/src/bem/_element.scss
@@ -429,7 +429,7 @@
429/// @include elem('elem') { 429/// @include elem('elem') {
430/// /* some element definitions */ 430/// /* some element definitions */
431/// 431///
432/// @include next-twin-element { 432/// @include next-twin-elem {
433/// /* some twin element definitions */ 433/// /* some twin element definitions */
434/// } 434/// }
435/// } 435/// }
@@ -450,7 +450,7 @@
450/// @include elem('elem1', 'elem2') { 450/// @include elem('elem1', 'elem2') {
451/// /* some element definitions */ 451/// /* some element definitions */
452/// 452///
453/// @include next-twin-element { 453/// @include next-twin-elem {
454/// /* some twin element definitions */ 454/// /* some twin element definitions */
455/// } 455/// }
456/// } 456/// }
@@ -472,7 +472,7 @@
472 $context: nth($result, 2); 472 $context: nth($result, 2);
473 473
474 @include validators.validate( 474 @include validators.validate(
475 'next-twin-element', 475 'next-twin-elem',
476 (), 476 (),
477 $selector, 477 $selector,
478 $context 478 $context
@@ -491,7 +491,7 @@
491/// 491///
492/// @return {list} A list with two items: 1. selector, 2. context or `null` 492/// @return {list} A list with two items: 1. selector, 2. context or `null`
493/// 493///
494/// @see {mixin} next-twin-element 494/// @see {mixin} next-twin-elem
495/// 495///
496@function related-twin-elem($sign) { 496@function related-twin-elem($sign) {
497 $noop: contexts.assert-stack-count(vars.$context-id, vars.$max-depth); 497 $noop: contexts.assert-stack-count(vars.$context-id, vars.$max-depth);
@@ -618,7 +618,7 @@
618/// 618///
619/// @content 619/// @content
620/// 620///
621@mixin next-twin-element { 621@mixin next-twin-elem {
622 @include related-twin-elem('+') { 622 @include related-twin-elem('+') {
623 @content; 623 @content;
624 } 624 }
@@ -630,7 +630,7 @@
630/// 630///
631/// @return {list} A list with two items: 1. selector, 2. context or `null` 631/// @return {list} A list with two items: 1. selector, 2. context or `null`
632/// 632///
633/// @see {mixin} next-twin-element 633/// @see {mixin} next-twin-elem
634/// 634///
635@function next-twin-elem() { 635@function next-twin-elem() {
636 @return related-twin-elem('+'); 636 @return related-twin-elem('+');
diff --git a/test/bem/_next-twin-element.scss b/test/bem/_next-twin-element.scss
index 85fe473..355e635 100644
--- a/test/bem/_next-twin-element.scss
+++ b/test/bem/_next-twin-element.scss
@@ -13,12 +13,12 @@
13// - /// 6 /// - multiple elements, modifier in-between 13// - /// 6 /// - multiple elements, modifier in-between
14// 14//
15 15
16@include it('next-twin-element') { 16@include it('next-twin-elem') {
17 @include assert('single element') { /// 1 /// 17 @include assert('single element') { /// 1 ///
18 @include output { 18 @include output {
19 @include bem.block('something') { 19 @include bem.block('something') {
20 @include bem.elem('child') { 20 @include bem.elem('child') {
21 @include bem.next-twin-element { 21 @include bem.next-twin-elem {
22 font-size: 2em; 22 font-size: 2em;
23 } 23 }
24 } 24 }
@@ -37,13 +37,13 @@
37 @include bem.block('something') { 37 @include bem.block('something') {
38 @include bem.elem('child') { 38 @include bem.elem('child') {
39 &:hover { 39 &:hover {
40 @include bem.next-twin-element { 40 @include bem.next-twin-elem {
41 font-size: 2em; 41 font-size: 2em;
42 } 42 }
43 } 43 }
44 44
45 .test & { 45 .test & {
46 @include bem.next-twin-element { 46 @include bem.next-twin-elem {
47 font-size: 2em; 47 font-size: 2em;
48 } 48 }
49 } 49 }
@@ -67,7 +67,7 @@
67 @include bem.block('something') { 67 @include bem.block('something') {
68 @include bem.elem('child') { 68 @include bem.elem('child') {
69 @include bem.modifier('mod') { 69 @include bem.modifier('mod') {
70 @include bem.next-twin-element { 70 @include bem.next-twin-elem {
71 font-size: 2.5em; 71 font-size: 2.5em;
72 } 72 }
73 } 73 }
@@ -86,7 +86,7 @@
86 @include output { 86 @include output {
87 @include bem.block('something') { 87 @include bem.block('something') {
88 @include bem.elem('child1', 'child2') { 88 @include bem.elem('child1', 'child2') {
89 @include bem.next-twin-element { 89 @include bem.next-twin-elem {
90 font-size: 2em; 90 font-size: 2em;
91 } 91 }
92 } 92 }
@@ -106,13 +106,13 @@
106 @include bem.block('something') { 106 @include bem.block('something') {
107 @include bem.elem('child1', 'child2') { 107 @include bem.elem('child1', 'child2') {
108 &:hover { 108 &:hover {
109 @include bem.next-twin-element { 109 @include bem.next-twin-elem {
110 font-size: 2em; 110 font-size: 2em;
111 } 111 }
112 } 112 }
113 113
114 .test & { 114 .test & {
115 @include bem.next-twin-element { 115 @include bem.next-twin-elem {
116 font-size: 2em; 116 font-size: 2em;
117 } 117 }
118 } 118 }
@@ -138,7 +138,7 @@
138 @include bem.block('something') { 138 @include bem.block('something') {
139 @include bem.elem('child1', 'child2') { 139 @include bem.elem('child1', 'child2') {
140 @include bem.modifier('mod') { 140 @include bem.modifier('mod') {
141 @include bem.next-twin-element { 141 @include bem.next-twin-elem {
142 font-size: 2.5em; 142 font-size: 2.5em;
143 } 143 }
144 } 144 }