diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-05 07:52:13 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-05 07:52:13 +0100 |
| commit | dd5f3c463fab336d694f426dcad11a1783590fc9 (patch) | |
| tree | faebf738a9556eaa393371852ed86550d4adf66a /test/bem/_iro-bem-composed-of.scss | |
| parent | Fix errors from transition from node-sass to sass (diff) | |
| download | iro-sass-dd5f3c463fab336d694f426dcad11a1783590fc9.tar.gz iro-sass-dd5f3c463fab336d694f426dcad11a1783590fc9.tar.bz2 iro-sass-dd5f3c463fab336d694f426dcad11a1783590fc9.zip | |
Ported from import syntax to modules
Diffstat (limited to 'test/bem/_iro-bem-composed-of.scss')
| -rw-r--r-- | test/bem/_iro-bem-composed-of.scss | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/test/bem/_iro-bem-composed-of.scss b/test/bem/_iro-bem-composed-of.scss deleted file mode 100644 index e724eb8..0000000 --- a/test/bem/_iro-bem-composed-of.scss +++ /dev/null | |||
| @@ -1,149 +0,0 @@ | |||
| 1 | // sass-lint:disable class-name-format force-element-nesting force-pseudo-nesting mixins-before-declarations | ||
| 2 | |||
| 3 | // | ||
| 4 | // Included test cases: | ||
| 5 | // - /// 1 /// - without namespace, single | ||
| 6 | // - /// 2 /// - with namespace, single | ||
| 7 | // - /// 3 /// - without namespace, multiple | ||
| 8 | // - /// 4 /// - with namespace, multiple | ||
| 9 | // | ||
| 10 | |||
| 11 | @include it('iro-bem-composed-of') { | ||
| 12 | @include assert('without namespace, single') { /// 1 /// | ||
| 13 | @include output(false) { | ||
| 14 | @include iro-bem-block('something') { | ||
| 15 | font-size: 1em; | ||
| 16 | } | ||
| 17 | |||
| 18 | @include iro-bem-block('another') { | ||
| 19 | @include iro-bem-composed-of('something'); | ||
| 20 | |||
| 21 | font-size: 2em; | ||
| 22 | } | ||
| 23 | } | ||
| 24 | |||
| 25 | @include expect(false) { | ||
| 26 | .something { | ||
| 27 | font-size: 1em; | ||
| 28 | } | ||
| 29 | |||
| 30 | .another { | ||
| 31 | font-size: 2em; | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } | ||
| 35 | |||
| 36 | @each $ns in map-keys($iro-bem-namespaces) { | ||
| 37 | @include assert('with namespace "#{$ns}", single') { /// 2 /// | ||
| 38 | @include output(false) { | ||
| 39 | @include iro-bem-block('something', $ns) { | ||
| 40 | font-size: 1em; | ||
| 41 | } | ||
| 42 | |||
| 43 | @include iro-bem-block('another') { | ||
| 44 | @include iro-bem-composed-of('something' $ns); | ||
| 45 | |||
| 46 | font-size: 2em; | ||
| 47 | } | ||
| 48 | } | ||
| 49 | |||
| 50 | @include expect(false) { | ||
| 51 | @if $ns != 'theme' { | ||
| 52 | .#{map-get($iro-bem-namespaces, $ns)}-something { | ||
| 53 | font-size: 1em; | ||
| 54 | } | ||
| 55 | } @else { | ||
| 56 | .t-something, | ||
| 57 | [class*=' t-'] .t-something, | ||
| 58 | [class^='t-'] .t-something { | ||
| 59 | font-size: 1em; | ||
| 60 | } | ||
| 61 | } | ||
| 62 | |||
| 63 | .another { | ||
| 64 | font-size: 2em; | ||
| 65 | } | ||
| 66 | } | ||
| 67 | } | ||
| 68 | } | ||
| 69 | |||
| 70 | @include assert('without namespace, multiple') { /// 3 /// | ||
| 71 | @include output(false) { | ||
| 72 | @include iro-bem-block('something') { | ||
| 73 | font-size: 1em; | ||
| 74 | } | ||
| 75 | |||
| 76 | @include iro-bem-block('somethingElse') { | ||
| 77 | font-size: 1em; | ||
| 78 | } | ||
| 79 | |||
| 80 | @include iro-bem-block('another') { | ||
| 81 | @include iro-bem-composed-of('something', 'somethingElse'); | ||
| 82 | |||
| 83 | font-size: 2em; | ||
| 84 | } | ||
| 85 | } | ||
| 86 | |||
| 87 | @include expect(false) { | ||
| 88 | .something { | ||
| 89 | font-size: 1em; | ||
| 90 | } | ||
| 91 | |||
| 92 | .somethingElse { | ||
| 93 | font-size: 1em; | ||
| 94 | } | ||
| 95 | |||
| 96 | .another { | ||
| 97 | font-size: 2em; | ||
| 98 | } | ||
| 99 | } | ||
| 100 | } | ||
| 101 | |||
| 102 | @each $ns in map-keys($iro-bem-namespaces) { | ||
| 103 | @include assert('with namespace "#{$ns}", multiple') { /// 4 /// | ||
| 104 | @include output(false) { | ||
| 105 | @include iro-bem-block('something', $ns) { | ||
| 106 | font-size: 1em; | ||
| 107 | } | ||
| 108 | |||
| 109 | @include iro-bem-block('somethingElse', $ns) { | ||
| 110 | font-size: 1em; | ||
| 111 | } | ||
| 112 | |||
| 113 | @include iro-bem-block('another') { | ||
| 114 | @include iro-bem-composed-of('something' $ns, 'somethingElse' $ns); | ||
| 115 | |||
| 116 | font-size: 2em; | ||
| 117 | } | ||
| 118 | } | ||
| 119 | |||
| 120 | @include expect(false) { | ||
| 121 | @if $ns != 'theme' { | ||
| 122 | .#{map-get($iro-bem-namespaces, $ns)}-something { | ||
| 123 | font-size: 1em; | ||
| 124 | } | ||
| 125 | |||
| 126 | .#{map-get($iro-bem-namespaces, $ns)}-somethingElse { | ||
| 127 | font-size: 1em; | ||
| 128 | } | ||
| 129 | } @else { | ||
| 130 | .t-something, | ||
| 131 | [class*=' t-'] .t-something, | ||
| 132 | [class^='t-'] .t-something { | ||
| 133 | font-size: 1em; | ||
| 134 | } | ||
| 135 | |||
| 136 | .t-somethingElse, | ||
| 137 | [class*=' t-'] .t-somethingElse, | ||
| 138 | [class^='t-'] .t-somethingElse { | ||
| 139 | font-size: 1em; | ||
| 140 | } | ||
| 141 | } | ||
| 142 | |||
| 143 | .another { | ||
| 144 | font-size: 2em; | ||
| 145 | } | ||
| 146 | } | ||
| 147 | } | ||
| 148 | } | ||
| 149 | } | ||
