calagator 0.0.1.pre1 → 1.0.0.rc1

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 +4 -4
  2. data/{LICENSE.txt → MIT-LICENSE.txt} +0 -0
  3. data/README.md +4 -18
  4. data/Rakefile +6 -0
  5. data/app/assets/javascripts/calagator.js +1 -0
  6. data/app/assets/stylesheets/calagator/changes.scss +45 -0
  7. data/app/assets/stylesheets/calagator/errors.css +8 -0
  8. data/app/assets/stylesheets/calagator/forms.scss +148 -2
  9. data/app/assets/stylesheets/calagator/index.scss +21 -0
  10. data/app/assets/stylesheets/calagator/layout.scss +731 -0
  11. data/app/assets/stylesheets/calagator/mobile.scss +196 -0
  12. data/app/assets/stylesheets/calagator/{reset.css → reset.scss} +0 -0
  13. data/app/assets/stylesheets/calagator/typography.scss +225 -0
  14. data/app/assets/stylesheets/calagator/{common.scss → utils.scss} +0 -0
  15. data/app/assets/stylesheets/calagator/variables.scss +21 -0
  16. data/app/controllers/calagator/admin_controller.rb +1 -1
  17. data/app/controllers/calagator/application_controller.rb +3 -3
  18. data/app/controllers/calagator/events_controller.rb +3 -3
  19. data/app/controllers/calagator/site_controller.rb +1 -1
  20. data/app/controllers/calagator/sources_controller.rb +3 -3
  21. data/app/controllers/calagator/venues_controller.rb +4 -4
  22. data/app/controllers/calagator/versions_controller.rb +2 -2
  23. data/app/helpers/calagator/application_helper.rb +0 -3
  24. data/app/helpers/calagator/mapping_helper.rb +9 -8
  25. data/app/models/calagator/event.rb +2 -3
  26. data/app/models/calagator/event/ical_renderer.rb +4 -2
  27. data/app/models/calagator/event/saver.rb +2 -2
  28. data/app/models/calagator/event/search_engine/sql.rb +2 -1
  29. data/app/models/calagator/source.rb +0 -26
  30. data/app/models/calagator/source/importer.rb +1 -1
  31. data/app/models/calagator/source/parser/meetup.rb +2 -2
  32. data/app/models/calagator/venue.rb +0 -2
  33. data/app/models/calagator/venue/geocoder.rb +1 -1
  34. data/app/models/calagator/venue/search_engine/sql.rb +1 -1
  35. data/app/views/calagator/events/_subnav.html.erb +2 -2
  36. data/app/views/calagator/events/show.html.erb +2 -2
  37. data/app/views/calagator/site/_description.html.erb +6 -3
  38. data/app/views/calagator/site/_sidebar_menu.html.erb +13 -0
  39. data/app/views/calagator/site/index.html.erb +1 -0
  40. data/app/views/calagator/sources/index.html.erb +1 -1
  41. data/app/views/calagator/sources/show.html.erb +1 -1
  42. data/app/views/calagator/venues/_subnav.html.erb +1 -1
  43. data/app/views/calagator/venues/show.html.erb +1 -1
  44. data/app/views/layouts/calagator/_after_footer.html.erb +2 -0
  45. data/app/views/layouts/calagator/_content.html.erb +6 -0
  46. data/app/views/layouts/calagator/_footer.html.erb +8 -0
  47. data/app/views/layouts/calagator/_global_search.html.erb +11 -0
  48. data/app/views/layouts/calagator/_header.html.erb +20 -0
  49. data/app/views/layouts/calagator/application.html.erb +9 -64
  50. data/config/routes.rb +16 -16
  51. data/config/spring.rb +1 -0
  52. data/db/development +0 -0
  53. data/db/development.sqlite3 +0 -0
  54. data/db/migrate/20150407014752_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +14 -0
  55. data/db/migrate/20150407014754_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +9 -0
  56. data/db/schema.rb +2 -8
  57. data/db/seeds.rb +64 -8
  58. data/lib/calagator.rb +42 -2
  59. data/lib/calagator/duplicate_checking/duplicate_finder.rb +1 -1
  60. data/lib/calagator/duplicate_checking/duplicate_squasher.rb +1 -1
  61. data/lib/calagator/engine.rb +12 -22
  62. data/lib/calagator/tag_model_extensions.rb +1 -1
  63. data/lib/calagator/version.rb +1 -1
  64. data/lib/generators/calagator/install_generator.rb +17 -12
  65. data/lib/generators/calagator/templates/config/initializers/01_calagator.rb +89 -0
  66. data/lib/generators/calagator/templates/config/initializers/02_geokit.rb +106 -0
  67. data/lib/tasks/sunspot_reindex_calagator.rake +16 -3
  68. data/lib/tasks/update_counter_caches.rake +3 -3
  69. data/spec/controllers/calagator/events_controller_spec.rb +3 -3
  70. data/spec/controllers/calagator/sources_controller_spec.rb +3 -3
  71. data/spec/controllers/calagator/venues_controller_spec.rb +5 -5
  72. data/spec/dummy/Gemfile +35 -27
  73. data/spec/dummy/README.rdoc +15 -248
  74. data/spec/dummy/Rakefile +1 -2
  75. data/spec/dummy/app/assets/javascripts/application.js +5 -4
  76. data/spec/dummy/app/assets/stylesheets/application.css +6 -4
  77. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  78. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  79. data/spec/dummy/bin/bundle +3 -0
  80. data/spec/dummy/bin/rails +4 -0
  81. data/spec/dummy/bin/rake +4 -0
  82. data/spec/dummy/bin/setup +29 -0
  83. data/spec/dummy/config.ru +2 -2
  84. data/spec/dummy/config/application.rb +5 -41
  85. data/spec/dummy/config/boot.rb +1 -4
  86. data/spec/dummy/config/database.yml +8 -8
  87. data/spec/dummy/config/environment.rb +3 -3
  88. data/spec/dummy/config/environments/development.rb +22 -18
  89. data/spec/dummy/config/environments/production.rb +46 -34
  90. data/spec/dummy/config/environments/test.rb +19 -14
  91. data/spec/dummy/config/initializers/01_calagator.rb +89 -0
  92. data/spec/dummy/config/initializers/02_geokit.rb +106 -0
  93. data/spec/dummy/config/initializers/assets.rb +11 -0
  94. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  95. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  96. data/spec/dummy/config/initializers/inflections.rb +6 -5
  97. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  98. data/spec/dummy/config/initializers/session_store.rb +1 -6
  99. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  100. data/spec/dummy/config/locales/en.yml +20 -2
  101. data/spec/dummy/config/routes.rb +23 -25
  102. data/spec/dummy/config/secrets.yml +16 -77
  103. data/spec/dummy/config/sunspot.yml +23 -0
  104. data/spec/dummy/db/development.sqlite3 +0 -0
  105. data/spec/dummy/db/schema.rb +31 -30
  106. data/spec/dummy/db/seeds.rb +1 -0
  107. data/spec/dummy/log/development.log +257 -235
  108. data/spec/dummy/public/404.html +54 -13
  109. data/spec/dummy/public/422.html +54 -13
  110. data/spec/dummy/public/500.html +53 -12
  111. data/spec/dummy/public/robots.txt +2 -2
  112. data/spec/dummy/test/test_helper.rb +2 -5
  113. data/spec/factories.rb +0 -54
  114. data/spec/features/admin_auth_spec.rb +2 -2
  115. data/spec/features/admin_lock_event_spec.rb +1 -1
  116. data/spec/features/import_events_from_feed_spec.rb +1 -1
  117. data/spec/helpers/calagator/google_event_export_helper_spec.rb +8 -11
  118. data/spec/helpers/calagator/sources_helper_spec.rb +1 -2
  119. data/spec/helpers/calagator/tags_helper_spec.rb +1 -2
  120. data/spec/models/calagator/event_spec.rb +7 -7
  121. data/spec/models/calagator/source/parser_meetup_spec.rb +3 -3
  122. data/spec/models/calagator/source_spec.rb +0 -29
  123. data/spec/models/calagator/venue_spec.rb +8 -11
  124. data/spec/spec_helper.rb +3 -1
  125. data/spec/support/admin_authentication.rb +2 -0
  126. data/spec/support/assert_dom_equal.rb +26 -0
  127. data/spec/support/paper_trail.rb +7 -0
  128. data/spec/support/rspec-activemodel-mocks_patch.rb +9 -0
  129. metadata +200 -280
  130. data/app/assets/stylesheets/calagator.scss +0 -8
  131. data/app/assets/stylesheets/calagator/datepicker.scss +0 -177
  132. data/app/assets/stylesheets/calagator/theme.css +0 -0
  133. data/app/models/event/search_engine/base.rb +0 -0
  134. data/config/deploy/local.rb +0 -37
  135. data/config/deploy/lucca.rb +0 -33
  136. data/config/initializers/geokit.rb +0 -74
  137. data/config/initializers/search_engine.rb +0 -4
  138. data/config/initializers/set_default_url_host.rb +0 -5
  139. data/db/test.sqlite3 +0 -0
  140. data/lib/generators/calagator/templates/config/calagator.rb +0 -26
  141. data/lib/generators/calagator/templates/config/secrets.yml.sample +0 -83
  142. data/lib/secrets_reader.rb +0 -76
  143. data/spec/dummy/Gemfile.lock +0 -195
  144. data/spec/dummy/app/assets/images/rails.png +0 -0
  145. data/spec/dummy/config/initializers/calagator.rb +0 -26
  146. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  147. data/spec/dummy/db/migrate/20150309023304_create_events.calagator.rb +0 -18
  148. data/spec/dummy/db/migrate/20150309023305_create_venues.calagator.rb +0 -18
  149. data/spec/dummy/db/migrate/20150309023306_create_sources.calagator.rb +0 -17
  150. data/spec/dummy/db/migrate/20150309023307_add_detailed_fields_to_venue.calagator.rb +0 -20
  151. data/spec/dummy/db/migrate/20150309023308_add_end_time_to_events.calagator.rb +0 -10
  152. data/spec/dummy/db/migrate/20150309023309_add_source_id_to_events.calagator.rb +0 -10
  153. data/spec/dummy/db/migrate/20150309023310_add_source_id_to_venues.calagator.rb +0 -11
  154. data/spec/dummy/db/migrate/20150309023311_add_duplicate_of_column_to_venues.calagator.rb +0 -10
  155. data/spec/dummy/db/migrate/20150309023312_add_duplicate_of_column_to_events.calagator.rb +0 -10
  156. data/spec/dummy/db/migrate/20150309023313_change_lat_long_type.calagator.rb +0 -13
  157. data/spec/dummy/db/migrate/20150309023314_add_source_reimport.calagator.rb +0 -10
  158. data/spec/dummy/db/migrate/20150309023315_change_end_time_to_duration.calagator.rb +0 -12
  159. data/spec/dummy/db/migrate/20150309023316_remove_format_type_from_source.calagator.rb +0 -10
  160. data/spec/dummy/db/migrate/20150309023317_create_updates.calagator.rb +0 -16
  161. data/spec/dummy/db/migrate/20150309023318_remove_next_update_from_source.calagator.rb +0 -10
  162. data/spec/dummy/db/migrate/20150309023319_change_duration_to_end_time.calagator.rb +0 -12
  163. data/spec/dummy/db/migrate/20150309023320_create_tags_and_taggings.calagator.rb +0 -29
  164. data/spec/dummy/db/migrate/20150309023321_create_versioned_events.calagator.rb +0 -26
  165. data/spec/dummy/db/migrate/20150309023322_create_versioned_venues.calagator.rb +0 -33
  166. data/spec/dummy/db/migrate/20150309023323_add_rrule_to_events.calagator.rb +0 -16
  167. data/spec/dummy/db/migrate/20150309023324_create_versions.calagator.rb +0 -19
  168. data/spec/dummy/db/migrate/20150309023325_add_closed_flag_to_venues.calagator.rb +0 -10
  169. data/spec/dummy/db/migrate/20150309023326_add_wifi_flag_to_venues.calagator.rb +0 -10
  170. data/spec/dummy/db/migrate/20150309023327_add_access_notes_to_venues.calagator.rb +0 -10
  171. data/spec/dummy/db/migrate/20150309023328_add_events_count_to_venues.calagator.rb +0 -9
  172. data/spec/dummy/db/migrate/20150309023329_add_venue_details_to_events.calagator.rb +0 -10
  173. data/spec/dummy/db/migrate/20150309023330_acts_as_taggable_on_migration.calagator.rb +0 -51
  174. data/spec/dummy/db/migrate/20150309023331_cleanup.calagator.rb +0 -15
  175. data/spec/dummy/db/migrate/20150309023332_specify_venues_latitude_and_longitude_precision.calagator.rb +0 -12
  176. data/spec/dummy/db/migrate/20150309023333_remove_updates.calagator.rb +0 -14
  177. data/spec/dummy/db/migrate/20150309023334_add_locked_status_to_events.calagator.rb +0 -6
  178. data/spec/dummy/db/test.sqlite3 +0 -0
  179. data/spec/dummy/doc/README_FOR_APP +0 -2
  180. data/spec/dummy/script/rails +0 -6
  181. data/spec/dummy/test/performance/browsing_test.rb +0 -12
  182. data/spec/lib/secrets_reader_spec.rb +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e45c9cd061a44a04a7e8ec6ad012a3f3aec00a07
