crass 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +8 -4
  3. data/HISTORY.md +21 -0
  4. data/LICENSE +1 -1
  5. data/README.md +0 -22
  6. data/Rakefile +5 -4
  7. data/crass.gemspec +8 -2
  8. data/lib/crass/parser.rb +15 -15
  9. data/lib/crass/tokenizer.rb +57 -38
  10. data/lib/crass/version.rb +1 -1
  11. metadata +9 -67
  12. data/test/css-parsing-tests/An+B.json +0 -156
  13. data/test/css-parsing-tests/LICENSE +0 -8
  14. data/test/css-parsing-tests/README.rst +0 -301
  15. data/test/css-parsing-tests/color3.json +0 -142
  16. data/test/css-parsing-tests/color3_hsl.json +0 -3890
  17. data/test/css-parsing-tests/color3_keywords.json +0 -803
  18. data/test/css-parsing-tests/component_value_list.json +0 -432
  19. data/test/css-parsing-tests/declaration_list.json +0 -44
  20. data/test/css-parsing-tests/make_color3_hsl.py +0 -17
  21. data/test/css-parsing-tests/make_color3_keywords.py +0 -191
  22. data/test/css-parsing-tests/one_component_value.json +0 -27
  23. data/test/css-parsing-tests/one_declaration.json +0 -46
  24. data/test/css-parsing-tests/one_rule.json +0 -36
  25. data/test/css-parsing-tests/rule_list.json +0 -48
  26. data/test/css-parsing-tests/stylesheet.json +0 -44
  27. data/test/css-parsing-tests/stylesheet_bytes.json +0 -146
  28. data/test/shared/parse_rules.rb +0 -463
  29. data/test/support/common.rb +0 -170
  30. data/test/support/serialization/animate.css +0 -3158
  31. data/test/support/serialization/bootstrap-theme.css +0 -384
  32. data/test/support/serialization/bootstrap.css +0 -6805
  33. data/test/support/serialization/html5-boilerplate.css +0 -268
  34. data/test/support/serialization/misc.css +0 -9
  35. data/test/support/serialization/pure.css +0 -1662
  36. data/test/test_crass.rb +0 -31
  37. data/test/test_css_parsing_tests.rb +0 -150
  38. data/test/test_parse_properties.rb +0 -310
  39. data/test/test_parse_rules.rb +0 -17
  40. data/test/test_parse_stylesheet.rb +0 -17
  41. data/test/test_serialization.rb +0 -71
