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-block.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-block.scss')
| -rw-r--r-- | test/bem/_iro-bem-block.scss | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/test/bem/_iro-bem-block.scss b/test/bem/_iro-bem-block.scss deleted file mode 100644 index a93d803..0000000 --- a/test/bem/_iro-bem-block.scss +++ /dev/null | |||
| @@ -1,85 +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 | ||
| 6 | // - /// 2 /// - with namespace | ||
| 7 | // - /// 3 /// - nested | ||
| 8 | // - /// 4 /// - within selector | ||
| 9 | // | ||
| 10 | |||
| 11 | @include it('iro-bem-block') { | ||
| 12 | @include assert('without namespace') { /// 1 /// | ||
| 13 | @include output(false) { | ||
| 14 | @include iro-bem-block('something') { | ||
| 15 | font-size: 1em; | ||
| 16 | } | ||
| 17 | } | ||
| 18 | |||
| 19 | @include expect(false) { | ||
| 20 | .something { | ||
| 21 | font-size: 1em; | ||
| 22 | } | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | @each $ns in map-keys($iro-bem-namespaces) { | ||
| 27 | @include assert('with namespace "#{$ns}"') { /// 2 /// | ||
| 28 | @include output(false) { | ||
| 29 | @include iro-bem-block('something', $ns) { | ||
| 30 | font-size: 1em; | ||
| 31 | } | ||
| 32 | } | ||
| 33 | |||
| 34 | @include expect(false) { | ||
| 35 | @if $ns != 'theme' { | ||
| 36 | .#{map-get($iro-bem-namespaces, $ns)}-something { | ||
| 37 | font-size: 1em; | ||
| 38 | } | ||
| 39 | } @else { | ||
| 40 | .t-something, | ||
| 41 | [class*=' t-'] .t-something, | ||
| 42 | [class^='t-'] .t-something { | ||
| 43 | font-size: 1em; | ||
| 44 | } | ||
| 45 | } | ||
| 46 | } | ||
| 47 | } | ||
| 48 | } | ||
| 49 | |||
| 50 | @include assert('nested') { /// 3 /// | ||
| 51 | @include output(false) { | ||
| 52 | @include iro-bem-theme('theme') { | ||
| 53 | @include iro-bem-theme('subtheme') { | ||
| 54 | @include iro-bem-block('something') { | ||
| 55 | font-size: 2em; | ||
| 56 | } | ||
| 57 | } | ||
| 58 | } | ||
| 59 | } | ||
| 60 | |||
| 61 | @include expect(false) { | ||
| 62 | .t-theme .t-subtheme .something, | ||
| 63 | [class*=' t-'] .t-theme .t-subtheme .something, | ||
| 64 | [class^='t-'] .t-theme .t-subtheme .something { | ||
| 65 | font-size: 2em; | ||
| 66 | } | ||
| 67 | } | ||
| 68 | } | ||
| 69 | |||
| 70 | @include assert('within selector') { /// 4 /// | ||
| 71 | @include output(false) { | ||
| 72 | .sel { | ||
| 73 | @include iro-bem-block('something') { | ||
| 74 | font-size: 2em; | ||
| 75 | } | ||
| 76 | } | ||
| 77 | } | ||
| 78 | |||
| 79 | @include expect(false) { | ||
| 80 | .sel .something { | ||
| 81 | font-size: 2em; | ||
| 82 | } | ||
| 83 | } | ||
| 84 | } | ||
| 85 | } | ||
