adminpanel 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/.rspec +2 -2
  2. data/.ruby-version +1 -0
  3. data/.travis.yml +8 -8
  4. data/Gemfile +26 -24
  5. data/README.md +57 -57
  6. data/adminpanel.gemspec +41 -39
  7. data/app/assets/fonts/fontawesome-webfont.svg +254 -254
  8. data/app/assets/javascripts/adminpanel/bootstrap-datepicker.js +1159 -1159
  9. data/app/assets/javascripts/adminpanel/bootstrap-timepicker.js +803 -803
  10. data/app/assets/javascripts/adminpanel/bootstrap.js +2170 -2170
  11. data/app/assets/javascripts/adminpanel/{products.js → images_form.js} +13 -13
  12. data/app/assets/javascripts/adminpanel/imagesloaded.js +12 -12
  13. data/app/assets/javascripts/adminpanel/jquery.dataTables.min.js +155 -155
  14. data/app/assets/javascripts/adminpanel/jquery.facybox.js +395 -395
  15. data/app/assets/javascripts/adminpanel/jquery.masonry.min.js +9 -9
  16. data/app/assets/javascripts/adminpanel/jquery.slimscroll.min.js +13 -13
  17. data/app/assets/javascripts/adminpanel/medium-editor.js +702 -702
  18. data/app/assets/javascripts/adminpanel/realm.js +87 -87
  19. data/app/assets/javascripts/adminpanel/tables.js +126 -126
  20. data/app/assets/javascripts/application-admin.js +15 -15
  21. data/app/assets/stylesheets/adminpanel/_clearfix.css.scss +7 -7
  22. data/app/assets/stylesheets/adminpanel/alertify.css +241 -241
  23. data/app/assets/stylesheets/adminpanel/bootstrap.css +6103 -6103
  24. data/app/assets/stylesheets/adminpanel/colorpicker.css +6 -6
  25. data/app/assets/stylesheets/adminpanel/datepicker.css +9 -9
  26. data/app/assets/stylesheets/adminpanel/elfinder.min.css +59 -59
  27. data/app/assets/stylesheets/adminpanel/facybox.css +146 -146
  28. data/app/assets/stylesheets/adminpanel/font-awesome.min.css +33 -33
  29. data/app/assets/stylesheets/adminpanel/fullcalendar.css +618 -618
  30. data/app/assets/stylesheets/adminpanel/fullcalendar.print.css +61 -61
  31. data/app/assets/stylesheets/adminpanel/select2.css +524 -524
  32. data/app/assets/stylesheets/adminpanel/theme.css +1571 -1571
  33. data/app/assets/stylesheets/adminpanel/timepicker.css +82 -82
  34. data/app/assets/stylesheets/application-admin.css +13 -13
  35. data/app/controllers/adminpanel/application_controller.rb +32 -17
  36. data/app/controllers/adminpanel/galleries_controller.rb +80 -80
  37. data/app/controllers/adminpanel/sections_controller.rb +45 -45
  38. data/app/controllers/adminpanel/sessions_controller.rb +26 -26
  39. data/app/controllers/adminpanel/users_controller.rb +84 -84
  40. data/app/helpers/adminpanel/application_helper.rb +41 -51
  41. data/app/helpers/adminpanel/breadcrumbs_helper.rb +16 -0
  42. data/app/helpers/adminpanel/custom_form_builder.rb +248 -0
  43. data/app/helpers/adminpanel/images_helper.rb +9 -9
  44. data/app/helpers/adminpanel/rest_actions_helper.rb +47 -0
  45. data/app/helpers/adminpanel/router_helper.rb +33 -0
  46. data/app/helpers/adminpanel/sessions_helper.rb +25 -25
  47. data/app/models/adminpanel/gallery.rb +60 -60
  48. data/app/models/adminpanel/image.rb +14 -14
  49. data/app/models/adminpanel/section.rb +22 -22
  50. data/app/models/adminpanel/user.rb +35 -35
  51. data/app/uploaders/adminpanel/gallery_uploader.rb +55 -55
  52. data/app/uploaders/adminpanel/image_uploader.rb +57 -57
  53. data/app/views/adminpanel/galleries/_galleries_table.html.erb +14 -14
  54. data/app/views/adminpanel/galleries/create.html.erb +2 -2
  55. data/app/views/adminpanel/galleries/delete.html.erb +2 -2
  56. data/app/views/adminpanel/galleries/edit.html.erb +25 -25
  57. data/app/views/adminpanel/galleries/index.html.erb +51 -51
  58. data/app/views/adminpanel/galleries/new.html.erb +17 -17
  59. data/app/views/adminpanel/galleries/show.html.erb +17 -17
  60. data/app/views/adminpanel/galleries/update.html.erb +2 -2
  61. data/app/views/adminpanel/sections/_image_fields.html.erb +23 -23
  62. data/app/views/adminpanel/sections/_sections_table.html.erb +16 -16
  63. data/app/views/adminpanel/sections/create.html.erb +2 -2
  64. data/app/views/adminpanel/sections/destroy.html.erb +2 -2
  65. data/app/views/adminpanel/sections/edit.html.erb +41 -41
  66. data/app/views/adminpanel/sections/index.html.erb +44 -44
  67. data/app/views/adminpanel/sections/new.html.erb +26 -26
  68. data/app/views/adminpanel/sections/show.html.erb +30 -30
  69. data/app/views/adminpanel/sections/update.html.erb +2 -2
  70. data/app/views/adminpanel/sessions/new.html.erb +25 -25
  71. data/app/views/adminpanel/users/_user_form.html.erb +20 -20
  72. data/app/views/adminpanel/users/edit.html.erb +5 -5
  73. data/app/views/adminpanel/users/index.html.erb +49 -49
  74. data/app/views/adminpanel/users/new.html.erb +5 -5
  75. data/app/views/adminpanel/users/show.html.erb +20 -20
  76. data/app/views/layouts/_shim.html.erb +3 -3
  77. data/app/views/layouts/_side_menu.html.erb +49 -43
  78. data/app/views/layouts/_top_bar.html.erb +43 -43
  79. data/app/views/layouts/admin-login.html.erb +28 -28
  80. data/app/views/layouts/admin.html.erb +41 -39
  81. data/app/views/shared/_breadcrumb.html.erb +6 -6
  82. data/app/views/shared/_error_messages.html.erb +16 -16
  83. data/app/views/shared/_form_fields.html.erb +25 -0
  84. data/app/views/{adminpanel/products → shared}/_image_fields.html.erb +23 -23
  85. data/app/views/shared/_init_editor.html.erb +24 -0
  86. data/app/views/shared/edit.html.erb +28 -0
  87. data/app/views/shared/index.html.erb +94 -0
  88. data/app/views/shared/new.html.erb +28 -0
  89. data/app/views/shared/show.html.erb +63 -0
  90. data/config/locales/en.yml +5 -5
  91. data/config/locales/es.yml +127 -129
  92. data/config/routes.rb +24 -16
  93. data/lib/adminpanel.rb +9 -7
  94. data/lib/adminpanel/active_record_extension.rb +38 -0
  95. data/lib/adminpanel/engine.rb +5 -5
  96. data/lib/adminpanel/version.rb +3 -3
  97. data/lib/generators/adminpanel/initialize/initialize_generator.rb +17 -0
  98. data/lib/generators/adminpanel/{install/templates/migrations → initialize/templates}/create_adminpanel_tables.rb +45 -64
  99. data/lib/generators/adminpanel/resource/resource_generator.rb +105 -0
  100. data/lib/generators/adminpanel/resource/templates/controller.rb +4 -0
  101. data/lib/generators/adminpanel/resource/templates/migration.rb +9 -0
  102. data/lib/generators/adminpanel/resource/templates/resource.rb +19 -0
  103. data/spec/dummy/.gitignore +17 -17
  104. data/spec/dummy/README.rdoc +261 -261
  105. data/spec/dummy/Rakefile +7 -7
  106. data/{app/views/adminpanel/categories/show.html.erb → spec/dummy/app/adminpanel/products.rb} +0 -0
  107. data/spec/dummy/app/assets/javascripts/application.js +13 -13
  108. data/spec/dummy/app/assets/stylesheets/application.css +13 -13
  109. data/spec/dummy/app/controllers/adminpanel/.gitkeep +0 -0
  110. data/spec/dummy/app/controllers/application_controller.rb +3 -11
  111. data/spec/dummy/app/helpers/application_helper.rb +2 -2
  112. data/spec/dummy/app/views/layouts/application.html.erb +14 -14
  113. data/spec/dummy/config.ru +4 -4
  114. data/spec/dummy/config/application.rb +62 -62
  115. data/spec/dummy/config/boot.rb +9 -9
  116. data/spec/dummy/config/carrierwve.rb +5 -5
  117. data/spec/dummy/config/database.yml +24 -24
  118. data/spec/dummy/config/environment.rb +5 -5
  119. data/spec/dummy/config/environments/development.rb +41 -41
  120. data/spec/dummy/config/environments/production.rb +72 -72
  121. data/spec/dummy/config/environments/test.rb +41 -41
  122. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
  123. data/spec/dummy/config/initializers/inflections.rb +15 -15
  124. data/spec/dummy/config/initializers/mime_types.rb +5 -5
  125. data/spec/dummy/config/initializers/secret_token.rb +8 -8
  126. data/spec/dummy/config/initializers/session_store.rb +8 -8
  127. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  128. data/spec/dummy/config/locales/en.yml +5 -5
  129. data/spec/dummy/config/routes.rb +4 -4
  130. data/spec/dummy/db/schema.rb +15 -15
  131. data/spec/dummy/public/404.html +26 -26
  132. data/spec/dummy/public/422.html +26 -26
  133. data/spec/dummy/public/500.html +25 -25
  134. data/spec/dummy/public/uploads/gallery/file/1/hipster.jpg +0 -0
  135. data/spec/dummy/public/uploads/gallery/file/1/thumb_hipster.jpg +0 -0
  136. data/spec/dummy/script/rails +6 -6
  137. data/spec/features/authentication_pages_spec.rb +43 -43
  138. data/spec/features/galleries_pages_spec.rb +124 -124
  139. data/spec/features/section_pages_spec.rb +37 -37
  140. data/spec/features/user_pages_spec.rb +48 -48
  141. data/spec/generators/initialize_spec.rb +9 -0
  142. data/spec/generators/resource_spec.rb +122 -0
  143. data/spec/models/gallery_spec.rb +21 -21
  144. data/spec/models/section_spec.rb +66 -66
  145. data/spec/models/user_spec.rb +105 -105
  146. data/spec/spec_helper.rb +32 -31
  147. data/spec/support/define_factory_models.rb +25 -36
  148. data/spec/support/helper_methods.rb +26 -26
  149. data/spec/support/submit_forms_without_button.rb +16 -16
  150. data/spec/support/test_database.rb +45 -58
  151. data/spec/uploaders/gallery_uploader_spec.rb +36 -30
  152. data/spec/uploaders/image_uploader_spec.rb +30 -29
  153. metadata +208 -64
  154. checksums.yaml +0 -7
  155. data/app/assets/javascripts/adminpanel/init_editor.js +0 -28
  156. data/app/controllers/adminpanel/categories_controller.rb +0 -41
  157. data/app/controllers/adminpanel/products_controller.rb +0 -88
  158. data/app/helpers/custom_form_builder.rb +0 -219
  159. data/app/models/adminpanel/category.rb +0 -7
  160. data/app/models/adminpanel/product.rb +0 -24
  161. data/app/views/adminpanel/categories/edit.html.erb +0 -18
  162. data/app/views/adminpanel/categories/index.html.erb +0 -55
  163. data/app/views/adminpanel/categories/new.html.erb +0 -18
  164. data/app/views/adminpanel/products/.DS_Store +0 -0
  165. data/app/views/adminpanel/products/_product_form.html.erb +0 -31
  166. data/app/views/adminpanel/products/edit.html.erb +0 -10
  167. data/app/views/adminpanel/products/index.html.erb +0 -51
  168. data/app/views/adminpanel/products/new.html.erb +0 -10
  169. data/app/views/adminpanel/products/show.html.erb +0 -61
  170. data/config/database.yml +0 -24
  171. data/lib/generators/adminpanel/install/install_generator.rb +0 -12
  172. data/spec/features/categories_pages_spec.rb +0 -44
  173. data/spec/features/product_pages_spec.rb +0 -64
  174. data/spec/models/category_spec.rb +0 -58
  175. data/spec/models/product_spec.rb +0 -51
