singularitygs 1.1.2 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -7
  2. data/lib/singularitygs.rb +14 -6
  3. data/stylesheets/_singularitygs.scss +21 -30
  4. data/stylesheets/singularitygs/_api.scss +103 -24
  5. data/stylesheets/singularitygs/_css-grid.scss +141 -0
  6. data/stylesheets/singularitygs/_helpers.scss +6 -2
  7. data/stylesheets/singularitygs/api/_calc.scss +218 -0
  8. data/stylesheets/singularitygs/api/_float.scss +87 -147
  9. data/stylesheets/singularitygs/api/_isolation.scss +98 -131
  10. data/stylesheets/singularitygs/grids/_add.scss +34 -16
  11. data/stylesheets/singularitygs/grids/_find.scss +6 -8
  12. data/stylesheets/singularitygs/gutter-styles/_add.scss +39 -16
  13. data/stylesheets/singularitygs/gutter-styles/_find.scss +10 -5
  14. data/stylesheets/singularitygs/gutter-styles/_helpers.scss +6 -10
  15. data/stylesheets/singularitygs/gutters/_add.scss +37 -14
  16. data/stylesheets/singularitygs/gutters/_find.scss +9 -5
  17. data/stylesheets/singularitygs/helpers/_background-grid.scss +196 -219
  18. data/stylesheets/singularitygs/helpers/_box-sizing.scss +17 -32
  19. data/stylesheets/singularitygs/helpers/_clearfix.scss +10 -95
  20. data/stylesheets/singularitygs/helpers/_columns.scss +4 -3
  21. data/stylesheets/singularitygs/helpers/_directions.scss +6 -0
  22. data/stylesheets/singularitygs/helpers/_find.scss +112 -65
  23. data/stylesheets/singularitygs/helpers/_layout.scss +107 -10
  24. data/stylesheets/singularitygs/helpers/_sass-lists.scss +1 -1
  25. data/stylesheets/singularitygs/helpers/_settings.scss +60 -0
  26. data/stylesheets/singularitygs/helpers/_sort.scss +56 -0
  27. data/stylesheets/singularitygs/helpers/_span-shared.scss +20 -2
  28. data/stylesheets/singularitygs/language/_parse-add.scss +53 -9
  29. data/stylesheets/singularitygs/language/_parse-list.scss +3 -3
  30. data/stylesheets/singularitygs/math/_columns.scss +9 -7
  31. data/stylesheets/singularitygs/math/_context.scss +1 -1
  32. data/stylesheets/singularitygs/math/_gutters.scss +2 -1
  33. metadata +52 -72
  34. data/templates/box-sizing/behaviors/box-sizing/boxsizing.htc +0 -399
  35. data/templates/box-sizing/behaviors/box-sizing/boxsizing.php +0 -23
  36. data/templates/box-sizing/manifest.rb +0 -4
  37. data/templates/demos/demo-float.scss +0 -159
  38. data/templates/demos/demo-isolation.scss +0 -132
  39. data/templates/demos/float.html.erb +0 -18
  40. data/templates/demos/isolation.html.erb +0 -18
  41. data/templates/demos/manifest.rb +0 -17
  42. data/templates/grid-toggle/grid.js +0 -16
  43. data/templates/grid-toggle/grid.min.js +0 -2
  44. data/templates/grid-toggle/manifest.rb +0 -22
  45. data/templates/project/grid.js +0 -16
  46. data/templates/project/grid.min.js +0 -2
  47. data/templates/project/manifest.rb +0 -23
  48. data/templates/project/partials/_base.scss +0 -4
  49. data/templates/project/style.scss +0 -15
metadata CHANGED
@@ -1,67 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: singularitygs
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.8.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Scott Kellum
8
8
  - Sam Richard
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2013-08-01 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2017-04-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: sass
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 3.2.1
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: '3.3'
23
21
  type: :runtime
24
- version_requirements: *id001
25
- - !ruby/object:Gem::Dependency
26
- name: compass
27
22
  prerelease: false
