diff options
| author | Volpeon <git@volpeon.ink> | 2025-08-13 12:01:46 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2025-08-13 12:01:46 +0200 |
| commit | f0f84513f8efe533b6ee670a6f1a0c074387b2ec (patch) | |
| tree | 845bc4bacf1bd99acb0dfcc7e4545a36b544d2f8 /test/bem/_state.scss | |
| parent | More fix (diff) | |
| download | iro-sass-f0f84513f8efe533b6ee670a6f1a0c074387b2ec.tar.gz iro-sass-f0f84513f8efe533b6ee670a6f1a0c074387b2ec.tar.bz2 iro-sass-f0f84513f8efe533b6ee670a6f1a0c074387b2ec.zip | |
Make use of SASS modules
Diffstat (limited to 'test/bem/_state.scss')
| -rw-r--r-- | test/bem/_state.scss | 280 |
1 files changed, 140 insertions, 140 deletions
diff --git a/test/bem/_state.scss b/test/bem/_state.scss index 674da5f..5a1e1d6 100644 --- a/test/bem/_state.scss +++ b/test/bem/_state.scss | |||
| @@ -14,167 +14,167 @@ | |||
| 14 | // | 14 | // |
| 15 | 15 | ||
| 16 | @include it('state') { | 16 | @include it('state') { |
| 17 | @include assert('single block, single state') { /// 1 /// | 17 | @include assert('single block, single state') { /// 1 /// |
| 18 | @include output { | 18 | @include output { |
| 19 | @include bem.block('something') { | 19 | @include bem.block('something') { |
| 20 | @include bem.is('active') { | 20 | @include bem.is('active') { |
| 21 | font-size: 1.25em; | 21 | font-size: 1.25em; |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | @include bem.has('state') { | 24 | @include bem.has('state') { |
| 25 | font-size: 1.75em; | 25 | font-size: 1.75em; |
| 26 | } | 26 | } |
| 27 | } | 27 | } |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | @include expect { | 30 | @include expect { |
| 31 | .something.is-active { | 31 | .something.is-active { |
| 32 | font-size: 1.25em; | 32 | font-size: 1.25em; |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | .something.has-state { | 35 | .something.has-state { |
| 36 | font-size: 1.75em; | 36 | font-size: 1.75em; |
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | @include assert('single element, single state') { /// 2 /// | 41 | @include assert('single element, single state') { /// 2 /// |
| 42 | @include output { | 42 | @include output { |
| 43 | @include bem.block('something') { | 43 | @include bem.block('something') { |
| 44 | @include bem.elem('child') { | 44 | @include bem.elem('child') { |
| 45 | @include bem.is('active') { | 45 | @include bem.is('active') { |
| 46 | font-size: 2.25em; | 46 | font-size: 2.25em; |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | @include bem.has('state') { | 49 | @include bem.has('state') { |
| 50 | font-size: 2.75em; | 50 | font-size: 2.75em; |
| 51 | } | 51 | } |
| 52 | } | 52 | } |
| 53 | } | 53 | } |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | @include expect { | 56 | @include expect { |
| 57 | .something__child.is-active { | 57 | .something__child.is-active { |
| 58 | font-size: 2.25em; | 58 | font-size: 2.25em; |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | .something__child.has-state { | 61 | .something__child.has-state { |
| 62 | font-size: 2.75em; | 62 | font-size: 2.75em; |
| 63 | } | 63 | } |
| 64 | } | 64 | } |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | @include assert('single block, multiple states') { /// 3 /// | 67 | @include assert('single block, multiple states') { /// 3 /// |
| 68 | @include output { | 68 | @include output { |
| 69 | @include bem.block('something') { | 69 | @include bem.block('something') { |
| 70 | @include bem.is('active', 'primary') { | 70 | @include bem.is('active', 'primary') { |
| 71 | font-size: 1.25em; | 71 | font-size: 1.25em; |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | @include bem.has('state', 'indicator') { | 74 | @include bem.has('state', 'indicator') { |
| 75 | font-size: 1.75em; | 75 | font-size: 1.75em; |
| 76 | } | 76 | } |
| 77 | } | 77 | } |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | @include expect { | 80 | @include expect { |
| 81 | .something.is-active, | 81 | .something.is-active, |
| 82 | .something.is-primary { | 82 | .something.is-primary { |
| 83 | font-size: 1.25em; | 83 | font-size: 1.25em; |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | .something.has-state, | 86 | .something.has-state, |
| 87 | .something.has-indicator { | 87 | .something.has-indicator { |
| 88 | font-size: 1.75em; | 88 | font-size: 1.75em; |
| 89 | } | 89 | } |
| 90 | } | 90 | } |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | @include assert('single element, multiple states') { /// 4 /// | 93 | @include assert('single element, multiple states') { /// 4 /// |
| 94 | @include output { | 94 | @include output { |
| 95 | @include bem.block('something') { | 95 | @include bem.block('something') { |
| 96 | @include bem.elem('child') { | 96 | @include bem.elem('child') { |
| 97 | @include bem.is('active', 'primary') { | 97 | @include bem.is('active', 'primary') { |
| 98 | font-size: 2.25em; | 98 | font-size: 2.25em; |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | @include bem.has('state', 'indicator') { | 101 | @include bem.has('state', 'indicator') { |
| 102 | font-size: 2.75em; | 102 | font-size: 2.75em; |
| 103 | } | 103 | } |
| 104 | } | 104 | } |
| 105 | } | 105 | } |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | @include expect { | 108 | @include expect { |
| 109 | .something__child.is-active, | 109 | .something__child.is-active, |
| 110 | .something__child.is-primary { | 110 | .something__child.is-primary { |
| 111 | font-size: 2.25em; | 111 | font-size: 2.25em; |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | .something__child.has-state, | 114 | .something__child.has-state, |
| 115 | .something__child.has-indicator { | 115 | .something__child.has-indicator { |
| 116 | font-size: 2.75em; | 116 | font-size: 2.75em; |
| 117 | } | 117 | } |
| 118 | } | 118 | } |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | @include assert('multiple elements, single state') { /// 5 /// | 121 | @include assert('multiple elements, single state') { /// 5 /// |
| 122 | @include output { | 122 | @include output { |
| 123 | @include bem.block('something') { | 123 | @include bem.block('something') { |
| 124 | @include bem.elem('child1', 'child2') { | 124 | @include bem.elem('child1', 'child2') { |
| 125 | @include bem.is('active') { | 125 | @include bem.is('active') { |
| 126 | font-size: 2.25em; | 126 | font-size: 2.25em; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | @include bem.has('state') { | 129 | @include bem.has('state') { |
| 130 | font-size: 2.75em; | 130 | font-size: 2.75em; |
| 131 | } | 131 | } |
| 132 | } | 132 | } |
| 133 | } | 133 | } |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | @include expect { | 136 | @include expect { |
| 137 | .something__child1.is-active, | 137 | .something__child1.is-active, |
| 138 | .something__child2.is-active { | 138 | .something__child2.is-active { |
| 139 | font-size: 2.25em; | 139 | font-size: 2.25em; |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | .something__child1.has-state, | 142 | .something__child1.has-state, |
| 143 | .something__child2.has-state { | 143 | .something__child2.has-state { |
| 144 | font-size: 2.75em; | 144 | font-size: 2.75em; |
| 145 | } | 145 | } |
| 146 | } | 146 | } |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | @include assert('multiple elements, multiple states') { /// 6 /// | 149 | @include assert('multiple elements, multiple states') { /// 6 /// |
| 150 | @include output { | 150 | @include output { |
| 151 | @include bem.block('something') { | 151 | @include bem.block('something') { |
| 152 | @include bem.elem('child1', 'child2') { | 152 | @include bem.elem('child1', 'child2') { |
| 153 | @include bem.is('active', 'primary') { | 153 | @include bem.is('active', 'primary') { |
| 154 | font-size: 2.25em; | 154 | font-size: 2.25em; |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | @include bem.has('state', 'indicator') { | 157 | @include bem.has('state', 'indicator') { |
| 158 | font-size: 2.75em; | 158 | font-size: 2.75em; |
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | @include expect { | 164 | @include expect { |
| 165 | .something__child1.is-active, | 165 | .something__child1.is-active, |
| 166 | .something__child2.is-active, | 166 | .something__child2.is-active, |
| 167 | .something__child1.is-primary, | 167 | .something__child1.is-primary, |
| 168 | .something__child2.is-primary { | 168 | .something__child2.is-primary { |
| 169 | font-size: 2.25em; | 169 | font-size: 2.25em; |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | .something__child1.has-state, | 172 | .something__child1.has-state, |
| 173 | .something__child2.has-state, | 173 | .something__child2.has-state, |
| 174 | .something__child1.has-indicator, | 174 | .something__child1.has-indicator, |
| 175 | .something__child2.has-indicator { | 175 | .something__child2.has-indicator { |
| 176 | font-size: 2.75em; | 176 | font-size: 2.75em; |
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | } | 179 | } |
| 180 | } | 180 | } |