@@ -1,618 +1,618 @@
1
- /*
2
- * FullCalendar v1.5.4 Stylesheet
3
- *
4
- * Copyright (c) 2011 Adam Shaw
5
- * Dual licensed under the MIT and GPL licenses, located in
6
- * MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
7
- *
8
- * Date: Tue Sep 4 23:38:33 2012 -0700
9
- *
10
- */
11
-
12
-
13
- .fc {
14
- direction: ltr;
15
- text-align: left;
16
- }
17
-
18
- .fc table {
19
- border-collapse: collapse;
20
- border-spacing: 0;
21
- }
22
-
23
- html .fc,
24
- .fc table {
25
- font-size: 1em;
26
- }
27
-
28
- .fc td,
29
- .fc th {
30
- padding: 0;
31
- vertical-align: top;
32
- }
33
-
34
-
35
-
36
- /* Header
37
- ------------------------------------------------------------------------*/
38
-
39
- .fc-header td {
40
- white-space: nowrap;
41
- }
42
-
43
- .fc-header-left {
44
- width: 25%;
45
- text-align: left;
46
- }
47
-
48
- .fc-header-center {
49
- text-align: center;
50
- }
51
-
52
- .fc-header-right {
53
- width: 25%;
54
- text-align: right;
55
- }
56
-
57
- .fc-header-title {
58
- display: inline-block;
59
- vertical-align: top;
60
- }
61
-
62
- .fc-header-title h2 {
63
- margin-top: 0;
64
- white-space: nowrap;
65
- }
66
-
67
- .fc .fc-header-space {
68
- padding-left: 10px;
69
- }
70
-
71
- .fc-header .fc-button {
72
- margin-bottom: 1em;
73
- vertical-align: top;
74
- }
75
-
76
- /* buttons edges butting together */
77
-
78
- .fc-header .fc-button {
79
- margin-right: -1px;
80
- }
81
-
82
- .fc-header .fc-corner-right {
83
- margin-right: 1px; /* back to normal */
84
- }
85
-
86
- .fc-header .ui-corner-right {
87
- margin-right: 0; /* back to normal */
88
- }
89
-
90
- /* button layering (for border precedence) */
91
-
92
- .fc-header .fc-state-hover,
93
- .fc-header .ui-state-hover {
94
- z-index: 2;
95
- }
96
-
97
- .fc-header .fc-state-down {
98
- z-index: 3;
99
- }
100
-
101
- .fc-header .fc-state-active,
102
- .fc-header .ui-state-active {
103
- z-index: 4;
104
- }
105
-
106
-
107
-
108
- /* Content
109
- ------------------------------------------------------------------------*/
110
-
111
- .fc-content {
112
- clear: both;
113
- }
114
-
115
- .fc-view {
116
- width: 100%; /* needed for view switching (when view is absolute) */
117
- overflow: hidden;
118
- }
119
-
120
-
121
-
122
- /* Cell Styles
123
- ------------------------------------------------------------------------*/
124
-
125
- .fc-widget-header, /* <th>, usually */
126
- .fc-widget-content { /* <td>, usually */
127
- border: 1px solid #ccc;
128
- }
129
-
130
- .fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
131
- background: #ffc;
132
- }
133
-
134
- .fc-cell-overlay { /* semi-transparent rectangle while dragging */
135
- background: #9cf;
136
- opacity: .2;
137
- filter: alpha(opacity=20); /* for IE */
138
- }
139
-
140
-
141
-
142
- /* Buttons
143
- ------------------------------------------------------------------------*/
144
-
145
- .fc-button {
146
- position: relative;
147
- display: inline-block;
148
- cursor: pointer;
149
- }
150
-
151
- .fc-state-default { /* non-theme */
152
- border-style: solid;
153
- border-width: 1px 0;
154
- }
155
-
156
- .fc-button-inner {
157
- position: relative;
158
- float: left;
159
- overflow: hidden;
160
- }
161
-
162
- .fc-state-default .fc-button-inner { /* non-theme */
163
- border-style: solid;
164
- border-width: 0 1px;
165
- }
166
-
167
- .fc-button-content {
168
- position: relative;
169
- float: left;
170
- height: 1.9em;
171
- line-height: 1.9em;
172
- padding: 0 .6em;
173
- white-space: nowrap;
174
- }
175
-
176
- /* icon (for jquery ui) */
177
-
178
- .fc-button-content .fc-icon-wrap {
179
- position: relative;
180
- float: left;
181
- top: 50%;
182
- }
183
-
184
- .fc-button-content .ui-icon {
185
- position: relative;
186
- float: left;
187
- margin-top: -50%;
188
- *margin-top: 0;
189
- *top: -50%;
190
- }
191
-
192
- /* gloss effect */
193
-
194
- .fc-state-default .fc-button-effect {
195
- position: absolute;
196
- top: 50%;
197
- left: 0;
198
- }
199
-
200
- .fc-state-default .fc-button-effect span {
201
- position: absolute;
202
- top: -100px;
203
- left: 0;
204
- width: 500px;
205
- height: 100px;
206
- border-width: 100px 0 0 1px;
207
- border-style: solid;
208
- border-color: #fff;
209
- background: #444;
210
- opacity: .09;
211
- filter: alpha(opacity=9);
212
- }
213
-
214
- /* button states (determines colors) */
215
-
216
- .fc-state-default,
217
- .fc-state-default .fc-button-inner {
218
- border-style: solid;
219
- border-color: #ccc #bbb #aaa;
220
- background: #F3F3F3;
221
- color: #000;
222
- }
223
-
224
- .fc-state-hover,
225
- .fc-state-hover .fc-button-inner {
226
- border-color: #999;
227
- }
228
-
229
- .fc-state-down,
230
- .fc-state-down .fc-button-inner {
231
- border-color: #555;
232
- background: #777;
233
- }
234
-
235
- .fc-state-active,
236
- .fc-state-active .fc-button-inner {
237
- border-color: #555;
238
- background: #777;
239
- color: #fff;
240
- }
241
-
242
- .fc-state-disabled,
243
- .fc-state-disabled .fc-button-inner {
244
- color: #999;
245
- border-color: #ddd;
246
- }
247
-
248
- .fc-state-disabled {
249
- cursor: default;
250
- }
251
-
252
- .fc-state-disabled .fc-button-effect {
253
- display: none;
254
- }
255
-
256
-
257
-
258
- /* Global Event Styles
259
- ------------------------------------------------------------------------*/
260
-
261
- .fc-event {
262
- border-style: solid;
263
- border-width: 0;
264
- font-size: .85em;
265
- cursor: default;
266
- }
267
-
268
- a.fc-event,
269
- .fc-event-draggable {
270
- cursor: pointer;
271
- }
272
-
273
- a.fc-event {
274
- text-decoration: none;
275
- }
276
-
277
- .fc-rtl .fc-event {
278
- text-align: right;
279
- }
280
-
281
- .fc-event-skin {
282
- border-color: #36c; /* default BORDER color */
283
- background-color: #36c; /* default BACKGROUND color */
284
- color: #fff; /* default TEXT color */
285
- }
286
-
287
- .fc-event-inner {
288
- position: relative;
289
- width: 100%;
290
- height: 100%;
291
- border-style: solid;
292
- border-width: 0;
293
- overflow: hidden;
294
- }
295
-
296
- .fc-event-time,
297
- .fc-event-title {
298
- padding: 0 1px;
299
- }
300
-
301
- .fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/
302
- display: block;
303
- position: absolute;
304
- z-index: 99999;
305
- overflow: hidden; /* hacky spaces (IE6/7) */
306
- font-size: 300%; /* */
307
- line-height: 50%; /* */
308
- }
309
-
310
-
311
-
312
- /* Horizontal Events
313
- ------------------------------------------------------------------------*/
314
-
315
- .fc-event-hori {
316
- border-width: 1px 0;
317
- margin-bottom: 1px;
318
- }
319
-
320
- /* resizable */
321
-
322
- .fc-event-hori .ui-resizable-e {
323
- top: 0 !important; /* importants override pre jquery ui 1.7 styles */
324
- right: -3px !important;
325
- width: 7px !important;
326
- height: 100% !important;
327
- cursor: e-resize;
328
- }
329
-
330
- .fc-event-hori .ui-resizable-w {
331
- top: 0 !important;
332
- left: -3px !important;
333
- width: 7px !important;
334
- height: 100% !important;
335
- cursor: w-resize;
336
- }
337
-
338
- .fc-event-hori .ui-resizable-handle {
339
- _padding-bottom: 14px; /* IE6 had 0 height */
340
- }
341
-
342
-
343
-
344
- /* Fake Rounded Corners (for buttons and events)
345
- ------------------------------------------------------------*/
346
-
347
- .fc-corner-left {
348
- margin-left: 1px;
349
- }
350
-
351
- .fc-corner-left .fc-button-inner,
352
- .fc-corner-left .fc-event-inner {
353
- margin-left: -1px;
354
- }
355
-
356
- .fc-corner-right {
357
- margin-right: 1px;
358
- }
359
-
360
- .fc-corner-right .fc-button-inner,
361
- .fc-corner-right .fc-event-inner {
362
- margin-right: -1px;
363
- }
364
-
365
- .fc-corner-top {
366
- margin-top: 1px;
367
- }
368
-
369
- .fc-corner-top .fc-event-inner {
370
- margin-top: -1px;
371
- }
372
-
373
- .fc-corner-bottom {
374
- margin-bottom: 1px;
375
- }
376
-
377
- .fc-corner-bottom .fc-event-inner {
378
- margin-bottom: -1px;
379
- }
380
-
381
-
382
-
383
- /* Fake Rounded Corners SPECIFICALLY FOR EVENTS
384
- -----------------------------------------------------------------*/
385
-
386
- .fc-corner-left .fc-event-inner {
387
- border-left-width: 1px;
388
- }
389
-
390
- .fc-corner-right .fc-event-inner {
391
- border-right-width: 1px;
392
- }
393
-
394
- .fc-corner-top .fc-event-inner {
395
- border-top-width: 1px;
396
- }
397
-
398
- .fc-corner-bottom .fc-event-inner {
399
- border-bottom-width: 1px;
400
- }
401
-
402
-
403
-
404
- /* Reusable Separate-border Table
405
- ------------------------------------------------------------*/
406
-
407
- table.fc-border-separate {
408
- border-collapse: separate;
409
- }
410
-
411
- .fc-border-separate th,
412
- .fc-border-separate td {
413
- border-width: 1px 0 0 1px;
414
- }
415
-
416
- .fc-border-separate th.fc-last,
417
- .fc-border-separate td.fc-last {
418
- border-right-width: 1px;
419
- }
420
-
421
- .fc-border-separate tr.fc-last th,
422
- .fc-border-separate tr.fc-last td {
423
- border-bottom-width: 1px;
424
- }
425
-
426
- .fc-border-separate tbody tr.fc-first td,
427
- .fc-border-separate tbody tr.fc-first th {
428
- border-top-width: 0;
429
- }
430
-
431
-
432
-
433
- /* Month View, Basic Week View, Basic Day View
434
- ------------------------------------------------------------------------*/
435
-
436
- .fc-grid th {
437
- text-align: center;
438
- }
439
-
440
- .fc-grid .fc-day-number {
441
- float: right;
442
- padding: 0 2px;
443
- }
444
-
445
- .fc-grid .fc-other-month .fc-day-number {
446
- opacity: 0.3;
447
- filter: alpha(opacity=30); /* for IE */
448
- /* opacity with small font can sometimes look too faded
449
- might want to set the 'color' property instead
450
- making day-numbers bold also fixes the problem */
451
- }
452
-
453
- .fc-grid .fc-day-content {
454
- clear: both;
455
- padding: 2px 2px 1px; /* distance between events and day edges */
456
- }
457
-
458
- /* event styles */
459
-
460
- .fc-grid .fc-event-time {
461
- font-weight: bold;
462
- }
463
-
464
- /* right-to-left */
465
-
466
- .fc-rtl .fc-grid .fc-day-number {
467
- float: left;
468
- }
469
-
470
- .fc-rtl .fc-grid .fc-event-time {
471
- float: right;
472
- }
473
-
474
-
475
-
476
- /* Agenda Week View, Agenda Day View
477
- ------------------------------------------------------------------------*/
478
-
479
- .fc-agenda table {
480
- border-collapse: separate;
481
- }
482
-
483
- .fc-agenda-days th {
484
- text-align: center;
485
- }
486
-
487
- .fc-agenda .fc-agenda-axis {
488
- width: 50px;
489
- padding: 0 4px;
490
- vertical-align: middle;
491
- text-align: right;
492
- white-space: nowrap;
493
- font-weight: normal;
494
- }
495
-
496
- .fc-agenda .fc-day-content {
497
- padding: 2px 2px 1px;
498
- }
499
-
500
- /* make axis border take precedence */
501
-
502
- .fc-agenda-days .fc-agenda-axis {
503
- border-right-width: 1px;
504
- }
505
-
506
- .fc-agenda-days .fc-col0 {
507
- border-left-width: 0;
508
- }
509
-
510
- /* all-day area */
511
-
512
- .fc-agenda-allday th {
513
- border-width: 0 1px;
514
- }
515
-
516
- .fc-agenda-allday .fc-day-content {
517
- min-height: 34px; /* TODO: doesnt work well in quirksmode */
518
- _height: 34px;
519
- }
520
-
521
- /* divider (between all-day and slots) */
522
-
523
- .fc-agenda-divider-inner {
524
- height: 2px;
525
- overflow: hidden;
526
- }
527
-
528
- .fc-widget-header .fc-agenda-divider-inner {
529
- background: #eee;
530
- }
531
-
532
- /* slot rows */
533
-
534
- .fc-agenda-slots th {
535
- border-width: 1px 1px 0;
536
- }
537
-
538
- .fc-agenda-slots td {
539
- border-width: 1px 0 0;
540
- background: none;
541
- }
542
-
543
- .fc-agenda-slots td div {
544
- height: 20px;
545
- }
546
-
547
- .fc-agenda-slots tr.fc-slot0 th,
548
- .fc-agenda-slots tr.fc-slot0 td {
549
- border-top-width: 0;
550
- }
551
-
552
- .fc-agenda-slots tr.fc-minor th,
553
- .fc-agenda-slots tr.fc-minor td {
554
- border-top-style: dotted;
555
- }
556
-
557
- .fc-agenda-slots tr.fc-minor th.ui-widget-header {
558
- *border-top-style: solid; /* doesn't work with background in IE6/7 */
559
- }
560
-
561
-
562
-
563
- /* Vertical Events
564
- ------------------------------------------------------------------------*/
565
-
566
- .fc-event-vert {
567
- border-width: 0 1px;
568
- }
569
-
570
- .fc-event-vert .fc-event-head,
571
- .fc-event-vert .fc-event-content {
572
- position: relative;
573
- z-index: 2;
574
- width: 100%;
575
- overflow: hidden;
576
- }
577
-
578
- .fc-event-vert .fc-event-time {
579
- white-space: nowrap;
580
- font-size: 10px;
581
- }
582
-
583
- .fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
584
- position: absolute;
585
- z-index: 1;
586
- top: 0;
587
- left: 0;
588
- width: 100%;
589
- height: 100%;
590
- background: #fff;
591
- opacity: .3;
592
- filter: alpha(opacity=30);
593
- }
594
-
595
- .fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */
596
- .fc-select-helper .fc-event-bg {
597
- display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
598
- }
599
-
600
- /* resizable */
601
-
602
- .fc-event-vert .ui-resizable-s {
603
- bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
604
- width: 100% !important;
605
- height: 8px !important;
606
- overflow: hidden !important;
607
- line-height: 8px !important;
608
- font-size: 11px !important;
609
- font-family: monospace;
610
- text-align: center;
611
- cursor: s-resize;
612
- }
613
-
614
- .fc-agenda .ui-resizable-resizing { /* TODO: better selector */
615
- _overflow: hidden;
616
- }
617
-
618
-
1
+ /*
2
+ * FullCalendar v1.5.4 Stylesheet
3
+ *
4
+ * Copyright (c) 2011 Adam Shaw
5
+ * Dual licensed under the MIT and GPL licenses, located in
6
+ * MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
7
+ *
8
+ * Date: Tue Sep 4 23:38:33 2012 -0700
9
+ *
10
+ */
11
+
12
+
13
+ .fc {
14
+ direction: ltr;
15
+ text-align: left;
16
+ }
17
+
18
+ .fc table {
19
+ border-collapse: collapse;
20
+ border-spacing: 0;
21
+ }
22
+
23
+ html .fc,
24
+ .fc table {
25
+ font-size: 1em;
26
+ }
27
+
28
+ .fc td,
29
+ .fc th {
30
+ padding: 0;
31
+ vertical-align: top;
32
+ }
33
+
34
+
35
+
36
+ /* Header
37
+ ------------------------------------------------------------------------*/
38
+
39
+ .fc-header td {
40
+ white-space: nowrap;
41
+ }
42
+
43
+ .fc-header-left {
44
+ width: 25%;
45
+ text-align: left;
46
+ }
47
+
48
+ .fc-header-center {
49
+ text-align: center;
50
+ }
51
+
52
+ .fc-header-right {
53
+ width: 25%;
54
+ text-align: right;
55
+ }
56
+
57
+ .fc-header-title {
58
+ display: inline-block;
59
+ vertical-align: top;
60
+ }
61
+
62
+ .fc-header-title h2 {
63
+ margin-top: 0;
64
+ white-space: nowrap;
65
+ }
66
+
67
+ .fc .fc-header-space {
68
+ padding-left: 10px;
69
+ }
70
+
71
+ .fc-header .fc-button {
72
+ margin-bottom: 1em;
73
+ vertical-align: top;
74
+ }
75
+
76
+ /* buttons edges butting together */
77
+
78
+ .fc-header .fc-button {
79
+ margin-right: -1px;
80
+ }
81
+
82
+ .fc-header .fc-corner-right {
83
+ margin-right: 1px; /* back to normal */
84
+ }
85
+
86
+ .fc-header .ui-corner-right {
87
+ margin-right: 0; /* back to normal */
88
+ }
89
+
90
+ /* button layering (for border precedence) */
91
+
92
+ .fc-header .fc-state-hover,
93
+ .fc-header .ui-state-hover {
94
+ z-index: 2;
95
+ }
96
+
97
+ .fc-header .fc-state-down {
98
+ z-index: 3;
99
+ }
100
+
101
+ .fc-header .fc-state-active,
102
+ .fc-header .ui-state-active {
103
+ z-index: 4;
104
+ }
105
+
106
+
107
+
108
+ /* Content
109
+ ------------------------------------------------------------------------*/
110
+
111
+ .fc-content {
112
+ clear: both;
113
+ }
114
+
115
+ .fc-view {
116
+ width: 100%; /* needed for view switching (when view is absolute) */
117
+ overflow: hidden;
118
+ }
119
+
120
+
121
+
122
+ /* Cell Styles
123
+ ------------------------------------------------------------------------*/
124
+
125
+ .fc-widget-header, /* <th>, usually */
126
+ .fc-widget-content { /* <td>, usually */
127
+ border: 1px solid #ccc;
128
+ }
129
+
130
+ .fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
131
+ background: #ffc;
132
+ }
133
+
134
+ .fc-cell-overlay { /* semi-transparent rectangle while dragging */
135
+ background: #9cf;
136
+ opacity: .2;
137
+ filter: alpha(opacity=20); /* for IE */
138
+ }
139
+
140
+
141
+
142
+ /* Buttons
143
+ ------------------------------------------------------------------------*/
144
+
145
+ .fc-button {
146
+ position: relative;
147
+ display: inline-block;
148
+ cursor: pointer;
149
+ }
150
+
151
+ .fc-state-default { /* non-theme */
152
+ border-style: solid;
153
+ border-width: 1px 0;
154
+ }
155
+
156
+ .fc-button-inner {
157
+ position: relative;
158
+ float: left;
159
+ overflow: hidden;
160
+ }
161
+
162
+ .fc-state-default .fc-button-inner { /* non-theme */
163
+ border-style: solid;
164
+ border-width: 0 1px;
165
+ }
166
+
167
+ .fc-button-content {
168
+ position: relative;
169
+ float: left;
170
+ height: 1.9em;
171
+ line-height: 1.9em;
172
+ padding: 0 .6em;
173
+ white-space: nowrap;
174
+ }
175
+
176
+ /* icon (for jquery ui) */
177
+
178
+ .fc-button-content .fc-icon-wrap {
179
+ position: relative;
180
+ float: left;
181
+ top: 50%;
182
+ }
183
+
184
+ .fc-button-content .ui-icon {
185
+ position: relative;
186
+ float: left;
187
+ margin-top: -50%;
188
+ *margin-top: 0;
189
+ *top: -50%;
190
+ }
191
+
192
+ /* gloss effect */
193
+
194
+ .fc-state-default .fc-button-effect {
195
+ position: absolute;
196
+ top: 50%;
197
+ left: 0;
198
+ }
199
+
200
+ .fc-state-default .fc-button-effect span {
201
+ position: absolute;
202
+ top: -100px;
203
+ left: 0;
204
+ width: 500px;
205
+ height: 100px;
206
+ border-width: 100px 0 0 1px;
207
+ border-style: solid;
208
+ border-color: #fff;
209
+ background: #444;
210
+ opacity: .09;
211
+ filter: alpha(opacity=9);
212
+ }
213
+
214
+ /* button states (determines colors) */
215
+
216
+ .fc-state-default,
217
+ .fc-state-default .fc-button-inner {
218
+ border-style: solid;
219
+ border-color: #ccc #bbb #aaa;
220
+ background: #F3F3F3;
221
+ color: #000;
222
+ }
223
+
224
+ .fc-state-hover,
225
+ .fc-state-hover .fc-button-inner {
226
+ border-color: #999;
227
+ }
228
+
229
+ .fc-state-down,
230
+ .fc-state-down .fc-button-inner {
231
+ border-color: #555;
232
+ background: #777;
233
+ }
234
+
235
+ .fc-state-active,
236
+ .fc-state-active .fc-button-inner {
237
+ border-color: #555;
238
+ background: #777;
239
+ color: #fff;
240
+ }
241
+
242
+ .fc-state-disabled,
243
+ .fc-state-disabled .fc-button-inner {
244
+ color: #999;
245
+ border-color: #ddd;
246
+ }
247
+
248
+ .fc-state-disabled {
249
+ cursor: default;
250
+ }
251
+
252
+ .fc-state-disabled .fc-button-effect {
253
+ display: none;
254
+ }
255
+
256
+
257
+
258
+ /* Global Event Styles
259
+ ------------------------------------------------------------------------*/
260
+
261
+ .fc-event {
262
+ border-style: solid;
263
+ border-width: 0;
264
+ font-size: .85em;
265
+ cursor: default;
266
+ }
267
+
268
+ a.fc-event,
269
+ .fc-event-draggable {
270
+ cursor: pointer;
271
+ }
272
+
273
+ a.fc-event {
274
+ text-decoration: none;
275
+ }
276
+
277
+ .fc-rtl .fc-event {
278
+ text-align: right;
279
+ }
280
+
281
+ .fc-event-skin {
282
+ border-color: #36c; /* default BORDER color */
283
+ background-color: #36c; /* default BACKGROUND color */
284
+ color: #fff; /* default TEXT color */
285
+ }
286
+
287
+ .fc-event-inner {
288
+ position: relative;
289
+ width: 100%;
290
+ height: 100%;
291
+ border-style: solid;
292
+ border-width: 0;
293
+ overflow: hidden;
294
+ }
295
+
296
+ .fc-event-time,
297
+ .fc-event-title {
298
+ padding: 0 1px;
299
+ }
300
+
301
+ .fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/
302
+ display: block;
303
+ position: absolute;
304
+ z-index: 99999;
305
+ overflow: hidden; /* hacky spaces (IE6/7) */
306
+ font-size: 300%; /* */
307
+ line-height: 50%; /* */
308
+ }
309
+
310
+
311
+
312
+ /* Horizontal Events
313
+ ------------------------------------------------------------------------*/
314
+
315
+ .fc-event-hori {
316
+ border-width: 1px 0;
317
+ margin-bottom: 1px;
318
+ }
319
+
320
+ /* resizable */
321
+
322
+ .fc-event-hori .ui-resizable-e {
323
+ top: 0 !important; /* importants override pre jquery ui 1.7 styles */
324
+ right: -3px !important;
325
+ width: 7px !important;
326
+ height: 100% !important;
327
+ cursor: e-resize;
328
+ }
329
+
330
+ .fc-event-hori .ui-resizable-w {
331
+ top: 0 !important;
332
+ left: -3px !important;
333
+ width: 7px !important;
334
+ height: 100% !important;
335
+ cursor: w-resize;
336
+ }
337
+
338
+ .fc-event-hori .ui-resizable-handle {
339
+ _padding-bottom: 14px; /* IE6 had 0 height */
340
+ }
341
+
342
+
343
+
344
+ /* Fake Rounded Corners (for buttons and events)
345
+ ------------------------------------------------------------*/
346
+
347
+ .fc-corner-left {
348
+ margin-left: 1px;
349
+ }
350
+
351
+ .fc-corner-left .fc-button-inner,
352
+ .fc-corner-left .fc-event-inner {
353
+ margin-left: -1px;
354
+ }
355
+
356
+ .fc-corner-right {
357
+ margin-right: 1px;
358
+ }
359
+
360
+ .fc-corner-right .fc-button-inner,
361
+ .fc-corner-right .fc-event-inner {
362
+ margin-right: -1px;
363
+ }
364
+
365
+ .fc-corner-top {
366
+ margin-top: 1px;
367
+ }
368
+
369
+ .fc-corner-top .fc-event-inner {
370
+ margin-top: -1px;
371
+ }
372
+
373
+ .fc-corner-bottom {
374
+ margin-bottom: 1px;
375
+ }
376
+
377
+ .fc-corner-bottom .fc-event-inner {
378
+ margin-bottom: -1px;
379
+ }
380
+
381
+
382
+
383
+ /* Fake Rounded Corners SPECIFICALLY FOR EVENTS
384
+ -----------------------------------------------------------------*/
385
+
386
+ .fc-corner-left .fc-event-inner {
387
+ border-left-width: 1px;
388
+ }
389
+
390
+ .fc-corner-right .fc-event-inner {
391
+ border-right-width: 1px;
392
+ }
393
+
394
+ .fc-corner-top .fc-event-inner {
395
+ border-top-width: 1px;
396
+ }
397
+
398
+ .fc-corner-bottom .fc-event-inner {
399
+ border-bottom-width: 1px;
400
+ }
401
+
402
+
403
+
404
+ /* Reusable Separate-border Table
405
+ ------------------------------------------------------------*/
406
+
407
+ table.fc-border-separate {
408
+ border-collapse: separate;
409
+ }
410
+
411
+ .fc-border-separate th,
412
+ .fc-border-separate td {
413
+ border-width: 1px 0 0 1px;
414
+ }
415
+
416
+ .fc-border-separate th.fc-last,
417
+ .fc-border-separate td.fc-last {
418
+ border-right-width: 1px;
419
+ }
420
+
421
+ .fc-border-separate tr.fc-last th,
422
+ .fc-border-separate tr.fc-last td {
423
+ border-bottom-width: 1px;
424
+ }
425
+
426
+ .fc-border-separate tbody tr.fc-first td,
427
+ .fc-border-separate tbody tr.fc-first th {
428
+ border-top-width: 0;
429
+ }
430
+
431
+
432
+
433
+ /* Month View, Basic Week View, Basic Day View
434
+ ------------------------------------------------------------------------*/
435
+
436
+ .fc-grid th {
437
+ text-align: center;
438
+ }
439
+
440
+ .fc-grid .fc-day-number {
441
+ float: right;
442
+ padding: 0 2px;
443
+ }
444
+
445
+ .fc-grid .fc-other-month .fc-day-number {
446
+ opacity: 0.3;
447
+ filter: alpha(opacity=30); /* for IE */
448
+ /* opacity with small font can sometimes look too faded
449
+ might want to set the 'color' property instead
450
+ making day-numbers bold also fixes the problem */
451
+ }
452
+
453
+ .fc-grid .fc-day-content {
454
+ clear: both;
455
+ padding: 2px 2px 1px; /* distance between events and day edges */
456
+ }
457
+
458
+ /* event styles */
459
+
460
+ .fc-grid .fc-event-time {
461
+ font-weight: bold;
462
+ }
463
+
464
+ /* right-to-left */
465
+
466
+ .fc-rtl .fc-grid .fc-day-number {
467
+ float: left;
468
+ }
469
+
470
+ .fc-rtl .fc-grid .fc-event-time {
471
+ float: right;
472
+ }
473
+
474
+
475
+
476
+ /* Agenda Week View, Agenda Day View
477
+ ------------------------------------------------------------------------*/
478
+
479
+ .fc-agenda table {
480
+ border-collapse: separate;
481
+ }
482
+
483
+ .fc-agenda-days th {
484
+ text-align: center;
485
+ }
486
+
487
+ .fc-agenda .fc-agenda-axis {
488
+ width: 50px;
489
+ padding: 0 4px;
490
+ vertical-align: middle;
491
+ text-align: right;
492
+ white-space: nowrap;
493
+ font-weight: normal;
494
+ }
495
+
496
+ .fc-agenda .fc-day-content {
497
+ padding: 2px 2px 1px;
498
+ }
499
+
500
+ /* make axis border take precedence */
501
+
502
+ .fc-agenda-days .fc-agenda-axis {
503
+ border-right-width: 1px;
504
+ }
505
+
506
+ .fc-agenda-days .fc-col0 {
507
+ border-left-width: 0;
508
+ }
509
+
510
+ /* all-day area */
511
+
512
+ .fc-agenda-allday th {
513
+ border-width: 0 1px;
514
+ }
515
+
516
+ .fc-agenda-allday .fc-day-content {
517
+ min-height: 34px; /* TODO: doesnt work well in quirksmode */
518
+ _height: 34px;
519
+ }
520
+
521
+ /* divider (between all-day and slots) */
522
+
523
+ .fc-agenda-divider-inner {
524
+ height: 2px;
525
+ overflow: hidden;
526
+ }
527
+
528
+ .fc-widget-header .fc-agenda-divider-inner {
529
+ background: #eee;
530
+ }
531
+
532
+ /* slot rows */
533
+
534
+ .fc-agenda-slots th {
535
+ border-width: 1px 1px 0;
536
+ }
537
+
538
+ .fc-agenda-slots td {
539
+ border-width: 1px 0 0;
540
+ background: none;
541
+ }
542
+
543
+ .fc-agenda-slots td div {
544
+ height: 20px;
545
+ }
546
+
547
+ .fc-agenda-slots tr.fc-slot0 th,
548
+ .fc-agenda-slots tr.fc-slot0 td {
549
+ border-top-width: 0;
550
+ }
551
+
552
+ .fc-agenda-slots tr.fc-minor th,
553
+ .fc-agenda-slots tr.fc-minor td {
554
+ border-top-style: dotted;
555
+ }
556
+
557
+ .fc-agenda-slots tr.fc-minor th.ui-widget-header {
558
+ *border-top-style: solid; /* doesn't work with background in IE6/7 */
559
+ }
560
+
561
+
562
+
563
+ /* Vertical Events
564
+ ------------------------------------------------------------------------*/
565
+
566
+ .fc-event-vert {
567
+ border-width: 0 1px;
568
+ }
569
+
570
+ .fc-event-vert .fc-event-head,
571
+ .fc-event-vert .fc-event-content {
572
+ position: relative;
573
+ z-index: 2;
574
+ width: 100%;
575
+ overflow: hidden;
576
+ }
577
+
578
+ .fc-event-vert .fc-event-time {
579
+ white-space: nowrap;
580
+ font-size: 10px;
581
+ }
582
+
583
+ .fc-event-vert .fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
584
+ position: absolute;
585
+ z-index: 1;
586
+ top: 0;
587
+ left: 0;
588
+ width: 100%;
589
+ height: 100%;
590
+ background: #fff;
591
+ opacity: .3;
592
+ filter: alpha(opacity=30);
593
+ }
594
+
595
+ .fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */
596
+ .fc-select-helper .fc-event-bg {
597
+ display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
598
+ }
599
+
600
+ /* resizable */
601
+
602
+ .fc-event-vert .ui-resizable-s {
603
+ bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
604
+ width: 100% !important;
605
+ height: 8px !important;
606
+ overflow: hidden !important;
607
+ line-height: 8px !important;
608
+ font-size: 11px !important;
609
+ font-family: monospace;
610
+ text-align: center;
611
+ cursor: s-resize;
612
+ }
613
+
614
+ .fc-agenda .ui-resizable-resizing { /* TODO: better selector */
615
+ _overflow: hidden;
616
+ }
617
+
618
+