@@ -1,268 +0,0 @@
1
- /*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
2
-
3
- /*
4
- * What follows is the result of much research on cross-browser styling.
5
- * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
6
- * Kroc Camen, and the H5BP dev community and team.
7
- */
8
-
9
- /* ==========================================================================
10
- Base styles: opinionated defaults
11
- ========================================================================== */
12
-
13
- html {
14
- color: #222;
15
- font-size: 1em;
16
- line-height: 1.4;
17
- }
18
-
19
- /*
20
- * Remove text-shadow in selection highlight: h5bp.com/i
21
- * These selection rule sets have to be separate.
22
- * Customize the background color to match your design.
23
- */
24
-
25
- ::-moz-selection {
26
- background: #b3d4fc;
27
- text-shadow: none;
28
- }
29
-
30
- ::selection {
31
- background: #b3d4fc;
32
- text-shadow: none;
33
- }
34
-
35
- /*
36
- * A better looking default horizontal rule
37
- */
38
-
39
- hr {
40
- display: block;
41
- height: 1px;
42
- border: 0;
43
- border-top: 1px solid #ccc;
44
- margin: 1em 0;
45
- padding: 0;
46
- }
47
-
48
- /*
49
- * Remove the gap between images, videos, audio and canvas and the bottom of
50
- * their containers: h5bp.com/i/440
51
- */
52
-
53
- audio,
54
- canvas,
55
- img,
56
- svg,
57
- video {
58
- vertical-align: middle;
59
- }
60
-
61
- /*
62
- * Remove default fieldset styles.
63
- */
64
-
65
- fieldset {
66
- border: 0;
67
- margin: 0;
68
- padding: 0;
69
- }
70
-
71
- /*
72
- * Allow only vertical resizing of textareas.
73
- */
74
-
75
- textarea {
76
- resize: vertical;
77
- }
78
-
79
- /* ==========================================================================
80
- Browser Upgrade Prompt
81
- ========================================================================== */
82
-
83
- .browserupgrade {
84
- margin: 0.2em 0;
85
- background: #ccc;
86
- color: #000;
87
- padding: 0.2em 0;
88
- }
89
-
90
- /* ==========================================================================
91
- Author's custom styles
92
- ========================================================================== */
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- /* ==========================================================================
111
- Helper classes
112
- ========================================================================== */
113
-
114
- /*
115
- * Hide visually and from screen readers: h5bp.com/u
116
- */
117
-
118
- .hidden {
119
- display: none !important;
120
- visibility: hidden;
121
- }
122
-
123
- /*
124
- * Hide only visually, but have it available for screen readers: h5bp.com/v
125
- */
126
-
127
- .visuallyhidden {
128
- border: 0;
129
- clip: rect(0 0 0 0);
130
- height: 1px;
131
- margin: -1px;
132
- overflow: hidden;
133
- padding: 0;
134
- position: absolute;
135
- width: 1px;
136
- }
137
-
138
- /*
139
- * Extends the .visuallyhidden class to allow the element to be focusable
140
- * when navigated to via the keyboard: h5bp.com/p
141
- */
142
-
143
- .visuallyhidden.focusable:active,
144
- .visuallyhidden.focusable:focus {
145
- clip: auto;
146
- height: auto;
147
- margin: 0;
148
- overflow: visible;
149
- position: static;
150
- width: auto;
151
- }
152
-
153
- /*
154
- * Hide visually and from screen readers, but maintain layout
155
- */
156
-
157
- .invisible {
158
- visibility: hidden;
159
- }
160
-
161
- /*
162
- * Clearfix: contain floats
163
- *
164
- * For modern browsers
165
- * 1. The space content is one way to avoid an Opera bug when the
166
- * `contenteditable` attribute is included anywhere else in the document.
167
- * Otherwise it causes space to appear at the top and bottom of elements
168
- * that receive the `clearfix` class.
169
- * 2. The use of `table` rather than `block` is only necessary if using
170
- * `:before` to contain the top-margins of child elements.
171
- */
172
-
173
- .clearfix:before,
174
- .clearfix:after {
175
- content: " "; /* 1 */
176
- display: table; /* 2 */
177
- }
178
-
179
- .clearfix:after {
180
- clear: both;
181
- }
182
-
183
- /* ==========================================================================
184
- EXAMPLE Media Queries for Responsive Design.
185
- These examples override the primary ('mobile first') styles.
186
- Modify as content requires.
187
- ========================================================================== */
188
-
189
- @media only screen and (min-width: 35em) {
190
- /* Style adjustments for viewports that meet the condition */
191
- }
192
-
193
- @media print,
194
- (-o-min-device-pixel-ratio: 5/4),
195
- (-webkit-min-device-pixel-ratio: 1.25),
196
- (min-resolution: 120dpi) {
197
- /* Style adjustments for high resolution devices */
198
- }
199
-
200
- /* ==========================================================================
201
- Print styles.
202
- Inlined to avoid the additional HTTP request: h5bp.com/r
203
- ========================================================================== */
204
-
205
- @media print {
206
- *,
207
- *:before,
208
- *:after {
209
- background: transparent !important;
210
- color: #000 !important; /* Black prints faster: h5bp.com/s */
211
- box-shadow: none !important;
212
- text-shadow: none !important;
213
- }
214
-
215
- a,
216
- a:visited {
217
- text-decoration: underline;
218
- }
219
-
220
- a[href]:after {
221
- content: " (" attr(href) ")";
222
- }
223
-
224
- abbr[title]:after {
225
- content: " (" attr(title) ")";
226
- }
227
-
228
- /*
229
- * Don't show links that are fragment identifiers,
230
- * or use the `javascript:` pseudo protocol
231
- */
232
-
233
- a[href^="#"]:after,
234
- a[href^="javascript:"]:after {
235
- content: "";
236
- }
237
-
238
- pre,
239
- blockquote {
240
- border: 1px solid #999;
241
- page-break-inside: avoid;
242
- }
243
-
244
- thead {
245
- display: table-header-group; /* h5bp.com/t */
246
- }
247
-
248
- tr,
249
- img {
250
- page-break-inside: avoid;
251
- }
252
-
253
- img {
254
- max-width: 100% !important;
255
- }
256
-
257
- p,
258
- h2,
259
- h3 {
260
- orphans: 3;
261
- widows: 3;
262
- }
263
-
264
- h2,
265
- h3 {
266
- page-break-after: avoid;
267
- }
268
- }
@@ -1,9 +0,0 @@
1
- /* mangled !important */
2
- .foo {
3
- display: none /**/ ! IMPORTANT /* */ ;
4
- }
5
-
6
- /* An+B */
7
- li:nth-child(even of li:not(.filtered)) {
8
- background-color: black;
9
- }