fustrate-rails 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/lib/fustrate-rails.rb +4 -0
  3. data/lib/fustrate/rails/engine.rb +14 -0
  4. data/lib/fustrate/rails/version.rb +6 -0
  5. data/vendor/assets/javascripts/awesomplete.js +402 -0
  6. data/vendor/assets/javascripts/fustrate.coffee +6 -0
  7. data/vendor/assets/javascripts/fustrate/_module.coffee +134 -0
  8. data/vendor/assets/javascripts/fustrate/components/_module.coffee +3 -0
  9. data/vendor/assets/javascripts/fustrate/components/alert_box.coffee +10 -0
  10. data/vendor/assets/javascripts/fustrate/components/autocomplete.coffee +161 -0
  11. data/vendor/assets/javascripts/fustrate/components/disclosure.coffee +12 -0
  12. data/vendor/assets/javascripts/fustrate/components/drop_zone.coffee +9 -0
  13. data/vendor/assets/javascripts/fustrate/components/dropdown.coffee +48 -0
  14. data/vendor/assets/javascripts/fustrate/components/file_picker.coffee +10 -0
  15. data/vendor/assets/javascripts/fustrate/components/flash.coffee +31 -0
  16. data/vendor/assets/javascripts/fustrate/components/modal.coffee +213 -0
  17. data/vendor/assets/javascripts/fustrate/components/pagination.coffee +84 -0
  18. data/vendor/assets/javascripts/fustrate/components/tabs.coffee +28 -0
  19. data/vendor/assets/javascripts/fustrate/components/tooltip.coffee +72 -0
  20. data/vendor/assets/javascripts/fustrate/generic_form.coffee +31 -0
  21. data/vendor/assets/javascripts/fustrate/generic_page.coffee +40 -0
  22. data/vendor/assets/javascripts/fustrate/generic_table.coffee +57 -0
  23. data/vendor/assets/javascripts/fustrate/listenable.coffee +25 -0
  24. data/vendor/assets/javascripts/fustrate/object.coffee +21 -0
  25. data/vendor/assets/javascripts/fustrate/record.coffee +23 -0
  26. data/vendor/assets/stylesheets/_fustrate.sass +7 -0
  27. data/vendor/assets/stylesheets/awesomplete.sass +75 -0
  28. data/vendor/assets/stylesheets/fustrate/_colors.sass +9 -0
  29. data/vendor/assets/stylesheets/fustrate/_settings.sass +20 -0
  30. data/vendor/assets/stylesheets/fustrate/components/_components.sass +36 -0
  31. data/vendor/assets/stylesheets/fustrate/components/_functions.sass +40 -0
  32. data/vendor/assets/stylesheets/fustrate/components/alerts.sass +78 -0
  33. data/vendor/assets/stylesheets/fustrate/components/buttons.sass +103 -0
  34. data/vendor/assets/stylesheets/fustrate/components/disclosures.sass +23 -0
  35. data/vendor/assets/stylesheets/fustrate/components/dropdowns.sass +31 -0
  36. data/vendor/assets/stylesheets/fustrate/components/flash.sass +33 -0
  37. data/vendor/assets/stylesheets/fustrate/components/forms.sass +188 -0
  38. data/vendor/assets/stylesheets/fustrate/components/grid.sass +204 -0
  39. data/vendor/assets/stylesheets/fustrate/components/labels.sass +63 -0
  40. data/vendor/assets/stylesheets/fustrate/components/modals.sass +119 -0
  41. data/vendor/assets/stylesheets/fustrate/components/pagination.sass +57 -0
  42. data/vendor/assets/stylesheets/fustrate/components/panels.sass +49 -0
  43. data/vendor/assets/stylesheets/fustrate/components/popovers.sass +15 -0
  44. data/vendor/assets/stylesheets/fustrate/components/tables.sass +58 -0
  45. data/vendor/assets/stylesheets/fustrate/components/tabs.sass +44 -0
  46. data/vendor/assets/stylesheets/fustrate/components/tooltips.sass +28 -0
  47. data/vendor/assets/stylesheets/fustrate/components/typography.sass +355 -0
  48. metadata +211 -0