28
- requirement: &id002 !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.12.2
33
- type: :runtime
34
- version_requirements: *id002
35
- - !ruby/object:Gem::Dependency
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: '3.3'
28
+ - !ruby/object:Gem::Dependency
36
29
  name: breakpoint
37
- prerelease: false
38
- requirement: &id003 !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 2.0.1
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: '2.4'
43
35
  type: :runtime
44
- version_requirements: *id003
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: '2.4'
45
42
  description: Advanced responsive grid system for Sass and Compass
46
- email:
43
+ email:
47
44
  - scott@scottkellum.com
48
45
  - snugug@gmail.com
49
46
  executables: []
50
-
51
47
  extensions: []
52
-
53
48
  extra_rdoc_files: []
54
-
55
- files:
49
+ files:
56
50
  - lib/singularitygs.rb
57
51
  - stylesheets/_singularitygs.scss
58
52
  - stylesheets/singularitygs/_api.scss
53
+ - stylesheets/singularitygs/_css-grid.scss
59
54
  - stylesheets/singularitygs/_grids.scss
60
55
  - stylesheets/singularitygs/_gutter-styles.scss
61
56
  - stylesheets/singularitygs/_gutters.scss
62
57
  - stylesheets/singularitygs/_helpers.scss
63
58
  - stylesheets/singularitygs/_language.scss
64
59
  - stylesheets/singularitygs/_math.scss
60
+ - stylesheets/singularitygs/api/_calc.scss
65
61
  - stylesheets/singularitygs/api/_float.scss
66
62
  - stylesheets/singularitygs/api/_isolation.scss
67
63
  - stylesheets/singularitygs/grids/_add.scss
@@ -79,6 +75,8 @@ files:
79
75
  - stylesheets/singularitygs/helpers/_find.scss
80
76
  - stylesheets/singularitygs/helpers/_layout.scss
81
77
  - stylesheets/singularitygs/helpers/_sass-lists.scss
78
+ - stylesheets/singularitygs/helpers/_settings.scss
79
+ - stylesheets/singularitygs/helpers/_sort.scss
82
80
  - stylesheets/singularitygs/helpers/_span-shared.scss
83
81
  - stylesheets/singularitygs/language/_parse-add.scss
84
82
  - stylesheets/singularitygs/language/_parse-list.scss
@@ -87,49 +85,31 @@ files:
87
85
  - stylesheets/singularitygs/math/_context.scss
88
86
  - stylesheets/singularitygs/math/_grid.scss
89
87
  - stylesheets/singularitygs/math/_gutters.scss
90
- - templates/box-sizing/behaviors/box-sizing/boxsizing.htc
91
- - templates/box-sizing/behaviors/box-sizing/boxsizing.php
92
- - templates/box-sizing/manifest.rb
93
- - templates/demos/demo-float.scss
94
- - templates/demos/demo-isolation.scss
95
- - templates/demos/float.html.erb
96
- - templates/demos/isolation.html.erb
97
- - templates/demos/manifest.rb
98
- - templates/grid-toggle/grid.js
99
- - templates/grid-toggle/grid.min.js
100
- - templates/grid-toggle/manifest.rb
101
- - templates/project/grid.js
102
- - templates/project/grid.min.js
103
- - templates/project/manifest.rb
104
- - templates/project/partials/_base.scss
105
- - templates/project/style.scss
106
88
  homepage: http://singularity.gs
107
- licenses:
89
+ licenses:
108
90
  - MIT
109
- - GPL
110
91
  metadata: {}
111
-
112
92
  post_install_message:
113
93
  rdoc_options: []
114
-
115
- require_paths:
94
+ require_paths:
116
95
  - lib
117
- required_ruby_version: !ruby/object:Gem::Requirement
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: "0"
122
- required_rubygems_version: !ruby/object:Gem::Requirement
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- version: "1.2"
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '1.2'
127
106
  requirements: []
