Debian Codegraph @

sass-spec/spec/libsass/media/input.scss

raw
1 @media all and (min-width: 960px) {
2 b {
3 font-weight: normal;
4 }
5 }
6
7 @media (min-width: 980px) {
8 a {
9 color: red;
10 }
11 }
12
13 @media all {
14 /* hey */
15 p {
16 color: blue;
17 a {
18 color: green;
19 &:after {
20 content: ">>";
21 }
22 }
23 }
24 span {
25 display: inline-block;
26 }
27 }
28
29 a b c {
30 /* a */
31 blee: blee;
32 /* b */
33 d e f {
34 blah: blah;
35 bloo: bloo;
36 }
37 /* c */
38 g h, i j {
39 @media print and (foo: 1 2 3), (bar: 3px hux(muz)), not screen {
40 /* aa */
41 hey: ho;
42 /* bb */
43 k l m {
44 hee: fee;
45 }
46 /* cc */
47 haa: hoo;
48 /* dd */
49 }
50 }
51 /* d */
52 blah: blah;
53 }
54
55 @mixin simple-media-query($max-width, $min-width) {
56 @media only screen and (max-width : $max-width) and (min-width : $min-width) {
57 @content;
58 }
59 }
60
61 @mixin test($value) {
62 border-color: $value;
63 }
64
65 body {
66 @include test("#ccc");
67 @include simple-media-query(900px, 400px) {
68 border-color: black;
69 }
70 }
71
72 $foo: 23;
73 $bar: 45;
74
75 @media only screen and (max-width: $foo) and (min-width: $bar) {
76 hey {
77 ho: hoo;
78 }
79 }
80
81 @media (max-width: 200) and (min-width: 100) {
82 div {
83 color: red;
84 }
85 }
86
87 @media not bl#{ah} and (width: 200px) {
88 div {
89 color: brown, blue, black;
90 }
91 }
92
93 @mixin media($var1, $var2) {
94 @media screen and ($var1: $var2) {
95 @content;
96 }
97 }
98
99 @include media(max-device-width, 500px) {
100 foo {
101 bar: "works";
102 }
103 }
104
105 div {
106 color: red;
107 span {
108 color: blue;
109 @media screen {
110 p {
111 color: green;
112 }
113 }
114 }
115 }