spina-template 0.2.4
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 +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/app/.DS_Store +0 -0
- data/app/assets/.DS_Store +0 -0
- data/app/assets/images/.DS_Store +0 -0
- data/app/assets/images/spina/arrow-left.png +0 -0
- data/app/assets/images/spina/arrow-right.png +0 -0
- data/app/assets/images/spina/bg.jpg +0 -0
- data/app/assets/images/spina/danger-zone-ribbon.png +0 -0
- data/app/assets/images/spina/datepicker.png +0 -0
- data/app/assets/images/spina/divider.png +0 -0
- data/app/assets/images/spina/marker.png +0 -0
- data/app/assets/images/spina/mask.png +0 -0
- data/app/assets/images/spina/wheel.png +0 -0
- data/app/assets/javascripts/.DS_Store +0 -0
- data/app/assets/javascripts/spina/dropdown.js.coffee +64 -0
- data/app/assets/javascripts/spina/galleryselect.js.coffee +12 -0
- data/app/assets/javascripts/spina/modal.js.coffee +54 -0
- data/app/assets/javascripts/spina/switch.js.coffee +41 -0
- data/app/assets/javascripts/spina/tabs.js.coffee +13 -0
- data/app/assets/javascripts/spina/uploads.js.coffee +45 -0
- data/app/assets/javascripts/spina.js.coffee.erb +154 -0
- data/app/assets/stylesheets/.DS_Store +0 -0
- data/app/assets/stylesheets/spina/_admin_editing.css.sass +29 -0
- data/app/assets/stylesheets/spina/_buttons.css.sass +334 -0
- data/app/assets/stylesheets/spina/_cards.css.sass +57 -0
- data/app/assets/stylesheets/spina/_configuration.css.sass +16 -0
- data/app/assets/stylesheets/spina/_custom_animations.css.sass +61 -0
- data/app/assets/stylesheets/spina/_farbtastic.css.sass +37 -0
- data/app/assets/stylesheets/spina/_fonts.css.sass +14 -0
- data/app/assets/stylesheets/spina/_forms.css.sass +473 -0
- data/app/assets/stylesheets/spina/_gallery.css.sass +121 -0
- data/app/assets/stylesheets/spina/_grid.css.sass +12 -0
- data/app/assets/stylesheets/spina/_labels.css.sass +28 -0
- data/app/assets/stylesheets/spina/_login.css.sass +32 -0
- data/app/assets/stylesheets/spina/_mixins.css.scss +13 -0
- data/app/assets/stylesheets/spina/_modal.css.sass +158 -0
- data/app/assets/stylesheets/spina/_sortable_lists.css.sass +161 -0
- data/app/assets/stylesheets/spina/_tables.css.sass +144 -0
- data/app/assets/stylesheets/spina/_wysihtml5.css.sass +73 -0
- data/app/assets/stylesheets/spina/wysihtml5_textarea.css.sass +14 -0
- data/app/assets/stylesheets/spina.css.sass +521 -0
- data/lib/spina/template/version.rb +5 -0
- data/lib/spina/template.rb +12 -0
- data/spina-template.gemspec +26 -0
- data/vendor/.DS_Store +0 -0
- data/vendor/assets/.DS_Store +0 -0
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/spina/jquery.customfileinput.js +85 -0
- data/vendor/assets/javascripts/spina/jquery.datatables.js +12099 -0
- data/vendor/assets/javascripts/spina/jquery.farbtastic.js +345 -0
- data/vendor/assets/javascripts/spina/jquery.nestable.js +485 -0
- data/vendor/assets/javascripts/spina/jquery.sortable.js +3 -0
- data/vendor/assets/javascripts/spina/jquery.ui.datepicker-nl.js +23 -0
- data/vendor/assets/javascripts/spina/jquery.ui.js +6 -0
- data/vendor/assets/javascripts/spina/morris.js +1767 -0
- data/vendor/assets/javascripts/spina/nprogress.js +274 -0
- data/vendor/assets/javascripts/spina/raphael.js +8111 -0
- data/vendor/assets/javascripts/spina/wysihtml5.js +269 -0
- data/vendor/assets/javascripts/spina/wysihtml5_parser_rules.js +551 -0
- data/vendor/assets/stylesheets/.DS_Store +0 -0
- data/vendor/assets/stylesheets/spina/_animate.css +1 -0
- data/vendor/assets/stylesheets/spina/_morris.css +2 -0
- data/vendor/assets/stylesheets/spina/_normalize.css +396 -0
- data/vendor/assets/stylesheets/spina/_nprogress.css.scss +85 -0
- metadata +197 -0
@@ -0,0 +1,334 @@
|
|
1
|
+
// Buttons
|
2
|
+
|
3
|
+
button, input[type="submit"]
|
4
|
+
border: none
|
5
|
+
|
6
|
+
.button
|
7
|
+
background: #efefef
|
8
|
+
border-radius: 3px
|
9
|
+
color: #444
|
10
|
+
display: inline-block
|
11
|
+
font-size: 14px
|
12
|
+
font-weight: bold
|
13
|
+
line-height: 36px
|
14
|
+
margin: 0 4px 4px 0
|
15
|
+
padding: 0 16px
|
16
|
+
text-decoration: none
|
17
|
+
@include transition(all .2s ease)
|
18
|
+
|
19
|
+
&:hover
|
20
|
+
background: tint(#efefef, 20%)
|
21
|
+
|
22
|
+
&.button-shaded:hover
|
23
|
+
background: #efefef
|
24
|
+
|
25
|
+
&:active, &.button-active, &.button-shaded, &.button-shaded:active
|
26
|
+
background: shade(#efefef, 10%)
|
27
|
+
|
28
|
+
&.button-primary
|
29
|
+
background: $primary-color
|
30
|
+
color: #fff
|
31
|
+
|
32
|
+
&:hover
|
33
|
+
background: tint($primary-color, 20%)
|
34
|
+
|
35
|
+
&.button-shaded:hover
|
36
|
+
background: $primary-color
|
37
|
+
|
38
|
+
&:active, &.button-active, &.button-shaded, &.button-shaded:active
|
39
|
+
background: shade($primary-color, 10%)
|
40
|
+
|
41
|
+
&.button-success
|
42
|
+
background: $success-color
|
43
|
+
color: #fff
|
44
|
+
|
45
|
+
&:hover
|
46
|
+
background: tint($success-color, 20%)
|
47
|
+
|
48
|
+
&.button-shaded:hover
|
49
|
+
background: $success-color
|
50
|
+
|
51
|
+
&:active, &.button-active, &.button-shaded, &.button-shaded:active
|
52
|
+
background: shade($success-color, 10%)
|
53
|
+
|
54
|
+
&.button-danger
|
55
|
+
color: $danger-color
|
56
|
+
|
57
|
+
&.button-link
|
58
|
+
background: none
|
59
|
+
font-weight: 600
|
60
|
+
|
61
|
+
&:hover
|
62
|
+
color: #333
|
63
|
+
|
64
|
+
&:active, &.button-active
|
65
|
+
color: #111
|
66
|
+
|
67
|
+
&:before
|
68
|
+
margin-right: 8px
|
69
|
+
vertical-align: text-top
|
70
|
+
|
71
|
+
&.icon-only:before
|
72
|
+
margin-right: 0
|
73
|
+
|
74
|
+
&.icon-mini:before
|
75
|
+
font-size: 8px
|
76
|
+
line-height: 12px
|
77
|
+
margin-right: 4px
|
78
|
+
|
79
|
+
&.button-large
|
80
|
+
border-radius: 4px
|
81
|
+
font-size: 15px
|
82
|
+
line-height: 42px
|
83
|
+
padding: 0 18px
|
84
|
+
|
85
|
+
&:before
|
86
|
+
margin-right: 10px
|
87
|
+
|
88
|
+
&.button-small
|
89
|
+
font-size: 13px
|
90
|
+
line-height: 32px
|
91
|
+
padding: 0 12px
|
92
|
+
|
93
|
+
&.button-mini
|
94
|
+
font-size: 12px
|
95
|
+
line-height: 26px
|
96
|
+
padding: 0 10px
|
97
|
+
|
98
|
+
&.button-hollow
|
99
|
+
background: none
|
100
|
+
border: 1px solid #ccc
|
101
|
+
color: #777
|
102
|
+
|
103
|
+
&:hover
|
104
|
+
border: 1px solid #bbb
|
105
|
+
color: #666
|
106
|
+
|
107
|
+
&:active, &.button-active
|
108
|
+
border: 1px solid #aaa
|
109
|
+
color: #444
|
110
|
+
|
111
|
+
&.button-round
|
112
|
+
border-radius: 21px
|
113
|
+
|
114
|
+
.pull-right .button
|
115
|
+
margin: 0 0 4px 4px
|
116
|
+
|
117
|
+
// Button groups
|
118
|
+
|
119
|
+
.button-group
|
120
|
+
.button
|
121
|
+
border-radius: 0
|
122
|
+
float: left
|
123
|
+
margin-right: 0
|
124
|
+
|
125
|
+
.button:first-child
|
126
|
+
border-radius: 3px 0 0 3px
|
127
|
+
|
128
|
+
.button:last-child
|
129
|
+
border-radius: 0 3px 3px 0
|
130
|
+
|
131
|
+
&:after
|
132
|
+
clear: both
|
133
|
+
content: ""
|
134
|
+
display: block
|
135
|
+
|
136
|
+
.button-group.button-group-round
|
137
|
+
.button
|
138
|
+
float: left
|
139
|
+
margin-left: 0
|
140
|
+
|
141
|
+
.button:first-child
|
142
|
+
border-radius: 21px 0 0 21px
|
143
|
+
border-right: none
|
144
|
+
|
145
|
+
.button:last-child
|
146
|
+
border-radius: 0 21px 21px 0
|
147
|
+
|
148
|
+
// Pagination
|
149
|
+
|
150
|
+
.pagination-container
|
151
|
+
background: #f9f9f9
|
152
|
+
border: 1px solid #eee
|
153
|
+
border-left: none
|
154
|
+
border-right: none
|
155
|
+
margin: 0 -40px
|
156
|
+
padding: 0 40px
|
157
|
+
|
158
|
+
.pagination
|
159
|
+
|
160
|
+
.previous_page, .next_page, em.current, a
|
161
|
+
color: #999
|
162
|
+
display: inline-block
|
163
|
+
font-size: 14px
|
164
|
+
font-style: normal
|
165
|
+
font-weight: 600
|
166
|
+
line-height: 32px
|
167
|
+
padding: 0 8px
|
168
|
+
|
169
|
+
&:first-child
|
170
|
+
padding-left: 0
|
171
|
+
|
172
|
+
.disabled
|
173
|
+
display: none
|
174
|
+
|
175
|
+
// Dropdowns
|
176
|
+
|
177
|
+
[data-dropdown]
|
178
|
+
position: relative
|
179
|
+
|
180
|
+
ul, .sliding-dropdown
|
181
|
+
background: #fff
|
182
|
+
border: 1px solid #ccc
|
183
|
+
border-radius: 3px
|
184
|
+
display: none
|
185
|
+
list-style: none
|
186
|
+
margin: 0
|
187
|
+
margin-top: 6px
|
188
|
+
padding: 6px 0
|
189
|
+
position: absolute
|
190
|
+
width: 200px
|
191
|
+
z-index: 999
|
192
|
+
|
193
|
+
ul:before, .sliding-dropdown:before
|
194
|
+
content: ""
|
195
|
+
display: block
|
196
|
+
height: 0
|
197
|
+
position: absolute
|
198
|
+
left: 11px
|
199
|
+
top: -8px
|
200
|
+
width: 0
|
201
|
+
border-bottom: 8px solid #aaa
|
202
|
+
border-left: 8px solid transparent
|
203
|
+
border-right: 8px solid transparent
|
204
|
+
|
205
|
+
ul:after, .sliding-dropdown:after
|
206
|
+
content: ""
|
207
|
+
display: block
|
208
|
+
height: 0
|
209
|
+
position: absolute
|
210
|
+
left: 12px
|
211
|
+
top: -7px
|
212
|
+
width: 0
|
213
|
+
border-bottom: 7px solid #fff
|
214
|
+
border-left: 7px solid transparent
|
215
|
+
border-right: 7px solid transparent
|
216
|
+
|
217
|
+
ul.align-right
|
218
|
+
right: 0px
|
219
|
+
|
220
|
+
ul.align-right:before
|
221
|
+
left: auto
|
222
|
+
right: 11px
|
223
|
+
|
224
|
+
ul.align-right:after
|
225
|
+
left: auto
|
226
|
+
right: 12px
|
227
|
+
|
228
|
+
ul.open
|
229
|
+
display: block
|
230
|
+
|
231
|
+
ul li.divider
|
232
|
+
border-top: 1px solid #e9e9e9
|
233
|
+
margin: 8px 0
|
234
|
+
|
235
|
+
ul li a
|
236
|
+
color: #333
|
237
|
+
display: block
|
238
|
+
font-size: 14px
|
239
|
+
padding: 8px 16px
|
240
|
+
text-decoration: none
|
241
|
+
|
242
|
+
ul li a:hover
|
243
|
+
background-color: $primary-color
|
244
|
+
color: #fff
|
245
|
+
|
246
|
+
ul li a:before
|
247
|
+
margin-right: 8px
|
248
|
+
|
249
|
+
[data-dropdown] .sliding-dropdown
|
250
|
+
padding: 0
|
251
|
+
width: 300px
|
252
|
+
|
253
|
+
.slide-controls
|
254
|
+
border-bottom: 1px solid #eaeaea
|
255
|
+
color: #333
|
256
|
+
font-size: 14px
|
257
|
+
font-weight: 600
|
258
|
+
line-height: 44px
|
259
|
+
text-align: center
|
260
|
+
|
261
|
+
.slide-title
|
262
|
+
display: none
|
263
|
+
|
264
|
+
.slide-title.active
|
265
|
+
display: block
|
266
|
+
|
267
|
+
.previous, .next
|
268
|
+
color: #666
|
269
|
+
font-size: 12px
|
270
|
+
padding: 0 12px
|
271
|
+
position: absolute
|
272
|
+
top: 0px
|
273
|
+
|
274
|
+
&:hover
|
275
|
+
color: #333
|
276
|
+
|
277
|
+
&.muted
|
278
|
+
color: #ccc
|
279
|
+
cursor: default
|
280
|
+
|
281
|
+
.previous
|
282
|
+
left: 0px
|
283
|
+
|
284
|
+
.next
|
285
|
+
right: 0px
|
286
|
+
|
287
|
+
.slide-controls.open
|
288
|
+
display: block
|
289
|
+
|
290
|
+
.slide
|
291
|
+
display: none
|
292
|
+
text-align: center
|
293
|
+
|
294
|
+
&.active
|
295
|
+
display: block
|
296
|
+
|
297
|
+
p
|
298
|
+
color: #333
|
299
|
+
font-size: 14px
|
300
|
+
font-weight: 400
|
301
|
+
margin: 16px
|
302
|
+
|
303
|
+
p.muted
|
304
|
+
color: #999
|
305
|
+
|
306
|
+
.button
|
307
|
+
border-top-left-radius: 0
|
308
|
+
border-top-right-radius: 0
|
309
|
+
margin: -1px
|
310
|
+
width: 300px
|
311
|
+
|
312
|
+
&.button-primary
|
313
|
+
background: #f0f9fe
|
314
|
+
border: 1px solid #cee5f2
|
315
|
+
color: #0091e5
|
316
|
+
|
317
|
+
&:hover
|
318
|
+
background: #0091e5
|
319
|
+
border: 1px solid #0091e5
|
320
|
+
color: #fff
|
321
|
+
|
322
|
+
.slide-dots
|
323
|
+
margin: 12px
|
324
|
+
text-align: center
|
325
|
+
|
326
|
+
.slide-dot
|
327
|
+
background: #ccc
|
328
|
+
border-radius: 2px
|
329
|
+
display: inline-block
|
330
|
+
height: 4px
|
331
|
+
width: 4px
|
332
|
+
|
333
|
+
&.active
|
334
|
+
background: #333
|
@@ -0,0 +1,57 @@
|
|
1
|
+
.cards-grid
|
2
|
+
|
3
|
+
|
4
|
+
.card
|
5
|
+
background: #fff
|
6
|
+
border: 1px solid #e9e9e9
|
7
|
+
border-radius: 3px
|
8
|
+
display: inline-block
|
9
|
+
margin: 0 28px 30px 0
|
10
|
+
text-align: center
|
11
|
+
width: 225px
|
12
|
+
|
13
|
+
.card-heading
|
14
|
+
color: #333
|
15
|
+
font-size: 12px
|
16
|
+
font-weight: 600
|
17
|
+
line-height: 24px
|
18
|
+
padding: 12px
|
19
|
+
text-transform: uppercase
|
20
|
+
|
21
|
+
.card-content
|
22
|
+
padding: 12px 12px 24px 12px
|
23
|
+
|
24
|
+
.card-footer
|
25
|
+
border-top: 1px solid #e9e9e9
|
26
|
+
color: #999
|
27
|
+
font-size: 16px
|
28
|
+
font-weight: 400
|
29
|
+
line-height: 28px
|
30
|
+
padding: 4px 12px
|
31
|
+
|
32
|
+
.card-score
|
33
|
+
color: #666
|
34
|
+
font-size: 64px
|
35
|
+
font-weight: bold
|
36
|
+
margin: 12px 0
|
37
|
+
|
38
|
+
&.card-score-a
|
39
|
+
color: #00c309
|
40
|
+
|
41
|
+
&.card-score-b
|
42
|
+
color: #8dbe50
|
43
|
+
|
44
|
+
&.card-score-c
|
45
|
+
color: #f3e64c
|
46
|
+
|
47
|
+
&.card-score-d
|
48
|
+
color: #f0aa50
|
49
|
+
|
50
|
+
&.card-score-f
|
51
|
+
color: #e62f36
|
52
|
+
|
53
|
+
small
|
54
|
+
color: #666
|
55
|
+
display: block
|
56
|
+
font-size: 13px
|
57
|
+
font-weight: 400
|
@@ -0,0 +1,16 @@
|
|
1
|
+
$primary-color: #00a2ff
|
2
|
+
$success-color: #0fd2a2
|
3
|
+
$danger-color: #da3939
|
4
|
+
$info-color: #17577c
|
5
|
+
$error-color: #6a1515
|
6
|
+
$alert-color: orange
|
7
|
+
|
8
|
+
$asset-pipeline: true
|
9
|
+
$font-family: "Proxima Nova", $helvetica
|
10
|
+
$font-family-serif: "Skolar", $georgia
|
11
|
+
$icon-font: "Spina"
|
12
|
+
$gutter: 5em
|
13
|
+
|
14
|
+
$desktop: min-width 768px 8
|
15
|
+
$tablet: max-width 768px 8
|
16
|
+
$mobile: max-width 480px 4
|
@@ -0,0 +1,61 @@
|
|
1
|
+
@include keyframes("flyIn")
|
2
|
+
0%
|
3
|
+
opacity: 0
|
4
|
+
@include transform(scale(.9))
|
5
|
+
100%
|
6
|
+
opacity: 1
|
7
|
+
@include transform(scale(1))
|
8
|
+
|
9
|
+
.animated.flyIn
|
10
|
+
@include animation("flyIn" .4s ease)
|
11
|
+
|
12
|
+
@include keyframes("flyOut")
|
13
|
+
0%
|
14
|
+
opacity: 1
|
15
|
+
@include transform(scale(1))
|
16
|
+
100%
|
17
|
+
opacity: 0
|
18
|
+
@include transform(scale(.9))
|
19
|
+
|
20
|
+
.animated.flyOut
|
21
|
+
@include animation("flyOut" .4s ease)
|
22
|
+
|
23
|
+
@include keyframes("small-shake")
|
24
|
+
0%, 100%
|
25
|
+
@include transform(translateX(0))
|
26
|
+
20%, 60%
|
27
|
+
@include transform(translateX(7px))
|
28
|
+
40%, 80%
|
29
|
+
@include transform(translateX(-7px))
|
30
|
+
|
31
|
+
.animated.small-shake
|
32
|
+
@include animation("small-shake" .6s ease-in)
|
33
|
+
|
34
|
+
@include keyframes("switchon")
|
35
|
+
0%
|
36
|
+
@include transform(translate3d(0, 0, 0))
|
37
|
+
50%
|
38
|
+
width: 32px
|
39
|
+
@include transform(translate3d(0, 0, 0))
|
40
|
+
100%
|
41
|
+
width: 23px
|
42
|
+
@include transform(translate3d(17px, 0, 0))
|
43
|
+
|
44
|
+
@include keyframes("switchoff")
|
45
|
+
0%
|
46
|
+
@include transform(translate3d(17px, 0, 0))
|
47
|
+
100%
|
48
|
+
@include transform(translate3d(0, 0, 0))
|
49
|
+
|
50
|
+
.deactivated .knob
|
51
|
+
@include animation("switchoff" .2s ease)
|
52
|
+
|
53
|
+
.activated .knob
|
54
|
+
@include animation("switchon" .4s)
|
55
|
+
@include animation-fill-mode(forwards)
|
56
|
+
|
57
|
+
@include keyframes("rotate")
|
58
|
+
0%
|
59
|
+
@include transform(rotate(0deg))
|
60
|
+
100%
|
61
|
+
@include transform(rotate(360deg))
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.farbtastic
|
2
|
+
background: #fff
|
3
|
+
border-radius: 100px
|
4
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, .25)
|
5
|
+
display: none
|
6
|
+
position: absolute
|
7
|
+
z-index: 3
|
8
|
+
|
9
|
+
*
|
10
|
+
cursor: crosshair
|
11
|
+
position: absolute
|
12
|
+
|
13
|
+
.color, .overlay
|
14
|
+
height: 101px
|
15
|
+
left: 47px
|
16
|
+
top: 47px
|
17
|
+
width: 101px
|
18
|
+
|
19
|
+
.wheel
|
20
|
+
background: url(asset_path('spina/wheel.png', 'image'))
|
21
|
+
height: 195px
|
22
|
+
width: 195px
|
23
|
+
|
24
|
+
.overlay
|
25
|
+
background: url(asset_path('spina/mask.png', 'image'))
|
26
|
+
|
27
|
+
.marker
|
28
|
+
background: url(asset_path('spina/marker.png', 'image'))
|
29
|
+
height: 17px
|
30
|
+
margin: -8px 0 0 -8px
|
31
|
+
overflow: hidden
|
32
|
+
width: 17px
|
33
|
+
|
34
|
+
.farbtastic, .farbtastic .wheel
|
35
|
+
height: 195px
|
36
|
+
width: 195px
|
37
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Icons
|
2
|
+
|
3
|
+
[data-icon]:before
|
4
|
+
font-family: $icon-font
|
5
|
+
content: attr(data-icon)
|
6
|
+
font-style: normal
|
7
|
+
font-weight: normal !important
|
8
|
+
line-height: 1
|
9
|
+
speak: none
|
10
|
+
vertical-align: text-top
|
11
|
+
-webkit-font-smoothing: antialiased
|
12
|
+
|
13
|
+
[data-icon].icon-dimmed:before
|
14
|
+
opacity: .25
|