128
-
129
107
  rubyforge_project: singularitygs
130
- rubygems_version: 2.0.3
108
+ rubygems_version: 2.0.14.1
131
109
  signing_key:
132
110
  specification_version: 4
133
- summary: Singularity is a fluid grid system that can generate uniform columns as well as asymmetric and compound grids. It is designed to be extensable, adding additional outputs or grid generators are easy, and the core syntax is simple to build upon for custom input syntaxes.
111
+ summary: Singularity is a fluid grid system that can generate uniform columns as well
112
+ as asymmetric and compound grids. It is designed to be extensible, adding additional
113
+ outputs or grid generators are easy, and the core syntax is simple to build upon
114
+ for custom input syntaxes.
134
115
  test_files: []
135
-
@@ -1,399 +0,0 @@
1
- /**
2
- * box-sizing Polyfill
3
- *
4
- * A polyfill for box-sizing: border-box for IE6 & IE7.
5
- *
6
- * JScript
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU Lesser General Public License as published
10
- * by the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU Lesser General Public License for more details.
17
- *
18
- * See <http://www.gnu.org/licenses/lgpl-3.0.txt>
19
- *
20
- * @category JScript
21
- * @package box-sizing-polyfill
22
- * @author Christian Schepp Schaefer <schaepp@gmx.de> <http://twitter.com/derSchepp>
23
- * @copyright 2012 Christian Schepp Schaefer
24
- * @license http://www.gnu.org/copyleft/lesser.html The GNU LESSER GENERAL PUBLIC LICENSE, Version 3.0
25
- * @link http://github.com/Schepp/box-sizing-polyfill
26
- *
27
- * PREFACE:
28
- *
29
- * This box-sizing polyfill is based on previous work done by Erik Arvidsson,
30
- * which he published in 2002 on http://webfx.eae.net/dhtml/boxsizing/boxsizing.html.
31
- *
32
- * USAGE:
33
- *
34
- * Add the behavior/HTC after every `box-sizing: border-box;` that you assign:
35
- *
36
- * box-sizing: border-box;
37
- * *behavior: url(/scripts/boxsizing.htc);`
38
- *
39
- * Prefix the `behavior` property with a star, like seen above, so it will only be seen by
40
- * IE6 & IE7, not by IE8+ who already implement box-sizing.
41
- *
42
- * The URL to the HTC file must be relative to your HTML(!) document, not relative to your CSS.
43
- * That's why I'd advise you to use absolute paths like in the example.
44
- *
45
- */
46
- <component lightWeight="true">
47
- <attach event="onpropertychange" onevent="checkPropertyChange()" />
48
- <attach event="ondetach" onevent="restore()" />
49
- <attach event="onresize" for="window" onevent="update()" />
50
- <script type="text/javascript">
51
- //<![CDATA[
52
-
53
- var viewportwidth = (typeof window.innerWidth != 'undefined' ? window.innerWidth : element.document.documentElement.clientWidth);
54
-
55
- // Shortcut for the document object
56
- var doc = element.document;
57
-
58
- // Buffer for multiple resize events
59
- var resizetimeout = null;
60
-
61
- // Don't apply box-sizing to certain elements
62
- var apply = false;
63
- switch(element.nodeName){
64
- case '#comment':
65
- case 'HTML':
66
- case 'HEAD':
67
- case 'TITLE':
68
- case 'SCRIPT':
69
- case 'STYLE':
70
- case 'LINK':
71
- case 'META':
72
- break;
73
-
74
- default:
75
- apply = true;
76
- break;
77
- }
78
-
79
- /*
80
- * update gets called during resize events, then waits until there are no further resize events, and finally triggers a recalculation
81
- */
82
- function update(){
83
- if(resizetimeout !== null){
84
- window.clearTimeout(resizetimeout);
85
- }
86
- resizetimeout = window.setTimeout(function(){
87
- restore();
88
- init();
89
- resizetimeout = null;
90
- },100);
91
- }
92
-
93
- /*
94
- * restore gets called when the behavior is being detached (see event binding at the top),
95
- * resets everything like it was before applying the behavior
96
- */
97
- function restore(){
98
- if(apply){
99
- element.runtimeStyle.removeAttribute("width");
100
- element.runtimeStyle.removeAttribute("height");
101
- }
102
- }
103
-
104
- /*
105
- * init gets called once at the start and then never again,
106
- * triggers box-sizing calculations and updates width and height
107
- */
108
- function init(){
109
- if(apply){
110
- updateBorderBoxWidth();
111
- updateBorderBoxHeight();
112
- }
113
- }
114
-
115
- /*
116
- * checkPropertyChange gets called as soon as an element property changes
117
- * (see event binding at the top), it then checks if any property influencing its
118
- * dimensions was changed and if yes recalculates width and height
119
- */
120
- function checkPropertyChange(){
121
- if(apply){
122
- var pn = event.propertyName;
123
- if(pn === "style.boxSizing" && element.style.boxSizing === ""){
124
- element.style.removeAttribute("boxSizing");
125
- element.runtimeStyle.removeAttribute("boxSizing");
126
- element.runtimeStyle.removeAttribute("width");
127
- element.runtimeStyle.removeAttribute("height");
128
- }
129
- switch (pn){
130
- case "style.width":
131
- case "style.borderLeftWidth":
132
- case "style.borderLeftStyle":
133
- case "style.borderRightWidth":
134
- case "style.borderRightStyle":
135
- case "style.paddingLeft":
136
- case "style.paddingRight":
137
- updateBorderBoxWidth();
138
- break;
139
-
140
- case "style.height":
141
- case "style.borderTopWidth":
142
- case "style.borderTopStyle":
143
- case "style.borderBottomWidth":
144
- case "style.borderBottomStyle":
145
- case "style.paddingTop":
146
- case "style.paddingBottom":
147
- updateBorderBoxHeight();
148
- break;
149
-
150
- case "className":
151
- case "style.boxSizing":
152
- updateBorderBoxWidth();
153
- updateBorderBoxHeight();
154
- break;
155
- }
156
- }
157
- }
158
-
159
- /*
160
- * Helper function, taken from Dean Edward's IE7 framework,
161
- * added by Schepp on 12.06.2010.
162
- * http://code.google.com/p/ie7-js/
163
- *
164
- * Allows us to convert from relative to pixel-values.
165
- */
166
- function getPixelValue(value){
167
- var PIXEL = /^\d+(px)?$/i;
168
- if (PIXEL.test(value)) return parseInt(value);
169
- var style = element.style.left;
170
- var runtimeStyle = element.runtimeStyle.left;
171
- element.runtimeStyle.left = element.currentStyle.left;
172
- element.style.left = value || 0;
173
- value = parseInt(element.style.pixelLeft);
174
- element.style.left = style;
175
- element.runtimeStyle.left = runtimeStyle;
176
-
177
- return value;
178
- }
179
-
180
- function getPixelWidth(object, value){
181
- // For Pixel Values
182
- var PIXEL = /^\d+(px)?$/i;
183
- if (PIXEL.test(value)) return parseInt(value);
184
-
185
- // For Percentage Values
186
- var PERCENT = /^[\d\.]+%$/i;
187
- if (PERCENT.test(value)){
188
- try{
189
- parentWidth = getPixelWidth(object.parentElement,(object.parentElement.currentStyle.width != "auto" ? object.parentElement.currentStyle.width : "100%"));
190
- value = (parseFloat(value) / 100) * parentWidth;
191
- }
192
- catch(e){
193
- value = (parseFloat(value) / 100) * element.document.documentElement.clientWidth;
194
- }
195
- return parseInt(value);
196
- }
197
-
198
- // For EM Values
199
- var style = object.style.left;
200
- var runtimeStyle = object.runtimeStyle.left;
201
- object.runtimeStyle.left = object.currentStyle.left;
202
- object.style.left = value || 0;
203
- value = parseInt(object.style.pixelLeft);
204
- object.style.left = style;
205
- object.runtimeStyle.left = runtimeStyle;
206
-
207
- return value;
208
- }
209
-
210
- function getPixelHeight(object, value){
211
- // For Pixel Values
212
- var PIXEL = /^\d+(px)?$/i;
213
- if (PIXEL.test(value)) return parseInt(value);
214
-
215
- // For Percentage Values
216
- var PERCENT = /^[\d\.]+%$/i;
217
- if (PERCENT.test(value)){
218
- try{
219
- if(object.parentElement.currentStyle.height != "auto"){
220
- switch(object.parentElement.nodeName){
221
- default:
222
- parentHeight = getPixelHeight(object.parentElement,object.parentElement.currentStyle.height);
223
- if(parentHeight !== "auto"){
224
- value = (parseFloat(value) / 100) * parentHeight;
225
- }
226
- else {
227
- value = "auto";
228
- }
229
- break;
230
-
231
- case 'HTML':
232
- parentHeight = element.document.documentElement.clientHeight;
233
- if(parentHeight !== "auto"){
234
- value = (parseFloat(value) / 100) * parentHeight;
235
- }
236
- else {
237
- value = "auto";
238
- }
239
- break;
240
- }
241
- if(value !== "auto") value = parseInt(value);
242
- }
243
- else {
244
- value = "auto";
245
- }
246
- }
247
- catch(e){
248
- value = "auto";
249
- }
250
- return value;
251
- }
252
-
253
- // For EM Values
254
- var style = object.style.left;
255
- var runtimeStyle = object.runtimeStyle.left;
256
- object.runtimeStyle.left = object.currentStyle.left;
257
- object.style.left = value || 0;
258
- value = parseInt(object.style.pixelLeft);
259
- object.style.left = style;
260
- object.runtimeStyle.left = runtimeStyle;
261
-
262
- return value;
263
- }
264
-
265
-
266
- /*
267
- * getBorderWidth & friends
268
- * Border width getters
269
- */
270
- function getBorderWidth(sSide){
271
- if(element.currentStyle["border" + sSide + "Style"] == "none"){
272
- return 0;
273
- }
274
- var n = getPixelValue(element.currentStyle["border" + sSide + "Width"]);
275
- return n || 0;
276
- }
277
- function getBorderLeftWidth() { return getBorderWidth("Left"); }
278
- function getBorderRightWidth() { return getBorderWidth("Right"); }
279
- function getBorderTopWidth() { return getBorderWidth("Top"); }
280
- function getBorderBottomWidth() { return getBorderWidth("Bottom"); }
281
-
282
-
283
- /*
284
- * getPadding & friends
285
- * Padding width getters
286
- */
287
- function getPadding(sSide) {
288
- var n = getPixelValue(element.currentStyle["padding" + sSide]);
289
- return n || 0;
290
- }
291
- function getPaddingLeft() { return getPadding("Left"); }
292
- function getPaddingRight() { return getPadding("Right"); }
293
- function getPaddingTop() { return getPadding("Top"); }
294
- function getPaddingBottom() { return getPadding("Bottom"); }
295
-
296
-
297
-
298
- /*
299
- * getBoxSizing
300
- * Get the box-sizing value for the current element
301
- */
302
- function getBoxSizing(){
303
- var s = element.style;
304
- var cs = element.currentStyle
305
- if(typeof s.boxSizing != "undefined" && s.boxSizing != ""){
306
- return s.boxSizing;
307
- }
308
- if(typeof s["box-sizing"] != "undefined" && s["box-sizing"] != ""){
309
- return s["box-sizing"];
310
- }
311
- if(typeof cs.boxSizing != "undefined" && cs.boxSizing != ""){
312
- return cs.boxSizing;
313
- }
314
- if(typeof cs["box-sizing"] != "undefined" && cs["box-sizing"] != ""){
315
- return cs["box-sizing"];
316
- }
317
- return getDocumentBoxSizing();
318
- }
319
-
320
-
321
- /*
322
- * getDocumentBoxSizing
323
- * Get the default document box sizing (check for quirks mode)
324
- */
325
- function getDocumentBoxSizing(){
326
- if(doc.compatMode === null || doc.compatMode === "BackCompat"){
327
- return "border-box";
328
- }
329
- return "content-box"
330
- }
331
-
332
-
333
- /*
334
- * setBorderBoxWidth & friends
335
- * Width and height setters
336
- */
337
- function setBorderBoxWidth(n){
338
- element.runtimeStyle.width = Math.max(0, n - getBorderLeftWidth() -
339
- getPaddingLeft() - getPaddingRight() - getBorderRightWidth()) + "px";
340
- }
341
- function setBorderBoxHeight(n){
342
- element.runtimeStyle.height = Math.max(0, n - getBorderTopWidth() -
343
- getPaddingTop() - getPaddingBottom() - getBorderBottomWidth()) + "px";
344
- }
345
- function setContentBoxWidth(n){
346
- element.runtimeStyle.width = Math.max(0, n + getBorderLeftWidth() +
347
- getPaddingLeft() + getPaddingRight() + getBorderRightWidth()) + "px";
348
- }
349
- function setContentBoxHeight(n){
350
- element.runtimeStyle.height = Math.max(0, n + getBorderTopWidth() +
351
- getPaddingTop() + getPaddingBottom() + getBorderBottomWidth()) + "px";
352
- }
353
-
354
-
355
- /*
356
- * updateBorderBoxWidth & updateBorderBoxHeight
357
- *
358
- */
359
- function updateBorderBoxWidth() {
360
- if(getDocumentBoxSizing() == getBoxSizing()){
361
- return;
362
- }
363
- var csw = element.currentStyle.width;
364
- if(csw != "auto"){
365
- csw = getPixelWidth(element,csw);
366
- if(getBoxSizing() == "border-box"){
367
- setBorderBoxWidth(parseInt(csw));
368
- }
369
- else{
370
- setContentBoxWidth(parseInt(csw));
371
- }
372
- }
373
- }
374
-
375
- function updateBorderBoxHeight() {
376
- if(getDocumentBoxSizing() == getBoxSizing()){
377
- return;
378
- }
379
- var csh = element.currentStyle.height;
380
- if(csh != "auto"){
381
- csh = getPixelHeight(element,csh);
382
- if(csh !== "auto"){
383
- if(getBoxSizing() == "border-box"){
384
- setBorderBoxHeight(parseInt(csh));
385
- }
386
- else{
387
- setContentBoxHeight(parseInt(csh));
388
- }
389
- }
390
- }
391
- }
392
-
393
-
394
- // Run the calculations
395
- init();
396
-
397
- //]]>
398
- </script>
399
- </component>
@@ -1,23 +0,0 @@
1
- <?php
2
- /*
3
- This file is a wrapper, for use in PHP environments, which serves boxsizing.htc using the
4
- correct content-type, so that IE will recognize it as a behavior. Simply specify the
5
- behavior property to fetch this .php file instead of the .htc directly:
6
-
7
- //
8
- // Reset box sizing
9
- //
10
- * {
11
- margin: 0;
12
- @include box-sizing(border-box);
13
- *behavior: url(/sites/all/libraries/boxsizing/boxsizing.php);
14
- }
15
-
16
- This is only necessary when the web server is not configured to serve .htc files with
17
- the text/x-component content-type, and cannot easily be configured to do so (as is the
18
- case with some shared hosting providers).
19
- */
20
-
21
- header( 'Content-type: text/x-component' );
22
- include( 'boxsizing.htc' );
23
- ?>
@@ -1,4 +0,0 @@
1
- description "Box Sizing Polyfill Install"
2
-
3
- file 'behaviors/box-sizing/boxsizing.htc'
4
- file 'behaviors/box-sizing/boxsizing.php'