prefixfree-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +30 -0
- data/Rakefile +2 -0
- data/lib/prefixfree/rails.rb +8 -0
- data/lib/prefixfree/rails/version.rb +5 -0
- data/prefixfree-rails.gemspec +23 -0
- data/vendor/assets/images/prefixfree-rails/Arvo-Bold.ttf +0 -0
- data/vendor/assets/images/prefixfree-rails/Arvo-Regular.ttf +0 -0
- data/vendor/assets/images/prefixfree-rails/favicon.png +0 -0
- data/vendor/assets/images/prefixfree-rails/logo.png +0 -0
- data/vendor/assets/images/prefixfree-rails/logo.svg +72 -0
- data/vendor/assets/images/prefixfree-rails/noise.png +0 -0
- data/vendor/assets/images/prefixfree-rails/raisedfist.png +0 -0
- data/vendor/assets/javascripts/prefixfree-rails/prefixfree.js +494 -0
- data/vendor/assets/javascripts/prefixfree-rails/prefixfree.min.js +5 -0
- data/vendor/assets/stylesheets/prefixfree-rails/print.css +11 -0
- data/vendor/assets/stylesheets/prefixfree-rails/style.css.erb +359 -0
- data/vendor/assets/stylesheets/prefixfree-rails/style.css.erb~ +359 -0
- metadata +93 -0
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* StyleFix 1.0.3 & PrefixFree 1.0.7
|
3
|
+
* @author Lea Verou
|
4
|
+
* MIT license
|
5
|
+
*/(function(){function t(e,t){return[].slice.call((t||document).querySelectorAll(e))}if(!window.addEventListener)return;var e=window.StyleFix={link:function(t){try{if(t.rel!=="stylesheet"||t.hasAttribute("data-noprefix"))return}catch(n){return}var r=t.href||t.getAttribute("data-href"),i=r.replace(/[^\/]+$/,""),s=(/^[a-z]{3,10}:/.exec(i)||[""])[0],o=(/^[a-z]{3,10}:\/\/[^\/]+/.exec(i)||[""])[0],u=/^([^?]*)\??/.exec(r)[1],a=t.parentNode,f=new XMLHttpRequest,l;f.onreadystatechange=function(){f.readyState===4&&l()};l=function(){var n=f.responseText;if(n&&t.parentNode&&(!f.status||f.status<400||f.status>600)){n=e.fix(n,!0,t);if(i){n=n.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(e,t,n){return/^([a-z]{3,10}:|#)/i.test(n)?e:/^\/\//.test(n)?'url("'+s+n+'")':/^\//.test(n)?'url("'+o+n+'")':/^\?/.test(n)?'url("'+u+n+'")':'url("'+i+n+'")'});var r=i.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");n=n.replace(RegExp("\\b(behavior:\\s*?url\\('?\"?)"+r,"gi"),"$1")}var l=document.createElement("style");l.textContent=n;l.media=t.media;l.disabled=t.disabled;l.setAttribute("data-href",t.getAttribute("href"));a.insertBefore(l,t);a.removeChild(t);l.media=t.media}};try{f.open("GET",r);f.send(null)}catch(n){if(typeof XDomainRequest!="undefined"){f=new XDomainRequest;f.onerror=f.onprogress=function(){};f.onload=l;f.open("GET",r);f.send(null)}}t.setAttribute("data-inprogress","")},styleElement:function(t){if(t.hasAttribute("data-noprefix"))return;var n=t.disabled;t.textContent=e.fix(t.textContent,!0,t);t.disabled=n},styleAttribute:function(t){var n=t.getAttribute("style");n=e.fix(n,!1,t);t.setAttribute("style",n)},process:function(){t('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link);t("style").forEach(StyleFix.styleElement);t("[style]").forEach(StyleFix.styleAttribute)},register:function(t,n){(e.fixers=e.fixers||[]).splice(n===undefined?e.fixers.length:n,0,t)},fix:function(t,n,r){for(var i=0;i<e.fixers.length;i++)t=e.fixers[i](t,n,r)||t;return t},camelCase:function(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}).replace("-","")},deCamelCase:function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}};(function(){setTimeout(function(){t('link[rel="stylesheet"]').forEach(StyleFix.link)},10);document.addEventListener("DOMContentLoaded",StyleFix.process,!1)})()})();(function(e){function t(e,t,r,i,s){e=n[e];if(e.length){var o=RegExp(t+"("+e.join("|")+")"+r,"gi");s=s.replace(o,i)}return s}if(!window.StyleFix||!window.getComputedStyle)return;var n=window.PrefixFree={prefixCSS:function(e,r,i){var s=n.prefix;n.functions.indexOf("linear-gradient")>-1&&(e=e.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/ig,function(e,t,n,r){return t+(n||"")+"linear-gradient("+(90-r)+"deg"}));e=t("functions","(\\s|:|,)","\\s*\\(","$1"+s+"$2(",e);e=t("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+s+"$2$3",e);e=t("properties","(^|\\{|\\s|;)","\\s*:","$1"+s+"$2:",e);if(n.properties.length){var o=RegExp("\\b("+n.properties.join("|")+")(?!:)","gi");e=t("valueProperties","\\b",":(.+?);",function(e){return e.replace(o,s+"$1")},e)}if(r){e=t("selectors","","\\b",n.prefixSelector,e);e=t("atrules","@","\\b","@"+s+"$1",e)}e=e.replace(RegExp("-"+s,"g"),"-");e=e.replace(/-\*-(?=[a-z]+)/gi,n.prefix);return e},property:function(e){return(n.properties.indexOf(e)>=0?n.prefix:"")+e},value:function(e,r){e=t("functions","(^|\\s|,)","\\s*\\(","$1"+n.prefix+"$2(",e);e=t("keywords","(^|\\s)","(\\s|$)","$1"+n.prefix+"$2$3",e);n.valueProperties.indexOf(r)>=0&&(e=t("properties","(^|\\s|,)","($|\\s|,)","$1"+n.prefix+"$2$3",e));return e},prefixSelector:function(e){return e.replace(/^:{1,2}/,function(e){return e+n.prefix})},prefixProperty:function(e,t){var r=n.prefix+e;return t?StyleFix.camelCase(r):r}};(function(){var e={},t=[],r={},i=getComputedStyle(document.documentElement,null),s=document.createElement("div").style,o=function(n){if(n.charAt(0)==="-"){t.push(n);var r=n.split("-"),i=r[1];e[i]=++e[i]||1;while(r.length>3){r.pop();var s=r.join("-");u(s)&&t.indexOf(s)===-1&&t.push(s)}}},u=function(e){return StyleFix.camelCase(e)in s};if(i.length>0)for(var a=0;a<i.length;a++)o(i[a]);else for(var f in i)o(StyleFix.deCamelCase(f));var l={uses:0};for(var c in e){var h=e[c];l.uses<h&&(l={prefix:c,uses:h})}n.prefix="-"+l.prefix+"-";n.Prefix=StyleFix.camelCase(n.prefix);n.properties=[];for(var a=0;a<t.length;a++){var f=t[a];if(f.indexOf(n.prefix)===0){var p=f.slice(n.prefix.length);u(p)||n.properties.push(p)}}n.Prefix=="Ms"&&!("transform"in s)&&!("MsTransform"in s)&&"msTransform"in s&&n.properties.push("transform","transform-origin");n.properties.sort()})();(function(){function i(e,t){r[t]="";r[t]=e;return!!r[t]}var e={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};e["repeating-linear-gradient"]=e["repeating-radial-gradient"]=e["radial-gradient"]=e["linear-gradient"];var t={initial:"color","zoom-in":"cursor","zoom-out":"cursor",box:"display",flexbox:"display","inline-flexbox":"display",flex:"display","inline-flex":"display",grid:"display","inline-grid":"display","min-content":"width"};n.functions=[];n.keywords=[];var r=document.createElement("div").style;for(var s in e){var o=e[s],u=o.property,a=s+"("+o.params+")";!i(a,u)&&i(n.prefix+a,u)&&n.functions.push(s)}for(var f in t){var u=t[f];!i(f,u)&&i(n.prefix+f,u)&&n.keywords.push(f)}})();(function(){function s(e){i.textContent=e+"{}";return!!i.sheet.cssRules.length}var t={":read-only":null,":read-write":null,":any-link":null,"::selection":null},r={keyframes:"name",viewport:null,document:'regexp(".")'};n.selectors=[];n.atrules=[];var i=e.appendChild(document.createElement("style"));for(var o in t){var u=o+(t[o]?"("+t[o]+")":"");!s(u)&&s(n.prefixSelector(u))&&n.selectors.push(o)}for(var a in r){var u=a+" "+(r[a]||"");!s("@"+u)&&s("@"+n.prefix+u)&&n.atrules.push(a)}e.removeChild(i)})();n.valueProperties=["transition","transition-property"];e.className+=" "+n.prefix;StyleFix.register(n.prefixCSS)})(document.documentElement);
|
@@ -0,0 +1,359 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: Arvo;
|
3
|
+
src: url(<%= asset_path "prefixfree-rails/Arvo-Regular.ttf" %>) format('truetype');
|
4
|
+
}
|
5
|
+
|
6
|
+
@font-face {
|
7
|
+
font-family: Arvo;
|
8
|
+
font-weight: bold;
|
9
|
+
src: url(<%= asset_path "prefixfree-rails/Arvo-Bold.ttf" %>) format('truetype');
|
10
|
+
}
|
11
|
+
|
12
|
+
@keyframes colorcycle {
|
13
|
+
from { background-color: #80A060; }
|
14
|
+
to { background-color: firebrick; }
|
15
|
+
}
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Variables
|
19
|
+
*/
|
20
|
+
|
21
|
+
html,
|
22
|
+
a,
|
23
|
+
hgroup > h1 > strong,
|
24
|
+
section > h1 {
|
25
|
+
animation-duration: 12s;
|
26
|
+
animation-iteration-count:infinite;
|
27
|
+
}
|
28
|
+
|
29
|
+
pre, code, textarea {
|
30
|
+
font-family: Consolas, Monaco, monospace;
|
31
|
+
}
|
32
|
+
|
33
|
+
hgroup > h1,
|
34
|
+
section > h1 {
|
35
|
+
color: firebrick;
|
36
|
+
text-shadow: .05em .05em slategray;
|
37
|
+
}
|
38
|
+
|
39
|
+
.download,
|
40
|
+
ul.features > li:before {
|
41
|
+
background-color: #80A060;
|
42
|
+
}
|
43
|
+
|
44
|
+
ul.drawbacks > li:before {
|
45
|
+
background-color: firebrick;
|
46
|
+
}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Styles
|
50
|
+
*/
|
51
|
+
|
52
|
+
* {
|
53
|
+
margin: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
html {
|
57
|
+
background-color: slategray;
|
58
|
+
background-image: linear-gradient(90deg, transparent 50%, white 50%),
|
59
|
+
repeating-linear-gradient(60deg, rgba(255,255,255,.15), rgba(255,255,255,.15) 40px, transparent 40px, transparent 80px);
|
60
|
+
}
|
61
|
+
|
62
|
+
body {
|
63
|
+
position: relative;
|
64
|
+
max-width: 800px;
|
65
|
+
padding: 2em 4em;
|
66
|
+
margin: auto;
|
67
|
+
background: url(<%= asset_path "prefixfree-rails/noise.png" %>) white;
|
68
|
+
background: url(<%= asset_path "prefixfree-rails/raisedfist.png" %>) bottom right no-repeat,
|
69
|
+
linear-gradient(90deg, rgba(255,255,255,0) 10%, white),
|
70
|
+
url(<%= asset_path "prefixfree-rails/noise.png" %>) white;
|
71
|
+
font: 100%/1.6 Arvo, sans-serif;
|
72
|
+
text-shadow: 0 1px white;
|
73
|
+
hyphens:auto;
|
74
|
+
box-shadow: -8px 0 15px -8px rgba(0,0,0,.5);
|
75
|
+
}
|
76
|
+
|
77
|
+
a {
|
78
|
+
color: slategray;
|
79
|
+
font-weight: bold;
|
80
|
+
}
|
81
|
+
|
82
|
+
a:hover {
|
83
|
+
color: firebrick;
|
84
|
+
}
|
85
|
+
|
86
|
+
header, hgroup, section, footer {
|
87
|
+
display: block;
|
88
|
+
}
|
89
|
+
|
90
|
+
p {
|
91
|
+
margin: .5em 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
hgroup {
|
95
|
+
margin: 1em 0 2em;
|
96
|
+
text-align: center;
|
97
|
+
}
|
98
|
+
|
99
|
+
hgroup > h1:before {
|
100
|
+
content: url(../img/logo.svg);
|
101
|
+
display: block;
|
102
|
+
margin: auto;
|
103
|
+
}
|
104
|
+
|
105
|
+
hgroup > h1 {
|
106
|
+
font-size: 500%;
|
107
|
+
line-height: 1.1;
|
108
|
+
letter-spacing: -.02em;
|
109
|
+
}
|
110
|
+
|
111
|
+
hgroup > h2 {
|
112
|
+
margin: -.5em 0 0 3em;
|
113
|
+
font-weight: normal;
|
114
|
+
font-size: 160%;
|
115
|
+
color: slategray;
|
116
|
+
}
|
117
|
+
|
118
|
+
ul {
|
119
|
+
list-style: none;
|
120
|
+
padding-left: 1.9em;
|
121
|
+
margin: 1em 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
ul > li:before {
|
125
|
+
content: '✿';
|
126
|
+
background: slategray;
|
127
|
+
float: left;
|
128
|
+
clear:left;
|
129
|
+
padding: .1em .5em;
|
130
|
+
margin-left: -2.3em;
|
131
|
+
color: white;
|
132
|
+
font-size: 80%;
|
133
|
+
text-align: center;
|
134
|
+
border-radius: 50%;
|
135
|
+
text-shadow: 0 -1px rgba(0,0,0,.5);
|
136
|
+
box-shadow: 0 1px white;
|
137
|
+
}
|
138
|
+
|
139
|
+
ul.features > li:before {
|
140
|
+
content: '✚';
|
141
|
+
}
|
142
|
+
|
143
|
+
ul.drawbacks > li:before {
|
144
|
+
content: '✖';
|
145
|
+
}
|
146
|
+
|
147
|
+
nav {
|
148
|
+
position: relative;
|
149
|
+
margin: 1em 0 1em -3em;
|
150
|
+
font-size: 160%;
|
151
|
+
background: #111;
|
152
|
+
background: linear-gradient(90deg, #444, black 50%);
|
153
|
+
color: rgba(255,255,255,.5);
|
154
|
+
text-align: right;
|
155
|
+
text-shadow: none;
|
156
|
+
box-shadow: 5px 5px 10px -5px black;
|
157
|
+
}
|
158
|
+
|
159
|
+
nav:after {
|
160
|
+
content: '';
|
161
|
+
position: absolute;
|
162
|
+
left: -12px;
|
163
|
+
bottom: -12px;
|
164
|
+
z-index: -1;
|
165
|
+
width: 1px;
|
166
|
+
height: 1px;
|
167
|
+
border: 12px solid transparent;
|
168
|
+
border-right-color: black;
|
169
|
+
}
|
170
|
+
|
171
|
+
nav > ul {
|
172
|
+
display: inline;
|
173
|
+
padding: 0;
|
174
|
+
}
|
175
|
+
|
176
|
+
nav > ul > li {
|
177
|
+
display: inline;
|
178
|
+
}
|
179
|
+
|
180
|
+
nav > ul > li:before {
|
181
|
+
content: none;
|
182
|
+
}
|
183
|
+
|
184
|
+
nav > ul > li > a {
|
185
|
+
display: inline-block;
|
186
|
+
padding:.2em .6em;
|
187
|
+
color: white;
|
188
|
+
text-decoration: none;
|
189
|
+
text-shadow: .1em .1em black;
|
190
|
+
}
|
191
|
+
|
192
|
+
nav > ul > li > a:hover {
|
193
|
+
background: firebrick;
|
194
|
+
color: white;
|
195
|
+
}
|
196
|
+
|
197
|
+
/* Pages */
|
198
|
+
body.home .page,
|
199
|
+
body.in-page > .section-container,
|
200
|
+
body.in-page > section:not(.current) {
|
201
|
+
display: none;
|
202
|
+
}
|
203
|
+
/* end pages */
|
204
|
+
|
205
|
+
.section-container {
|
206
|
+
overflow: hidden;
|
207
|
+
}
|
208
|
+
|
209
|
+
section {
|
210
|
+
margin-bottom: 1em;
|
211
|
+
box-sizing: border-box;
|
212
|
+
}
|
213
|
+
|
214
|
+
section > h1 {
|
215
|
+
margin-top: .5em;
|
216
|
+
font-size: 250%;
|
217
|
+
line-height: 1;
|
218
|
+
}
|
219
|
+
|
220
|
+
section > section > h1 {
|
221
|
+
margin-top: 1.5em;
|
222
|
+
color: #80A060;
|
223
|
+
font-size: 150%;
|
224
|
+
text-shadow: .05em .05em firebrick;
|
225
|
+
animation: none;
|
226
|
+
}
|
227
|
+
|
228
|
+
#wtf {
|
229
|
+
font-size: 160%;
|
230
|
+
text-align: justify;
|
231
|
+
}
|
232
|
+
|
233
|
+
.github-ribbon img {
|
234
|
+
position: fixed;
|
235
|
+
top: 0; right: 0;
|
236
|
+
z-index: 2;
|
237
|
+
border: 0;
|
238
|
+
}
|
239
|
+
|
240
|
+
blockquote {
|
241
|
+
position: fixed;
|
242
|
+
bottom: 10px;
|
243
|
+
right: 10px;
|
244
|
+
width: 220px;
|
245
|
+
text-align: right;
|
246
|
+
font-size: 110%;
|
247
|
+
}
|
248
|
+
|
249
|
+
section#features,
|
250
|
+
section#limitations,
|
251
|
+
section#demo,
|
252
|
+
section#howto {
|
253
|
+
width: 50%;
|
254
|
+
}
|
255
|
+
|
256
|
+
section#features,
|
257
|
+
section#demo {
|
258
|
+
float: left;
|
259
|
+
padding-right: .5em;
|
260
|
+
}
|
261
|
+
|
262
|
+
section#limitations,
|
263
|
+
section#howto {
|
264
|
+
float: right;
|
265
|
+
padding-left: .5em;
|
266
|
+
}
|
267
|
+
|
268
|
+
section#test-drive {
|
269
|
+
overflow: hidden;
|
270
|
+
}
|
271
|
+
|
272
|
+
section#test-drive > textarea {
|
273
|
+
width: 49.5%;
|
274
|
+
height: 30em;
|
275
|
+
float: left;
|
276
|
+
box-sizing: border-box;
|
277
|
+
border: 1px solid slategray;
|
278
|
+
font-size: 80%;
|
279
|
+
background: rgba(255,255,255,.5);
|
280
|
+
}
|
281
|
+
|
282
|
+
section#test-drive > textarea#prefixed {
|
283
|
+
float: right;
|
284
|
+
}
|
285
|
+
|
286
|
+
/* section#faq */
|
287
|
+
|
288
|
+
section#faq > section > h1:before {
|
289
|
+
content: open-quote;
|
290
|
+
}
|
291
|
+
|
292
|
+
section#faq > section > h1:after {
|
293
|
+
content: close-quote;
|
294
|
+
}
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
footer {
|
299
|
+
font-size: 130%;
|
300
|
+
text-align: center;
|
301
|
+
}
|
302
|
+
|
303
|
+
a.download {
|
304
|
+
position: absolute;
|
305
|
+
top: 1em;
|
306
|
+
left: -1.5em;
|
307
|
+
width: 7em;
|
308
|
+
height: 7em;
|
309
|
+
padding: 1.2em 0;
|
310
|
+
background-image: linear-gradient(transparent, rgba(0,0,0,.3));
|
311
|
+
|
312
|
+
color: white;
|
313
|
+
line-height: 1;
|
314
|
+
font-size: 120%;
|
315
|
+
font-weight: normal;
|
316
|
+
text-align: center;
|
317
|
+
text-decoration: none;
|
318
|
+
text-shadow: .08em .08em .2em rgba(0,0,0,.6);
|
319
|
+
|
320
|
+
border-radius: 50%;
|
321
|
+
box-shadow: .1em .2em .4em -.2em black;
|
322
|
+
box-sizing: border-box;
|
323
|
+
transform: rotate(15deg);
|
324
|
+
animation: 3s colorcycle infinite alternate;
|
325
|
+
}
|
326
|
+
|
327
|
+
a.download:hover {
|
328
|
+
transform: rotate(375deg);
|
329
|
+
transition: 1s transform;
|
330
|
+
}
|
331
|
+
|
332
|
+
a.download > strong {
|
333
|
+
display: block;
|
334
|
+
margin: .1em 0;
|
335
|
+
font-size: 180%;
|
336
|
+
white-space: nowrap;
|
337
|
+
}
|
338
|
+
|
339
|
+
a.download:after {
|
340
|
+
content: attr(title) ' →';
|
341
|
+
position: absolute;
|
342
|
+
top: 14em;
|
343
|
+
right: -2em;
|
344
|
+
color: slategray;
|
345
|
+
font-size: 80%;
|
346
|
+
text-shadow: 0 1px white;
|
347
|
+
white-space: nowrap;
|
348
|
+
transform: rotate(255deg);
|
349
|
+
}
|
350
|
+
|
351
|
+
a.download:hover:after {
|
352
|
+
display: none;
|
353
|
+
}
|
354
|
+
|
355
|
+
.twitter-share-button {
|
356
|
+
position: fixed;
|
357
|
+
top: 10px;
|
358
|
+
left: 10px;
|
359
|
+
}
|
@@ -0,0 +1,359 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: Arvo;
|
3
|
+
src: url(<%= asset_path "prefixfree/Arvo-Regular.ttf" %>) format('truetype');
|
4
|
+
}
|
5
|
+
|
6
|
+
@font-face {
|
7
|
+
font-family: Arvo;
|
8
|
+
font-weight: bold;
|
9
|
+
src: url(<%= asset_path "prefixfree/Arvo-Bold.ttf" %>) format('truetype');
|
10
|
+
}
|
11
|
+
|
12
|
+
@keyframes colorcycle {
|
13
|
+
from { background-color: #80A060; }
|
14
|
+
to { background-color: firebrick; }
|
15
|
+
}
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Variables
|
19
|
+
*/
|
20
|
+
|
21
|
+
html,
|
22
|
+
a,
|
23
|
+
hgroup > h1 > strong,
|
24
|
+
section > h1 {
|
25
|
+
animation-duration: 12s;
|
26
|
+
animation-iteration-count:infinite;
|
27
|
+
}
|
28
|
+
|
29
|
+
pre, code, textarea {
|
30
|
+
font-family: Consolas, Monaco, monospace;
|
31
|
+
}
|
32
|
+
|
33
|
+
hgroup > h1,
|
34
|
+
section > h1 {
|
35
|
+
color: firebrick;
|
36
|
+
text-shadow: .05em .05em slategray;
|
37
|
+
}
|
38
|
+
|
39
|
+
.download,
|
40
|
+
ul.features > li:before {
|
41
|
+
background-color: #80A060;
|
42
|
+
}
|
43
|
+
|
44
|
+
ul.drawbacks > li:before {
|
45
|
+
background-color: firebrick;
|
46
|
+
}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Styles
|
50
|
+
*/
|
51
|
+
|
52
|
+
* {
|
53
|
+
margin: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
html {
|
57
|
+
background-color: slategray;
|
58
|
+
background-image: linear-gradient(90deg, transparent 50%, white 50%),
|
59
|
+
repeating-linear-gradient(60deg, rgba(255,255,255,.15), rgba(255,255,255,.15) 40px, transparent 40px, transparent 80px);
|
60
|
+
}
|
61
|
+
|
62
|
+
body {
|
63
|
+
position: relative;
|
64
|
+
max-width: 800px;
|
65
|
+
padding: 2em 4em;
|
66
|
+
margin: auto;
|
67
|
+
background: url(<%= asset_path "prefixfree/noise.png" %>) white;
|
68
|
+
background: url(<%= asset_path "prefixfree/raisedfist.png" %>) bottom right no-repeat,
|
69
|
+
linear-gradient(90deg, rgba(255,255,255,0) 10%, white),
|
70
|
+
url(<%= asset_path "prefixfree/noise.png" %>) white;
|
71
|
+
font: 100%/1.6 Arvo, sans-serif;
|
72
|
+
text-shadow: 0 1px white;
|
73
|
+
hyphens:auto;
|
74
|
+
box-shadow: -8px 0 15px -8px rgba(0,0,0,.5);
|
75
|
+
}
|
76
|
+
|
77
|
+
a {
|
78
|
+
color: slategray;
|
79
|
+
font-weight: bold;
|
80
|
+
}
|
81
|
+
|
82
|
+
a:hover {
|
83
|
+
color: firebrick;
|
84
|
+
}
|
85
|
+
|
86
|
+
header, hgroup, section, footer {
|
87
|
+
display: block;
|
88
|
+
}
|
89
|
+
|
90
|
+
p {
|
91
|
+
margin: .5em 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
hgroup {
|
95
|
+
margin: 1em 0 2em;
|
96
|
+
text-align: center;
|
97
|
+
}
|
98
|
+
|
99
|
+
hgroup > h1:before {
|
100
|
+
content: url(../img/logo.svg);
|
101
|
+
display: block;
|
102
|
+
margin: auto;
|
103
|
+
}
|
104
|
+
|
105
|
+
hgroup > h1 {
|
106
|
+
font-size: 500%;
|
107
|
+
line-height: 1.1;
|
108
|
+
letter-spacing: -.02em;
|
109
|
+
}
|
110
|
+
|
111
|
+
hgroup > h2 {
|
112
|
+
margin: -.5em 0 0 3em;
|
113
|
+
font-weight: normal;
|
114
|
+
font-size: 160%;
|
115
|
+
color: slategray;
|
116
|
+
}
|
117
|
+
|
118
|
+
ul {
|
119
|
+
list-style: none;
|
120
|
+
padding-left: 1.9em;
|
121
|
+
margin: 1em 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
ul > li:before {
|
125
|
+
content: '✿';
|
126
|
+
background: slategray;
|
127
|
+
float: left;
|
128
|
+
clear:left;
|
129
|
+
padding: .1em .5em;
|
130
|
+
margin-left: -2.3em;
|
131
|
+
color: white;
|
132
|
+
font-size: 80%;
|
133
|
+
text-align: center;
|
134
|
+
border-radius: 50%;
|
135
|
+
text-shadow: 0 -1px rgba(0,0,0,.5);
|
136
|
+
box-shadow: 0 1px white;
|
137
|
+
}
|
138
|
+
|
139
|
+
ul.features > li:before {
|
140
|
+
content: '✚';
|
141
|
+
}
|
142
|
+
|
143
|
+
ul.drawbacks > li:before {
|
144
|
+
content: '✖';
|
145
|
+
}
|
146
|
+
|
147
|
+
nav {
|
148
|
+
position: relative;
|
149
|
+
margin: 1em 0 1em -3em;
|
150
|
+
font-size: 160%;
|
151
|
+
background: #111;
|
152
|
+
background: linear-gradient(90deg, #444, black 50%);
|
153
|
+
color: rgba(255,255,255,.5);
|
154
|
+
text-align: right;
|
155
|
+
text-shadow: none;
|
156
|
+
box-shadow: 5px 5px 10px -5px black;
|
157
|
+
}
|
158
|
+
|
159
|
+
nav:after {
|
160
|
+
content: '';
|
161
|
+
position: absolute;
|
162
|
+
left: -12px;
|
163
|
+
bottom: -12px;
|
164
|
+
z-index: -1;
|
165
|
+
width: 1px;
|
166
|
+
height: 1px;
|
167
|
+
border: 12px solid transparent;
|
168
|
+
border-right-color: black;
|
169
|
+
}
|
170
|
+
|
171
|
+
nav > ul {
|
172
|
+
display: inline;
|
173
|
+
padding: 0;
|
174
|
+
}
|
175
|
+
|
176
|
+
nav > ul > li {
|
177
|
+
display: inline;
|
178
|
+
}
|
179
|
+
|
180
|
+
nav > ul > li:before {
|
181
|
+
content: none;
|
182
|
+
}
|
183
|
+
|
184
|
+
nav > ul > li > a {
|
185
|
+
display: inline-block;
|
186
|
+
padding:.2em .6em;
|
187
|
+
color: white;
|
188
|
+
text-decoration: none;
|
189
|
+
text-shadow: .1em .1em black;
|
190
|
+
}
|
191
|
+
|
192
|
+
nav > ul > li > a:hover {
|
193
|
+
background: firebrick;
|
194
|
+
color: white;
|
195
|
+
}
|
196
|
+
|
197
|
+
/* Pages */
|
198
|
+
body.home .page,
|
199
|
+
body.in-page > .section-container,
|
200
|
+
body.in-page > section:not(.current) {
|
201
|
+
display: none;
|
202
|
+
}
|
203
|
+
/* end pages */
|
204
|
+
|
205
|
+
.section-container {
|
206
|
+
overflow: hidden;
|
207
|
+
}
|
208
|
+
|
209
|
+
section {
|
210
|
+
margin-bottom: 1em;
|
211
|
+
box-sizing: border-box;
|
212
|
+
}
|
213
|
+
|
214
|
+
section > h1 {
|
215
|
+
margin-top: .5em;
|
216
|
+
font-size: 250%;
|
217
|
+
line-height: 1;
|
218
|
+
}
|
219
|
+
|
220
|
+
section > section > h1 {
|
221
|
+
margin-top: 1.5em;
|
222
|
+
color: #80A060;
|
223
|
+
font-size: 150%;
|
224
|
+
text-shadow: .05em .05em firebrick;
|
225
|
+
animation: none;
|
226
|
+
}
|
227
|
+
|
228
|
+
#wtf {
|
229
|
+
font-size: 160%;
|
230
|
+
text-align: justify;
|
231
|
+
}
|
232
|
+
|
233
|
+
.github-ribbon img {
|
234
|
+
position: fixed;
|
235
|
+
top: 0; right: 0;
|
236
|
+
z-index: 2;
|
237
|
+
border: 0;
|
238
|
+
}
|
239
|
+
|
240
|
+
blockquote {
|
241
|
+
position: fixed;
|
242
|
+
bottom: 10px;
|
243
|
+
right: 10px;
|
244
|
+
width: 220px;
|
245
|
+
text-align: right;
|
246
|
+
font-size: 110%;
|
247
|
+
}
|
248
|
+
|
249
|
+
section#features,
|
250
|
+
section#limitations,
|
251
|
+
section#demo,
|
252
|
+
section#howto {
|
253
|
+
width: 50%;
|
254
|
+
}
|
255
|
+
|
256
|
+
section#features,
|
257
|
+
section#demo {
|
258
|
+
float: left;
|
259
|
+
padding-right: .5em;
|
260
|
+
}
|
261
|
+
|
262
|
+
section#limitations,
|
263
|
+
section#howto {
|
264
|
+
float: right;
|
265
|
+
padding-left: .5em;
|
266
|
+
}
|
267
|
+
|
268
|
+
section#test-drive {
|
269
|
+
overflow: hidden;
|
270
|
+
}
|
271
|
+
|
272
|
+
section#test-drive > textarea {
|
273
|
+
width: 49.5%;
|
274
|
+
height: 30em;
|
275
|
+
float: left;
|
276
|
+
box-sizing: border-box;
|
277
|
+
border: 1px solid slategray;
|
278
|
+
font-size: 80%;
|
279
|
+
background: rgba(255,255,255,.5);
|
280
|
+
}
|
281
|
+
|
282
|
+
section#test-drive > textarea#prefixed {
|
283
|
+
float: right;
|
284
|
+
}
|
285
|
+
|
286
|
+
/* section#faq */
|
287
|
+
|
288
|
+
section#faq > section > h1:before {
|
289
|
+
content: open-quote;
|
290
|
+
}
|
291
|
+
|
292
|
+
section#faq > section > h1:after {
|
293
|
+
content: close-quote;
|
294
|
+
}
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
footer {
|
299
|
+
font-size: 130%;
|
300
|
+
text-align: center;
|
301
|
+
}
|
302
|
+
|
303
|
+
a.download {
|
304
|
+
position: absolute;
|
305
|
+
top: 1em;
|
306
|
+
left: -1.5em;
|
307
|
+
width: 7em;
|
308
|
+
height: 7em;
|
309
|
+
padding: 1.2em 0;
|
310
|
+
background-image: linear-gradient(transparent, rgba(0,0,0,.3));
|
311
|
+
|
312
|
+
color: white;
|
313
|
+
line-height: 1;
|
314
|
+
font-size: 120%;
|
315
|
+
font-weight: normal;
|
316
|
+
text-align: center;
|
317
|
+
text-decoration: none;
|
318
|
+
text-shadow: .08em .08em .2em rgba(0,0,0,.6);
|
319
|
+
|
320
|
+
border-radius: 50%;
|
321
|
+
box-shadow: .1em .2em .4em -.2em black;
|
322
|
+
box-sizing: border-box;
|
323
|
+
transform: rotate(15deg);
|
324
|
+
animation: 3s colorcycle infinite alternate;
|
325
|
+
}
|
326
|
+
|
327
|
+
a.download:hover {
|
328
|
+
transform: rotate(375deg);
|
329
|
+
transition: 1s transform;
|
330
|
+
}
|
331
|
+
|
332
|
+
a.download > strong {
|
333
|
+
display: block;
|
334
|
+
margin: .1em 0;
|
335
|
+
font-size: 180%;
|
336
|
+
white-space: nowrap;
|
337
|
+
}
|
338
|
+
|
339
|
+
a.download:after {
|
340
|
+
content: attr(title) ' →';
|
341
|
+
position: absolute;
|
342
|
+
top: 14em;
|
343
|
+
right: -2em;
|
344
|
+
color: slategray;
|
345
|
+
font-size: 80%;
|
346
|
+
text-shadow: 0 1px white;
|
347
|
+
white-space: nowrap;
|
348
|
+
transform: rotate(255deg);
|
349
|
+
}
|
350
|
+
|
351
|
+
a.download:hover:after {
|
352
|
+
display: none;
|
353
|
+
}
|
354
|
+
|
355
|
+
.twitter-share-button {
|
356
|
+
position: fixed;
|
357
|
+
top: 10px;
|
358
|
+
left: 10px;
|
359
|
+
}
|