hancock_cms 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +23 -0
  3. data/.rspec +1 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +113 -0
  9. data/Rakefile +1 -0
  10. data/app/assets/images/devices/login-bg.jpg +0 -0
  11. data/app/assets/images/rails-admin/hancock_logo.svg +5 -0
  12. data/app/assets/javascripts/hancock/app/back_to_top.coffee +24 -0
  13. data/app/assets/javascripts/hancock/cms.coffee +11 -0
  14. data/app/assets/javascripts/hancock/cms/flash.coffee +3 -0
  15. data/app/assets/javascripts/hancock/cms/init.coffee +1 -0
  16. data/app/assets/javascripts/hancock/cms/map.coffee +22 -0
  17. data/app/assets/javascripts/hancock/rails_admin/cms.ui.coffee +43 -0
  18. data/app/assets/javascripts/hancock/rails_admin/custom/ui.coffee +0 -0
  19. data/app/assets/javascripts/head.load.js +707 -0
  20. data/app/assets/javascripts/jquery.placeholder.js +157 -0
  21. data/app/assets/javascripts/rails_admin/custom/ui.coffee +2 -0
  22. data/app/assets/stylesheets/hancock/cms.sass +9 -0
  23. data/app/assets/stylesheets/hancock/cms/devise.sass +157 -0
  24. data/app/assets/stylesheets/hancock/cms/flash.sass +69 -0
  25. data/app/assets/stylesheets/hancock/cms/mixins.sass +98 -0
  26. data/app/assets/stylesheets/hancock/cms/normalize.scss +407 -0
  27. data/app/assets/stylesheets/hancock/cms/powered.sass +18 -0
  28. data/app/assets/stylesheets/hancock/rails_admin/cms.theming.sass +703 -0
  29. data/app/assets/stylesheets/hancock/rails_admin/custom/theming.sass +1 -0
  30. data/app/assets/stylesheets/hancock/toplink/toplink.sass +24 -0
  31. data/app/assets/stylesheets/rails_admin/custom/theming.sass +4 -0
  32. data/app/controllers/concerns/hancock/current_user.rb +12 -0
  33. data/app/controllers/concerns/hancock/decorators/home.rb +12 -0
  34. data/app/controllers/concerns/hancock/decorators/registrations.rb +5 -0
  35. data/app/controllers/concerns/hancock/decorators/sessions.rb +5 -0
  36. data/app/controllers/concerns/hancock/errors.rb +94 -0
  37. data/app/controllers/concerns/hancock/fancybox.rb +14 -0
  38. data/app/controllers/concerns/hancock/no_cache.rb +12 -0
  39. data/app/controllers/hancock/home_controller.rb +10 -0
  40. data/app/controllers/hancock/registrations_controller.rb +23 -0
  41. data/app/controllers/hancock/sessions_controller.rb +24 -0
  42. data/app/helpers/hancock/gzip_helper.rb +27 -0
  43. data/app/helpers/hancock/home_helper.rb +2 -0
  44. data/app/helpers/hancock/powered_helper.rb +42 -0
  45. data/app/models/concerns/hancock/boolean_field.rb +21 -0
  46. data/app/models/concerns/hancock/cacheable.rb +33 -0
  47. data/app/models/concerns/hancock/decorators/embedded_element.rb +28 -0
  48. data/app/models/concerns/hancock/enableable.rb +8 -0
  49. data/app/models/concerns/hancock/geocodeable.rb +4 -0
  50. data/app/models/concerns/hancock/hash_field.rb +113 -0
  51. data/app/models/concerns/hancock/html_field.rb +33 -0
  52. data/app/models/concerns/hancock/mappable.rb +91 -0
  53. data/app/models/concerns/hancock/model_localizeable.rb +33 -0
  54. data/app/models/concerns/hancock/rails_admin_patch.rb +86 -0
  55. data/app/models/concerns/hancock/sort_field.rb +20 -0
  56. data/app/models/concerns/hancock/sortable.rb +8 -0
  57. data/app/models/hancock/embedded_element.rb +17 -0
  58. data/app/views/blocks/_favicon.html.slim +60 -0
  59. data/app/views/blocks/_footer.html.slim +1 -0
  60. data/app/views/blocks/_header.html.slim +3 -0
  61. data/app/views/devise/passwords/edit.html.slim +29 -0
  62. data/app/views/devise/passwords/new.html.slim +19 -0
  63. data/app/views/devise/registrations/edit.html.slim +31 -0
  64. data/app/views/devise/registrations/new.html.slim +39 -0
  65. data/app/views/devise/sessions/new.html.slim +39 -0
  66. data/app/views/devise/shared/_links.html.slim +11 -0
  67. data/app/views/hancock/errors/_base.html.slim +3 -0
  68. data/app/views/hancock/errors/error_403.html.slim +1 -0
  69. data/app/views/hancock/errors/error_404.html.slim +1 -0
  70. data/app/views/hancock/errors/error_500.html.slim +1 -0
  71. data/app/views/hancock/home/index.html.slim +1 -0
  72. data/app/views/hancock/simple_captcha/_simple_captcha.html.slim +13 -0
  73. data/app/views/hancock/toplink/_toplink.html.slim +2 -0
  74. data/app/views/layouts/application.html.slim +35 -0
  75. data/app/views/layouts/hancock/devise/confirmations.html.slim +22 -0
  76. data/app/views/layouts/hancock/devise/passwords.html.slim +22 -0
  77. data/app/views/layouts/hancock/devise/registrations.html.slim +22 -0
  78. data/app/views/layouts/hancock/devise/sessions.html.slim +22 -0
  79. data/app/views/layouts/hancock/devise/unlocks.html.slim +22 -0
  80. data/app/views/layouts/rails_admin/_footer.html.slim +2 -0
  81. data/app/views/layouts/rails_admin/_footer_navigation.html.slim +20 -0
  82. data/app/views/layouts/rails_admin/_navigation.html.slim +73 -0
  83. data/app/views/layouts/rails_admin/_secondary_navigation.html.slim +32 -0
  84. data/app/views/layouts/rails_admin/application.html.haml +68 -0
  85. data/app/views/layouts/rails_admin/pjax.html.haml +17 -0
  86. data/app/views/rails_admin/main/_check_boxes.html.slim +27 -0
  87. data/app/views/rails_admin/main/_enum_check_boxes.html.slim +5 -0
  88. data/app/views/rails_admin/main/_enum_radio_buttons.html.slim +5 -0
  89. data/app/views/rails_admin/main/_form_hancock_multiselect.html.slim +48 -0
  90. data/app/views/rails_admin/main/_form_raw.html.slim +1 -0
  91. data/app/views/rails_admin/main/_hancock_hash.html.slim +9 -0
  92. data/app/views/rails_admin/main/_hancock_hash_ml.html.slim +10 -0
  93. data/app/views/rails_admin/main/_hancock_html.html.slim +16 -0
  94. data/app/views/rails_admin/main/_hancock_html_ml.html.slim +53 -0
  95. data/app/views/shared/_admin_link.html.slim +3 -0
  96. data/app/views/shared/_messages.html.slim +7 -0
  97. data/config/initializers/embedded_findable.rb +57 -0
  98. data/config/initializers/hancock_cms.rb +11 -0
  99. data/config/initializers/simple_captcha.rb +70 -0
  100. data/config/locales/en.hancock.yml +29 -0
  101. data/config/locales/en.hancock_admin.yml +6 -0
  102. data/config/locales/ru.cancan.yml +4 -0
  103. data/config/locales/ru.devise.yml +65 -0
  104. data/config/locales/ru.hancock.yml +36 -0
  105. data/config/locales/ru.hancock_admin.yml +6 -0
  106. data/config/locales/ru.models.yml +82 -0
  107. data/config/locales/ru.mongoid.yml +450 -0
  108. data/config/locales/ru.rails_admin.yml +168 -0
  109. data/hancock_cms.gemspec +46 -0
  110. data/lib/filename_to_slug.rb +32 -0
  111. data/lib/generators/hancock/cms/ability_generator.rb +14 -0
  112. data/lib/generators/hancock/cms/admin_generator.rb +21 -0
  113. data/lib/generators/hancock/cms/application_generator.rb +14 -0
  114. data/lib/generators/hancock/cms/assets_generator.rb +35 -0
  115. data/lib/generators/hancock/cms/config_generator.rb +13 -0
  116. data/lib/generators/hancock/cms/controllers/decorators_generator.rb +27 -0
  117. data/lib/generators/hancock/cms/gemfile_generator.rb +13 -0
  118. data/lib/generators/hancock/cms/layout_generator.rb +14 -0
  119. data/lib/generators/hancock/cms/model_generator.rb +39 -0
  120. data/lib/generators/hancock/cms/models/embedded_element_generator.rb +56 -0
  121. data/lib/generators/hancock/cms/models/templates/embedded_element.erb +47 -0
  122. data/lib/generators/hancock/cms/paperclip_optimizer_generator.rb +13 -0
  123. data/lib/generators/hancock/cms/rack_generator.rb +12 -0
  124. data/lib/generators/hancock/cms/robots_generator.rb +14 -0
  125. data/lib/generators/hancock/cms/scripts_generator.rb +31 -0
  126. data/lib/generators/hancock/cms/templates/Gemfile.erb +69 -0
  127. data/lib/generators/hancock/cms/templates/ability.erb +49 -0
  128. data/lib/generators/hancock/cms/templates/admin.erb +74 -0
  129. data/lib/generators/hancock/cms/templates/application.erb +42 -0
  130. data/lib/generators/hancock/cms/templates/assets/javascripts/application.coffee.erb +5 -0
  131. data/lib/generators/hancock/cms/templates/assets/stylesheets/application.sass.erb +88 -0
  132. data/lib/generators/hancock/cms/templates/hancock_cms.erb +30 -0
  133. data/lib/generators/hancock/cms/templates/model.erb +42 -0
  134. data/lib/generators/hancock/cms/templates/paperclip_optimizer.erb +80 -0
  135. data/lib/generators/hancock/cms/templates/rack.erb +15 -0
  136. data/lib/generators/hancock/cms/templates/robots.txt.erb +5 -0
  137. data/lib/generators/hancock/cms/templates/scripts/assets_precompile.sh +3 -0
  138. data/lib/generators/hancock/cms/templates/scripts/bundle_production.sh +4 -0
  139. data/lib/generators/hancock/cms/templates/scripts/db_dump.sh.erb +3 -0
  140. data/lib/generators/hancock/cms/templates/scripts/db_restore.sh +3 -0
  141. data/lib/generators/hancock/cms/templates/scripts/full_assets_precompile.sh +4 -0
  142. data/lib/generators/hancock/cms/templates/scripts/restart_thru_kill.sh +3 -0
  143. data/lib/generators/hancock/cms/templates/scripts/send_hup.sh +3 -0
  144. data/lib/generators/hancock/cms/templates/scripts/send_usr2.sh +3 -0
  145. data/lib/generators/hancock/cms/templates/scripts/server.sh +5 -0
  146. data/lib/generators/hancock/cms/templates/scripts/server_alt.sh +5 -0
  147. data/lib/generators/hancock/cms/templates/unicorn.erb +57 -0
  148. data/lib/generators/hancock/cms/templates/unicorn.god.erb +59 -0
  149. data/lib/generators/hancock/cms/unicorn_god_generator.rb +15 -0
  150. data/lib/generators/hancock/cms/utils.rb +21 -0
  151. data/lib/hancock/admin.rb +60 -0
  152. data/lib/hancock/admin/embedded_element.rb +26 -0
  153. data/lib/hancock/configuration.rb +48 -0
  154. data/lib/hancock/controller.rb +30 -0
  155. data/lib/hancock/engine.rb +48 -0
  156. data/lib/hancock/migration.rb +15 -0
  157. data/lib/hancock/model.rb +53 -0
  158. data/lib/hancock/models/embedded_element.rb +12 -0
  159. data/lib/hancock/models/mongoid/embedded_element.rb +14 -0
  160. data/lib/hancock/plugin.rb +25 -0
  161. data/lib/hancock/plugin_configuration.rb +30 -0
  162. data/lib/hancock/rails_admin_ext/config.rb +129 -0
  163. data/lib/hancock/rails_admin_ext/hancock_hash.rb +84 -0
  164. data/lib/hancock/rails_admin_ext/hancock_html.rb +79 -0
  165. data/lib/hancock/rails_admin_ext/hancock_multiselect.rb +44 -0
  166. data/lib/hancock/rails_admin_ext/hancock_slugs.rb +35 -0
  167. data/lib/hancock/rails_admin_ext/patches/field_patch.rb +14 -0
  168. data/lib/hancock/rails_admin_ext/patches/group_patch.rb +41 -0
  169. data/lib/hancock/rails_admin_ext/patches/hancock_cms_group.rb +61 -0
  170. data/lib/hancock/rails_admin_ext/patches/new_controller_patch.rb +54 -0
  171. data/lib/hancock/routes.rb +20 -0
  172. data/lib/hancock/simple_form_patch.rb +12 -0
  173. data/lib/hancock/tasks.rb +13 -0
  174. data/lib/hancock/version.rb +3 -0
  175. data/lib/hancock_cms.rb +130 -0
  176. data/lib/manual_slug.rb +10 -0
  177. data/lib/manual_slug/active_record.rb +32 -0
  178. data/lib/manual_slug/mongoid.rb +40 -0
  179. data/lib/rails_admin/custom_show_in_app.rb +43 -0
  180. data/release.sh +12 -0
  181. data/template.rb +564 -0
  182. metadata +455 -0
