|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`functional-argument.scss format 1`] = ` |
| 4 | +====================================options===================================== |
| 5 | +parsers: ["scss"] |
| 6 | +printWidth: 80 |
| 7 | + | printWidth |
| 8 | +=====================================input====================================== |
| 9 | +//simple test |
| 10 | +$display-breakpoints: map-deep-merge( |
| 11 | + ( |
| 12 | + "print-only": "only print", |
| 13 | + "screen-only": "only screen", |
| 14 | + "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm") - 1})", |
| 15 | + "sm-only": "only screen and (min-width: #{map-get($grid-breakpoints, "sm")}) and (max-width: #{map-get($grid-breakpoints, "md") - 1})", |
| 16 | + ), |
| 17 | + $display-breakpoints |
| 18 | +); |
| 19 | +
|
| 20 | +
|
| 21 | +//list test |
| 22 | +@each |
| 23 | +$size |
| 24 | +in |
| 25 | +$sizes { |
| 26 | +.icon |
| 27 | +#{$size} |
| 28 | +{ |
| 29 | +border |
| 30 | +: |
| 31 | +"#{$size + "px"}" |
| 32 | +solid |
| 33 | +red; |
| 34 | +} |
| 35 | +} |
| 36 | +
|
| 37 | +@each |
| 38 | +$size |
| 39 | +in |
| 40 | +$sizes { |
| 41 | +.icon-#{$size} |
| 42 | +{ |
| 43 | +border |
| 44 | +: |
| 45 | +"#{$size + "px"}" |
| 46 | +solid |
| 47 | +red; |
| 48 | +} |
| 49 | +} |
| 50 | +
|
| 51 | +//map test |
| 52 | +$font-weights |
| 53 | +: |
| 54 | +("regular": 400 |
| 55 | +, |
| 56 | +"medium": 500, |
| 57 | +"bold": |
| 58 | +700); |
| 59 | +@each |
| 60 | +$name, |
| 61 | +$boldness |
| 62 | +in |
| 63 | +$icons { |
| 64 | +.text |
| 65 | +#{ |
| 66 | +$name |
| 67 | +} { |
| 68 | +color: red; |
| 69 | +font-weight: |
| 70 | +"#{$boldness}" |
| 71 | +} |
| 72 | +} |
| 73 | +
|
| 74 | +$font-weights |
| 75 | +: |
| 76 | +("regular": 400 |
| 77 | +, |
| 78 | +"medium": 500, |
| 79 | +"bold": |
| 80 | +700); |
| 81 | +@each |
| 82 | +$name, |
| 83 | +$boldness |
| 84 | +in |
| 85 | +$icons { |
| 86 | +.text-#{ |
| 87 | +$name |
| 88 | +} { |
| 89 | +color: red; |
| 90 | +font-weight: |
| 91 | +"#{$boldness}" |
| 92 | +} |
| 93 | +} |
| 94 | +
|
| 95 | +=====================================output===================================== |
| 96 | +//simple test |
| 97 | +$display-breakpoints: map-deep-merge( |
| 98 | + ( |
| 99 | + "print-only": "only print", |
| 100 | + "screen-only": "only screen", |
| 101 | + "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm") - 1})", |
| 102 | + "sm-only": "only screen and (min-width: #{map-get($grid-breakpoints, "sm")}) and (max-width: #{map-get($grid-breakpoints, "md") - 1})", |
| 103 | + ), |
| 104 | + $display-breakpoints |
| 105 | +); |
| 106 | +
|
| 107 | +//list test |
| 108 | +@each $size in $sizes { |
| 109 | + .icon #{$size} { |
| 110 | + border: "#{$size + "px"}" solid red; |
| 111 | + } |
| 112 | +} |
| 113 | +
|
| 114 | +@each $size in $sizes { |
| 115 | + .icon-#{$size} { |
| 116 | + border: "#{$size + "px"}" solid red; |
| 117 | + } |
| 118 | +} |
| 119 | +
|
| 120 | +//map test |
| 121 | +$font-weights: ( |
| 122 | + "regular": 400, |
| 123 | + "medium": 500, |
| 124 | + "bold": 700, |
| 125 | +); |
| 126 | +@each $name, $boldness in $icons { |
| 127 | + .text #{ $name } { |
| 128 | + color: red; |
| 129 | + font-weight: "#{$boldness}"; |
| 130 | + } |
| 131 | +} |
| 132 | +
|
| 133 | +$font-weights: ( |
| 134 | + "regular": 400, |
| 135 | + "medium": 500, |
| 136 | + "bold": 700, |
| 137 | +); |
| 138 | +@each $name, $boldness in $icons { |
| 139 | + .text-#{ $name } { |
| 140 | + color: red; |
| 141 | + font-weight: "#{$boldness}"; |
| 142 | + } |
| 143 | +} |
| 144 | +
|
| 145 | +================================================================================ |
| 146 | +`; |
0 commit comments