event_calendar_engine 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +23 -0
- data/Gemfile.lock +161 -0
- data/README +1 -0
- data/Rakefile +39 -0
- data/VERSION +1 -0
- data/app/controllers/application_controller.rb +4 -0
- data/app/controllers/attendees_controller.rb +53 -0
- data/app/controllers/event_calendar/application_controller.rb +5 -0
- data/app/controllers/event_revisions_controller.rb +26 -0
- data/app/controllers/events_controller.rb +129 -0
- data/app/helpers/event_calendar/application_helper.rb +118 -0
- data/app/helpers/events_helper.rb +2 -0
- data/app/models/attendee.rb +6 -0
- data/app/models/deletable_instance_methods.rb +7 -0
- data/app/models/event.rb +124 -0
- data/app/models/event_revision.rb +9 -0
- data/app/models/participant.rb +23 -0
- data/app/models/participator.rb +20 -0
- data/app/views/attendees/index.html.erb +14 -0
- data/app/views/attendees/new.html.erb +13 -0
- data/app/views/event-calendar-shared/_flash.html.erb +7 -0
- data/app/views/event-calendar-shared/_main_menu.html.erb +3 -0
- data/app/views/event-calendar-shared/_navigation.html.erb +15 -0
- data/app/views/event_revisions/index.html.erb +31 -0
- data/app/views/event_revisions/show.html.erb +5 -0
- data/app/views/events/_browse_event_revisions.html.erb +19 -0
- data/app/views/events/_event.html.erb +10 -0
- data/app/views/events/_event_details.html.erb +26 -0
- data/app/views/events/_form.html.erb +36 -0
- data/app/views/events/attendees.html.erb +29 -0
- data/app/views/events/edit.html.erb +3 -0
- data/app/views/events/index.html.erb +41 -0
- data/app/views/events/new.html.erb +3 -0
- data/app/views/events/search.html.erb +11 -0
- data/app/views/events/show.html.erb +30 -0
- data/app/views/layouts/application.html.erb +49 -0
- data/config/application.rb +42 -0
- data/config/blueprint_settings.yml +10 -0
- data/config/boot.rb +13 -0
- data/config/cucumber.yml +8 -0
- data/config/database.example.yml +22 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +26 -0
- data/config/environments/production.rb +49 -0
- data/config/environments/test.rb +38 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/formtastic.rb +55 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/secret_token.rb +9 -0
- data/config/initializers/session_store.rb +10 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +67 -0
- data/db/migrate/20101011142543_create_events.rb +19 -0
- data/db/migrate/20101011172027_create_attendees.rb +16 -0
- data/db/migrate/20101011200048_make_events_revisable.rb +25 -0
- data/db/schema.rb +45 -0
- data/db/seeds.rb +7 -0
- data/lib/event_calendar.rb +3 -0
- data/lib/event_calendar/engine.rb +25 -0
- data/lib/generators/event_calendar/install/USAGE +5 -0
- data/lib/generators/event_calendar/install/install_generator.rb +19 -0
- data/lib/generators/event_calendar/install/templates/event_calendar.rake +169 -0
- data/lib/tasks/blueprint.rake +25 -0
- data/lib/tasks/cucumber.rake +53 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +26 -0
- data/public/favicon.ico +0 -0
- data/public/images/rails.png +0 -0
- data/public/javascripts/event_calendar.js +62 -0
- data/public/javascripts/event_calendar_behaviors.js +131 -0
- data/public/javascripts/fullcalendar.js +3965 -0
- data/public/javascripts/jquery-ui-1.7.2.custom.min.js +298 -0
- data/public/javascripts/jquery.clonePosition.js +27 -0
- data/public/javascripts/jquery.js +154 -0
- data/public/javascripts/jquery.qtip-1.0.0-rc3.js +2149 -0
- data/public/javascripts/jquery.string.1.0-min.js +6 -0
- data/public/javascripts/jquery.tablesorter.min.js +2 -0
- data/public/javascripts/lowpro.jquery.js +224 -0
- data/public/javascripts/rails.js +132 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/blueprint/grid.css +280 -0
- data/public/stylesheets/blueprint/icons/cross.png +0 -0
- data/public/stylesheets/blueprint/icons/doc.png +0 -0
- data/public/stylesheets/blueprint/icons/email.png +0 -0
- data/public/stylesheets/blueprint/icons/external.png +0 -0
- data/public/stylesheets/blueprint/icons/feed.png +0 -0
- data/public/stylesheets/blueprint/icons/im.png +0 -0
- data/public/stylesheets/blueprint/icons/key.png +0 -0
- data/public/stylesheets/blueprint/icons/pdf.png +0 -0
- data/public/stylesheets/blueprint/icons/tick.png +0 -0
- data/public/stylesheets/blueprint/icons/visited.png +0 -0
- data/public/stylesheets/blueprint/icons/xls.png +0 -0
- data/public/stylesheets/blueprint/ie.css +36 -0
- data/public/stylesheets/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/public/stylesheets/blueprint/plugins/buttons/icons/key.png +0 -0
- data/public/stylesheets/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/public/stylesheets/blueprint/plugins/buttons/readme.txt +32 -0
- data/public/stylesheets/blueprint/plugins/buttons/screen.css +97 -0
- data/public/stylesheets/blueprint/plugins/fancy-type/readme.txt +14 -0
- data/public/stylesheets/blueprint/plugins/fancy-type/screen.css +71 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/public/stylesheets/blueprint/plugins/link-icons/readme.txt +18 -0
- data/public/stylesheets/blueprint/plugins/link-icons/screen.css +40 -0
- data/public/stylesheets/blueprint/plugins/rtl/readme.txt +10 -0
- data/public/stylesheets/blueprint/plugins/rtl/screen.css +110 -0
- data/public/stylesheets/blueprint/plugins/silksprite/sprite.css +1 -0
- data/public/stylesheets/blueprint/plugins/silksprite/sprites.png +0 -0
- data/public/stylesheets/blueprint/print.css +29 -0
- data/public/stylesheets/blueprint/readme.txt +12 -0
- data/public/stylesheets/blueprint/screen.css +429 -0
- data/public/stylesheets/error_messages.css +65 -0
- data/public/stylesheets/formtastic.css +131 -0
- data/public/stylesheets/formtastic_changes.css +14 -0
- data/public/stylesheets/fullcalendar.css +574 -0
- data/public/stylesheets/fullcalendar_changes.css +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/public/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/public/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/public/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/public/stylesheets/smoothness/jquery-ui-1.7.2.custom.css +406 -0
- data/public/stylesheets/tablesorter/blue/asc.gif +0 -0
- data/public/stylesheets/tablesorter/blue/bg.gif +0 -0
- data/public/stylesheets/tablesorter/blue/desc.gif +0 -0
- data/public/stylesheets/tablesorter/blue/style.css +39 -0
- data/public/stylesheets/text_and_colors.css +49 -0
- data/spec/controllers/attendees_controller_spec.rb +27 -0
- data/spec/controllers/event_revisions_controller_spec.rb +86 -0
- data/spec/controllers/events_controller_spec.rb +168 -0
- data/spec/fixtures/event_calendar_events.yml +8 -0
- data/spec/models/deletable_instance_methods_spec.rb +61 -0
- data/spec/models/event_revision_spec.rb +36 -0
- data/spec/models/event_spec.rb +139 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/spec_helpers/mocks.rb +6 -0
- data/vendor/plugins/searchable_by/MIT-LICENSE +20 -0
- data/vendor/plugins/searchable_by/README +55 -0
- data/vendor/plugins/searchable_by/Rakefile +23 -0
- data/vendor/plugins/searchable_by/init.rb +2 -0
- data/vendor/plugins/searchable_by/install.rb +1 -0
- data/vendor/plugins/searchable_by/lib/searchable_by.rb +137 -0
- data/vendor/plugins/searchable_by/tasks/searchable_by_tasks.rake +4 -0
- data/vendor/plugins/searchable_by/test/boot.rb +21 -0
- data/vendor/plugins/searchable_by/test/database.yml +22 -0
- data/vendor/plugins/searchable_by/test/fixtures/companies.yml +10 -0
- data/vendor/plugins/searchable_by/test/fixtures/company.rb +5 -0
- data/vendor/plugins/searchable_by/test/fixtures/employee.rb +5 -0
- data/vendor/plugins/searchable_by/test/fixtures/employees.yml +28 -0
- data/vendor/plugins/searchable_by/test/fixtures/schema.rb +18 -0
- data/vendor/plugins/searchable_by/test/helper.rb +12 -0
- data/vendor/plugins/searchable_by/test/lib/activerecord_test_case.rb +43 -0
- data/vendor/plugins/searchable_by/test/lib/activerecord_test_connector.rb +75 -0
- data/vendor/plugins/searchable_by/test/lib/load_fixtures.rb +9 -0
- data/vendor/plugins/searchable_by/test/searchable_by_test.rb +73 -0
- data/vendor/plugins/searchable_by/uninstall.rb +1 -0
- metadata +606 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
/*
|
2
|
+
.flash_message {
|
3
|
+
margin: 10px;
|
4
|
+
background: #FFC;
|
5
|
+
border: 4px double #999;
|
6
|
+
color: #333;
|
7
|
+
padding: 8px 12px;
|
8
|
+
font-size: 14px;
|
9
|
+
font-family: Verdana, sans-serif;
|
10
|
+
-moz-border-radius: 10px;
|
11
|
+
-webkit-border-radius: 10px;
|
12
|
+
}
|
13
|
+
|
14
|
+
.notice_message {
|
15
|
+
border-color: #3C3;
|
16
|
+
color: #020;
|
17
|
+
clear:both;
|
18
|
+
}
|
19
|
+
|
20
|
+
.warning_message {
|
21
|
+
border-color: #FC3;
|
22
|
+
color: #630;
|
23
|
+
}
|
24
|
+
|
25
|
+
.error_message {
|
26
|
+
border-color: #F33;
|
27
|
+
color: #200;
|
28
|
+
}
|
29
|
+
|
30
|
+
.fieldWithErrors {
|
31
|
+
padding: 2px;
|
32
|
+
background-color: red;
|
33
|
+
display: table;
|
34
|
+
}
|
35
|
+
|
36
|
+
#errorExplanation {
|
37
|
+
width: 400px;
|
38
|
+
border: 2px solid red;
|
39
|
+
padding: 7px;
|
40
|
+
padding-bottom: 12px;
|
41
|
+
margin-bottom: 20px;
|
42
|
+
background-color: #f0f0f0;
|
43
|
+
}
|
44
|
+
|
45
|
+
#errorExplanation h2 {
|
46
|
+
text-align: left;
|
47
|
+
font-weight: bold;
|
48
|
+
padding: 5px 5px 5px 15px;
|
49
|
+
font-size: 12px;
|
50
|
+
margin: -7px;
|
51
|
+
background-color: #c00;
|
52
|
+
color: #fff;
|
53
|
+
}
|
54
|
+
|
55
|
+
#errorExplanation p {
|
56
|
+
color: #333;
|
57
|
+
margin-bottom: 0;
|
58
|
+
padding: 5px;
|
59
|
+
}
|
60
|
+
|
61
|
+
#errorExplanation ul li {
|
62
|
+
font-size: 12px;
|
63
|
+
list-style: square;
|
64
|
+
}
|
65
|
+
*/
|
@@ -0,0 +1,131 @@
|
|
1
|
+
/* -------------------------------------------------------------------------------------------------
|
2
|
+
|
3
|
+
It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
|
4
|
+
this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
|
5
|
+
This will allow you to update formtastic.css with new releases without clobbering your own changes.
|
6
|
+
|
7
|
+
This stylesheet forms part of the Formtastic Rails Plugin
|
8
|
+
(c) 2008 Justin French
|
9
|
+
|
10
|
+
--------------------------------------------------------------------------------------------------*/
|
11
|
+
|
12
|
+
|
13
|
+
/* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just form.formtastic
|
14
|
+
--------------------------------------------------------------------------------------------------*/
|
15
|
+
form.formtastic, form.formtastic ul, form.formtastic ol, form.formtastic li, form.formtastic fieldset, form.formtastic legend, form.formtastic input, form.formtastic textarea, form.formtastic select, form.formtastic p { margin:0; padding:0; }
|
16
|
+
form.formtastic fieldset { border:0; }
|
17
|
+
form.formtastic em, form.formtastic strong { font-style:normal; font-weight:normal; }
|
18
|
+
form.formtastic ol, form.formtastic ul { list-style:none; }
|
19
|
+
form.formtastic abbr, form.formtastic acronym { border:0; font-variant:normal; }
|
20
|
+
form.formtastic input, form.formtastic textarea, form.formtastic select { font-family:inherit; font-size:inherit; font-weight:inherit; }
|
21
|
+
form.formtastic input, form.formtastic textarea, form.formtastic select { font-size:100%; }
|
22
|
+
form.formtastic legend { white-space:normal; color:#000; }
|
23
|
+
|
24
|
+
|
25
|
+
/* SEMANTIC ERRORS
|
26
|
+
--------------------------------------------------------------------------------------------------*/
|
27
|
+
form.formtastic ul.errors { color:#cc0000; margin:0.5em 0 1.5em 25%; list-style:square; }
|
28
|
+
form.formtastic ul.errors li { padding:0; border:none; display:list-item; }
|
29
|
+
|
30
|
+
|
31
|
+
/* FIELDSETS & LISTS
|
32
|
+
--------------------------------------------------------------------------------------------------*/
|
33
|
+
form.formtastic fieldset { overflow:auto; } /* clearing contained floats */
|
34
|
+
form.formtastic fieldset.inputs { }
|
35
|
+
form.formtastic fieldset.buttons { padding-left:25%; }
|
36
|
+
form.formtastic fieldset ol { }
|
37
|
+
form.formtastic fieldset.buttons li { float:left; padding-right:0.5em; }
|
38
|
+
|
39
|
+
/* INPUT LIs
|
40
|
+
--------------------------------------------------------------------------------------------------*/
|
41
|
+
form.formtastic fieldset > ol > li { margin-bottom:1.5em; }
|
42
|
+
form.formtastic fieldset > ol > li { overflow:auto; } /* clearing contained floats */
|
43
|
+
|
44
|
+
form.formtastic fieldset > ol > li.required { }
|
45
|
+
form.formtastic fieldset > ol > li.optional { }
|
46
|
+
form.formtastic fieldset > ol > li.error { }
|
47
|
+
|
48
|
+
|
49
|
+
/* LABELS
|
50
|
+
--------------------------------------------------------------------------------------------------*/
|
51
|
+
form.formtastic fieldset > ol > li label { display:block; width:25%; float:left; padding-top:.2em; }
|
52
|
+
form.formtastic fieldset > ol > li > li label { line-height:100%; padding-top:0; }
|
53
|
+
form.formtastic fieldset > ol > li > li label input { line-height:100%; vertical-align:middle; margin-top:-0.1em;}
|
54
|
+
|
55
|
+
|
56
|
+
/* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
|
57
|
+
--------------------------------------------------------------------------------------------------*/
|
58
|
+
form.formtastic fieldset > ol > li fieldset { position:relative; }
|
59
|
+
form.formtastic fieldset > ol > li fieldset legend { position:absolute; width:95%; padding-top:0.1em; left: 0px; }
|
60
|
+
form.formtastic fieldset > ol > li fieldset legend span { position:absolute; }
|
61
|
+
form.formtastic fieldset > ol > li fieldset legend.label label { position:absolute; }
|
62
|
+
form.formtastic fieldset > ol > li fieldset ol { float:left; width:74%; margin:0; padding:0 0 0 25%; }
|
63
|
+
form.formtastic fieldset > ol > li fieldset ol li { padding:0; border:0; }
|
64
|
+
|
65
|
+
|
66
|
+
/* INLINE HINTS
|
67
|
+
--------------------------------------------------------------------------------------------------*/
|
68
|
+
form.formtastic fieldset > ol > li p.inline-hints { color:#666; margin:0.5em 0 0 25%; }
|
69
|
+
|
70
|
+
|
71
|
+
/* INLINE ERRORS
|
72
|
+
--------------------------------------------------------------------------------------------------*/
|
73
|
+
form.formtastic fieldset > ol > li p.inline-errors { color:#cc0000; margin:0.5em 0 0 25%; }
|
74
|
+
form.formtastic fieldset > ol > li ul.errors { color:#cc0000; margin:0.5em 0 0 25%; list-style:square; }
|
75
|
+
form.formtastic fieldset > ol > li ul.errors li { padding:0; border:none; display:list-item; }
|
76
|
+
|
77
|
+
|
78
|
+
/* STRING & NUMERIC OVERRIDES
|
79
|
+
--------------------------------------------------------------------------------------------------*/
|
80
|
+
form.formtastic fieldset > ol > li.string input { max-width:74%; }
|
81
|
+
form.formtastic fieldset > ol > li.password input { max-width: 13em; }
|
82
|
+
form.formtastic fieldset > ol > li.numeric input { max-width:74%; }
|
83
|
+
|
84
|
+
|
85
|
+
/* TEXTAREA OVERRIDES
|
86
|
+
--------------------------------------------------------------------------------------------------*/
|
87
|
+
form.formtastic fieldset > ol > li.text textarea { width:74%; }
|
88
|
+
|
89
|
+
|
90
|
+
/* HIDDEN OVERRIDES
|
91
|
+
--------------------------------------------------------------------------------------------------*/
|
92
|
+
form.formtastic fieldset ol li.hidden { display:none; }
|
93
|
+
|
94
|
+
/* BOOLEAN OVERRIDES
|
95
|
+
--------------------------------------------------------------------------------------------------*/
|
96
|
+
form.formtastic fieldset > ol > li.boolean label { padding-left:25%; width:auto; }
|
97
|
+
form.formtastic fieldset > ol > li.boolean label input { margin:0 0.5em 0 0.2em; }
|
98
|
+
|
99
|
+
|
100
|
+
/* RADIO OVERRIDES
|
101
|
+
--------------------------------------------------------------------------------------------------*/
|
102
|
+
form.formtastic fieldset > ol > li.radio { }
|
103
|
+
form.formtastic fieldset > ol > li.radio fieldset ol { margin-bottom:-0.6em; }
|
104
|
+
form.formtastic fieldset > ol > li.radio fieldset ol li { margin:0.1em 0 0.5em 0; }
|
105
|
+
form.formtastic fieldset > ol > li.radio fieldset ol li label { float:none; width:100%; }
|
106
|
+
form.formtastic fieldset > ol > li.radio fieldset ol li label input { margin-right:0.2em; }
|
107
|
+
|
108
|
+
|
109
|
+
/* CHECK BOXES (COLLECTION) OVERRIDES
|
110
|
+
--------------------------------------------------------------------------------------------------*/
|
111
|
+
form.formtastic fieldset > ol > li.check_boxes { }
|
112
|
+
form.formtastic fieldset > ol > li.check_boxes fieldset ol { margin-bottom:-0.6em; }
|
113
|
+
form.formtastic fieldset > ol > li.check_boxes fieldset ol li { margin:0.1em 0 0.5em 0; }
|
114
|
+
form.formtastic fieldset > ol > li.check_boxes fieldset ol li label { float:none; width:100%; }
|
115
|
+
form.formtastic fieldset > ol > li.check_boxes fieldset ol li label input { margin-right:0.2em; }
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
/* DATE & TIME OVERRIDES
|
120
|
+
--------------------------------------------------------------------------------------------------*/
|
121
|
+
form.formtastic fieldset > ol > li.date fieldset ol li,
|
122
|
+
form.formtastic fieldset > ol > li.time fieldset ol li,
|
123
|
+
form.formtastic fieldset > ol > li.datetime fieldset ol li { float:left; width:auto; margin:0 .3em 0 0; }
|
124
|
+
|
125
|
+
form.formtastic fieldset > ol > li.date fieldset ol li label,
|
126
|
+
form.formtastic fieldset > ol > li.time fieldset ol li label,
|
127
|
+
form.formtastic fieldset > ol > li.datetime fieldset ol li label { display:none; }
|
128
|
+
|
129
|
+
form.formtastic fieldset > ol > li.date fieldset ol li label input,
|
130
|
+
form.formtastic fieldset > ol > li.time fieldset ol li label input,
|
131
|
+
form.formtastic fieldset > ol > li.datetime fieldset ol li label input { display:inline; margin:0; padding:0; }
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/* -------------------------------------------------------------------------------------------------
|
2
|
+
|
3
|
+
Load this stylesheet after formtastic.css in your layouts to override the CSS to suit your needs.
|
4
|
+
This will allow you to update formtastic.css with new releases without clobbering your own changes.
|
5
|
+
|
6
|
+
For example, to make the inline hint paragraphs a little darker in color than the standard #666:
|
7
|
+
|
8
|
+
form.formtastic fieldset > ol > li p.inline-hints { color:#333; }
|
9
|
+
|
10
|
+
HINT:
|
11
|
+
The following style may be *conditionally* included for improved support on older versions of IE(<8)
|
12
|
+
form.formtastic fieldset ol li fieldset legend { margin-left: -6px;}
|
13
|
+
|
14
|
+
--------------------------------------------------------------------------------------------------*/
|
@@ -0,0 +1,574 @@
|
|
1
|
+
/*
|
2
|
+
* FullCalendar v1.4.6 Stylesheet
|
3
|
+
*
|
4
|
+
* Feel free to edit this file to customize the look of FullCalendar.
|
5
|
+
* When upgrading to newer versions, please upgrade this file as well,
|
6
|
+
* porting over any customizations afterwards.
|
7
|
+
*
|
8
|
+
* Date: Mon May 31 10:18:29 2010 -0700
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
|
13
|
+
.fc,
|
14
|
+
.fc .fc-header,
|
15
|
+
.fc .fc-content {
|
16
|
+
font-size: 1em;
|
17
|
+
}
|
18
|
+
|
19
|
+
.fc {
|
20
|
+
direction: ltr;
|
21
|
+
text-align: left;
|
22
|
+
}
|
23
|
+
|
24
|
+
.fc table {
|
25
|
+
border-collapse: collapse;
|
26
|
+
border-spacing: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
.fc td, .fc th {
|
30
|
+
padding: 0;
|
31
|
+
vertical-align: top;
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
/* Header
|
37
|
+
------------------------------------------------------------------------*/
|
38
|
+
|
39
|
+
table.fc-header {
|
40
|
+
width: 100%;
|
41
|
+
}
|
42
|
+
|
43
|
+
.fc-header-left {
|
44
|
+
width: 25%;
|
45
|
+
}
|
46
|
+
|
47
|
+
.fc-header-left table {
|
48
|
+
float: left;
|
49
|
+
}
|
50
|
+
|
51
|
+
.fc-header-center {
|
52
|
+
width: 50%;
|
53
|
+
text-align: center;
|
54
|
+
}
|
55
|
+
|
56
|
+
.fc-header-center table {
|
57
|
+
margin: 0 auto;
|
58
|
+
}
|
59
|
+
|
60
|
+
.fc-header-right {
|
61
|
+
width: 25%;
|
62
|
+
}
|
63
|
+
|
64
|
+
.fc-header-right table {
|
65
|
+
float: right;
|
66
|
+
}
|
67
|
+
|
68
|
+
.fc-header-title {
|
69
|
+
margin-top: 0;
|
70
|
+
white-space: nowrap;
|
71
|
+
}
|
72
|
+
|
73
|
+
.fc-header-space {
|
74
|
+
padding-left: 10px;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* right-to-left */
|
78
|
+
|
79
|
+
.fc-rtl .fc-header-title {
|
80
|
+
direction: rtl;
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
/* Buttons
|
86
|
+
------------------------------------------------------------------------*/
|
87
|
+
|
88
|
+
.fc-header .fc-state-default,
|
89
|
+
.fc-header .ui-state-default {
|
90
|
+
margin-bottom: 1em;
|
91
|
+
cursor: pointer;
|
92
|
+
}
|
93
|
+
|
94
|
+
.fc-header .fc-state-default {
|
95
|
+
border-width: 1px 0;
|
96
|
+
padding: 0 1px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.fc-header .fc-state-default,
|
100
|
+
.fc-header .fc-state-default a {
|
101
|
+
border-style: solid;
|
102
|
+
}
|
103
|
+
|
104
|
+
.fc-header .fc-state-default a {
|
105
|
+
display: block;
|
106
|
+
border-width: 0 1px;
|
107
|
+
margin: 0 -1px;
|
108
|
+
width: 100%;
|
109
|
+
text-decoration: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
.fc-header .fc-state-default span {
|
113
|
+
display: block;
|
114
|
+
border-style: solid;
|
115
|
+
border-width: 1px 0 1px 1px;
|
116
|
+
padding: 3px 5px;
|
117
|
+
}
|
118
|
+
|
119
|
+
.fc-header .ui-state-default {
|
120
|
+
padding: 4px 6px;
|
121
|
+
}
|
122
|
+
|
123
|
+
.fc-header .fc-state-default span,
|
124
|
+
.fc-header .ui-state-default span {
|
125
|
+
white-space: nowrap;
|
126
|
+
}
|
127
|
+
|
128
|
+
/* for adjacent buttons */
|
129
|
+
|
130
|
+
.fc-header .fc-no-right {
|
131
|
+
padding-right: 0;
|
132
|
+
}
|
133
|
+
|
134
|
+
.fc-header .fc-no-right a {
|
135
|
+
margin-right: 0;
|
136
|
+
border-right: 0;
|
137
|
+
}
|
138
|
+
|
139
|
+
.fc-header .ui-no-right {
|
140
|
+
border-right: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* for fake rounded corners */
|
144
|
+
|
145
|
+
.fc-header .fc-corner-left {
|
146
|
+
margin-left: 1px;
|
147
|
+
padding-left: 0;
|
148
|
+
}
|
149
|
+
|
150
|
+
.fc-header .fc-corner-right {
|
151
|
+
margin-right: 1px;
|
152
|
+
padding-right: 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
/* DEFAULT button COLORS */
|
156
|
+
|
157
|
+
.fc-header .fc-state-default,
|
158
|
+
.fc-header .fc-state-default a {
|
159
|
+
border-color: #777; /* outer border */
|
160
|
+
color: #333;
|
161
|
+
}
|
162
|
+
|
163
|
+
.fc-header .fc-state-default span {
|
164
|
+
border-color: #fff #fff #d1d1d1; /* inner border */
|
165
|
+
background: #e8e8e8;
|
166
|
+
}
|
167
|
+
|
168
|
+
/* PRESSED button COLORS (down and active) */
|
169
|
+
|
170
|
+
.fc-header .fc-state-active a {
|
171
|
+
color: #fff;
|
172
|
+
}
|
173
|
+
|
174
|
+
.fc-header .fc-state-down span,
|
175
|
+
.fc-header .fc-state-active span {
|
176
|
+
background: #888;
|
177
|
+
border-color: #808080 #808080 #909090; /* inner border */
|
178
|
+
}
|
179
|
+
|
180
|
+
/* DISABLED button COLORS */
|
181
|
+
|
182
|
+
.fc-header .fc-state-disabled a {
|
183
|
+
color: #999;
|
184
|
+
}
|
185
|
+
|
186
|
+
.fc-header .fc-state-disabled,
|
187
|
+
.fc-header .fc-state-disabled a {
|
188
|
+
border-color: #ccc; /* outer border */
|
189
|
+
}
|
190
|
+
|
191
|
+
.fc-header .fc-state-disabled span {
|
192
|
+
border-color: #fff #fff #f0f0f0; /* inner border */
|
193
|
+
background: #f0f0f0;
|
194
|
+
}
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
/* Content Area & Global Cell Styles
|
199
|
+
------------------------------------------------------------------------*/
|
200
|
+
|
201
|
+
.fc-widget-content {
|
202
|
+
border: 1px solid #ccc; /* outer border color */
|
203
|
+
}
|
204
|
+
|
205
|
+
.fc-content {
|
206
|
+
clear: both;
|
207
|
+
}
|
208
|
+
|
209
|
+
.fc-content .fc-state-default {
|
210
|
+
border-style: solid;
|
211
|
+
border-color: #ccc; /* inner border color */
|
212
|
+
}
|
213
|
+
|
214
|
+
.fc-content .fc-state-highlight { /* today */
|
215
|
+
background: #ffc;
|
216
|
+
}
|
217
|
+
|
218
|
+
.fc-content .fc-not-today {
|
219
|
+
background: none;
|
220
|
+
}
|
221
|
+
|
222
|
+
.fc-cell-overlay { /* semi-transparent rectangle while dragging */
|
223
|
+
background: #9cf;
|
224
|
+
opacity: .2;
|
225
|
+
filter: alpha(opacity=20); /* for IE */
|
226
|
+
}
|
227
|
+
|
228
|
+
.fc-view { /* prevents dragging outside of widget */
|
229
|
+
width: 100%;
|
230
|
+
overflow: hidden;
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
/* Global Event Styles
|
236
|
+
------------------------------------------------------------------------*/
|
237
|
+
|
238
|
+
.fc-event,
|
239
|
+
.fc-agenda .fc-event-time,
|
240
|
+
.fc-event a {
|
241
|
+
border-style: solid;
|
242
|
+
border-color: #36c; /* default BORDER color (probably the same as background-color) */
|
243
|
+
background-color: #36c; /* default BACKGROUND color */
|
244
|
+
color: #fff; /* default TEXT color */
|
245
|
+
}
|
246
|
+
|
247
|
+
/* Use the 'className' CalEvent property and the following
|
248
|
+
* example CSS to change event color on a per-event basis:
|
249
|
+
*
|
250
|
+
* .myclass,
|
251
|
+
* .fc-agenda .myclass .fc-event-time,
|
252
|
+
* .myclass a {
|
253
|
+
* background-color: black;
|
254
|
+
* border-color: black;
|
255
|
+
* color: red;
|
256
|
+
* }
|
257
|
+
*/
|
258
|
+
|
259
|
+
.fc-event {
|
260
|
+
text-align: left;
|
261
|
+
}
|
262
|
+
|
263
|
+
.fc-event a {
|
264
|
+
overflow: hidden;
|
265
|
+
font-size: .85em;
|
266
|
+
text-decoration: none;
|
267
|
+
cursor: pointer;
|
268
|
+
}
|
269
|
+
|
270
|
+
.fc-event-editable {
|
271
|
+
cursor: pointer;
|
272
|
+
}
|
273
|
+
|
274
|
+
.fc-event-time,
|
275
|
+
.fc-event-title {
|
276
|
+
padding: 0 1px;
|
277
|
+
}
|
278
|
+
|
279
|
+
/* for fake rounded corners */
|
280
|
+
|
281
|
+
.fc-event a {
|
282
|
+
display: block;
|
283
|
+
position: relative;
|
284
|
+
width: 100%;
|
285
|
+
height: 100%;
|
286
|
+
}
|
287
|
+
|
288
|
+
/* right-to-left */
|
289
|
+
|
290
|
+
.fc-rtl .fc-event a {
|
291
|
+
text-align: right;
|
292
|
+
}
|
293
|
+
|
294
|
+
/* resizable */
|
295
|
+
|
296
|
+
.fc .ui-resizable-handle {
|
297
|
+
display: block;
|
298
|
+
position: absolute;
|
299
|
+
z-index: 99999;
|
300
|
+
border: 0 !important; /* important overrides pre jquery ui 1.7 styles */
|
301
|
+
background: url(data:image/gif;base64,AAAA) !important; /* hover fix for IE */
|
302
|
+
}
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
/* Horizontal Events
|
307
|
+
------------------------------------------------------------------------*/
|
308
|
+
|
309
|
+
.fc-event-hori {
|
310
|
+
border-width: 1px 0;
|
311
|
+
margin-bottom: 1px;
|
312
|
+
}
|
313
|
+
|
314
|
+
.fc-event-hori a {
|
315
|
+
border-width: 0;
|
316
|
+
}
|
317
|
+
|
318
|
+
/* for fake rounded corners */
|
319
|
+
|
320
|
+
.fc-content .fc-corner-left {
|
321
|
+
margin-left: 1px;
|
322
|
+
}
|
323
|
+
|
324
|
+
.fc-content .fc-corner-left a {
|
325
|
+
margin-left: -1px;
|
326
|
+
border-left-width: 1px;
|
327
|
+
}
|
328
|
+
|
329
|
+
.fc-content .fc-corner-right {
|
330
|
+
margin-right: 1px;
|
331
|
+
}
|
332
|
+
|
333
|
+
.fc-content .fc-corner-right a {
|
334
|
+
margin-right: -1px;
|
335
|
+
border-right-width: 1px;
|
336
|
+
}
|
337
|
+
|
338
|
+
/* resizable */
|
339
|
+
|
340
|
+
.fc-event-hori .ui-resizable-e {
|
341
|
+
top: 0 !important; /* importants override pre jquery ui 1.7 styles */
|
342
|
+
right: -3px !important;
|
343
|
+
width: 7px !important;
|
344
|
+
height: 100% !important;
|
345
|
+
cursor: e-resize;
|
346
|
+
}
|
347
|
+
|
348
|
+
.fc-event-hori .ui-resizable-w {
|
349
|
+
top: 0 !important;
|
350
|
+
left: -3px !important;
|
351
|
+
width: 7px !important;
|
352
|
+
height: 100% !important;
|
353
|
+
cursor: w-resize;
|
354
|
+
}
|
355
|
+
|
356
|
+
.fc-event-hori .ui-resizable-handle {
|
357
|
+
_padding-bottom: 14px; /* IE6 had 0 height */
|
358
|
+
}
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
/* Month View, Basic Week View, Basic Day View
|
363
|
+
------------------------------------------------------------------------*/
|
364
|
+
|
365
|
+
.fc-grid table {
|
366
|
+
width: 100%;
|
367
|
+
}
|
368
|
+
|
369
|
+
.fc .fc-grid th {
|
370
|
+
border-width: 0 0 0 1px;
|
371
|
+
text-align: center;
|
372
|
+
}
|
373
|
+
|
374
|
+
.fc .fc-grid td {
|
375
|
+
border-width: 1px 0 0 1px;
|
376
|
+
}
|
377
|
+
|
378
|
+
.fc-grid th.fc-leftmost,
|
379
|
+
.fc-grid td.fc-leftmost {
|
380
|
+
border-left: 0;
|
381
|
+
}
|
382
|
+
|
383
|
+
.fc-grid .fc-day-number {
|
384
|
+
float: right;
|
385
|
+
padding: 0 2px;
|
386
|
+
}
|
387
|
+
|
388
|
+
.fc-grid .fc-other-month .fc-day-number {
|
389
|
+
opacity: 0.3;
|
390
|
+
filter: alpha(opacity=30); /* for IE */
|
391
|
+
/* opacity with small font can sometimes look too faded
|
392
|
+
might want to set the 'color' property instead
|
393
|
+
making day-numbers bold also fixes the problem */
|
394
|
+
}
|
395
|
+
|
396
|
+
.fc-grid .fc-day-content {
|
397
|
+
clear: both;
|
398
|
+
padding: 2px 2px 0; /* distance between events and day edges */
|
399
|
+
}
|
400
|
+
|
401
|
+
/* event styles */
|
402
|
+
|
403
|
+
.fc-grid .fc-event-time {
|
404
|
+
font-weight: bold;
|
405
|
+
}
|
406
|
+
|
407
|
+
/* right-to-left */
|
408
|
+
|
409
|
+
.fc-rtl .fc-grid {
|
410
|
+
direction: rtl;
|
411
|
+
}
|
412
|
+
|
413
|
+
.fc-rtl .fc-grid .fc-day-number {
|
414
|
+
float: left;
|
415
|
+
}
|
416
|
+
|
417
|
+
.fc-rtl .fc-grid .fc-event-time {
|
418
|
+
float: right;
|
419
|
+
}
|
420
|
+
|
421
|
+
/* Agenda Week View, Agenda Day View
|
422
|
+
------------------------------------------------------------------------*/
|
423
|
+
|
424
|
+
.fc .fc-agenda th,
|
425
|
+
.fc .fc-agenda td {
|
426
|
+
border-width: 1px 0 0 1px;
|
427
|
+
}
|
428
|
+
|
429
|
+
.fc .fc-agenda .fc-leftmost {
|
430
|
+
border-left: 0;
|
431
|
+
}
|
432
|
+
|
433
|
+
.fc-agenda tr.fc-first th,
|
434
|
+
.fc-agenda tr.fc-first td {
|
435
|
+
border-top: 0;
|
436
|
+
}
|
437
|
+
|
438
|
+
.fc-agenda-head tr.fc-last th {
|
439
|
+
border-bottom-width: 1px;
|
440
|
+
}
|
441
|
+
|
442
|
+
.fc .fc-agenda-head td,
|
443
|
+
.fc .fc-agenda-body td {
|
444
|
+
background: none;
|
445
|
+
}
|
446
|
+
|
447
|
+
.fc-agenda-head th {
|
448
|
+
text-align: center;
|
449
|
+
}
|
450
|
+
|
451
|
+
/* the time axis running down the left side */
|
452
|
+
|
453
|
+
.fc-agenda .fc-axis {
|
454
|
+
width: 50px;
|
455
|
+
padding: 0 4px;
|
456
|
+
vertical-align: middle;
|
457
|
+
white-space: nowrap;
|
458
|
+
text-align: right;
|
459
|
+
font-weight: normal;
|
460
|
+
}
|
461
|
+
|
462
|
+
/* all-day event cells at top */
|
463
|
+
|
464
|
+
.fc-agenda-head tr.fc-all-day th {
|
465
|
+
height: 35px;
|
466
|
+
}
|
467
|
+
|
468
|
+
.fc-agenda-head td {
|
469
|
+
padding-bottom: 10px;
|
470
|
+
}
|
471
|
+
|
472
|
+
.fc .fc-divider div {
|
473
|
+
font-size: 1px; /* for IE6/7 */
|
474
|
+
height: 2px;
|
475
|
+
}
|
476
|
+
|
477
|
+
.fc .fc-divider .fc-state-default {
|
478
|
+
background: #eee; /* color for divider between all-day and time-slot events */
|
479
|
+
}
|
480
|
+
|
481
|
+
/* body styles */
|
482
|
+
|
483
|
+
.fc .fc-agenda-body td div {
|
484
|
+
height: 20px; /* slot height */
|
485
|
+
}
|
486
|
+
|
487
|
+
.fc .fc-agenda-body tr.fc-minor th,
|
488
|
+
.fc .fc-agenda-body tr.fc-minor td {
|
489
|
+
border-top-style: dotted;
|
490
|
+
}
|
491
|
+
|
492
|
+
.fc-agenda .fc-day-content {
|
493
|
+
padding: 2px 2px 0; /* distance between events and day edges */
|
494
|
+
}
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
/* Vertical Events
|
499
|
+
------------------------------------------------------------------------*/
|
500
|
+
|
501
|
+
.fc-event-vert {
|
502
|
+
border-width: 0 1px;
|
503
|
+
}
|
504
|
+
|
505
|
+
.fc-event-vert a {
|
506
|
+
border-width: 0;
|
507
|
+
}
|
508
|
+
|
509
|
+
/* for fake rounded corners */
|
510
|
+
|
511
|
+
.fc-content .fc-corner-top {
|
512
|
+
margin-top: 1px;
|
513
|
+
}
|
514
|
+
|
515
|
+
.fc-content .fc-corner-top a {
|
516
|
+
margin-top: -1px;
|
517
|
+
border-top-width: 1px;
|
518
|
+
}
|
519
|
+
|
520
|
+
.fc-content .fc-corner-bottom {
|
521
|
+
margin-bottom: 1px;
|
522
|
+
}
|
523
|
+
|
524
|
+
.fc-content .fc-corner-bottom a {
|
525
|
+
margin-bottom: -1px;
|
526
|
+
border-bottom-width: 1px;
|
527
|
+
}
|
528
|
+
|
529
|
+
/* event content */
|
530
|
+
|
531
|
+
.fc-event-vert span {
|
532
|
+
display: block;
|
533
|
+
position: relative;
|
534
|
+
z-index: 2;
|
535
|
+
}
|
536
|
+
|
537
|
+
.fc-event-vert span.fc-event-time {
|
538
|
+
white-space: nowrap;
|
539
|
+
_white-space: normal;
|
540
|
+
overflow: hidden;
|
541
|
+
border: 0;
|
542
|
+
font-size: 10px;
|
543
|
+
}
|
544
|
+
|
545
|
+
.fc-event-vert span.fc-event-title {
|
546
|
+
line-height: 13px;
|
547
|
+
}
|
548
|
+
|
549
|
+
.fc-event-vert span.fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
|
550
|
+
position: absolute;
|
551
|
+
z-index: 1;
|
552
|
+
top: 0;
|
553
|
+
left: 0;
|
554
|
+
width: 100%;
|
555
|
+
height: 100%;
|
556
|
+
background: #fff;
|
557
|
+
opacity: .3;
|
558
|
+
filter: alpha(opacity=30); /* for IE */
|
559
|
+
}
|
560
|
+
|
561
|
+
/* resizable */
|
562
|
+
|
563
|
+
.fc-event-vert .ui-resizable-s {
|
564
|
+
bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
|
565
|
+
width: 100% !important;
|
566
|
+
height: 8px !important;
|
567
|
+
line-height: 8px !important;
|
568
|
+
font-size: 11px !important;
|
569
|
+
font-family: monospace;
|
570
|
+
text-align: center;
|
571
|
+
cursor: s-resize;
|
572
|
+
}
|
573
|
+
|
574
|
+
|