@@ -0,0 +1,15 @@
1
+ =fustrate-popovers
2
+ .popover
3
+ background: scale_color(#fff, $lightness: -5%)
4
+ border: 1px solid scale_color(#fff, $lightness: -12%)
5
+ display: inline-block
6
+ z-index: 9001
7
+ position: absolute
8
+ box-shadow: 0 0 12px scale_color($grey, $lightness: 80%)
9
+ padding: rem-calc(12 16)
10
+ opacity: .9
11
+
12
+ & > :first-child
13
+ margin-top: 0
14
+ & > :last-child
15
+ margin-bottom: 0
@@ -0,0 +1,58 @@
1
+ $table-border-color: #ccc
2
+ $table-padding: .5em
3
+
4
+ =fustrate-tables
5
+ table
6
+ border-collapse: collapse
7
+ margin: $table-padding 0
8
+ width: 100%
9
+
10
+ &.info
11
+ td
12
+ border-left: 1px solid darken($table-border-color, 25%)
13
+
14
+ &:first-child
15
+ border-left: none
16
+
17
+ th
18
+ border-bottom: 1px solid darken($table-border-color, 25%)
19
+ font-weight: bold
20
+ padding: $table-padding
21
+ text-align: left
22
+
23
+ td
24
+ border-top: 1px solid $table-border-color
25
+ padding: $table-padding
26
+
27
+ .thumbnail
28
+ max-width: initial
29
+
30
+ tr, td, th
31
+ vertical-align: middle
32
+
33
+ table table
34
+ margin: 0
35
+
36
+ td
37
+ border-top: none
38
+ padding: $table-padding * .5
39
+
40
+ .responsive-table
41
+ overflow: visible
42
+
43
+ tr.no-records
44
+ text-align: center
45
+ display: none
46
+
47
+ tr.loading td
48
+ text-align: center
49
+ &:before
50
+ +font-awesome("\f110", $spin: true)
51
+
52
+ @media #{$small-only}
53
+ .responsive-table
54
+ table
55
+ margin: 0 0 $table-padding
56
+
57
+ th, td
58
+ padding: $table-padding * .5
@@ -0,0 +1,44 @@
1
+ @import "buttons"
2
+ @import "panels"
3
+
4
+ $tabs-padding: rem-calc(10)
5
+ $tabs-font-size: rem-calc(12)
6
+ $tabs-content-padding: 0 rem-calc(10)
7
+ $tabs-active-color: $primary-color
8
+
9
+ =fustrate-tabs
10
+ ul.tabs
11
+ margin-bottom: 0
12
+
13
+ > li
14
+ display: inline
15
+
16
+ a
17
+ +button-base
18
+ +button-size($tabs-padding)
19
+ +button-style(white)
20
+
21
+ &.active
22
+ +button-style($tabs-active-color, $hover: false)
23
+
24
+ .tabs-content
25
+ .content
26
+ display: none
27
+ overflow: hidden
28
+ padding: $tabs-content-padding
29
+
30
+ &.active
31
+ display: block
32
+
33
+ &.panel
34
+ padding: $panel-padding
35
+
36
+ &.panel
37
+ padding: $tabs-content-padding
38
+
39
+ .content
40
+ padding: 0
41
+
42
+ @media #{$small-only}
43
+ ul.tabs > li a
44
+ +button-size($tabs-padding * .6)
@@ -0,0 +1,28 @@
1
+ $tooltip-bg-color: #222
2
+ $tooltip-color: #eee
3
+ $tooltip-opacity: .9
4
+
5
+ =fustrate-tooltips
6
+ [data-tooltip]
7
+ cursor: help
8
+
9
+ .tooltip
10
+ background: $tooltip-bg-color
11
+ color: $tooltip-color
12
+ font-size: .8rem
13
+ padding: 5px 7px
14
+ opacity: $tooltip-opacity
15
+ position: absolute
16
+ line-height: 1.2
17
+ max-width: 200px
18
+
19
+ &:before
20
+ display: block
21
+ width: 0px
22
+ height: 0px
23
+ border: 4px solid transparent
24
+ border-bottom-color: $tooltip-bg-color
25
+ content: ' '
26
+ position: absolute
27
+ left: 8px
28
+ bottom: 100%
@@ -0,0 +1,355 @@
1
+ $font-color: #222
2
+
3
+ $h1-font-size: rem-calc(34)
4
+ $h2-font-size: rem-calc(30)
5
+ $h3-font-size: rem-calc(26)
6
+ $h4-font-size: rem-calc(22)
7
+ $h5-font-size: rem-calc(18)
8
+ $h6-font-size: 1rem
9
+
10
+ $h1-font-reduction: rem-calc(10)
11
+ $h2-font-reduction: rem-calc(10)
12
+ $h3-font-reduction: rem-calc(5)
13
+ $h4-font-reduction: rem-calc(5)
14
+
15
+ =fustrate-typography
16
+ html,
17
+ body
18
+ height: 100%
19
+ font-size: 1em
20
+
21
+ *,
22
+ *:before,
23
+ *:after
24
+ box-sizing: border-box
25
+
26
+ body
27
+ background: #fafafa
28
+ color: $font-color
29
+ padding: 0
30
+ margin: 0
31
+ font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif
32
+ font-weight: normal
33
+ font-style: normal
34
+ line-height: $base-line-height
35
+ position: relative
36
+ cursor: default
37
+
38
+ a:hover
39
+ cursor: pointer
40
+
41
+ img
42
+ max-width: 100%
43
+ height: auto
44
+ display: inline-block
45
+ vertical-align: middle
46
+ -ms-interpolation-mode: bicubic
47
+
48
+ div,
49
+ dl,
50
+ dt,
51
+ dd,
52
+ ul,
53
+ ol,
54
+ li,
55
+ h1,
56
+ h2,
57
+ h3,
58
+ h4,
59
+ h5,
60
+ h6,
61
+ pre,
62
+ form,
63
+ p,
64
+ blockquote,
65
+ th,
66
+ td
67
+ margin: 0
68
+ padding: 0
69
+
70
+ a
71
+ color: $primary-color
72
+ text-decoration: none
73
+ line-height: inherit
74
+
75
+ &:hover,
76
+ &:active
77
+ color: scale-color($primary-color, $lightness: -14%)
78
+
79
+ img
80
+ border: none
81
+
82
+ p
83
+ font-family: inherit
84
+ font-weight: normal
85
+ font-size: 1rem
86
+ line-height: 1.6
87
+ margin-bottom: rem-calc(20)
88
+ text-rendering: optimizeLegibility
89
+
90
+ &.lead
91
+ font-size: 1rem + rem-calc(3.5)
92
+ line-height: 1.6
93
+
94
+ h1, h2, h3, h4, h5, h6
95
+ font-family: inherit
96
+ font-weight: normal
97
+ font-style: normal
98
+ color: #222
99
+ text-rendering: optimizeLegibility
100
+ margin-top: .2rem
101
+ margin-bottom: .5rem
102
+ line-height: 1.4
103
+ padding: 0 rem-calc(20)
104
+
105
+ small
106
+ font-size: 60%
107
+ color: scale-color(#222, $lightness: 35%)
108
+ line-height: 0
109
+
110
+ h1
111
+ font-size: $h1-font-size - $h1-font-reduction
112
+ h2
113
+ font-size: $h2-font-size - $h2-font-reduction
114
+ h3
115
+ font-size: $h3-font-size - $h3-font-reduction
116
+ h4
117
+ font-size: $h4-font-size - $h4-font-reduction
118
+ h5
119
+ font-size: $h5-font-size
120
+ h6
121
+ font-size: $h6-font-size
122
+
123
+ .subheader
124
+ line-height: 1.4
125
+ color: scale-color(#222, $lightness: 35%)
126
+ font-weight: normal
127
+ margin-top: .2rem
128
+ margin-bottom: .5rem
129
+
130
+ hr
131
+ border: solid #ccc
132
+ border-width: 1px 0 0
133
+ clear: both
134
+ margin: rem-calc(20) 0 (rem-calc(20) - rem-calc(1px))
135
+ height: 0
136
+
137
+ em,
138
+ i
139
+ font-style: italic
140
+ line-height: inherit
141
+
142
+ strong,
143
+ b
144
+ font-weight: bold
145
+ line-height: inherit
146
+
147
+ small
148
+ font-size: 80%
149
+ line-height: inherit
150
+
151
+ ul,
152
+ ol,
153
+ dl
154
+ font-size: 1rem
155
+ line-height: 1.6
156
+ margin-bottom: rem-calc(20)
157
+ list-style-position: outside
158
+ font-family: inherit
159
+
160
+ ul
161
+ list-style-type: none
162
+ margin-left: 0
163
+ padding-left: 0
164
+ &.no-bullet
165
+ margin-left: 0
166
+ li
167
+ ul,
168
+ ol
169
+ margin-left: rem-calc(20)
170
+ margin-bottom: 0
171
+ list-style: none
172
+
173
+ ul
174
+ li
175
+ ul,
176
+ ol
177
+ margin-left: rem-calc(20)
178
+ margin-bottom: 0
179
+
180
+ &.square,
181
+ &.circle,
182
+ &.disc
183
+ margin-left: 1.1rem
184
+ li ul
185
+ list-style: inherit
186
+
187
+ &.square
188
+ list-style-type: square
189
+ &.circle
190
+ list-style-type: circle
191
+ &.disc
192
+ list-style-type: disc
193
+ &.no-bullet
194
+ list-style: none
195
+
196
+ ol
197
+ margin-left: 1.4rem
198
+ li
199
+ ul,
200
+ ol
201
+ margin-left: rem-calc(20)
202
+ margin-bottom: 0
203
+
204
+ dl
205
+ dt
206
+ padding-left: 0
207
+ margin-bottom: .3rem
208
+ font-weight: bold
209
+ dd
210
+ margin-bottom: rem-calc(12)
211
+ padding-left: 10px
212
+
213
+ :last-child
214
+ margin-bottom: 0
215
+
216
+ address
217
+ font-style: normal
218
+ white-space: pre
219
+
220
+ abbr,
221
+ acronym
222
+ text-transform: uppercase
223
+ font-size: 90%
224
+ color: $font-color
225
+ border-bottom: 1px dotted #ddd
226
+ cursor: help
227
+
228
+ abbr
229
+ text-transform: none
230
+
231
+ blockquote
232
+ margin: 0 0 rem-calc(20)
233
+ padding: rem-calc(9 20 9 19)
234
+ border-left: 1px solid #ddd
235
+
236
+ // Respect the padding, fool.
237
+ & > :first-child
238
+ margin-top: 0
239
+ & > :last-child
240
+ margin-bottom: 0
241
+
242
+ blockquote,
243
+ blockquote p
244
+ line-height: 1.6
245
+ color: scale-color(#222, $lightness: 35%)
246
+
247
+ iframe
248
+ margin-bottom: rem-calc(20)
249
+
250
+ @media #{$medium-up}
251
+ h1,h2,h3,h4,h5,h6
252
+ line-height: 1.4
253
+
254
+ h1
255
+ font-size: $h1-font-size
256
+ h2
257
+ font-size: $h2-font-size
258
+ h3
259
+ font-size: $h3-font-size
260
+ h4
261
+ font-size: $h4-font-size
262
+ h5
263
+ font-size: $h5-font-size
264
+ h6
265
+ font-size: $h6-font-size
266
+
267
+ .text-left
268
+ text-align: left !important
269
+ .text-right
270
+ text-align: right !important
271
+ .text-center
272
+ text-align: center !important
273
+ .text-justify
274
+ text-align: justify !important
275
+
276
+ #map_canvas,
277
+ .map_canvas
278
+ img,
279
+ embed,
280
+ object
281
+ max-width: none !important
282
+
283
+ .left
284
+ float: left !important
285
+ .right
286
+ float: right !important
287
+ .clearfix
288
+ +clearfix
289
+ .hide
290
+ display: none !important
291
+
292
+ .antialiased
293
+ -webkit-font-smoothing: antialiased
294
+ -moz-osx-font-smoothing: grayscale
295
+
296
+ .print-only
297
+ display: none !important
298
+
299
+ .large
300
+ font-size: 1.2rem
301
+ vertical-align: middle
302
+
303
+ .help
304
+ opacity: .7
305
+ font-size: 0.8rem
306
+ margin: 0
307
+
308
+ .dim
309
+ opacity: .6
310
+
311
+ .preserve
312
+ white-space: pre-wrap
313
+
314
+ .nowrap
315
+ white-space: nowrap
316
+
317
+ @media print
318
+ *
319
+ background: transparent !important
320
+ color: #000 !important
321
+ box-shadow: none !important
322
+ text-shadow: none !important
323
+
324
+ pre,
325
+ blockquote
326
+ border: 1px solid #999
327
+ page-break-inside: avoid
328
+
329
+ thead
330
+ display: table-header-group
331
+
332
+ tr,
333
+ img
334
+ page-break-inside: avoid
335
+
336
+ img
337
+ max-width: 100% !important
338
+
339
+ @page
340
+ margin: 0.5cm
341
+
342
+ p,
343
+ h2,
344
+ h3
345
+ orphans: 3
346
+ widows: 3
347
+
348
+ h2,
349
+ h3
350
+ page-break-after: avoid
351
+
352
+ .print-only
353
+ display: inherit !important
354
+ .no-print
355
+ display: none !important