sass-spec/spec/libsass/inheritance/input.scss
raw| 1 | main content a box { |
| 2 | border: solid; |
| 3 | } |
| 4 | |
| 5 | supplemtal text b sidebar { |
| 6 | @extend box; |
| 7 | background: gray; |
| 8 | } |
| 9 | |
| 10 | /********/ |
| 11 | |
| 12 | mammal { |
| 13 | blood: warm; |
| 14 | } |
| 15 | |
| 16 | mammal.furry.quadruped { |
| 17 | fur: lots; |
| 18 | legs: 4; |
| 19 | } |
| 20 | |
| 21 | human { |
| 22 | @extend mammal; |
| 23 | says: "hello"; |
| 24 | } |
| 25 | |
| 26 | dog { |
| 27 | says: "woof"; |
| 28 | @extend mammal.quadruped; |
| 29 | } |
| 30 | |
| 31 | /********/ |
| 32 | |
| 33 | region.country { |
| 34 | inhabitant.mouse { |
| 35 | eats: cheddar; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | region.city { |
| 40 | inhabitant.mouse { |
| 41 | eats: camembert; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | region.country citizen { |
| 46 | @extend inhabitant; |
| 47 | ssn: 123 45 6789; |
| 48 | } |
| 49 | |
| 50 | region tax-payer { |
| 51 | @extend inhabitant; |
| 52 | rate: 17%; |
| 53 | } |
| 54 | |
| 55 | /********/ |
| 56 | |
| 57 | foo { |
| 58 | color: red; |
| 59 | } |
| 60 | |
| 61 | .a.bar { |
| 62 | @extend fo#{o}; |
| 63 | background: gray; |
| 64 | } |
| 65 | |
| 66 | /********/ |
| 67 | |
| 68 | foo { |
| 69 | color: red; |
| 70 | } |
| 71 | |
| 72 | hux, .bar.a { |
| 73 | @extend foo; |
| 74 | background: blue; |
| 75 | } |