wrgem 0.0.43 → 0.0.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/wradmin/template/carrierwave.rb +15 -0
- data/lib/generators/wradmin/template/migrate/20140715192304_create_user.rb +5 -3
- data/lib/generators/wradmin/template/public/images/spritemap.png +0 -0
- data/lib/generators/wradmin/template/public/images/spritemap@2x.png +0 -0
- data/lib/generators/wradmin/template/views/layouts/admin.html.slim +1 -1
- data/lib/generators/wradmin/wradmin_generator.rb +3 -0
- data/lib/generators/wrstart/template/index.html.slim +1 -1
- data/lib/generators/wrstart/template/javascripts/requirements.js.coffee +5 -0
- data/lib/generators/wrstart/template/shared/_head.slim +1 -1
- data/lib/generators/wrstart/template/stylesheets/_requirements.sass +6 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/.bower.json +32 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/.editorconfig +11 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/.gitignore +5 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/LICENSE +22 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/README.md +94 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/bower.json +18 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/example.css +322 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/example.scss +412 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/logo_big.png +0 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/logo_big@2x.png +0 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/logo_small.png +0 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/logo_small@2x.png +0 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/te-logo-small.svg +12 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/thumbs-up.jpg +0 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/vs_icon.png +0 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/vs_icon@2x.png +0 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/index.html +433 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/gulpfile.js +48 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/lib/ie9.css +23 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/lib/sweet-alert.css +1 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/lib/sweet-alert.html +37 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/lib/sweet-alert.js +818 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/lib/sweet-alert.min.js +1 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/lib/sweet-alert.scss +444 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/package.json +37 -0
- data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/sweetalert.gif +0 -0
- data/lib/generators/wrstart/wrstart_generator.rb +2 -0
- data/lib/wrgem/version.rb +1 -1
- data/wrgem.gemspec +2 -2
- metadata +39 -12
@@ -0,0 +1,412 @@
|
|
1
|
+
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300); // Open Sans font
|
2
|
+
@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700); // Condensed
|
3
|
+
|
4
|
+
@mixin retina-background($url, $type:png) {
|
5
|
+
background-image: url("#{$url}.#{$type}");
|
6
|
+
background-image: -webkit-image-set(url("#{$url}.#{$type}") 1x,
|
7
|
+
url("#{$url}@2x.#{$type}") 2x);
|
8
|
+
}
|
9
|
+
|
10
|
+
body {
|
11
|
+
background-color: #f2f4f6;
|
12
|
+
font-family: 'Open Sans', sans-serif;
|
13
|
+
text-align: center;
|
14
|
+
}
|
15
|
+
|
16
|
+
h1 {
|
17
|
+
@include retina-background("images/logo_big");
|
18
|
+
width: 385px;
|
19
|
+
height: 81px;
|
20
|
+
text-indent: -9999px;
|
21
|
+
white-space: nowrap;
|
22
|
+
margin: 50px auto;
|
23
|
+
@media all and (max-width: 420px) {
|
24
|
+
width: 300px;
|
25
|
+
background-size: contain;
|
26
|
+
background-repeat: no-repeat;
|
27
|
+
background-position: center;
|
28
|
+
}
|
29
|
+
@media all and (max-width: 330px) {
|
30
|
+
width: 250px;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
h2 {
|
34
|
+
font-size: 20px;
|
35
|
+
color: #A9B2BC;
|
36
|
+
line-height: 25px;
|
37
|
+
text-transform: uppercase;
|
38
|
+
font-weight: 300;
|
39
|
+
text-align: center;
|
40
|
+
display: block;
|
41
|
+
}
|
42
|
+
h3 {
|
43
|
+
font-size: 28px;
|
44
|
+
color: #C7CCD1;
|
45
|
+
text-transform: uppercase;
|
46
|
+
font-family: 'Open Sans Condensed', sans-serif;
|
47
|
+
margin-top: 100px;
|
48
|
+
text-align: center;
|
49
|
+
position: relative;
|
50
|
+
&#download-section {
|
51
|
+
margin-top: 50px;
|
52
|
+
padding-top: 40px;
|
53
|
+
}
|
54
|
+
&::after {
|
55
|
+
content: "";
|
56
|
+
background-color: #e2e5e8;
|
57
|
+
height: 4px;
|
58
|
+
width: 700px;
|
59
|
+
left: 50%;
|
60
|
+
margin-left: -350px;
|
61
|
+
position: absolute;
|
62
|
+
margin-top: -50px;
|
63
|
+
border-radius: 2px;
|
64
|
+
|
65
|
+
@media all and (max-width: 740px) {
|
66
|
+
width: auto;
|
67
|
+
left: 20px;
|
68
|
+
right: 20px;
|
69
|
+
margin-left: 0;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
a {
|
75
|
+
text-decoration: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
p {
|
79
|
+
max-width: 826px;
|
80
|
+
margin: 30px auto;
|
81
|
+
font-size: 17px;
|
82
|
+
font-weight: 300;
|
83
|
+
color: #848D94;
|
84
|
+
line-height: 25px;
|
85
|
+
text-align: left;
|
86
|
+
&.center {
|
87
|
+
text-align: center;
|
88
|
+
}
|
89
|
+
|
90
|
+
strong {
|
91
|
+
color: #8A8F94;
|
92
|
+
font-weight: 600;
|
93
|
+
}
|
94
|
+
a {
|
95
|
+
color: #9ECADF;
|
96
|
+
font-weight: 600;
|
97
|
+
&:hover {
|
98
|
+
text-decoration: underline;
|
99
|
+
}
|
100
|
+
&.twitter {
|
101
|
+
color: #5eaade;
|
102
|
+
}
|
103
|
+
&.dribbble {
|
104
|
+
color: #f26798;
|
105
|
+
}
|
106
|
+
&.github {
|
107
|
+
color: #323131;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
button, .button {
|
113
|
+
$btnBlue: #AEDEF4;
|
114
|
+
$btnGray: #D0D0D0;
|
115
|
+
|
116
|
+
background-color: $btnBlue;
|
117
|
+
color: white;
|
118
|
+
border: none;
|
119
|
+
box-shadow: none;
|
120
|
+
font-size: 17px;
|
121
|
+
font-weight: 500;
|
122
|
+
font-weight: 600;
|
123
|
+
border-radius: 3px;
|
124
|
+
padding: 15px 35px;
|
125
|
+
margin: 26px 5px 0 5px;
|
126
|
+
cursor: pointer;
|
127
|
+
&:focus {
|
128
|
+
outline: none;
|
129
|
+
}
|
130
|
+
&:hover {
|
131
|
+
background-color: darken($btnBlue, 3%);
|
132
|
+
}
|
133
|
+
&:active {
|
134
|
+
background-color: darken($btnBlue, 10%);
|
135
|
+
}
|
136
|
+
&.cancel {
|
137
|
+
background-color: $btnGray;
|
138
|
+
&:hover {
|
139
|
+
background-color: darken($btnGray, 3%);
|
140
|
+
}
|
141
|
+
&:active {
|
142
|
+
background-color: darken($btnGray, 10%);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
&.download {
|
146
|
+
position: fixed;
|
147
|
+
right: 30px;
|
148
|
+
top: 0;
|
149
|
+
background-color: rgba(white, 0.9);
|
150
|
+
color: #ABCADA;
|
151
|
+
font-weight: 500;
|
152
|
+
text-transform: uppercase;
|
153
|
+
z-index: 3;
|
154
|
+
|
155
|
+
@media all and (max-width: 1278px) {
|
156
|
+
display: none;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
.center-container {
|
162
|
+
max-width: 700px;
|
163
|
+
margin: 70px auto;
|
164
|
+
}
|
165
|
+
|
166
|
+
pre {
|
167
|
+
background-color: #49483e;
|
168
|
+
color: #f8f8f2;
|
169
|
+
padding: 10px;
|
170
|
+
border-radius: 5px;
|
171
|
+
white-space: pre-line;
|
172
|
+
text-align: left;
|
173
|
+
font-size: 14px;
|
174
|
+
max-width: 600px;
|
175
|
+
|
176
|
+
.str {
|
177
|
+
color: #e6db74;
|
178
|
+
}
|
179
|
+
.func {
|
180
|
+
color: #66d9ef;
|
181
|
+
}
|
182
|
+
.val {
|
183
|
+
color: #a381ff;
|
184
|
+
}
|
185
|
+
.tag {
|
186
|
+
color: #e92772;
|
187
|
+
}
|
188
|
+
.attr {
|
189
|
+
color: #a6e22d;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
.showcase {
|
194
|
+
background-color: #eceef0;
|
195
|
+
padding: 20px;
|
196
|
+
display: inline-block;
|
197
|
+
width: 383px;
|
198
|
+
vertical-align: top;
|
199
|
+
position: relative;
|
200
|
+
|
201
|
+
@media all and (max-width: 865px) {
|
202
|
+
margin: 5px auto;
|
203
|
+
padding: 46px 20px;
|
204
|
+
}
|
205
|
+
@media all and (max-width: 440px) {
|
206
|
+
width: auto;
|
207
|
+
}
|
208
|
+
|
209
|
+
h4 {
|
210
|
+
font-size: 16px;
|
211
|
+
color: #BCBCBC;
|
212
|
+
line-height: 22px;
|
213
|
+
margin: 0 auto;
|
214
|
+
font-weight: 400;
|
215
|
+
}
|
216
|
+
&.sweet h4 {
|
217
|
+
width: 117px;
|
218
|
+
height: 25px;
|
219
|
+
margin-top: -3px;
|
220
|
+
text-indent: -9999px;
|
221
|
+
@include retina-background("images/logo_small");
|
222
|
+
}
|
223
|
+
h5 {
|
224
|
+
margin-bottom: -7px;
|
225
|
+
text-align: left;
|
226
|
+
font-weight: 500;
|
227
|
+
text-transform: uppercase;
|
228
|
+
color: rgb(194, 194, 194);
|
229
|
+
}
|
230
|
+
|
231
|
+
button {
|
232
|
+
margin-bottom: 10px;
|
233
|
+
}
|
234
|
+
|
235
|
+
.vs-icon {
|
236
|
+
@include retina-background("images/vs_icon");
|
237
|
+
width: 69px;
|
238
|
+
height: 69px;
|
239
|
+
position: absolute;
|
240
|
+
right: -34px;
|
241
|
+
top: 60px;
|
242
|
+
z-index: 2;
|
243
|
+
|
244
|
+
@media all and (max-width: 865px) {
|
245
|
+
margin: 5px auto;
|
246
|
+
right: auto;
|
247
|
+
left: 50%;
|
248
|
+
margin-left: -35px;
|
249
|
+
top: auto;
|
250
|
+
bottom: -35px;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
ul.examples {
|
257
|
+
list-style-type: none;
|
258
|
+
width: 700px;
|
259
|
+
margin: 0 auto;
|
260
|
+
text-align: left;
|
261
|
+
padding-left: 0;
|
262
|
+
@media all and (max-width: 758px) {
|
263
|
+
width: auto;
|
264
|
+
}
|
265
|
+
|
266
|
+
li {
|
267
|
+
padding-left: 0;
|
268
|
+
}
|
269
|
+
|
270
|
+
.ui, pre {
|
271
|
+
display: inline-block;
|
272
|
+
vertical-align: top;
|
273
|
+
|
274
|
+
@media all and (max-width: 758px) {
|
275
|
+
display: block;
|
276
|
+
max-width: none;
|
277
|
+
margin: 0 auto;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
.ui {
|
281
|
+
width: 300px;
|
282
|
+
text-align: center;
|
283
|
+
|
284
|
+
button {
|
285
|
+
margin-top: 12px;
|
286
|
+
}
|
287
|
+
|
288
|
+
p {
|
289
|
+
text-align: center;
|
290
|
+
margin-bottom: 0;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
|
294
|
+
pre {
|
295
|
+
max-width: 370px;
|
296
|
+
margin-top: 67px;
|
297
|
+
|
298
|
+
@media all and (max-width: 758px) {
|
299
|
+
margin-top: 16px !important;
|
300
|
+
margin-bottom: 60px;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
.warning pre {
|
304
|
+
margin-top: 93px;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
|
309
|
+
ol {
|
310
|
+
max-width: 700px;
|
311
|
+
margin: 70px auto;
|
312
|
+
list-style-position: inside;
|
313
|
+
padding-left: 0;
|
314
|
+
|
315
|
+
li {
|
316
|
+
color: #A7ADB2;
|
317
|
+
|
318
|
+
p {
|
319
|
+
margin-bottom: 10px;
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
|
325
|
+
table {
|
326
|
+
width: 700px;
|
327
|
+
font-size: 14px;
|
328
|
+
color: #8a8f94;
|
329
|
+
margin: 10px auto;
|
330
|
+
text-align: left;
|
331
|
+
border-collapse: collapse;
|
332
|
+
@media all and (max-width: 750px) {
|
333
|
+
width: auto;
|
334
|
+
margin: 10px 20px;
|
335
|
+
}
|
336
|
+
|
337
|
+
th {
|
338
|
+
background-color: white;
|
339
|
+
padding: 9px;
|
340
|
+
color: rgb(172, 185, 190);
|
341
|
+
font-weight: 400;
|
342
|
+
text-align: center;
|
343
|
+
position: relative;
|
344
|
+
.border-left, .border-right {
|
345
|
+
position: absolute;
|
346
|
+
background-color: white;
|
347
|
+
border-radius: 50%;
|
348
|
+
top: 0;
|
349
|
+
left: -17px;
|
350
|
+
width: 37px;
|
351
|
+
height: 37px;
|
352
|
+
}
|
353
|
+
.border-right {
|
354
|
+
left: auto;
|
355
|
+
right: -17px;
|
356
|
+
}
|
357
|
+
@media all and (max-width: 750px) {
|
358
|
+
&:nth-child(2) {
|
359
|
+
display: none;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
}
|
363
|
+
|
364
|
+
td {
|
365
|
+
padding: 10px 20px;
|
366
|
+
vertical-align: top;
|
367
|
+
&:first-child {
|
368
|
+
padding-left: 0px;
|
369
|
+
}
|
370
|
+
&:last-child {
|
371
|
+
padding-right: 0px;
|
372
|
+
}
|
373
|
+
@media all and (max-width: 750px) {
|
374
|
+
&:nth-child(2) {
|
375
|
+
display: none;
|
376
|
+
}
|
377
|
+
}
|
378
|
+
@media all and (max-width: 360px) {
|
379
|
+
padding: 10px 4px;
|
380
|
+
b {
|
381
|
+
font-size: 13px;
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
387
|
+
footer {
|
388
|
+
margin-top: 100px;
|
389
|
+
padding-bottom: 30px;
|
390
|
+
color: #9A999F;
|
391
|
+
display: inline-block;
|
392
|
+
position: relative;
|
393
|
+
color: gray;
|
394
|
+
font-weight: 400;
|
395
|
+
color: rgb(147, 161, 170);
|
396
|
+
font-weight: 300;
|
397
|
+
|
398
|
+
.te-logo {
|
399
|
+
text-indent: -99999px;
|
400
|
+
background-size: contain;
|
401
|
+
background-repeat: no-repeat;
|
402
|
+
background-position: center center;
|
403
|
+
height: 16px;
|
404
|
+
width: 16px;
|
405
|
+
display: inline-block;
|
406
|
+
margin-right: 5px;
|
407
|
+
background-image: url("images/te-logo-small.svg");
|
408
|
+
position: absolute;
|
409
|
+
left: -22px;
|
410
|
+
top: 3px;
|
411
|
+
}
|
412
|
+
}
|
data/lib/generators/wrstart/template/vendor/assets/components/sweetalert/example/images/logo_big.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="14px" height="11px" viewBox="0 0 14 11" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
3
|
+
<!-- Generator: Sketch 3.0.4 (8053) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>te-logo-small</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
8
|
+
<g id="Website" sketch:type="MSArtboardGroup" transform="translate(-520.000000, -1871.000000)" fill="#AFC1C9">
|
9
|
+
<path d="M526.768,1871.832 L524.416,1871.832 L524.416,1881.672 L523.488,1881.672 L523.488,1871.832 L520,1871.832 L520,1871 L527.336,1871 L533.536,1871 L533.536,1871.832 L527.68,1871.832 L527.68,1875.784 L533.424,1875.784 L533.424,1876.616 L527.68,1876.616 L527.68,1880.84 L533.536,1880.84 L533.536,1881.672 L526.768,1881.672 L526.768,1871.832 Z" id="te-logo-small" sketch:type="MSShapeGroup"></path>
|
10
|
+
</g>
|
11
|
+
</g>
|
12
|
+
</svg>
|
Binary file
|