PluginProbe
Responsive Menu – Create Mobile-Friendly Menu / 3.0.3
Responsive Menu – Create Mobile-Friendly Menu v3.0.3
4.7.3 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.10 4.1.11 4.1.12 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 All 90 releases
responsive-menu / src / app / Mappers / scssphp / tests / inputs / media.scss

media.scss in Responsive Menu – Create Mobile-Friendly Menu 3.0.3, at src/app/Mappers/scssphp/tests/inputs/media.scss

209 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 // media syntax
3 @media {
4 div { color: blue; }
5 }
6 @media what {
7 div { color: blue; }
8 }
9
10 @media (cool) {
11 div { color: blue; }
12 }
13 @media (cool: blue) {
14 div { color: blue; }
15 }
16
17 @media hello and (world) and (butt: man) {
18 div { color: blue; }
19 }
20
21 $navbarCollapseWidth: 940px;
22
23 @media (max-width: $navbarCollapseWidth) {
24 color: red;
25 }
26
27 // media bubbling
28 @media not hello and (world) {
29 color: blue;
30 pre {
31 color: blue;
32 }
33
34 @media butt {
35 color: red;
36 div {
37 color: red;
38 }
39 }
40 }
41
42 @media a, b {
43 @media c {
44 color: blue;
45 }
46 }
47
48 @media a{
49 @media b, c {
50 color: blue;
51 }
52 }
53
54 @media a, b{
55 @media c, d {
56 color: blue;
57 }
58 }
59
60 $media: cree;
61 $feature: -webkit-min-device-pixel-ratio;
62 $value: 1.5;
63
64 div {
65 color: blue;
66 @media s#{$media}n and ($feature: $value) {
67 .sidebar {
68 width: 500px;
69 }
70 }
71 }
72
73 // @media + @mixin
74 @mixin color {
75 color: red;
76 .success {
77 color: green;
78 }
79 }
80
81 div {
82 position: absolute;
83 $y: 2em;
84 @media screen {
85 top: 0;
86 $x: 5px;
87 p {
88 margin: $x;
89 }
90 bottom: 6em + $y;
91 @include color;
92 }
93 }
94
95 .button {
96 width: 300px;
97 height: 100px;
98 background: #eee;
99
100 :hover {
101 background: #aaa;
102 }
103
104 @media only screen and (max-width : 300px){
105 width: 100px;
106 height: 100px;
107 }
108 }
109
110 code {
111 position: absolute;
112 @media screen {
113 pre {
114 height: 20px;
115 }
116 height: 10px;
117 }
118 }
119
120 dt {
121 @media screen {
122 @media (color: blue) {
123 height: 10px;
124 }
125 }
126 }
127
128 // nesting media queries
129 @media screen {
130 .screen {
131 width: 12px;
132 }
133 @media only screen {
134 .only-screen {
135 height: 11px;
136 }
137 }
138 }
139
140 @media only screen {
141 .only-screen {
142 width: 14px;
143 }
144 @media only screen {
145 .only-screen {
146 height: 16px;
147 }
148 }
149 }
150
151 @media not screen {
152 @media screen {
153 .invalid {
154 height: 12px;
155 }
156 }
157 }
158
159 @media not screen {
160 @media print {
161 .only-print {
162 height: 12px;
163 }
164 }
165 }
166
167 @media screen {
168 @media not print {
169 .only-print {
170 height: 12px;
171 }
172 }
173 }
174
175 @media not screen {
176 @media not print {
177 .invalid {
178 height: 12px;
179 }
180 }
181 }
182
183 @media not screen {
184 @media not screen {
185 .not-screen {
186 height: 15px;
187 }
188 }
189 }
190
191 @media only screen {
192 @media print {
193 .invalid {
194 height: 15px;
195 }
196 }
197 }
198
199 @media only screen {
200 @media screen and (color: blue) {
201 @media screen and (width: 13) {
202 .only-screen {
203 height: 15px;
204 }
205 }
206 }
207 }
208
209