@@ -0,0 +1,407 @@
1
+ /*! normalize.css v2.1.3 | MIT License | git.io/normalize */
2
+
3
+ /* ==========================================================================
4
+ HTML5 display definitions
5
+ ========================================================================== */
6
+
7
+ /**
8
+ * Correct `block` display not defined in IE 8/9.
9
+ */
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ main,
20
+ nav,
21
+ section,
22
+ summary {
23
+ display: block;
24
+ }
25
+
26
+ /**
27
+ * Correct `inline-block` display not defined in IE 8/9.
28
+ */
29
+
30
+ audio,
31
+ canvas,
32
+ video {
33
+ display: inline-block;
34
+ }
35
+
36
+ /**
37
+ * Prevent modern browsers from displaying `audio` without controls.
38
+ * Remove excess height in iOS 5 devices.
39
+ */
40
+
41
+ audio:not([controls]) {
42
+ display: none;
43
+ height: 0;
44
+ }
45
+
46
+ /**
47
+ * Address `[hidden]` styling not present in IE 8/9.
48
+ * Hide the `template` element in IE, Safari, and Firefox < 22.
49
+ */
50
+
51
+ [hidden],
52
+ template {
53
+ display: none;
54
+ }
55
+
56
+ /* ==========================================================================
57
+ Base
58
+ ========================================================================== */
59
+
60
+ /**
61
+ * 1. Set default font family to sans-serif.
62
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
63
+ * user zoom.
64
+ */
65
+
66
+ html {
67
+ font-family: sans-serif; /* 1 */
68
+ -ms-text-size-adjust: 100%; /* 2 */
69
+ -webkit-text-size-adjust: 100%; /* 2 */
70
+ }
71
+
72
+ /**
73
+ * Remove default margin.
74
+ */
75
+
76
+ body {
77
+ margin: 0;
78
+ }
79
+
80
+ /* ==========================================================================
81
+ Links
82
+ ========================================================================== */
83
+
84
+ /**
85
+ * Remove the gray background color from active links in IE 10.
86
+ */
87
+
88
+ a {
89
+ background: transparent;
90
+ outline: 0;
91
+ }
92
+
93
+ /**
94
+ * Address `outline` inconsistency between Chrome and other browsers.
95
+ */
96
+
97
+ a:focus {
98
+ outline: 0;
99
+ }
100
+
101
+ /**
102
+ * Improve readability when focused and also mouse hovered in all browsers.
103
+ */
104
+
105
+ a:active,
106
+ a:hover {
107
+ outline: 0;
108
+ }
109
+
110
+ /* ==========================================================================
111
+ Typography
112
+ ========================================================================== */
113
+
114
+ /**
115
+ * Address variable `h1` font-size and margin within `section` and `article`
116
+ * contexts in Firefox 4+, Safari 5, and Chrome.
117
+ */
118
+
119
+ h1 {
120
+ font-size: 2em;
121
+ margin: 0.67em 0;
122
+ }
123
+
124
+ /**
125
+ * Address styling not present in IE 8/9, Safari 5, and Chrome.
126
+ */
127
+
128
+ abbr[title] {
129
+ border-bottom: 1px dotted;
130
+ }
131
+
132
+ /**
133
+ * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
134
+ */
135
+
136
+ b,
137
+ strong {
138
+ font-weight: bold;
139
+ }
140
+
141
+ /**
142
+ * Address styling not present in Safari 5 and Chrome.
143
+ */
144
+
145
+ dfn {
146
+ font-style: italic;
147
+ }
148
+
149
+ /**
150
+ * Address differences between Firefox and other browsers.
151
+ */
152
+
153
+ hr {
154
+ -moz-box-sizing: content-box;
155
+ box-sizing: content-box;
156
+ height: 0;
157
+ }
158
+
159
+ /**
160
+ * Address styling not present in IE 8/9.
161
+ */
162
+
163
+ mark {
164
+ background: #ff0;
165
+ color: #000;
166
+ }
167
+
168
+ /**
169
+ * Correct font family set oddly in Safari 5 and Chrome.
170
+ */
171
+
172
+ code,
173
+ kbd,
174
+ pre,
175
+ samp {
176
+ font-family: monospace, serif;
177
+ font-size: 1em;
178
+ }
179
+
180
+ /**
181
+ * Improve readability of pre-formatted text in all browsers.
182
+ */
183
+
184
+ pre {
185
+ white-space: pre-wrap;
186
+ }
187
+
188
+ /**
189
+ * Set consistent quote types.
190
+ */
191
+
192
+ q {
193
+ quotes: "\201C" "\201D" "\2018" "\2019";
194
+ }
195
+
196
+ /**
197
+ * Address inconsistent and variable font size in all browsers.
198
+ */
199
+
200
+ small {
201
+ font-size: 80%;
202
+ }
203
+
204
+ /**
205
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
206
+ */
207
+
208
+ sub,
209
+ sup {
210
+ font-size: 75%;
211
+ line-height: 0;
212
+ position: relative;
213
+ vertical-align: baseline;
214
+ }
215
+
216
+ sup {
217
+ top: -0.5em;
218
+ }
219
+
220
+ sub {
221
+ bottom: -0.25em;
222
+ }
223
+
224
+ /* ==========================================================================
225
+ Embedded content
226
+ ========================================================================== */
227
+
228
+ /**
229
+ * Remove border when inside `a` element in IE 8/9.
230
+ */
231
+
232
+ img {
233
+ border: 0;
234
+ }
235
+
236
+ /**
237
+ * Correct overflow displayed oddly in IE 9.
238
+ */
239
+
240
+ svg:not(:root) {
241
+ overflow: hidden;
242
+ }
243
+
244
+ /* ==========================================================================
245
+ Figures
246
+ ========================================================================== */
247
+
248
+ /**
249
+ * Address margin not present in IE 8/9 and Safari 5.
250
+ */
251
+
252
+ figure {
253
+ margin: 0;
254
+ }
255
+
256
+ /* ==========================================================================
257
+ Forms
258
+ ========================================================================== */
259
+
260
+ /**
261
+ * Define consistent border, margin, and padding.
262
+ */
263
+
264
+ fieldset {
265
+ border: 1px solid #c0c0c0;
266
+ margin: 0 2px;
267
+ padding: 0.35em 0.625em 0.75em;
268
+ }
269
+
270
+ /**
271
+ * 1. Correct `color` not being inherited in IE 8/9.
272
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
273
+ */
274
+
275
+ legend {
276
+ border: 0; /* 1 */
277
+ padding: 0; /* 2 */
278
+ }
279
+
280
+ /**
281
+ * 1. Correct font family not being inherited in all browsers.
282
+ * 2. Correct font size not being inherited in all browsers.
283
+ * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
284
+ */
285
+
286
+ button,
287
+ input,
288
+ select,
289
+ textarea {
290
+ font-family: inherit; /* 1 */
291
+ font-size: 100%; /* 2 */
292
+ margin: 0; /* 3 */
293
+ }
294
+
295
+ /**
296
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
297
+ * the UA stylesheet.
298
+ */
299
+
300
+ button,
301
+ input {
302
+ line-height: normal;
303
+ }
304
+
305
+ /**
306
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
307
+ * All other form control elements do not inherit `text-transform` values.
308
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
309
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
310
+ */
311
+
312
+ button,
313
+ select {
314
+ text-transform: none;
315
+ }
316
+
317
+ /**
318
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
319
+ * and `video` controls.
320
+ * 2. Correct inability to style clickable `input` types in iOS.
321
+ * 3. Improve usability and consistency of cursor style between image-type
322
+ * `input` and others.
323
+ */
324
+
325
+ button,
326
+ html input[type="button"], /* 1 */
327
+ input[type="reset"],
328
+ input[type="submit"] {
329
+ -webkit-appearance: button; /* 2 */
330
+ cursor: pointer; /* 3 */
331
+ }
332
+
333
+ /**
334
+ * Re-set default cursor for disabled elements.
335
+ */
336
+
337
+ button[disabled],
338
+ html input[disabled] {
339
+ cursor: default;
340
+ }
341
+
342
+ /**
343
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
344
+ * 2. Remove excess padding in IE 8/9/10.
345
+ */
346
+
347
+ input[type="checkbox"],
348
+ input[type="radio"] {
349
+ box-sizing: border-box; /* 1 */
350
+ padding: 0; /* 2 */
351
+ }
352
+
353
+ /**
354
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
355
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
356
+ * (include `-moz` to future-proof).
357
+ */
358
+
359
+ input[type="search"] {
360
+ -webkit-appearance: textfield; /* 1 */
361
+ -moz-box-sizing: content-box;
362
+ -webkit-box-sizing: content-box; /* 2 */
363
+ box-sizing: content-box;
364
+ }
365
+
366
+ /**
367
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
368
+ * on OS X.
369
+ */
370
+
371
+ input[type="search"]::-webkit-search-cancel-button,
372
+ input[type="search"]::-webkit-search-decoration {
373
+ -webkit-appearance: none;
374
+ }
375
+
376
+ /**
377
+ * Remove inner padding and border in Firefox 4+.
378
+ */
379
+
380
+ button::-moz-focus-inner,
381
+ input::-moz-focus-inner {
382
+ border: 0;
383
+ padding: 0;
384
+ }
385
+
386
+ /**
387
+ * 1. Remove default vertical scrollbar in IE 8/9.
388
+ * 2. Improve readability and alignment in all browsers.
389
+ */
390
+
391
+ textarea {
392
+ overflow: auto; /* 1 */
393
+ vertical-align: top; /* 2 */
394
+ }
395
+
396
+ /* ==========================================================================
397
+ Tables
398
+ ========================================================================== */
399
+
400
+ /**
401
+ * Remove most spacing between table cells.
402
+ */
403
+
404
+ table {
405
+ border-collapse: collapse;
406
+ border-spacing: 0;
407
+ }
@@ -0,0 +1,18 @@
1
+ .powered
2
+ width: 33%
3
+ position: relative
4
+ display: block
5
+ float: left
6
+ height: 50px
7
+ line-height: 50px
8
+ text-align: right
9
+ a
10
+ text-decoration: none
11
+ color: #efefef
12
+ cursor: pointer
13
+ +transition(color, 0.5s)
14
+ &:hover
15
+ color: #536e7b
16
+
17
+ .powered_by
18
+ cursor: pointer
@@ -0,0 +1,703 @@
1
+ @import 'jquery.mCustomScrollbar'
2
+
3
+ a
4
+ outline: none
5
+ &:focus
6
+ outline: none
7
+
8
+ html, body.rails_admin
9
+ padding: 0
10
+ height: 100%
11
+ background: #fcfcfc
12
+
13
+ body.rails_admin
14
+ padding-top: 0px
15
+
16
+ .hancock-main-logo
17
+ max-height: 30px
18
+
19
+ .admin-navbar
20
+ position: relative
21
+ height: 60px
22
+ width: 100%
23
+ +box-shadow( 0px 5px 10px -5px rgba(0,0,0,0.5))
24
+
25
+ .admin-navbar-fixed
26
+ position: fixed
27
+ top: 0px
28
+ left: 0px
29
+ z-index: 1500
30
+
31
+ .bg-red
32
+ background-color: #e53935 !important
33
+
34
+ .navbar-header-brand
35
+ width: 230px
36
+ height: 100%
37
+ +display-flex-center()
38
+ float: left
39
+
40
+ .navbar-container
41
+ margin-left: 230px
42
+ height: 100%
43
+ position: relative
44
+ display: block
45
+ background: #fff
46
+
47
+ .navbar-container.container-fluid
48
+ padding-right: 0px
49
+
50
+ .user_root_link
51
+ margin-right: 25px
52
+ img
53
+ display: none
54
+ a
55
+ text-decoration: none
56
+ text-transform: lowercase
57
+ color: #1f1f1f
58
+ +transition(all 0.3s)
59
+ &:hover
60
+ color: #ff2b58
61
+ &:before
62
+ display: inline-block
63
+ font-family: FontAwesome
64
+ text-rendering: auto
65
+ -webkit-font-smoothing: antialiased
66
+ -moz-osx-font-smoothing: grayscale
67
+ content: "\f007"
68
+ box-sizing: border-box
69
+ margin-right: 10px
70
+
71
+ .admin-menubar
72
+ width: 230px
73
+ padding: 60px 0px
74
+
75
+ .admin-menubar-fixed
76
+ position: fixed
77
+ height: 100%
78
+ top: 0
79
+ left: 0
80
+
81
+ .admin-menubar-dark
82
+ background: #212121
83
+
84
+ .admin-content
85
+ padding: 60px 0px 0px 230px
86
+ background: #f3f4f5
87
+ margin: 0px auto -30px
88
+ min-height: 100%
89
+ &:after
90
+ content: ""
91
+ display: block
92
+ height: 30px
93
+
94
+ .admin-content > .admin-wrapper
95
+ padding: 15px
96
+ width: 100%
97
+ .content
98
+ padding: 25px
99
+ background: #fff
100
+ border: 1px solid transparent
101
+ border-radius: 4px
102
+ +box-shadow(0 1px 1px rgba(0,0,0,.05))
103
+
104
+ .toolbar
105
+ max-height: 100%
106
+ display: block
107
+ width: 100%
108
+ overflow: auto
109
+ i
110
+ margin-right: 5px
111
+ .nav
112
+ li
113
+ display: block
114
+ margin: 0
115
+ overflow: hidden
116
+ transform-origin: top center
117
+ +transition(all 0.3s)
118
+ +transform(scaleY(1))
119
+ height: 0
120
+ &.dropdown-header
121
+ cursor: pointer
122
+ display: block
123
+ text-align: right
124
+ li.visible.active
125
+ background: #4b4b4b
126
+ a
127
+ color: #fff
128
+ font-weight: bold
129
+ &:before
130
+ color: #fff
131
+ &:after
132
+ content: "\f0d9"
133
+ position: absolute
134
+ right: -2px
135
+ line-height: 30px
136
+ color: #f3f4f5
137
+ top: 50%
138
+ margin-top: -15px
139
+ font-size: 26px
140
+ font-family: "FontAwesome"
141
+ &:hover
142
+ background: #646464
143
+ a
144
+ color: #fff
145
+ &:before
146
+ color: #fff
147
+ li.visible
148
+ +transform(scaleY(1))
149
+ height: auto
150
+ background: rgba(0,0,0,0.32)
151
+ +transition(all 0.3s)
152
+ a
153
+ text-decoration: none
154
+ background-color: transparent
155
+ color: #c1c1c1
156
+ outline: none
157
+ font-size: 11px
158
+ text-transform: uppercase
159
+ font-weight: 100
160
+ &:focus
161
+ outline: none
162
+ &:before
163
+ display: inline-block
164
+ font-family: FontAwesome
165
+ font-size: 12px
166
+ text-rendering: auto
167
+ -webkit-font-smoothing: antialiased
168
+ -moz-osx-font-smoothing: grayscale
169
+ content: "\f0da"
170
+ box-sizing: border-box
171
+ margin-left: 10px
172
+ margin-right: 10px
173
+ color: #c1c1c1
174
+ .nav-level-1
175
+ font-size: 11px
176
+ text-transform: uppercase
177
+ font-weight: 100
178
+ &:before
179
+ content: "\f0da"
180
+ .nav-level-2
181
+ font-size: 11px
182
+ text-transform: uppercase
183
+ font-weight: 100
184
+ &:before
185
+ content: "\f0da"
186
+ .nav-level-3
187
+ font-size: 11px
188
+ text-transform: uppercase
189
+ font-weight: 100
190
+ &:before
191
+ content: "\f0da"
192
+ &:hover
193
+ //background: rgba(0,0,0,0.32)
194
+ background: #4b4b4b
195
+ a
196
+ color: #fff
197
+ .dropdown-header
198
+ padding: 15px 20px
199
+ border: 0px
200
+ border-top: 2px solid transparent
201
+ text-transform: uppercase
202
+ color: #c1c1c1
203
+ +transform(scaleY(1))
204
+ height: auto
205
+ &:after
206
+ display: inline-block
207
+ font-family: FontAwesome
208
+ font-size: 12px
209
+ text-rendering: auto
210
+ -webkit-font-smoothing: antialiased
211
+ -moz-osx-font-smoothing: grayscale
212
+ content: "\f078"
213
+ box-sizing: border-box
214
+ margin-left: 12px
215
+ &:hover
216
+ //background: rgba(0,0,0,0.32)
217
+ background: #4b4b4b
218
+ color: #fff
219
+ &.opened
220
+ background: rgba(0,0,0,0.32)
221
+ background: linear-gradient(to top, rgba(0,0,0,0.32), rgba(0,0,0,0.48))
222
+ border-top: 2px solid rgba(255,255,255,0.25)
223
+ &::after
224
+ content: "\f077"
225
+ &:hover
226
+ //background: rgba(0,0,0,0.32)
227
+ background: #4b4b4b
228
+
229
+ .plugin-name-panel
230
+ +display-flex-center
231
+ padding: 0px 25px
232
+ float: left
233
+ height: 100%
234
+ text-transform: uppercase
235
+ a
236
+ text-transform: none
237
+ text-decoration: none
238
+ font-weight: bold
239
+ color: #1f1f1f
240
+ +transition(all 0.3s)
241
+ &:hover
242
+ color: #ff2b58
243
+
244
+ .user-panel
245
+ +display-flex-center
246
+ float: right
247
+ height: 100%
248
+ text-transform: uppercase
249
+
250
+ .plugin-name-class
251
+ margin-left: 8px
252
+
253
+ .admin-menubar-footer
254
+ position: fixed
255
+ bottom: 0
256
+ display: block
257
+ z-index: 1400
258
+ width: 230px
259
+ height: 60px
260
+ background: #21292e
261
+ text-align: right
262
+ ul
263
+ list-style: none
264
+ margin: 0
265
+ padding: 0
266
+ height: 100%
267
+
268
+ .footer-nav-link
269
+ width: 25%
270
+ height: 100%
271
+ display: inline-block
272
+ vertical-align: top
273
+ a
274
+ text-decoration: none
275
+ color: #ccc
276
+ height: 100%
277
+ width: 100%
278
+ font-size: 18px
279
+ +display-flex-center
280
+ +transition(all 0.3s)
281
+ &:hover
282
+ background: rgba(0,0,0,0.15)
283
+ color: #fff
284
+ &:active
285
+ background: rgba(0,0,0,0.3)
286
+
287
+ .footer-nav-link.sitemap
288
+ a
289
+ font-size: 0
290
+ &:before
291
+ display: inline-block
292
+ font-family: FontAwesome
293
+ font-size: 18px
294
+ text-rendering: auto
295
+ -webkit-font-smoothing: antialiased
296
+ -moz-osx-font-smoothing: grayscale
297
+ content: "\f0e8"
298
+ box-sizing: border-box
299
+
300
+ .admin-footer
301
+ height: 30px
302
+ width: 100%
303
+ color: #ccc
304
+ text-align: center
305
+ padding: 0px 25px 0px 255px
306
+ line-height: 30px
307
+ font-size: 12px
308
+ background: #1f1f1f
309
+ a
310
+ color: #ff2b58
311
+ text-decoration: none
312
+ +transition(color 0.3s)
313
+ &:hover
314
+ color: #cd2649
315
+
316
+ .label-important
317
+ background-color: #d9534f
318
+ .alert-notice
319
+ color: #5bc0de
320
+
321
+ .page-header
322
+ display: none
323
+
324
+ .breadcrumb
325
+ margin-top: 0px
326
+
327
+ .control-group
328
+ clear: both
329
+
330
+ .container-fluid
331
+ padding-left: 0
332
+ > .row
333
+ margin: 51px 0px 0px 0px !important
334
+
335
+ .last.links
336
+ a
337
+ display: inline-block
338
+ padding: 3px
339
+ font-size: 20px
340
+
341
+ .remove_nested_fields
342
+ opacity: 1 !important
343
+
344
+ body.rails_admin .modal
345
+ margin: 0 auto !important
346
+ .modal-dialog
347
+ width: 990px !important
348
+
349
+ input[type=checkbox]
350
+ width: 30px !important
351
+
352
+ .nav.root_links
353
+ > li
354
+ display: inline-block
355
+
356
+ .bank_row .logo_field, #edit_bank img
357
+ background: #ccc !important
358
+
359
+ .ui-menu-item
360
+ border: 1px solid transparent
361
+
362
+ .content > .alert
363
+ margin-top: 20px
364
+
365
+ .badge-important
366
+ background: red
367
+ .badge-success
368
+ background: green
369
+
370
+ body.rails_admin .table td.paperclip_type, body.rails_admin .table td.carrierwave_type, body.rails_admin .table td.jcrop_type
371
+ img
372
+ max-width: 150px
373
+ max-height: 100p
374
+
375
+ .table-condensed
376
+ > tbody, > thead
377
+ > tr
378
+ > td
379
+ padding: 6px 4px 0px 5px
380
+ &.toggle_type
381
+ padding-top: 14px
382
+
383
+ .current_user
384
+ float: right
385
+ display: block
386
+ width: 60px
387
+ height: 60px
388
+ &:hover
389
+ .user_info
390
+ +transform(scale(1))
391
+ +box-shadow(0 10px 10px -10px rgba(0,0,0,0.5))
392
+ .user_icon
393
+ background: #eee
394
+
395
+ .user_icon
396
+ width: 60px
397
+ height: 60px
398
+ +display-flex-center
399
+ +transition(all 0.3s)
400
+ i
401
+ cursor: default
402
+ font-size: 26px
403
+
404
+ .user_info
405
+ +transition(all 0.3s)
406
+ +transform(scale(0))
407
+ +box-shadow(0 0 0 0 rgba(0,0,0,0.5))
408
+ position: absolute
409
+ display: block
410
+ transform-origin: top right
411
+ right: 0
412
+ background: #eee
413
+ list-style: none
414
+ margin: 0px
415
+ padding: 7px 10px
416
+ overflow: hidden
417
+ li
418
+ padding: 7px 15px
419
+ font-size: 14px
420
+ a
421
+ text-transform: none
422
+ text-decoration: none
423
+ +transition(all 0.3s)
424
+ &:before
425
+ display: inline-block
426
+ font-family: FontAwesome
427
+ text-rendering: auto
428
+ -webkit-font-smoothing: antialiased
429
+ -moz-osx-font-smoothing: grayscale
430
+ box-sizing: border-box
431
+ margin-right: 7px
432
+ &:hover
433
+ color: #ff2b58
434
+ .user-logout-action
435
+ border-top: 1px solid rgba(170,170,170,0.5)
436
+ a
437
+ &:before
438
+ content: "\f011"
439
+ .user-edit-action
440
+ a
441
+ &:before
442
+ content: "\f040"
443
+ .user_email
444
+ text-transform: lowercase
445
+ text-align: center
446
+ margin-bottom: 7px
447
+
448
+
449
+ //.sitemap_root_link
450
+ // box-sizing: border-box
451
+ // width: 50px
452
+ // overflow: inherit !important
453
+ // a
454
+ // color: #fff
455
+ // text-decoration: none
456
+ // height: 50px
457
+ // display: block
458
+ // width: 50px
459
+ // font-size: 0
460
+ // &::before
461
+ // display: inline-block
462
+ // font-family: FontAwesome
463
+ // font-size: 24px
464
+ // text-rendering: auto
465
+ // -webkit-font-smoothing: antialiased
466
+ // -moz-osx-font-smoothing: grayscale
467
+ // content: "\f277"
468
+ // box-sizing: border-box
469
+ // line-height: 50px
470
+ // color: #fff
471
+ // span
472
+ // display: inline-block
473
+ // height: 50px
474
+ // margin: 0
475
+ // padding: 0
476
+ // position: relative
477
+ // top: -4px
478
+ // color: #fff
479
+ // font-size: 14px
480
+ // font-weight: bold
481
+ //
482
+ //.sitemap_root_link
483
+ // &::after
484
+ // content: "Перегенерировать карту сайта"
485
+ // opacity: 0
486
+ // font-size: 11px
487
+ // height: 20px
488
+ // line-height: 20px
489
+ // position: absolute
490
+ // left: 0
491
+ // width: 170px
492
+ // color: #000
493
+ // border: 1px solid #000
494
+ // background: #fff
495
+ //
496
+ //.sitemap_root_link
497
+ // &:hover
498
+ // &::after
499
+ // opacity: 1
500
+ //
501
+
502
+ tr.rails_admin_settings_setting_row
503
+ td.raw_field
504
+ img
505
+ max-width: 300px
506
+
507
+ .nav-tabs > li
508
+ border-bottom: 1px solid #e4eaec
509
+
510
+ .nav-tabs > li.dropdown
511
+ border-bottom: 1px solid #e4eaec
512
+
513
+ .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:active, .nav-tabs > li.active > a:focus
514
+ color: #fff
515
+ background-color: #e53935
516
+ border: 0px solid #e4eaec
517
+ border-bottom: 0px solid #e4eaec
518
+ border-bottom-color: #e53935
519
+ cursor: default
520
+
521
+ .nav-tabs > li.icon.active > a
522
+ color: #fff !important
523
+
524
+ .nav-tabs > li > a, .nav-tabs > li.dropdown > a
525
+ border: 0px solid #e4eaec
526
+ &:hover, &:focus
527
+ background: #f3f7f9
528
+ border-bottom: 0px solid #e4eaec
529
+ color: #1f1f1f
530
+
531
+ .nav-tabs > li.dropdown
532
+ &:before, &:after
533
+ content: ""
534
+ display: table
535
+ &:after
536
+ clear: both
537
+
538
+ .pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, .pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > span:focus
539
+ background-color: #e53935
540
+ border-color: #e53935
541
+
542
+ li[rel="tooltip"] > a:hover, li[rel="tooltip"] > a:focus
543
+ color: #c73800
544
+ text-decoration: underline
545
+
546
+ li[rel="tooltip"] > a
547
+ color: #e53935
548
+ text-decoration: none
549
+
550
+ a
551
+ color: #1f1f1f
552
+ text-decoration: none
553
+ +transform(all 0.3s)
554
+ &:hover
555
+ text-decoration: none
556
+ color: #e53935
557
+
558
+ .pagination > li > a
559
+ color: #1f1f1f
560
+ +transform(all 0.3s)
561
+
562
+ .pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > span:hover, .pagination > li > span:focus
563
+ color: #1f1f1f
564
+
565
+ .btn-primary, .btn-info
566
+ color: #fff
567
+ background-color: #e53935
568
+ border-color: #db3a35
569
+
570
+ .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .btn-primary.dropdown-toggle
571
+ color: #fff
572
+ background-color: #c73800
573
+ border-color: #bd3700
574
+
575
+ .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open > .btn-info.dropdown-toggle
576
+ color: #fff
577
+ background-color: #c73800
578
+ border-color: #bd3700
579
+
580
+ #bulk_form
581
+ min-height: 20px
582
+ //background-color: #f5f5f5
583
+ border: 1px solid #e3e3e3
584
+ +border-radius(4px)
585
+ //+box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.05))
586
+
587
+ thead
588
+ tr:first-child
589
+ padding: 6px 2px 6px 2px
590
+ tr
591
+ th
592
+ position: relative
593
+ vertical-align: middle
594
+ padding: 6px 30px 6px 4px
595
+ &:after
596
+ margin-left: 10px
597
+ margin-right: 10px
598
+ position: absolute
599
+ right: 0
600
+ top: 50%
601
+ margin-top: -2px
602
+ th:first-child
603
+ max-width: 40px
604
+ tbody
605
+ tr
606
+ td:first-child
607
+ padding: 6px 2px 6px 2px
608
+ td
609
+ position: relative
610
+ vertical-align: middle
611
+ text-align: center
612
+ padding: 3px 4px 3px 4px
613
+ td.other.right, td.last.links
614
+ padding: 6px 10px 6px 0px
615
+ max-width: 140px
616
+ .last.links
617
+ a
618
+ font-size: 16px
619
+ td.state_type
620
+ .label
621
+ margin-top: 10px
622
+ padding: 1px 5px
623
+ font-size: 12px
624
+ line-height: 1.5
625
+ border-radius: 3px
626
+ display: inline-block
627
+ .btn.btn-mini
628
+ margin-bottom: 10px !important
629
+ .btn.btn-mini.label-default
630
+ color: #fff
631
+ td:first-child
632
+ max-width: 40px
633
+
634
+ .pagination
635
+ margin: 10px 0px 20px 20px
636
+
637
+ .total-count
638
+ margin: 0px 20px 20px
639
+
640
+ input, a
641
+ outline: none
642
+ &:focus
643
+ outline: none
644
+
645
+ .show-all.btn
646
+ margin: 0px 20px 20px
647
+ outline: none
648
+ &:focus
649
+ outline: none
650
+
651
+ .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn
652
+ height: auto
653
+ border-right: 0px
654
+
655
+ .form-group
656
+ margin-bottom: 10px
657
+
658
+ body.rails_admin .form-horizontal.denser legend
659
+ margin-bottom: 15px
660
+ +transform(all 0.3s)
661
+ &:hover
662
+ color: #e53935
663
+
664
+ .btn-info.disabled, .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled:active, .btn-info.disabled.active, .btn-info[disabled], .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled]:active, .btn-info[disabled].active, fieldset[disabled] .btn-info, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info.active
665
+ background-color: #ef3b36
666
+ border-color: #e53a36
667
+
668
+ body.rails_admin .form-horizontal .tab-content .tab-pane
669
+ border-left: 5px solid #e53935
670
+ position: relative
671
+ legend
672
+ display: none
673
+
674
+ .label-info
675
+ background-color: #e53935
676
+
677
+ .label-info[href]:hover, .label-info[href]:focus
678
+ background-color: #db3a35
679
+
680
+ .dd-item img
681
+ margin: 10px
682
+
683
+ #list .input-group .input-group-btn .btn.btn-info
684
+ height: auto
685
+
686
+ .form-group.control-group.color_type.color_field
687
+ input
688
+ display: block
689
+ width: auto
690
+ height: 34px
691
+ padding: 6px 12px
692
+ font-size: 14px
693
+ line-height: 1.42857
694
+ color: #555555
695
+ background-color: #fff
696
+ background-image: none
697
+ border: 1px solid #ccc
698
+ +border-radius(4px)
699
+ +box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075))
700
+ +transform(border-color ease-in-out 0.15s box-shadow ease-in-out 0.15s)
701
+
702
+ body.rails_admin .table td
703
+ max-width: 120px