4
- data.tar.gz: 10f94b93dbde8e6283c62b594c3efa68cc6835a8
3
+ metadata.gz: 8ed74a6a03fcad08295eabbb54f78603405dc465
4
+ data.tar.gz: 55f1a3492c0f9a6e4e09c7922640bc7586f5a5c4
5
5
  SHA512:
6
- metadata.gz: ba74de7bd5ea7b0e823193478709ef591c6febb2893cc9a25475ec7ba6705ddc771d497d4018998bcb172f6773f3a6ad62c665466d17761a4f379d775a3f7431
7
- data.tar.gz: 8165fcbb59280f2c7ea906f6c79671d5ddac6e2c319d72f7b4490827c536af2728d0328e30dce0faa961e5c5883d48ef860a4d14a291f9b1ad16cadb1de50eb6
6
+ metadata.gz: 33e515dbe0d518a08ab823b58a5fd4d5e4499625f7399ae1e7bed874a339737cfc53682bd887ae0d98c03d18143104c544ef4f57103abc397974f6e3a18562c0
7
+ data.tar.gz: cf1c82bdb32f56251eda2e9070c3c08581340ac95beded1f0ab7ca5e6ad5bcd7c7a1ce2c228196f615e44236e791669505f9bef0ae895a6f91e3010fefa7a984
File without changes
data/README.md CHANGED
@@ -1,15 +1,7 @@
1
- WORK IN PROGRESS
2
- ================
3
-
4
- **This repo is not ready for deployment!**
5
-
6
- This repository is part of an ongoing project to split the [calagator project](http://github.com/calagator/calagator/) into a Rails engine with a separate Rails shell on top. This repo will become the Rails shell for the [Calagator.org](http://calagator.org) deployment.
7
-
8
- ---
9
-
1
+ [![Gem Version](https://badge.fury.io/rb/calagator.svg)](http://badge.fury.io/rb/calagator)
10
2
  [![Build Status](https://travis-ci.org/calagator/calagator.svg?branch=master)](http://travis-ci.org/calagator/calagator)
11
- [![Code Climate](https://codeclimate.com/github/calagator/calagator.png)](https://codeclimate.com/github/calagator/calagator)
12
- [![Coverage Status](https://coveralls.io/repos/calagator/calagator/badge.png)](https://coveralls.io/r/calagator/calagator)
3
+ [![Code Climate](https://codeclimate.com/github/calagator/calagator/badges/gpa.svg)](https://codeclimate.com/github/calagator/calagator)
4
+ [![Coverage Status](https://coveralls.io/repos/calagator/calagator/badge.svg)](https://coveralls.io/r/calagator/calagator)
13
5
  [![Dependency Status](https://gemnasium.com/calagator/calagator.svg)](https://gemnasium.com/calagator/calagator)
14
6
 
15
7
 
@@ -36,12 +28,6 @@ Why
36
28
  By releasing this code under a liberal MIT open source license, we hope to empower other people so they can better organize and participate in more events that support free sharing of information, open society, and involved citizenry.
37
29
 
38
30
 
39
- Releases
40
- --------
41
-
42
- The stable releases of this software are tagged with version numbers, such as `v0.20090416`, that represent the date they were made. There is also a `stable` branch that points to the current stable release. The [CHANGES.md](http://github.com/calagator/calagator/blob/master/CHANGES.md) file describes significant changes made between stable releases.
43
-
44
-
45
31
  Installing
46
32
  ----------
47
33
 
@@ -66,7 +52,7 @@ This free, open source software was made possible by a group of volunteers that
66
52
  License
67
53
  -------
68
54
 
69
- This program is provided under an MIT open source license, read the [LICENSE.txt](http://github.com/calagator/calagator/blob/master/LICENSE.txt) file for details.
55
+ This program is provided under an MIT open source license, read the [MIT-LICENSE.txt](http://github.com/calagator/calagator/blob/master/MIT-LICENSE.txt) file for details.
70
56
 
71
57
 
72
58
  Copyright
data/Rakefile CHANGED
@@ -1,4 +1,9 @@
1
1
  #!/usr/bin/env rake
2
+ if !File.exist?("spec/dummy")
3
+ puts "Missing dummy app in spec/dummy! Run `bundle exec bin/calagator new spec/dummy --dummy` to generate one."
4
+ exit 1
5
+ end
6
+
2
7
  require 'bundler/setup'
3
8
 
4
9
  APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
@@ -9,4 +14,5 @@ Bundler::GemHelper.install_tasks
9
14
  require 'rspec/core/rake_task'
10
15
  RSpec::Core::RakeTask.new(:spec)
11
16
 
17
+ task :spec => 'app:db:test:prepare'
12
18
  task :default => :spec
@@ -2,6 +2,7 @@
2
2
  //= require jquery_ujs
3
3
  //= require calagator/forms
4
4
  //= require leaflet.awesome-markers
5
+ //= require mustache
5
6
 
6
7
  $(document).ready(function(){
7
8
  // Shows hidden section when a link is clicked, and hides the link.
@@ -0,0 +1,45 @@
1
+ .changes_feed a {
2
+ margin-bottom: 2em;
3
+ }
4
+
5
+ .changes_table {}
6
+ .changes_table .changes_header {
7
+ background-color: #BECDD3; }
8
+ .changes_table .change_row { }
9
+ .changes_table .change_row td {
10
+ margin-bottom: 2em;
11
+ border-bottom: 2px solid #CCC;
12
+ text-align: left;
13
+ vertical-align: text-top; }
14
+ .changes_table .change_row .change_time {
15
+ width: 10%; }
16
+ .changes_table .change_row .change_detail_key {
17
+ width: 15%;
18
+ padding: .25em; }
19
+ .changes_table .change_row .change_detail_value {
20
+ width: 40%;
21
+ padding: .25em; }
22
+ .changes_table .change_row .change_detail_separator {
23
+ width: 5%; }
24
+ .changes_table .change_row .odd {
25
+ background-color: #ddd; }
26
+ .changes_table .change_row .even {
27
+ background-color: #eee; }
28
+ .changes_table .change_row .change_details .event,
29
+ .changes_table .change_row .change_details .rollback {
30
+ display: inline-block;
31
+ padding: 0 4px;
32
+ color: #fff;
33
+ font-weight: bold; }
34
+ .changes_table .change_row .change_details .event {
35
+ text-transform: uppercase; }
36
+ .changes_table .change_row .change_details .rollback {
37
+ float: right;
38
+ background: #999;
39
+ }
40
+ .changes_table .change_row.create .event {
41
+ background: #5AA351; }
42
+ .changes_table .change_row.destroy .event {
43
+ background: #A35164; }
44
+ .changes_table .change_row.update .event {
45
+ background: #5174A3; }
@@ -79,18 +79,21 @@ a {
79
79
 
80
80
  @keyframes confused {
81
81
  20% {
82
+ -moz-transform: rotate3d(0, 0, 1, 2deg);
82
83
  -webkit-transform: rotate3d(0, 0, 1, 2deg);
83
84
  -ms-transform: rotate3d(0, 0, 1, 2deg);
84
85
  transform: rotate3d(0, 0, 1, 2deg);
85
86
  }
86
87
 
87
88
  60% {
89
+ -moz-transform: rotate3d(0, 0, 1, -5deg);
88
90
  -webkit-transform: rotate3d(0, 0, 1, -5deg);
89
91
  -ms-transform: rotate3d(0, 0, 1, -5deg);
90
92
  transform: rotate3d(0, 0, 1, -5deg);
91
93
  }
92
94
 
93
95
  100% {
96
+ -moz-transform: rotate3d(0, 0, 1, 0deg);
94
97
  -webkit-transform: rotate3d(0, 0, 1, 0deg);
95
98
  -ms-transform: rotate3d(0, 0, 1, 0deg);
96
99
  transform: rotate3d(0, 0, 1, 0deg);
@@ -98,11 +101,16 @@ a {
98
101
  }
99
102
 
100
103
  #alligator img {
104
+ -moz-transform-origin: top center;
101
105
  -webkit-transform-origin: 100px 300px;
102
106
  -ms-transform-origin: top center;
103
107
  transform-origin: top center;
108
+ -moz-animation-name: confused;
104
109
  -webkit-animation-name: confused;
105
110
  animation-name: confused;
111
+ -moz-animation-duration: 6s;
112
+ -moz-animation-delay: 0s;
113
+ -moz-animation-iteration-count: infinite;
106
114
  -webkit-animation-duration: 6s;
107
115
  -webkit-animation-delay: 0s;
108
116
  -webkit-animation-iteration-count: infinite;
@@ -1,4 +1,150 @@
1
+ /* ##############################################################
2
+
3
+ forms.css
4
+ * Sets up some default styling for forms
5
+ * Gives you classes to enhance your forms
6
+
7
+ Usage:
8
+ * For text fields, use class .title or .text
9
+
10
+ Originally based on blueprint-css v0.7.1
11
+
12
+ ############################################################## */
13
+
1
14
  /*
2
- *= require calagator/datepicker
3
- *= require jquery.timepicker
15
+ *= require jquery-ui/datepicker
4
16
  */
17
+
18
+ fieldset .trap { display: none }
19
+
20
+ form.formtastic {
21
+ width: 900px;
22
+ }
23
+
24
+ .formtastic .inputs {
25
+ padding-top: .5em;
26
+ }
27
+
28
+ .formtastic .actions {
29
+ padding-bottom: 3em;
30
+ }
31
+
32
+ .formtastic .stringish input,
33
+ .formtastic .text textarea,
34
+ .formtastic #event_times input {
35
+ font-family: inherit;
36
+ font-size: inherit;
37
+ padding: 6px;
38
+ }
39
+
40
+ .formtastic .input .label {
41
+ font-weight: bold;
42
+ text-align: right;
43
+ padding-right: 1em;
44
+ margin-left: -1em;
45
+ width: 15%;
46
+ }
47
+
48
+ .formtastic .input .inline-hints,
49
+ .formtastic .errors,
50
+ .formtastic .inline-errors {
51
+ margin-left: 15%;
52
+ width: 74%;
53
+ }
54
+
55
+ .formtastic .actions,
56
+ .formtastic .boolean label {
57
+ padding-left: 15%;
58
+ }
59
+
60
+ /* @group Autocomplete
61
+ -------------------------------------------------------------- */
62
+ ul.jq-ui-autocomplete {
63
+ position: absolute;
64
+ overflow: hidden;
65
+ background-color: #fff;
66
+ border: 1px solid #aaa;
67
+ margin: 0px;
68
+ padding: 0;
69
+ list-style: none;
70
+ color: #333;
71
+ }
72
+ ul.jq-ui-autocomplete li {
73
+ display: block;
74
+ padding: .3em .5em .3em .3em;
75
+ overflow: hidden;
76
+ width: 100%;
77
+ }
78
+
79
+ ul.jq-ui-autocomplete li.active {
80
+ background-color: saturate(lighten($green, 20%), 25%);;
81
+ color: $dk_green;
82
+ }
83
+
84
+ /* @end */
85
+
86
+ /* @group Form fields
87
+ -------------------------------------------------------------- */
88
+
89
+
90
+ #event_times input, #event_times span {
91
+ margin-right: 1em;
92
+ float: left;
93
+ }
94
+
95
+ form.standard_form {
96
+ width: 100%;
97
+ }
98
+
99
+ .standard_form input[type="text"],
100
+ .standard_form input[type="url"],
101
+ .standard_form input[type="number"],
102
+ .standard_form input[type="email"],
103
+ .standard_form input[type="tel"],
104
+ .standard_form textarea,
105
+ .standard_form .text textarea
106
+ {
107
+ width: 370px;
108
+ }
109
+
110
+ .standard_form input.date_picker
111
+ {
112
+ width: 7em;
113
+ }
114
+
115
+ .standard_form input.time_picker
116
+ {
117
+ width: 5em;
118
+ }
119
+
120
+ div.time-picker li {
121
+ white-space: nowrap;
122
+ }
123
+
124
+ /* @end */
125
+
126
+ /* @group Success, notice and error boxes
127
+ -------------------------------------------------------------- */
128
+
129
+ .flash { padding: .8em; margin: 1em 250px 1em 0 ; }
130
+
131
+ .error, .failure { background: #FFC5A3; color: #C00; border: #C00}
132
+ .notice { background: #bcf794; }
133
+ .success { background: #98f0f7; color: $dk_green; }
134
+ .error a { color: #FF640A; }
135
+ .notice a { color: #514721; }
136
+ .success a { color: #264409; }
137
+
138
+ .flash.flash_failure, .errorExplanation {
139
+ color: #C00;
140
+ border: 2px solid #C00;
141
+ background: #F5DBD7;
142
+ padding: 1em;
143
+ }
144
+
145
+ ul.errors {
146
+ clear: both;
147
+ padding-top: .5em;
148
+ }
149
+
150
+ /* @end */
@@ -0,0 +1,21 @@
1
+ /*
2
+ * First come the SCSS @imports below:
3
+ *= require_self
4
+ *
5
+ * Then come the external dependencies:
6
+ *
7
+ *= require jquery.timepicker
8
+ *= require jquery-ui/theme
9
+ *= require formtastic
10
+ *= require font-awesome
11
+ *= require leaflet.awesome-markers
12
+ */
13
+
14
+ @import 'variables';
15
+ @import 'reset';
16
+ @import 'utils';
17
+ @import 'typography';
18
+ @import 'forms';
19
+ @import 'layout';
20
+ @import 'mobile';
21
+ @import 'changes';
@@ -0,0 +1,731 @@
1
+ @import "variables";
2
+
3
+ /* @group Global Layout
4
+ ----------------------------------------*/
5
+
6
+ body {
7
+ background: #fff;
8
+ }
9
+
10
+ #global_header {
11
+ background: $header;
12
+ position: relative;
13
+ height: 95px;
14
+ }
15
+
16
+ #global_header a {
17
+ color: $default_text;
18
+ }
19
+
20
+ #top_footer {
21
+ background: $footer;
22
+ color: $default_text;
23
+ padding: .5em 30px .5em 40px;
24
+ font-size: 70%;
25
+ clear: both;
26
+ }
27
+
28
+ @import url(https://fonts.googleapis.com/css?family=Sanchez);
29
+
30
+ #global_header #project_title {
31
+ font-family: Sanchez;
32
+ color: $header_text;
33
+ font-size: 29px;
34
+ line-height: 31px;
35
+ height: 31px;
36
+ left: 40px;
37
+ position: absolute;
38
+ top: 25px;
39
+ width: 135px;
40
+ }
41
+
42
+ #app_menu ul {
43
+ font-size: 1.3em;
44
+ line-height: 1.3em;
45
+ font-weight: bold;
46
+ list-style: none;
47
+ margin: 0;
48
+
49
+ position: absolute;
50
+ bottom: 0;
51
+ left: 40px;
52
+ }
53
+
54
+ #app_menu li {
55
+ float: left;
56
+ margin-right: 1em;
57
+ padding-bottom: 10px
58
+ }
59
+
60
+ #app_menu li.active {
61
+ background: image-url("nav_marker.gif") no-repeat center bottom;
62
+ }
63
+
64
+ #project_menu {
65
+ font-weight: bold;
66
+ text-align: right;
67
+ float: right;
68
+ position: absolute;
69
+ right: 30px;
70
+ bottom: 10px;
71
+ }
72
+
73
+ #search_form {
74
+ position:absolute;
75
+ right: 30px;
76
+ top: 15px;
77
+ }
78
+
79
+ .subnav {
80
+ font-size: 1.2em;
81
+ background: $subnav;
82
+ padding-left: 40px;
83
+ line-height: 2em;
84
+ }
85
+
86
+ .subnav ul {
87
+ list-style: none;
88
+ margin: 0;
89
+ }
90
+
91
+ .subnav li {
92
+ float: left;
93
+ margin-right: 1.5em;
94
+ }
95
+
96
+ .subnav a {
97
+ color: $header_text;
98
+ padding-bottom: .42em;
99
+ }
100
+
101
+ .subnav .active {
102
+ background: image-url("subnav_marker.gif") no-repeat center bottom;
103
+ }
104
+
105
+
106
+
107
+ #content {
108
+ min-height: 40em;
109
+ margin: 1em 30px 1em 40px;
110
+ position: relative;
111
+ }
112
+
113
+
114
+ .sidebar h3 {
115
+ font-weight: bold;
116
+ font-size: 1.3em;
117
+ margin-top: 1.5em;
118
+ margin-bottom: 0.25em;
119
+ line-height: 1;
120
+ }
121
+
122
+ .sidebar .clear_filter {
123
+ font-size: .7em;
124
+ float: right;
125
+ line-height: .7em
126
+ }
127
+
128
+ .sidebar h3.first {
129
+ margin-top: 0;
130
+ }
131
+
132
+ .copy_block {
133
+ width: 45em;
134
+ }
135
+
136
+ .appropriateness_message {
137
+ background: $box_background;
138
+ padding: 1em;
139
+ margin: 1em 0;
140
+ }
141
+
142
+ /* @end */
143
+
144
+ /* @group Event Table
145
+ ----------------------------------------*/
146
+
147
+ .list_description {
148
+ padding-top: 1em;
149
+ }
150
+
151
+ .list_items { margin-right: 20em; }
152
+
153
+ .event_list .event_icons {
154
+ float: right;
155
+ }
156
+
157
+ .event_table .description,
158
+ .event_table .url,
159
+ ul.event_list .description,
160
+ ul.event_list .url {
161
+ display: none;
162
+ }
163
+
164
+ .event_table .date,
165
+ ul.event_list .list_date {
166
+ text-align: right;
167
+ padding-right: 1.5em;
168
+ border-right: 1px solid #e2fad2;
169
+ vertical-align: top;
170
+ width: 7em;
171
+ }
172
+
173
+ .event_table .event_summary {
174
+ padding-left: 1.5em
175
+ }
176
+
177
+ .event_table .day_of_week,
178
+ ul.event_list .day_of_week {
179
+ color: #59a12d;
180
+ font-weight: bold;
181
+ }
182
+
183
+ .event_table th {
184
+ padding-bottom: 2em;
185
+ }
186
+
187
+
188
+ .sidebar {
189
+ background: $box_background;
190
+ padding: 2em 30px 1em 1em;
191
+ position: absolute;
192
+ top: 0;
193
+ right: 0;
194
+ margin: -1em -30px 0 0;
195
+ width: 200px;
196
+ }
197
+
198
+ .contentbar {
199
+ margin-right: 200px;
200
+ }
201
+
202
+ #list_filters #date_filter label {
203
+ width: 3em;
204
+ font-weight: normal;
205
+ display: block;
206
+ float: left;
207
+ text-align: right;
208
+ margin-right: 1em;
209
+ }
210
+
211
+ #list_filters #date_filter input[type=text] {
212
+ width: 8em;
213
+ }
214
+
215
+ #list_filters #date_filter .clear_filter {
216
+ font-size: inherit;
217
+ float: none;
218
+ }
219
+
220
+ /* @end */
221
+
222
+ /* @group Event List
223
+ ----------------------------------------*/
224
+
225
+ ul.event_list {
226
+ list-style: none;
227
+ margin: 0;
228
+ }
229
+
230
+ ul.event_list li {
231
+ position: relative;
232
+ padding-left: 10em;
233
+ margin-bottom: 1em;
234
+ }
235
+
236
+ ul.event_list .list_date {
237
+ position: absolute;
238
+ left: 0;
239
+ }
240
+
241
+
242
+ /* @end */
243
+
244
+
245
+ /* @group Single Event
246
+ ----------------------------------------*/
247
+
248
+ .single_event h1 {
249
+ padding-top: 0.5em;
250
+ margin: 0;
251
+ line-height: 1.2em;
252
+ }
253
+
254
+ .single_event h3 {
255
+ padding-top: 1.0em;
256
+ margin-bottom: 0.5em;
257
+ }
258
+
259
+ .single_event .date {
260
+ color: #82c555;
261
+ font-size: 1.3em;
262
+ font-weight: bold;
263
+ margin-bottom: 1em;
264
+ }
265
+
266
+ .single_event .location.vcard {
267
+ background: #e8fbfe;
268
+ width: 45em;
269
+ /* height: 16em;*/
270
+ padding: 1em;
271
+ margin: 2em 0 2em -1em;
272
+ }
273
+
274
+ .single_event .location.vcard.closed {
275
+ background: #eee
276
+ }
277
+
278
+ .single_event .location #map {
279
+ width: 25em;
280
+ height: 16em;
281
+ float: right;
282
+ }
283
+
284
+ .single_event .location .access_notes {
285
+ margin-top: 1em
286
+ }
287
+
288
+ .single_event .location .access_notes h3 {
289
+ display: block;
290
+ }
291
+
292
+ .single_event .location .fn {
293
+ font-size: 1.2em;
294
+ font-weight: bold;
295
+ }
296
+
297
+ .single_event .description {
298
+ width: 40em;
299
+ }
300
+
301
+ .share .fb-share {
302
+ background: rgb(236, 238, 245) image-url('external_sites/facebook.png') no-repeat 2px center;
303
+ color: rgb(59, 89, 152);
304
+ border: 1px solid rgb(202, 212, 231);
305
+ border-radius: 3px;
306
+ padding: 2px 5px 2px 22px;
307
+ margin: 0 1em 0 0;
308
+ position: relative;
309
+ top: -5px;
310
+ }
311
+
312
+ /* @end */
313
+
314
+ /* Event Preview */
315
+
316
+ #event_preview .single_event {
317
+ background-color: #EEE;
318
+ padding: 1em;
319
+ margin-bottom: 2em;
320
+ }
321
+
322
+ #event_preview .single_event .location {
323
+ margin: 2em 0 2em 0em;
324
+ background-color: #DDD;
325
+ }
326
+
327
+
328
+ /* @group Venues
329
+ ----------------------------------------*/
330
+
331
+ #venues_index #map {
332
+ width: 400px;
333
+ height: 300px;
334
+ float: right;
335
+ }
336
+
337
+ #venues_index h1 {
338
+ margin-bottom: .25em;
339
+ }
340
+
341
+ #venues_index p.detail {
342
+ margin-bottom: 0;
343
+ color: #aaa;
344
+ }
345
+
346
+ #venues_index ul {
347
+ list-style-type: none;
348
+ margin: 0;
349
+ }
350
+
351
+ #venues_index li {
352
+ margin-bottom: .25em
353
+ }
354
+
355
+ #venues_index li a {
356
+ font-weight: bold;
357
+ }
358
+
359
+ #venues_search_results li {
360
+ margin-bottom: .5em;
361
+ }
362
+
363
+ #venues_search {
364
+ background: $box_background;
365
+ padding: 1em;
366
+ border-bottom: 1px solid #e9e9e9;
367
+ }
368
+
369
+ #venues_search h2 {
370
+ float: left;
371
+ margin: 0 1em 0 0;
372
+ }
373
+
374
+ #venues_search form div {
375
+ display: inline-block;
376
+ margin-right: 1em;
377
+ }
378
+
379
+ #venue_portal {
380
+ }
381
+
382
+ #venue_portal #most_active,
383
+ #venue_portal #newest,
384
+ #venue_portal #exports {
385
+ float: left;
386
+ padding: 1em 1em 2em 0;
387
+ }
388
+
389
+ #venue_portal #most_active,
390
+ #venue_portal #newest {
391
+ width: 300px;
392
+ border-right: 1px solid #e9e9e9;
393
+ margin-right: 2em;
394
+ }
395
+
396
+ #venue_portal #exports h3 {
397
+ margin-top: .5em;
398
+ }
399
+
400
+ #venue_portal h3 {
401
+ margin-bottom: .5em;
402
+ }
403
+
404
+ #venues_map #map {
405
+ width: 100%;
406
+ height: 650px;
407
+ }
408
+
409
+ /* @end */
410
+
411
+
412
+ /* @group Single Venue
413
+ ----------------------------------------*/
414
+
415
+ .single_venue #map {
416
+ margin-bottom: 2em;
417
+ }
418
+
419
+ .single_venue .location.vcard {
420
+ /* background: #e8fbfe;*/
421
+ /* width: 45em;*/
422
+ /* height: 16em;*/
423
+ padding: 1em;
424
+ margin: 2em 2em 0em -1em;
425
+ }
426
+
427
+ .single_venue h1 {
428
+ padding-top: 0.5em;
429
+ margin: 0;
430
+ line-height: 1.2em;
431
+ }
432
+
433
+ .location.closed .org {
434
+ text-decoration: line-through;
435
+ color: #999;
436
+ margin-bottom: 0;
437
+ }
438
+
439
+ .location .closed_callout {
440
+ margin-top: 0;
441
+ color: $closed;
442
+ font-weight: bold;
443
+ }
444
+
445
+ .location .wifi_callout {
446
+ margin-top: .5em;
447
+ padding-left: 20px;
448
+ background: image-url("transmit_blue.png") no-repeat;
449
+ font-weight: bold;
450
+ color: $wifi;
451
+ }
452
+
453
+ .location .access_notes h3,
454
+ .single_venue .access_notes h3 {
455
+ margin: 0;
456
+ padding: 0;
457
+ display: inline-block;
458
+ margin-right: .5em;
459
+ color: #456FC9;
460
+ font-size: 1em;
461
+ font-weight: bold;
462
+ padding-left: 20px;
463
+ line-height: 16px;
464
+ background: image-url("information.png") no-repeat;
465
+ }
466
+
467
+ .single_venue .location .adr,
468
+ .single_venue .location .address,
469
+ .single_venue .location .info {
470
+ font-size: 14px;
471
+ }
472
+
473
+ .single_venue .location.vcard .adr,
474
+ .single_venue .location.vcard .address {
475
+ margin-bottom: 1em;
476
+ width: 300px;
477
+ }
478
+
479
+ .single_venue .location .info {
480
+ }
481
+
482
+ .single_venue .description,
483
+ .single_venue .tags,
484
+ .single_venue #events {
485
+ clear: left;
486
+ width: 500px;
487
+ }
488
+
489
+ .single_venue .description {
490
+ background: $box_background;
491
+ padding: 1em;
492
+ margin: 1em 0;
493
+ }
494
+
495
+ .single_venue #events,
496
+ .single_venue .tags {
497
+ margin-top: 1em;
498
+ }
499
+
500
+ .single_venue #map {
501
+ width: 30em;
502
+ height: 20em;
503
+ border: 1px solid #222;
504
+ }
505
+
506
+ .single_venue h3 {
507
+ padding-top: 1.0em;
508
+ margin-bottom: 0.5em;
509
+ line-height: 0.5em;
510
+ }
511
+
512
+ /* @end */
513
+
514
+
515
+ /* @group Forms (imported from old UI)
516
+ ----------------------------------------*/
517
+
518
+ fieldset .calendar_date_select {
519
+ border: 0;
520
+ width: 25em;
521
+ }
522
+
523
+ fieldset .no_label, fieldset .help {
524
+ padding-left: 8em;
525
+ }
526
+
527
+ /* @end */
528
+
529
+ /* @group Front Page
530
+ ----------------------------------------*/
531
+
532
+ #whats_happening {
533
+ margin: 1em 0 0 24em;
534
+ }
535
+
536
+ #whats_happening h1 {
537
+ padding-top: .2em
538
+ }
539
+
540
+ #project_description {
541
+ background: $box_background;
542
+ padding: 1em;
543
+ width: 20em;
544
+ margin: 0 2em 0 -1em;
545
+ }
546
+
547
+ #project_description a {
548
+ font-weight: bold;
549
+ }
550
+
551
+ #project_description h2 {
552
+ font-weight: bold;
553
+ margin-bottom: .5em;
554
+ }
555
+
556
+ #tagcloud {
557
+ padding: 1em;
558
+ width: 20em;
559
+ margin: 0 2em 0 -1em;
560
+ }
561
+
562
+ #tagcloud h2 {
563
+ font-weight: bold;
564
+ margin-bottom: .5em;
565
+ }
566
+
567
+ #homepage_sidebar {
568
+ float: left;
569
+ }
570
+
571
+
572
+ /* @end */
573
+
574
+ /* @group Helper Classes
575
+ ----------------------------------------*/
576
+
577
+ .right {
578
+ float: right;
579
+ }
580
+
581
+ .left {
582
+ float: left;
583
+ }
584
+
585
+ .hidden {
586
+ display: none;
587
+ }
588
+
589
+ /* @end */
590
+
591
+
592
+
593
+ /* @group Recent Changes Display
594
+ ----------------------------------------*/
595
+
596
+ #changes_table th,
597
+ #changes_table td,
598
+ #changes_table tr {
599
+ padding: 0.1em;
600
+ margin: 0;
601
+ line-height: 1;
602
+ }
603
+
604
+ #changes_table th {
605
+ font-size: 125%;
606
+ }
607
+
608
+ #changes_table tr.change_row {
609
+ /* wtf!? */
610
+ border-top: 10px solid red;
611
+ padding: 10em;
612
+ margin: 10em;
613
+ }
614
+
615
+ #changes_table,
616
+ .changes_details_table {
617
+ width: 100%;
618
+ }
619
+
620
+ #changes_table .change_time {
621
+ width: 10%;
622
+ white-space: nowrap;
623
+ }
624
+
625
+ #changes_table .change_details {
626
+ width: 90%;
627
+ }
628
+
629
+ #changes_table .change_time,
630
+ #changes_table .change_details {
631
+ padding-bottom: 1em;
632
+ vertical-align: top;
633
+ }
634
+
635
+ #changes_table .change_detail_description {
636
+ margin: 0;
637
+ padding: 0;
638
+ padding-bottom: 0.25em;
639
+ font-style: italic;
640
+ background-color: #E6E6E6;
641
+ font-size: 110%;
642
+ }
643
+
644
+ #changes_table .changes_details_table tr.even td {
645
+ background-color: #F2F2F2;
646
+ }
647
+
648
+ #changes_table .changes_details_table tr.odd td {
649
+ background-color: white;
650
+ }
651
+
652
+ #changes_table .changes_details_table td.change_detail_value {
653
+ width: 40%;
654
+ }
655
+
656
+ #changes_table .changes_details_table td.change_detail_spacer {
657
+ width: 10%;
658
+ text-align: center;
659
+ vertical-align: middle;
660
+ font-weight: bold;
661
+ font-size: 200%;
662
+ }
663
+
664
+ /* @end */
665
+
666
+
667
+ /* float clearing for IE6 */
668
+ * html .clearfix{
669
+ height: 1%;
670
+ overflow: visible;
671
+ }
672
+
673
+ /* float clearing for IE7 */
674
+ *+html .clearfix{
675
+ min-height: 1%;
676
+ }
677
+
678
+ /* float clearing for everyone else */
679
+ .clearfix:after {
680
+ clear: both;
681
+ content: ".";
682
+ display: block;
683
+ height: 0;
684
+ visibility: hidden;
685
+ font-size: 0;
686
+ }
687
+
688
+ .sources_index td {
689
+ vertical-align: top;
690
+ white-space: nowrap;
691
+ }
692
+
693
+ .sources_index tr.odd td {
694
+ background-color: #F2F2F2;
695
+ }
696
+
697
+ .sources_index tr.even td {
698
+ background-color: white;
699
+ }
700
+
701
+ /* @group Event Attendees
702
+ ----------------------------------------*/
703
+
704
+ .attendees {
705
+ overflow: auto;}
706
+
707
+ .attendees h3 {
708
+ display: inline;
709
+ }
710
+
711
+ .attendees ul {
712
+ clear: both;
713
+ margin: 0;
714
+ padding: 0;
715
+ float: left;}
716
+
717
+ .attendees li {
718
+ list-style-type: none;
719
+ float: left;
720
+ margin: 0px 8px 8px 0px;
721
+ padding: 0; }
722
+
723
+ .attendees li .avatar {
724
+ width: 50px;
725
+ height: 50px;
726
+ }
727
+
728
+ .plancast-rsvp {
729
+ font-size: 11px;
730
+ }
731
+ /* @end */