trio 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +2 -0
- data/Gemfile +3 -0
- data/README.md +49 -0
- data/bin/trio +8 -0
- data/lib/trio/cli.rb +127 -0
- data/lib/trio/framework/_images/icons/compass-icon.png +0 -0
- data/lib/trio/framework/_sass/fonts/_fonts.scss +0 -0
- data/lib/trio/framework/_sass/global/_global.scss +16 -0
- data/lib/trio/framework/_sass/global/_variables.scss +111 -0
- data/lib/trio/framework/_sass/ie.scss +39 -0
- data/lib/trio/framework/_sass/modules/.gitkeep +0 -0
- data/lib/trio/framework/_sass/pages/_home.scss +2 -0
- data/lib/trio/framework/_sass/partials/_sidebar.scss +0 -0
- data/lib/trio/framework/_sass/print.scss +3 -0
- data/lib/trio/framework/_sass/screen.scss +50 -0
- data/lib/trio/framework/_sass/trio/PIE.htc +96 -0
- data/lib/trio/framework/_sass/trio/PIE.php +19 -0
- data/lib/trio/framework/_sass/trio/_trio.scss +555 -0
- data/lib/trio/framework/_sass/trio/_typography.scss +156 -0
- data/lib/trio/framework/_sass/trio/_variables.scss +111 -0
- data/lib/trio/framework/_sass/trio/boxsizing.htc +399 -0
- data/lib/trio/framework/_sass/vendors/_flexslider.scss +118 -0
- data/lib/trio/framework/_scripts/browser/modernizr.custom.85380.js +4 -0
- data/lib/trio/framework/_scripts/browser/respond.min.js +6 -0
- data/lib/trio/framework/_scripts/browser/script-ie.js +2 -0
- data/lib/trio/framework/_scripts/modules/.gitkeep +0 -0
- data/lib/trio/framework/_scripts/pages/.gitkeep +0 -0
- data/lib/trio/framework/_scripts/pages/home.js +4 -0
- data/lib/trio/framework/_scripts/script.js +6 -0
- data/lib/trio/framework/_scripts/vendors/.gitkeep +0 -0
- data/lib/trio/helpers.rb +29 -0
- data/lib/trio/project/bower.json +27 -0
- data/lib/trio/project/gulpfile.js +62 -0
- data/lib/trio/project/package.json +39 -0
- data/lib/trio/version.rb +3 -0
- data/trio.gemspec +55 -0
- metadata +138 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
/*
|
2
|
+
-------------------------------------------------------------------------------
|
3
|
+
Default Variables
|
4
|
+
-------------------------------------------------------------------------------
|
5
|
+
*/
|
6
|
+
|
7
|
+
$grid_columns : 12 !default;
|
8
|
+
$grid_gutters : 2.5% !default;
|
9
|
+
$grid_breakpoint : 620 !default;
|
10
|
+
|
11
|
+
$color-body : #777777 !default;
|
12
|
+
$color-h1 : $color-body !default;
|
13
|
+
$color-h2 : $color-h1 !default;
|
14
|
+
$color-h3 : $color-h1 !default;
|
15
|
+
$color-h4 : $color-h1 !default;
|
16
|
+
$color-h5 : $color-h1 !default;
|
17
|
+
$color-h6 : $color-h1 !default;
|
18
|
+
$color-p : $color-body !default;
|
19
|
+
$color-a : #fc880f !default;
|
20
|
+
$color-a-hover : #f9c3d0 !default;
|
21
|
+
$color-font-awesome : #cccccc !default;
|
22
|
+
$color-selection : #ffffff !default;
|
23
|
+
$color-selection-backgound : #1fa6e9 !default;
|
24
|
+
$color-inputs : $color-body !default;
|
25
|
+
|
26
|
+
$font-body : 'Open sans', Arial, sans-serif !default;
|
27
|
+
$font-h1 : $font-body !default;
|
28
|
+
$font-h2 : $font-h1 !default;
|
29
|
+
$font-h3 : $font-h1 !default;
|
30
|
+
$font-h4 : $font-h1 !default;
|
31
|
+
$font-h5 : $font-h1 !default;
|
32
|
+
$font-h6 : $font-h1 !default;
|
33
|
+
$font-a : $font-body !default;
|
34
|
+
|
35
|
+
$font-awesome-class : 'fa' !default;
|
36
|
+
|
37
|
+
$font-size-html : 62.5% !default;
|
38
|
+
$font-size-h1 : 32 !default;
|
39
|
+
$font-size-h2 : 24 !default;
|
40
|
+
$font-size-h3 : 18 !default;
|
41
|
+
$font-size-h4 : 16 !default;
|
42
|
+
$font-size-h5 : 12 !default;
|
43
|
+
$font-size-h6 : 10 !default;
|
44
|
+
$font-size-p : 16 !default;
|
45
|
+
$font-size-a : 16 !default;
|
46
|
+
$font-size-blockquote : 16 !default;
|
47
|
+
|
48
|
+
$font-weight-normal : 400 !default;
|
49
|
+
$font-weight-bold : 700 !default;
|
50
|
+
$font-weight-h1 : $font-weight-bold !default;
|
51
|
+
$font-weight-h2 : $font-weight-h1 !default;
|
52
|
+
$font-weight-h3 : $font-weight-h1 !default;
|
53
|
+
$font-weight-h4 : $font-weight-h1 !default;
|
54
|
+
$font-weight-h5 : $font-weight-h1 !default;
|
55
|
+
$font-weight-h6 : $font-weight-h1 !default;
|
56
|
+
$font-weight-p : normal !default;
|
57
|
+
|
58
|
+
$line-height-html : 1 !default;
|
59
|
+
$line-height-h1 : 1.5 !default;
|
60
|
+
$line-height-h2 : $line-height-h1 !default;
|
61
|
+
$line-height-h3 : $line-height-h1 !default;
|
62
|
+
$line-height-h4 : $line-height-h1 !default;
|
63
|
+
$line-height-h5 : $line-height-h1 !default;
|
64
|
+
$line-height-h6 : $line-height-h1 !default;
|
65
|
+
$line-height-p : $line-height-h1 !default;
|
66
|
+
|
67
|
+
$list-style-ul : disc !default;
|
68
|
+
$list-style-ol : decimal !default;
|
69
|
+
$list-style-ol-ol : lower-alpha !default;
|
70
|
+
$list-style-nav-ul : none !default;
|
71
|
+
|
72
|
+
$line-height-body : 150% !default;
|
73
|
+
|
74
|
+
$margin-bottom-h1 : 30px !default;
|
75
|
+
$margin-bottom-h2 : 25px !default;
|
76
|
+
$margin-bottom-h3 : 20px !default;
|
77
|
+
$margin-bottom-h4 : 15px !default;
|
78
|
+
$margin-bottom-h5 : 15px !default;
|
79
|
+
$margin-bottom-h6 : 15px !default;
|
80
|
+
$margin-bottom-p : 20px !default;
|
81
|
+
$margin-bottom-blockquote : 20px !default;
|
82
|
+
$margin-ul : 0 0 20px 1.1em !default;
|
83
|
+
$margin-ol : 0 0 20px 2em !default;
|
84
|
+
$margin-ol-li : .5em 0 !default;
|
85
|
+
$margin-ul-nav : 0 !default;
|
86
|
+
|
87
|
+
$text-align-h1 : left !default;
|
88
|
+
$text-align-h2 : $text-align-h1 !default;
|
89
|
+
$text-align-h3 : $text-align-h1 !default;
|
90
|
+
$text-align-h4 : $text-align-h1 !default;
|
91
|
+
$text-align-h5 : $text-align-h1 !default;
|
92
|
+
$text-align-h6 : $text-align-h1 !default;
|
93
|
+
$text-align-p : $text-align-h1 !default;
|
94
|
+
|
95
|
+
$text-transform-h1 : uppercase !default;
|
96
|
+
$text-transform-h2 : $text-transform-h1 !default;
|
97
|
+
$text-transform-h3 : $text-transform-h1 !default;
|
98
|
+
$text-transform-h4 : $text-transform-h1 !default;
|
99
|
+
$text-transform-h5 : $text-transform-h1 !default;
|
100
|
+
$text-transform-h6 : $text-transform-h1 !default;
|
101
|
+
$text-transform-p : none !default;
|
102
|
+
|
103
|
+
$text-decoration-a : none !default;
|
104
|
+
$text-decoration-nav-a : none !default;
|
105
|
+
|
106
|
+
$speed : 250ms !default;
|
107
|
+
|
108
|
+
$width-region : 1024 !default;
|
109
|
+
$width-mobile : 420 !default;
|
110
|
+
$width-tablet : 768 !default;
|
111
|
+
$width-desktop : 1000 !default;
|
@@ -0,0 +1,399 @@
|
|
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>
|
@@ -0,0 +1,118 @@
|
|
1
|
+
/* -------------------------------------------------
|
2
|
+
** FLEXSLIDER CLEANUP
|
3
|
+
** ---------------------------------------------- */
|
4
|
+
.flexslider, .flexslider * { box-sizing: content-box; }
|
5
|
+
|
6
|
+
.flexslider {
|
7
|
+
position: relative;
|
8
|
+
margin: 0;
|
9
|
+
background: #fcd6c8;
|
10
|
+
border: none;
|
11
|
+
-webkit-border-radius: none;
|
12
|
+
-moz-border-radius: none;
|
13
|
+
-o-border-radius: none;
|
14
|
+
border-radius: none;
|
15
|
+
box-shadow: none;
|
16
|
+
-webkit-box-shadow: none;
|
17
|
+
-moz-box-shadow: none;
|
18
|
+
-o-box-shadow: none;
|
19
|
+
z-index: 0;
|
20
|
+
// padding-bottom: 6%;
|
21
|
+
}
|
22
|
+
/* Direction Nav */
|
23
|
+
.flex-direction-nav {
|
24
|
+
position: absolute;
|
25
|
+
top: 0;
|
26
|
+
*height: 0;
|
27
|
+
height: 100%;
|
28
|
+
width: 100%;
|
29
|
+
}
|
30
|
+
.flex-direction-nav .flex-next,
|
31
|
+
.flex-direction-nav .flex-prev {
|
32
|
+
top: 50%;
|
33
|
+
margin-top: -66px;
|
34
|
+
opacity: .7;
|
35
|
+
text-align: left;
|
36
|
+
// @include border-radius(5px);
|
37
|
+
}
|
38
|
+
.flex-direction-nav .flex-next {
|
39
|
+
opacity: .9;
|
40
|
+
right: 0;
|
41
|
+
// background: url(../img/rotator/flex-next.png) no-repeat 0 0;
|
42
|
+
}
|
43
|
+
.flex-direction-nav .flex-prev {
|
44
|
+
opacity: .9;
|
45
|
+
left: 0;
|
46
|
+
// background: url(../img/rotator/flex-prev.png) no-repeat 0 0;
|
47
|
+
}
|
48
|
+
.flexslider.carousel .flex-direction-nav .flex-next {
|
49
|
+
top: 0;
|
50
|
+
right: 0;
|
51
|
+
width: 24px;
|
52
|
+
margin: auto;
|
53
|
+
// background: url(../img/rotator/carousel-flex-next-mobile.png) no-repeat 0 0;
|
54
|
+
// @include breakpoint(tablet) {
|
55
|
+
// width: 26px;
|
56
|
+
// background: url(../img/rotator/carousel-flex-next-tablet.png) no-repeat 0 0;
|
57
|
+
// }
|
58
|
+
// @include breakpoint(desktop) {
|
59
|
+
// width: 26px;
|
60
|
+
// background: url(../img/rotator/carousel-flex-next.png) no-repeat 0 0;
|
61
|
+
// }
|
62
|
+
}
|
63
|
+
|
64
|
+
.flexslider.carousel .flex-direction-nav .flex-prev {
|
65
|
+
top: 0;
|
66
|
+
width: 24px;
|
67
|
+
margin: auto;
|
68
|
+
// background: url(../img/rotator/carousel-flex-prev-mobile.png) no-repeat 0 0;
|
69
|
+
// @include breakpoint(tablet) {
|
70
|
+
// width: 26px;
|
71
|
+
// background: url(../img/rotator/carousel-flex-prev-tablet.png) no-repeat 0 0;
|
72
|
+
// }
|
73
|
+
// @include breakpoint(desktop) {
|
74
|
+
// width: 26px;
|
75
|
+
// background: url(../img/rotator/carousel-flex-prev.png) no-repeat 0 0;
|
76
|
+
// }
|
77
|
+
}
|
78
|
+
|
79
|
+
.flexslider:hover .flex-next {opacity: 1; right: 0;}
|
80
|
+
.flexslider:hover .flex-prev {opacity: 1; left: 0;}
|
81
|
+
|
82
|
+
.flexslider:hover .flex-next:hover,
|
83
|
+
.flexslider:hover .flex-prev:hover {opacity: 1;}
|
84
|
+
.flex-direction-nav .flex-disabled { opacity: .3!important;
|
85
|
+
filter:alpha(opacity=30);
|
86
|
+
cursor: default;
|
87
|
+
}
|
88
|
+
.flexslider.carousel li img { width: auto; }
|
89
|
+
ol.flex-control-paging {
|
90
|
+
bottom: -2px;
|
91
|
+
height: 13px;
|
92
|
+
text-align: right;
|
93
|
+
li {
|
94
|
+
margin: 0 0 0 1%;
|
95
|
+
a {
|
96
|
+
border-radius: 0;
|
97
|
+
text-indent: 99999px;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
.carousel ol.flex-control-paging { display: none;}
|
102
|
+
.carousel {padding-bottom: 10px;}
|
103
|
+
.carousel ul {
|
104
|
+
margin-left: 30px;
|
105
|
+
}
|
106
|
+
.flex-direction-nav li a {
|
107
|
+
top: 5px;
|
108
|
+
width: 26px;
|
109
|
+
height: 104px;
|
110
|
+
margin: -5px 0 0 0;
|
111
|
+
display: block;
|
112
|
+
position: absolute;
|
113
|
+
cursor: pointer;
|
114
|
+
text-indent: -9999px;
|
115
|
+
opacity: 1;
|
116
|
+
-webkit-transition: all .3s ease;
|
117
|
+
z-index: 10;
|
118
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/* Modernizr 2.6.3 (Custom Build) | MIT & BSD
|
2
|
+
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexboxlegacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
|
3
|
+
*/
|
4
|
+
;window.Modernizr=function(a,b,c){function C(a){j.cssText=a}function D(a,b){return C(n.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a){var e=a[d];if(!F(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}return!1}function I(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),H(e,b,c))}function J(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty,B;!E(A,"undefined")&&!E(A.call,"undefined")?B=function(a,b){return A.call(a,b)}:B=function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return I("flexWrap")},s.flexboxlegacy=function(){return I("boxDirection")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!I("indexedDB",a)},s.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")},s.hsla=function(){return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")},s.multiplebgs=function(){return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return I("backgroundSize")},s.borderimage=function(){return I("borderImage")},s.borderradius=function(){return I("borderRadius")},s.boxshadow=function(){return I("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return D("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return I("animationName")},s.csscolumns=function(){return I("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return C((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),F(j.backgroundImage,"gradient")},s.cssreflections=function(){return I("boxReflect")},s.csstransforms=function(){return!!I("transform")},s.csstransforms3d=function(){var a=!!I("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return I("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var K in s)B(s,K)&&(x=K.toLowerCase(),e[x]=s[K](),v.push((e[x]?"":"no-")+x));return e.input||J(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)B(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},C(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.hasEvent=z,e.testProp=function(a){return G([a])},e.testAllProps=I,e.testStyles=y,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
|
2
|
+
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
|
3
|
+
window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='­<style media="'+h+'"> #mq-test-1 { width: 42px; }</style>';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);
|
4
|
+
|
5
|
+
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
|
6
|
+
(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);o[z]=true}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C})}}}}u()},u=function(){if(d.length){var x=d.shift();n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;u()})}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3")},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/"}if(A){J=1}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I))}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&y(RegExp.$2))}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);r=setTimeout(j,h);return}else{l=z}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
|
File without changes
|
File without changes
|