somatics3-generators 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/Rakefile +9 -1
  2. data/VERSION +1 -1
  3. data/bin/somatics +0 -0
  4. data/bin/somatify +0 -0
  5. data/lib/generators/somatics/associated/associated_generator.rb +184 -0
  6. data/lib/generators/somatics/associated/templates/migration.rb +11 -0
  7. data/lib/generators/somatics/attributes/attributes_generator.rb +8 -5
  8. data/lib/generators/somatics/authenticated/authenticated_generator.rb +27 -195
  9. data/lib/generators/somatics/authenticated/templates/partial_form.html.erb +23 -0
  10. data/lib/generators/somatics/authenticated_controller/authenticated_controller_generator.rb +14 -299
  11. data/lib/generators/somatics/authenticated_controller/templates/locales_en.yml +6 -0
  12. data/lib/generators/somatics/authenticated_controller/templates/locales_zh-TW.yml +6 -0
  13. data/lib/generators/somatics/authenticated_controller/templates/login.html.erb +10 -8
  14. data/lib/generators/somatics/authenticated_controller/templates/sessions_controller.rb +11 -43
  15. data/lib/generators/somatics/install/install_generator.rb +26 -3
  16. data/lib/generators/somatics/install/templates/config/locales/devise_zh-TW.yml +39 -0
  17. data/lib/generators/somatics/install/templates/controller_admin.rb +8 -4
  18. data/lib/generators/somatics/install/templates/helper_admin.rb +39 -3
  19. data/lib/generators/somatics/install/templates/initializer_paper_trail.rb +2 -0
  20. data/lib/generators/somatics/install/templates/layout_admin.html.erb +4 -4
  21. data/lib/generators/somatics/install/templates/lib/active_record/diff.rb +61 -0
  22. data/lib/generators/somatics/install/templates/lib/tasks/heroku.rake +30 -0
  23. data/lib/generators/somatics/install/templates/lib/tasks/svn.rake +47 -0
  24. data/lib/generators/somatics/install/templates/partial_versions.html.erb +56 -0
  25. data/lib/generators/somatics/install/templates/public/stylesheets/application.css +863 -0
  26. data/lib/generators/somatics/install/templates/public/stylesheets/somatics/base.css +3 -0
  27. data/lib/generators/somatics/install/templates/public/themes/default/stylesheets/application.css +951 -0
  28. data/lib/generators/somatics/install/templates/view_index.html.erb +46 -1
  29. data/lib/generators/somatics/scaffold/scaffold_generator.rb +0 -1
  30. data/lib/generators/somatics/scaffold_controller/scaffold_controller_generator.rb +31 -60
  31. data/lib/generators/somatics/scaffold_controller/templates/controller.rb +4 -21
  32. data/lib/generators/somatics/scaffold_controller/templates/view_index.html.erb +3 -4
  33. data/lib/generators/somatics/scaffold_controller/templates/view_show.html.erb +2 -0
  34. data/lib/generators/somatics/settings/settings_generator.rb +7 -3
  35. data/lib/generators/somatics/settings_controller/templates/controller.rb +4 -20
  36. data/lib/generators/somatics/settings_controller/templates/partial_form.html.erb +1 -1
  37. data/lib/generators/somatics/settings_controller/templates/view_index.html.erb +2 -2
  38. data/somatics3-generators.gemspec +28 -37
  39. data/templates/somatics.rb +76 -121
  40. metadata +70 -64
  41. data/lib/generators/somatics/authenticated/templates/mailer.rb +0 -25
  42. data/lib/generators/somatics/authenticated/templates/migration.rb +0 -26
  43. data/lib/generators/somatics/authenticated/templates/model.rb +0 -83
  44. data/lib/generators/somatics/authenticated/templates/observer.rb +0 -11
  45. data/lib/generators/somatics/authenticated/templates/test/mailer_test.rb +0 -31
  46. data/lib/generators/somatics/authenticated/templates/test/model_functional_test.rb +0 -93
  47. data/lib/generators/somatics/authenticated/templates/test/sessions_functional_test.rb +0 -82
  48. data/lib/generators/somatics/authenticated/templates/test/unit_test.rb +0 -164
  49. data/lib/generators/somatics/authenticated/templates/test/users.yml +0 -60
  50. data/lib/generators/somatics/authenticated_controller/templates/_model_partial.html.erb +0 -8
  51. data/lib/generators/somatics/authenticated_controller/templates/activation.erb +0 -3
  52. data/lib/generators/somatics/authenticated_controller/templates/authenticated_system.rb +0 -189
  53. data/lib/generators/somatics/authenticated_controller/templates/authenticated_test_helper.rb +0 -10
  54. data/lib/generators/somatics/authenticated_controller/templates/config/initializers/site_keys.rb +0 -38
  55. data/lib/generators/somatics/authenticated_controller/templates/controller.rb +0 -55
  56. data/lib/generators/somatics/authenticated_controller/templates/helper.rb +0 -91
  57. data/lib/generators/somatics/authenticated_controller/templates/mailer.rb +0 -25
  58. data/lib/generators/somatics/authenticated_controller/templates/migration.rb +0 -26
  59. data/lib/generators/somatics/authenticated_controller/templates/model.rb +0 -83
  60. data/lib/generators/somatics/authenticated_controller/templates/observer.rb +0 -11
  61. data/lib/generators/somatics/authenticated_controller/templates/session_helper.rb +0 -2
  62. data/lib/generators/somatics/authenticated_controller/templates/signup.html.erb +0 -19
  63. data/lib/generators/somatics/authenticated_controller/templates/signup_notification.erb +0 -8
  64. data/lib/generators/somatics/authenticated_controller/templates/test/mailer_test.rb +0 -31
  65. data/lib/generators/somatics/authenticated_controller/templates/test/model_functional_test.rb +0 -93
  66. data/lib/generators/somatics/authenticated_controller/templates/test/sessions_functional_test.rb +0 -82
  67. data/lib/generators/somatics/authenticated_controller/templates/test/unit_test.rb +0 -164
  68. data/lib/generators/somatics/authenticated_controller/templates/test/users.yml +0 -60
  69. data/lib/generators/somatics/scaffold_controller/templates/builder_index.pdf.prawn +0 -25
  70. data/lib/generators/somatics/settings_controller/templates/builder_index.pdf.prawn +0 -25
  71. data/lib/generators/somatics/settings_controller/templates/model.rb +0 -54
@@ -22,6 +22,10 @@ module Somatics
22
22
  def javascripts
23
23
  directory "public/javascripts"
24
24
  end
25
+
26
+ def themes
27
+ directory "public/themes"
28
+ end
25
29
 
26
30
  def base
27
31
  template 'controller_admin.rb', File.join('app/controllers/admin', 'admin_controller.rb')
@@ -35,7 +39,7 @@ module Somatics
35
39
 
36
40
  def layouts
37
41
  template 'layout_admin.html.erb', File.join('app/views/layouts', "admin.html.erb")
38
- template 'partial_menu.html.erb', File.join('app/views/admin/shared', "_menu.html.erb")
42
+ template 'partial_menu.html.erb', File.join('app/views/admin/shared', "_menu.html.erb"), :skip => true
39
43
  end
40
44
 
41
45
  def mime_type
@@ -53,13 +57,28 @@ module Somatics
53
57
  namespace :somatics do
54
58
  desc "Create Default Admin User"
55
59
  task :create_user => :environment do
56
- User.find_or_create_by_name(:name => 'Admin', :login => 'admin', :password => 'somatics', :password_confirmation => 'somatics', :email => 'admin@admin.com')
60
+ User.find_or_create_by_name(:name => 'Admin', :password => 'somatics', :password_confirmation => 'somatics', :email => 'admin@somatics.com')
57
61
  end
58
62
  end
59
63
  RUBY
60
64
  end
61
65
  end
62
66
 
67
+ def add_settings
68
+ append_file File.join('db','seeds.rb') do
69
+ <<-RUBY
70
+ unless Setting.find_by_name('theme')
71
+ s = Setting.new
72
+ s.name = 'theme'
73
+ s.category = 'General'
74
+ s.value = 'default'
75
+ s.field_type = 'string'
76
+ s.save!
77
+ end
78
+ RUBY
79
+ end
80
+ end
81
+
63
82
  def add_route
64
83
  route_config = ""
65
84
  route_config << " namespace :#{options[:namespace]} do \n" if options[:namespace].present?
@@ -72,7 +91,11 @@ end
72
91
  def libs
73
92
  directory "lib"
74
93
  end
75
-
94
+
95
+ def paper_trail
96
+ template 'partial_versions.html.erb', File.join('app/views/admin/shared', "_versions.html.erb")
97
+ template 'initializer_paper_trail.rb', File.join('config/initializers', "paper_trail.rb")
98
+ end
76
99
  end
77
100
  end
78
101
  end
@@ -0,0 +1,39 @@
1
+ zh-TW:
2
+ errors:
3
+ messages:
4
+ not_found: "沒有找到"
5
+ already_confirmed: "已被確認過了"
6
+ not_locked: "被鎖定了"
7
+
8
+ devise:
9
+ failure:
10
+ unauthenticated: '您需要先註冊、登入後才能繼續。'
11
+ unconfirmed: '您的帳號需需要經過確認後,才能繼續。'
12
+ locked: '您的帳號已被鎖定。'
13
+ invalid: 'Email 或密碼是無效的。'
14
+ invalid_token: '無效的認證代碼。'
15
+ timeout: '您的登入時效過期,請重新登入,才能繼續。'
16
+ inactive: '您的帳號尚未被啟用。'
17
+ sessions:
18
+ signed_in: '成功登入了。'
19
+ signed_out: '成功登出了。'
20
+ passwords:
21
+ send_instructions: '您將在幾分鐘後收到一封電子郵件,內有重新設定密碼的步驟說明。'
22
+ updated: '您的密碼已被修改,而您現在已重新登入。'
23
+ confirmations:
24
+ send_instructions: '您將在幾分鐘後收到一封電子郵件,內有確認帳號的步驟說明。'
25
+ confirmed: '您的帳號已經過確認,現在您已成功登入。'
26
+ registrations:
27
+ signed_up: '您已經成功的登錄,確認信件已送至您的 Email 信箱。'
28
+ updated: '您已經成功的更新帳號資訊。'
29
+ destroyed: '再會!您的帳號已被取消。有緣再會。'
30
+ unlocks:
31
+ send_instructions: '您將在幾分鐘後收到一封電子郵件,內有將帳號解除鎖定的步驟說明。'
32
+ unlocked: '您的帳號已被解鎖,現在您已成功登入。'
33
+ mailer:
34
+ confirmation_instructions:
35
+ subject: '確認步驟'
36
+ reset_password_instructions:
37
+ subject: '重設密碼步驟'
38
+ unlock_instructions:
39
+ subject: '解鎖步驟'
@@ -5,9 +5,13 @@ class Admin::AdminController < ActionController::Base
5
5
  helper :all # include all helpers, all the time
6
6
  protect_from_forgery # See ActionController::RequestForgeryProtection for details
7
7
 
8
- include RedmineFilter
9
- include UserAuthenticatedSystem
10
- before_filter :user_login_required
11
-
12
8
  layout Proc.new { |c| c.request.format.js? ? false : 'admin' }
9
+ before_filter :authenticate_user!
10
+
11
+ uses_tiny_mce :options => {
12
+ :theme => 'advanced',
13
+ :theme_advanced_resizing => true,
14
+ :theme_advanced_resize_horizontal => false,
15
+ :plugins => %w{ table fullscreen }
16
+ }
13
17
  end
@@ -33,9 +33,9 @@ module Admin::AdminHelper
33
33
  }
34
34
  link_to(text, params.merge({:"#{model_name}_sort" => key}), html_options) + sort_asc_desc_helper(model_name,param)
35
35
  end
36
-
37
- def operators_for_select(filter_type)
38
- Query.operators_by_filter_type[filter_type].collect {|o| [(Query.operators[o].to_s.humanize), o]}
36
+
37
+ def paper_trail_for(object)
38
+ render 'admin/shared/versions', :obj => object
39
39
  end
40
40
 
41
41
  def excel_document(xml, &block)
@@ -60,4 +60,40 @@ module Admin::AdminHelper
60
60
  yield block
61
61
  end
62
62
  end
63
+
64
+
65
+ def date_to_words(date)
66
+ if date == Date.today
67
+ "Today"
68
+ elsif date <= Date.today - 1
69
+ if date == Date.today - 1
70
+ "Yesterday"
71
+ elsif ((Date.today - 7)..(Date.today - 1)).include?(date)
72
+ "Last #{date.strftime("%A")}"
73
+ elsif ((Date.today - 14)..(Date.today - 8)).include?(date)
74
+ "Two #{date.strftime("%A")}s ago"
75
+ elsif ((Date.today - 21)..(Date.today - 15)).include?(date)
76
+ "Three #{date.strftime("%A")}s ago"
77
+ elsif ((Date.today - 29)..(Date.today - 22)).include?(date)
78
+ "Four #{date.strftime("%A")}s ago"
79
+ elsif Date.today - 30 < date
80
+ "More than a month ago"
81
+ end
82
+ else
83
+ if date == Date.today + 1
84
+ "Tomorrow"
85
+ elsif ((Date.today + 1)..(Date.today + 6)).include?(date)
86
+ "This coming #{date.strftime("%A")}"
87
+ elsif ((Date.today + 7)..(Date.today + 14)).include?(date)
88
+ "Next #{date.strftime("%A")}s away"
89
+ elsif ((Date.today + 15)..(Date.today + 21)).include?(date)
90
+ "Two #{date.strftime("%A")}s away"
91
+ elsif ((Date.today + 22)..(Date.today + 29)).include?(date)
92
+ "Three #{date.strftime("%A")}s away"
93
+ elsif Date.today + 30 > date
94
+ "More than a month in the future"
95
+ end
96
+ end
97
+ end
98
+
63
99
  end
@@ -0,0 +1,2 @@
1
+ require 'active_record/diff'
2
+ ActiveRecord::Base.send(:include, ActiveRecord::Diff)
@@ -4,7 +4,7 @@
4
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
5
  <title>Inspire Synergy Limited</title>
6
6
 
7
- <%%= stylesheet_link_tag 'somatics/base', 'somatics/jstoolbar', :media => 'all' %>
7
+ <%%= stylesheet_link_tag "/themes/#{Setting['theme']}/stylesheets/application.css", 'somatics/jstoolbar', :media => 'all' %>
8
8
  <%%#= stylesheet_link_tag 'somatics/context_menu', :media => 'all' %>
9
9
 
10
10
  <!--[if IE]>
@@ -17,7 +17,7 @@
17
17
  <%%= javascript_include_tag 'somatics/prototype.js', "rails", 'somatics/effects.js', 'somatics/dragdrop.js', 'somatics/controls.js','somatics/base.js','somatics/select_list_move.js','somatics/context_menu.js' %>
18
18
  <%%= csrf_meta_tag %>
19
19
 
20
- <%%= init_tinymce_hammer_if_required %>
20
+ <%%= include_tiny_mce_if_needed %>
21
21
  </head>
22
22
  <body>
23
23
  <div id="wrapper">
@@ -26,8 +26,8 @@
26
26
  <%% if current_user %>
27
27
  <div id="account">
28
28
  <ul>
29
- <li><%%= t('Logged_in_as') %> <%%= link_to current_user.name, admin_user_url(current_user) %></li>
30
- <li><%%= link_to t('Logout'), admin_user_logout_url %></li>
29
+ <li><%%= t('Logged_in_as') %> <%%= link_to current_user.name, edit_admin_user_url(current_user) %></li>
30
+ <li><%%= link_to t('Logout'), destroy_user_session_url %></li>
31
31
  </ul>
32
32
  </div>
33
33
  <%% end %>
@@ -0,0 +1,61 @@
1
+ module ActiveRecord
2
+ module Diff
3
+ module ClassMethods
4
+ def diff(*attrs)
5
+ write_inheritable_attribute(:diff_attrs, attrs)
6
+ end
7
+
8
+ def diff_attrs
9
+ attrs = read_inheritable_attribute(:diff_attrs)
10
+
11
+ if attrs.nil?
12
+ content_columns.map { |column| column.name }
13
+ elsif attrs.length == 1 && Hash === attrs.first
14
+ columns = content_columns.map { |column| column.name.to_sym }
15
+
16
+ columns + (attrs.first[:include] || []) - (attrs.first[:exclude] || [])
17
+ else
18
+ attrs
19
+ end
20
+ end
21
+ end
22
+
23
+ def self.included(base)
24
+ base.extend ClassMethods
25
+ end
26
+
27
+ def diff?(record = nil)
28
+ not diff(record).empty?
29
+ end
30
+
31
+ def diff(other_record = nil)
32
+ if other_record.nil?
33
+ old_record, new_record = self.class.find(id), self
34
+ else
35
+ old_record, new_record = self, other_record
36
+ end
37
+
38
+ if new_record.is_a?(Hash)
39
+ diff_each(new_record) do |(attr_name, hash_value)|
40
+ [attr_name, old_record.send(attr_name), hash_value]
41
+ end
42
+ else
43
+ diff_each(self.class.diff_attrs) do |attr_name|
44
+ [attr_name, old_record.send(attr_name), new_record.send(attr_name)]
45
+ end
46
+ end
47
+ end
48
+
49
+ def diff_each(enum)
50
+ enum.inject({}) do |diff_hash, attr_name|
51
+ attr_name, old_value, new_value = *yield(attr_name)
52
+
53
+ unless old_value === new_value
54
+ diff_hash[attr_name.to_sym] = [old_value, new_value]
55
+ end
56
+
57
+ diff_hash
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,30 @@
1
+ namespace :heroku do
2
+ desc "Configure Heroku"
3
+ task :setup, :name do |t, args|
4
+ app_name = args.name
5
+ system "git init"
6
+ system "heroku info || heroku create #{app_name}"
7
+ system "git add ."
8
+ system "git commit -a -m 'Initial Commit'"
9
+ # system "heroku addons:add cron:daily"
10
+ system "heroku addons:add deployhooks:email \
11
+ recipient=heroku@inspiresynergy.com \
12
+ subject='[#{app_name}] Deployed' \
13
+ body='{{user}} deployed #{app_name} successfully'"
14
+ system "heroku addons:add piggyback_ssl"
15
+ system "heroku addons:add newrelic:bronze"
16
+ end
17
+
18
+ desc "Deploy to Heroku"
19
+ task :deploy do
20
+ system "git add ."
21
+ system "git commit -a -m 'Heroku Release'"
22
+ system "git push heroku master"
23
+ end
24
+
25
+ desc "Deploy and Migrate to Heroku"
26
+ task :deploy_migrate => :deploy do
27
+ system "heroku rake db:migrate"
28
+ end
29
+
30
+ end
@@ -0,0 +1,47 @@
1
+ desc "Configure Subversion for Rails"
2
+ task :setup_svn do
3
+ system "svn info"
4
+ if $? != 0
5
+ puts 'Please Import your project to svn before executing this task'
6
+ exit(0)
7
+ end
8
+
9
+ system "svn commit -m 'initial commit'"
10
+
11
+ puts "Add .gitignore"
12
+ system "echo '.svn' > .gitignore"
13
+ system "svn add .gitignore"
14
+ system "svn commit -m 'add .gitignore'"
15
+
16
+ puts "Ignoring .git"
17
+ system "svn propset svn:ignore '.git' ."
18
+
19
+ puts "Removing /log"
20
+ system "svn remove log/*"
21
+ system "svn commit -m 'removing all log files from subversion'"
22
+ system 'svn propset svn:ignore "*.log" log/'
23
+ system "svn update log/"
24
+ system "svn commit -m 'Ignoring all files in /log/ ending in .log'"
25
+
26
+ puts "Ignoring /db"
27
+ system 'svn propset svn:ignore "*.db" db/'
28
+ system "svn update db/"
29
+ system "svn commit -m 'Ignoring all files in /db/ ending in .db'"
30
+
31
+ puts "Renaming database.yml database.example"
32
+ system "svn move config/database.yml config/database.example"
33
+ system "svn commit -m 'Moving database.yml to database.example to provide a template for anyone who checks out the code'"
34
+ system 'svn propset svn:ignore "database.yml" config/'
35
+ system "svn update config/"
36
+ system "svn commit -m 'Ignoring database.yml'"
37
+
38
+ puts "Ignoring /tmp"
39
+ system 'svn propset svn:ignore "*" tmp/'
40
+ system "svn update tmp/"
41
+ system "svn commit -m 'Ignoring all files in /tmp/'"
42
+
43
+ puts "Ignoring /doc"
44
+ system 'svn propset svn:ignore "*" doc/'
45
+ system "svn update doc/"
46
+ system "svn commit -m 'Ignoring all files in /doc/'"
47
+ end
@@ -0,0 +1,56 @@
1
+ <!-- Audit Trail-->
2
+ <h3>Audit Trail</h3>
3
+ <div class="autoscroll">
4
+ <table class="list issues">
5
+ <thead>
6
+ <tr>
7
+ <th title="">Version #</th>
8
+ <th title="">Modified at</th>
9
+ <th title="">Modified by</th>
10
+ <th title="">Action</th>
11
+ <th title="">Changes</th>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+ <%% unless obj.versions.empty? %>
16
+ <%% obj.versions.each do |version| %>
17
+ <tr id="<%% dom_id(version)%>" class="hascontextmenu <%%= cycle 'odd' , 'even' %> issue">
18
+ <td><%%= version.index %></td>
19
+ <td><%%= version.created_at.to_s(:db) %></td>
20
+ <td>
21
+ <%% unless version.whodunnit.to_i == 0 %>
22
+ <%%= User.find(version.whodunnit.to_i).name %>
23
+ <%% else %>
24
+ <%%= version.whodunnit || 'N/A' %>
25
+ <%% end%>
26
+ </td>
27
+ <td><%%= version.event.humanize %></td>
28
+ <td class="subject">
29
+ <%% if version.event == 'create'%>
30
+ Initial Create
31
+ <%% else %>
32
+ <%% unless version.next.nil? %>
33
+ <%% version.reify.diff(version.next.reify).each do |t| %>
34
+ <%% unless t.first == :updated_at %>
35
+ <p>"<b><%%= t.first.to_s.humanize %></b>" was changed from "<b><%%= t.last.first.to_s rescue '' %></b>" to "<b><%%= t.last.last.to_s rescue '' %></b>"</p>
36
+ <%% end %>
37
+ <%% end rescue 'Undetermined Changes'%>
38
+ <%% else %>
39
+ <%% version.reify.diff(obj).each do |t| %>
40
+ <%% unless t.first == :updated_at %>
41
+ <p>"<b><%%= t.first.to_s.humanize %></b>" was changed from "<b><%%= t.last.first.to_s rescue '' %></b>" to "<b><%%= t.last.last.to_s rescue '' %></b>"</p>
42
+ <%% end %>
43
+ <%% end rescue 'Undetermined Changes'%>
44
+ <%% end %>
45
+ <%% end %>
46
+ </td>
47
+ </tr>
48
+ <%% end %>
49
+ <%% else -%>
50
+ <tr class="datos">
51
+ <td colspan="100" align="center"><%%=t :no_data_available%></td>
52
+ </tr>
53
+ <%% end -%>
54
+ </tbody>
55
+ </table>
56
+ </div>
@@ -0,0 +1,863 @@
1
+ body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; }
2
+
3
+ h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;}
4
+ h1 {margin:0; padding:0; font-size: 24px;}
5
+ h2, .wiki h1 {font-size: 20px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
6
+ h3, .wiki h2 {font-size: 16px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
7
+ h4, .wiki h3 {font-size: 13px;padding: 2px 10px 1px 0px;margin-bottom: 5px; border-bottom: 1px dotted #bbbbbb; color: #444;}
8
+
9
+ /***** Layout *****/
10
+ #wrapper {background: white;}
11
+
12
+ #top-menu {background: #2C4056; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;}
13
+ #top-menu ul {margin: 0; padding: 0;}
14
+ #top-menu li {
15
+ float:left;
16
+ list-style-type:none;
17
+ margin: 0px 0px 0px 0px;
18
+ padding: 0px 0px 0px 0px;
19
+ white-space:nowrap;
20
+ }
21
+ #top-menu a {color: #fff; margin-right: 8px; font-weight: bold;}
22
+ #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; }
23
+
24
+ #account {float:right;}
25
+
26
+ #header {height:5.3em;margin:0;background-color:#507AAA;color:#f8f8f8; padding: 4px 8px 0px 6px; position:relative;}
27
+ #header a {color:#f8f8f8;}
28
+ #header h1 a.ancestor { font-size: 80%; }
29
+ #quick-search {float:right;}
30
+
31
+ #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;}
32
+ #main-menu ul {margin: 0; padding: 0;}
33
+ #main-menu li {
34
+ float:left;
35
+ list-style-type:none;
36
+ margin: 0px 2px 0px 0px;
37
+ padding: 0px 0px 0px 0px;
38
+ white-space:nowrap;
39
+ }
40
+ #main-menu li a {
41
+ display: block;
42
+ color: #fff;
43
+ text-decoration: none;
44
+ font-weight: bold;
45
+ margin: 0;
46
+ padding: 4px 10px 4px 10px;
47
+ }
48
+ #main-menu li a:hover {background:#759FCF; color:#fff;}
49
+ #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
50
+
51
+ #admin-menu ul {margin: 0; padding: 0;}
52
+ #admin-menu li {margin: 0; padding: 0 0 12px 0; list-style-type:none;}
53
+
54
+ #admin-menu a { background-position: 0% 40%; background-repeat: no-repeat; padding-left: 20px; padding-top: 2px; padding-bottom: 3px;}
55
+ #admin-menu a.projects { background-image: url(/images/somatics/projects.png); }
56
+ #admin-menu a.users { background-image: url(/images/somatics/user.png); }
57
+ #admin-menu a.groups { background-image: url(/images/somatics/group.png); }
58
+ #admin-menu a.roles { background-image: url(/images/somatics/database_key.png); }
59
+ #admin-menu a.trackers { background-image: url(/images/somatics/ticket.png); }
60
+ #admin-menu a.issue_statuses { background-image: url(/images/somatics/ticket_edit.png); }
61
+ #admin-menu a.workflows { background-image: url(/images/somatics/ticket_go.png); }
62
+ #admin-menu a.custom_fields { background-image: url(/images/somatics/textfield.png); }
63
+ #admin-menu a.enumerations { background-image: url(/images/somatics/text_list_bullets.png); }
64
+ #admin-menu a.settings { background-image: url(/images/somatics/changeset.png); }
65
+ #admin-menu a.plugins { background-image: url(/images/somatics/plugin.png); }
66
+ #admin-menu a.info { background-image: url(/images/somatics/help.png); }
67
+
68
+ #main {background-color:#EEEEEE;}
69
+
70
+ #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;}
71
+ * html #sidebar{ width: 17%; }
72
+ #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
73
+ #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
74
+ * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
75
+
76
+ #content { width: 80%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
77
+ * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
78
+ html>body #content { min-height: 600px; }
79
+ * html body #content { height: 600px; } /* IE */
80
+
81
+ #main.nosidebar #sidebar{ display: none; }
82
+ #main.nosidebar #content{ width: auto; border-right: 0; }
83
+
84
+ #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
85
+
86
+ #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; }
87
+ #login-form table td {padding: 6px;}
88
+ #login-form label {font-weight: bold;}
89
+ #login-form input#username, #login-form input#password { width: 300px; }
90
+
91
+ input#openid_url { background: url(/images/somatics/openid-bg.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; }
92
+
93
+ .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
94
+
95
+ /***** Links *****/
96
+ a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
97
+ a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
98
+ a img{ border: 0; }
99
+
100
+ a.issue.closed, a.issue.closed:link, a.issue.closed:visited { color: #999; text-decoration: line-through; }
101
+
102
+ /***** Tables *****/
103
+ table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
104
+ table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
105
+ table.list td { vertical-align: top; }
106
+ table.list td.id { width: 2%; text-align: center;}
107
+ table.list td.checkbox { width: 15px; padding: 0px;}
108
+ table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; }
109
+ table.list td.buttons a { padding-right: 0.6em; }
110
+
111
+ tr.project td.name a { padding-left: 16px; white-space:nowrap; }
112
+ tr.project.parent td.name a { background: url('/images/somatics/bullet_toggle_minus.png') no-repeat; }
113
+
114
+ tr.issue { text-align: center; white-space: nowrap; }
115
+ tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal; }
116
+ tr.issue td.subject { text-align: left; }
117
+ tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
118
+
119
+ tr.entry { border: 1px solid #f8f8f8; }
120
+ tr.entry td { white-space: nowrap; }
121
+ tr.entry td.filename { width: 30%; }
122
+ tr.entry td.size { text-align: right; font-size: 90%; }
123
+ tr.entry td.revision, tr.entry td.author { text-align: center; }
124
+ tr.entry td.age { text-align: right; }
125
+ tr.entry.file td.filename a { margin-left: 16px; }
126
+
127
+ tr span.expander {background-image: url(/images/somatics/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
128
+ tr.open span.expander {background-image: url(/images/somatics/bullet_toggle_minus.png);}
129
+
130
+ tr.changeset td.author { text-align: center; width: 15%; }
131
+ tr.changeset td.committed_on { text-align: center; width: 15%; }
132
+
133
+ table.files tr.file td { text-align: center; }
134
+ table.files tr.file td.filename { text-align: left; padding-left: 24px; }
135
+ table.files tr.file td.digest { font-size: 80%; }
136
+
137
+ table.members td.roles, table.memberships td.roles { width: 45%; }
138
+
139
+ tr.message { height: 2.6em; }
140
+ tr.message td.last_message { font-size: 80%; }
141
+ tr.message.locked td.subject a { background-image: url(/images/somatics/locked.png); }
142
+ tr.message.sticky td.subject a { background-image: url(/images/somatics/sticky.png); font-weight: bold; }
143
+
144
+ tr.version.closed, tr.version.closed a { color: #999; }
145
+ tr.version td.name { padding-left: 20px; }
146
+ tr.version.shared td.name { background: url(/images/somatics/link.png) no-repeat 0% 70%; }
147
+ tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; }
148
+
149
+ tr.user td { width:13%; }
150
+ tr.user td.email { width:18%; }
151
+ tr.user td { white-space: nowrap; }
152
+ tr.user.locked, tr.user.registered { color: #aaa; }
153
+ tr.user.locked a, tr.user.registered a { color: #aaa; }
154
+
155
+ tr.time-entry { text-align: center; white-space: nowrap; }
156
+ tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; }
157
+ td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
158
+ td.hours .hours-dec { font-size: 0.9em; }
159
+
160
+ table.plugins td { vertical-align: middle; }
161
+ table.plugins td.configure { text-align: right; padding-right: 1em; }
162
+ table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; }
163
+ table.plugins span.description { display: block; font-size: 0.9em; }
164
+ table.plugins span.url { display: block; font-size: 0.9em; }
165
+
166
+ table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; }
167
+ table.list tbody tr.group span.count { color: #aaa; font-size: 80%; }
168
+
169
+ table.list tbody tr:hover { background-color:#ffffdd; }
170
+ table.list tbody tr.group:hover { background-color:inherit; }
171
+ table td {padding:2px;}
172
+ table p {margin:0;}
173
+ .odd {background-color:#f6f7f8;}
174
+ .even {background-color: #fff;}
175
+
176
+ a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; }
177
+ a.sort.asc { background-image: url(/images/somatics/sort_asc.png); }
178
+ a.sort.desc { background-image: url(/images/somatics/sort_desc.png); }
179
+
180
+ table.attributes { width: 100% }
181
+ table.attributes th { vertical-align: top; text-align: left; }
182
+ table.attributes td { vertical-align: top; }
183
+
184
+ table.boards a.board, h3.comments { background: url(/images/somatics/comment.png) no-repeat 0% 50%; padding-left: 20px; }
185
+
186
+ td.center {text-align:center;}
187
+
188
+ h3.version { background: url(/images/somatics/package.png) no-repeat 0% 50%; padding-left: 20px; }
189
+
190
+ div.issues h3 { background: url(/images/somatics/ticket.png) no-repeat 0% 50%; padding-left: 20px; }
191
+ div.members h3 { background: url(/images/somatics/group.png) no-repeat 0% 50%; padding-left: 20px; }
192
+ div.news h3 { background: url(/images/somatics/news.png) no-repeat 0% 50%; padding-left: 20px; }
193
+ div.projects h3 { background: url(/images/somatics/projects.png) no-repeat 0% 50%; padding-left: 20px; }
194
+
195
+ .highlight { background-color: #FCFD8D;}
196
+ .highlight.token-1 { background-color: #faa;}
197
+ .highlight.token-2 { background-color: #afa;}
198
+ .highlight.token-3 { background-color: #aaf;}
199
+
200
+ .box{
201
+ padding:6px;
202
+ margin-bottom: 10px;
203
+ background-color:#f6f6f6;
204
+ color:#505050;
205
+ line-height:1.5em;
206
+ border: 1px solid #e4e4e4;
207
+ }
208
+
209
+ div.square {
210
+ border: 1px solid #999;
211
+ float: left;
212
+ margin: .3em .4em 0 .4em;
213
+ overflow: hidden;
214
+ width: .6em; height: .6em;
215
+ }
216
+ .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;}
217
+ .contextual input, .contextual select {font-size:0.9em;}
218
+ .message .contextual { margin-top: 0; }
219
+
220
+ .splitcontentleft{float:left; width:49%;}
221
+ .splitcontentright{float:right; width:49%;}
222
+ form {display: inline;}
223
+ input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
224
+ fieldset {border: 1px solid #e4e4e4; margin:0;}
225
+ legend {color: #484848;}
226
+ hr { width: 100%; height: 1px; background: #ccc; border: 0;}
227
+ blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;}
228
+ blockquote blockquote { margin-left: 0;}
229
+ acronym { border-bottom: 1px dotted; cursor: help; }
230
+ textarea.wiki-edit { width: 99%; }
231
+ li p {margin-top: 0;}
232
+ div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
233
+ p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
234
+ p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; }
235
+ p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; }
236
+
237
+ fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
238
+ fieldset.collapsible legend { padding-left: 16px; background: url(/images/somatics/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }
239
+ fieldset.collapsible.collapsed legend { background-image: url(/images/somatics/arrow_collapsed.png); }
240
+
241
+ fieldset#date-range p { margin: 2px 0 2px 0; }
242
+ fieldset#filters table { border-collapse: collapse; }
243
+ fieldset#filters table td { padding: 0; vertical-align: middle; }
244
+ fieldset#filters tr.filter { height: 2em; }
245
+ fieldset#filters td.add-filter { text-align: right; vertical-align: top; }
246
+ .buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; }
247
+
248
+ div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;}
249
+ div#issue-changesets .changeset { padding: 4px;}
250
+ div#issue-changesets .changeset { border-bottom: 1px solid #ddd; }
251
+ div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
252
+
253
+ div#activity dl, #search-results { margin-left: 2em; }
254
+ div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
255
+ div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; }
256
+ div#activity dt.me .time { border-bottom: 1px solid #999; }
257
+ div#activity dt .time { color: #777; font-size: 80%; }
258
+ div#activity dd .description, #search-results dd .description { font-style: italic; }
259
+ div#activity span.project:after, #search-results span.project:after { content: " -"; }
260
+ div#activity dd span.description, #search-results dd span.description { display:block; color: #808080; }
261
+
262
+ #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; }
263
+
264
+ div#search-results-counts {float:right;}
265
+ div#search-results-counts ul { margin-top: 0.5em; }
266
+ div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; }
267
+
268
+ dt.issue { background-image: url(/images/somatics/ticket.png); }
269
+ dt.issue-edit { background-image: url(/images/somatics/ticket_edit.png); }
270
+ dt.issue-closed { background-image: url(/images/somatics/ticket_checked.png); }
271
+ dt.issue-note { background-image: url(/images/somatics/ticket_note.png); }
272
+ dt.changeset { background-image: url(/images/somatics/changeset.png); }
273
+ dt.news { background-image: url(/images/somatics/news.png); }
274
+ dt.message { background-image: url(/images/somatics/message.png); }
275
+ dt.reply { background-image: url(/images/somatics/comments.png); }
276
+ dt.wiki-page { background-image: url(/images/somatics/wiki_edit.png); }
277
+ dt.attachment { background-image: url(/images/somatics/attachment.png); }
278
+ dt.document { background-image: url(/images/somatics/document.png); }
279
+ dt.project { background-image: url(/images/somatics/projects.png); }
280
+ dt.time-entry { background-image: url(/images/somatics/time.png); }
281
+
282
+ #search-results dt.issue.closed { background-image: url(/images/somatics/ticket_checked.png); }
283
+
284
+ div#roadmap fieldset.related-issues { margin-bottom: 1em; }
285
+ div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; }
286
+ div#roadmap .wiki h1:first-child { display: none; }
287
+ div#roadmap .wiki h1 { font-size: 120%; }
288
+ div#roadmap .wiki h2 { font-size: 110%; }
289
+
290
+ div#version-summary { float:right; width:380px; margin-left: 16px; margin-bottom: 16px; background-color: #fff; }
291
+ div#version-summary fieldset { margin-bottom: 1em; }
292
+ div#version-summary .total-hours { text-align: right; }
293
+
294
+ table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; }
295
+ table#time-report tbody tr { font-style: italic; color: #777; }
296
+ table#time-report tbody tr.last-level { font-style: normal; color: #555; }
297
+ table#time-report tbody tr.total { font-style: normal; font-weight: bold; color: #555; background-color:#EEEEEE; }
298
+ table#time-report .hours-dec { font-size: 0.9em; }
299
+
300
+ form#issue-form .attributes { margin-bottom: 8px; }
301
+ form#issue-form .attributes p { padding-top: 1px; padding-bottom: 2px; }
302
+ form#issue-form .attributes select { min-width: 30%; }
303
+
304
+ ul.projects { margin: 0; padding-left: 1em; }
305
+ ul.projects.root { margin: 0; padding: 0; }
306
+ ul.projects ul { border-left: 3px solid #e0e0e0; }
307
+ ul.projects li { list-style-type:none; }
308
+ ul.projects li.root { margin-bottom: 1em; }
309
+ ul.projects li.child { margin-top: 1em;}
310
+ ul.projects div.root a.project { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 16px; margin: 0 0 10px 0; }
311
+ .my-project { padding-left: 18px; background: url(/images/somatics/fav.png) no-repeat 0 50%; }
312
+
313
+ #tracker_project_ids ul { margin: 0; padding-left: 1em; }
314
+ #tracker_project_ids li { list-style-type:none; }
315
+
316
+ ul.properties {padding:0; font-size: 0.9em; color: #777;}
317
+ ul.properties li {list-style-type:none;}
318
+ ul.properties li span {font-style:italic;}
319
+
320
+ .total-hours { font-size: 110%; font-weight: bold; }
321
+ .total-hours span.hours-int { font-size: 120%; }
322
+
323
+ .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;}
324
+ #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; }
325
+
326
+ #workflow_copy_form select { width: 200px; }
327
+
328
+ .pagination {font-size: 90%}
329
+ p.pagination {margin-top:8px;}
330
+
331
+ /***** Tabular forms ******/
332
+ .tabular p{
333
+ margin: 0;
334
+ padding: 5px 0 8px 0;
335
+ padding-left: 180px; /*width of left column containing the label elements*/
336
+ height: 1%;
337
+ clear:left;
338
+ }
339
+
340
+ html>body .tabular p {overflow:hidden;}
341
+
342
+ .tabular label{
343
+ font-weight: bold;
344
+ float: left;
345
+ text-align: right;
346
+ margin-left: -180px; /*width of left column*/
347
+ width: 175px; /*width of labels. Should be smaller than left column to create some right
348
+ margin*/
349
+ }
350
+
351
+ .tabular label.floating{
352
+ font-weight: normal;
353
+ margin-left: 0px;
354
+ text-align: left;
355
+ width: 270px;
356
+ }
357
+
358
+ .tabular label.block{
359
+ font-weight: normal;
360
+ margin-left: 0px !important;
361
+ text-align: left;
362
+ float: none;
363
+ display: block;
364
+ width: auto;
365
+ }
366
+
367
+ input#time_entry_comments { width: 90%;}
368
+
369
+ #preview fieldset {margin-top: 1em; background: url(/images/somatics/draft.png)}
370
+
371
+ .tabular.settings p{ padding-left: 300px; }
372
+ .tabular.settings label{ margin-left: -300px; width: 295px; }
373
+ .tabular.settings textarea { width: 99%; }
374
+
375
+ fieldset.settings label { display: block; }
376
+
377
+ .required {color: #bb0000;}
378
+ .summary {font-style: italic;}
379
+
380
+ #attachments_fields input[type=text] {margin-left: 8px; }
381
+
382
+ div.attachments { margin-top: 12px; }
383
+ div.attachments p { margin:4px 0 2px 0; }
384
+ div.attachments img { vertical-align: middle; }
385
+ div.attachments span.author { font-size: 0.9em; color: #888; }
386
+
387
+ p.other-formats { text-align: right; font-size:0.9em; color: #666; }
388
+ .other-formats span + span:before { content: "| "; }
389
+
390
+ a.atom { background: url(/images/somatics/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
391
+
392
+ /* Project members tab */
393
+ div#tab-content-members .splitcontentleft, div#tab-content-memberships .splitcontentleft, div#tab-content-users .splitcontentleft { width: 64% }
394
+ div#tab-content-members .splitcontentright, div#tab-content-memberships .splitcontentright, div#tab-content-users .splitcontentright { width: 34% }
395
+ div#tab-content-members fieldset, div#tab-content-memberships fieldset, div#tab-content-users fieldset { padding:1em; margin-bottom: 1em; }
396
+ div#tab-content-members fieldset legend, div#tab-content-memberships fieldset legend, div#tab-content-users fieldset legend { font-weight: bold; }
397
+ div#tab-content-members fieldset label, div#tab-content-memberships fieldset label, div#tab-content-users fieldset label { display: block; }
398
+ div#tab-content-members fieldset div, div#tab-content-users fieldset div { max-height: 400px; overflow:auto; }
399
+
400
+ table.members td.group { padding-left: 20px; background: url(/images/somatics/group.png) no-repeat 0% 50%; }
401
+
402
+ input#principal_search, input#user_search {width:100%}
403
+
404
+ * html div#tab-content-members fieldset div { height: 450px; }
405
+
406
+ /***** Flash & error messages ****/
407
+ #errorExplanation, div.flash, .nodata, .warning {
408
+ padding: 4px 4px 4px 30px;
409
+ margin-bottom: 12px;
410
+ font-size: 1.1em;
411
+ border: 2px solid;
412
+ }
413
+
414
+ div.flash {margin-top: 8px;}
415
+
416
+ div.flash.error, #errorExplanation {
417
+ background: url(/images/somatics/exclamation.png) 8px 50% no-repeat;
418
+ background-color: #ffe3e3;
419
+ border-color: #dd0000;
420
+ color: #880000;
421
+ }
422
+
423
+ div.flash.notice {
424
+ background: url(/images/somatics/true.png) 8px 5px no-repeat;
425
+ background-color: #dfffdf;
426
+ border-color: #9fcf9f;
427
+ color: #005f00;
428
+ }
429
+
430
+ div.flash.warning {
431
+ background: url(/images/somatics/warning.png) 8px 5px no-repeat;
432
+ background-color: #FFEBC1;
433
+ border-color: #FDBF3B;
434
+ color: #A6750C;
435
+ text-align: left;
436
+ }
437
+
438
+ .nodata, .warning {
439
+ text-align: center;
440
+ background-color: #FFEBC1;
441
+ border-color: #FDBF3B;
442
+ color: #A6750C;
443
+ }
444
+
445
+ #errorExplanation ul { font-size: 0.9em;}
446
+ #errorExplanation h2, #errorExplanation p { display: none; }
447
+
448
+ /***** Ajax indicator ******/
449
+ #ajax-indicator {
450
+ position: absolute; /* fixed not supported by IE */
451
+ background-color:#eee;
452
+ border: 1px solid #bbb;
453
+ top:35%;
454
+ left:40%;
455
+ width:20%;
456
+ font-weight:bold;
457
+ text-align:center;
458
+ padding:0.6em;
459
+ z-index:100;
460
+ filter:alpha(opacity=50);
461
+ opacity: 0.5;
462
+ }
463
+
464
+ html>body #ajax-indicator { position: fixed; }
465
+
466
+ #ajax-indicator span {
467
+ background-position: 0% 40%;
468
+ background-repeat: no-repeat;
469
+ background-image: url(/images/somatics/loading.gif);
470
+ padding-left: 26px;
471
+ vertical-align: bottom;
472
+ }
473
+
474
+ /***** Calendar *****/
475
+ table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;}
476
+ table.cal thead th {width: 14%;}
477
+ table.cal tbody tr {height: 100px;}
478
+ table.cal th { background-color:#EEEEEE; padding: 4px; }
479
+ table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
480
+ table.cal td p.day-num {font-size: 1.1em; text-align:right;}
481
+ table.cal td.odd p.day-num {color: #bbb;}
482
+ table.cal td.today {background:#ffffdd;}
483
+ table.cal td.today p.day-num {font-weight: bold;}
484
+
485
+ /***** Tooltips ******/
486
+ .tooltip{position:relative;z-index:24;}
487
+ .tooltip:hover{z-index:25;color:#000;}
488
+ .tooltip span.tip{display: none; text-align:left;}
489
+
490
+ div.tooltip:hover span.tip{
491
+ display:block;
492
+ position:absolute;
493
+ top:12px; left:24px; width:270px;
494
+ border:1px solid #555;
495
+ background-color:#fff;
496
+ padding: 4px;
497
+ font-size: 0.8em;
498
+ color:#505050;
499
+ }
500
+
501
+ /***** Progress bar *****/
502
+ table.progress {
503
+ border: 1px solid #D7D7D7;
504
+ border-collapse: collapse;
505
+ border-spacing: 0pt;
506
+ empty-cells: show;
507
+ text-align: center;
508
+ float:left;
509
+ margin: 1px 6px 1px 0px;
510
+ }
511
+
512
+ table.progress td { height: 0.9em; }
513
+ table.progress td.closed { background: #BAE0BA none repeat scroll 0%; }
514
+ table.progress td.done { background: #DEF0DE none repeat scroll 0%; }
515
+ table.progress td.open { background: #FFF none repeat scroll 0%; }
516
+ p.pourcent {font-size: 80%;}
517
+ p.progress-info {clear: left; font-style: italic; font-size: 80%;}
518
+
519
+ /***** Tabs *****/
520
+ #content .tabs {height: 2.6em; margin-bottom:1.2em; position:relative; overflow:hidden;}
521
+ #content .tabs ul {margin:0; position:absolute; bottom:0; padding-left:1em; width: 2000px; border-bottom: 1px solid #bbbbbb;}
522
+ #content .tabs ul li {
523
+ float:left;
524
+ list-style-type:none;
525
+ white-space:nowrap;
526
+ margin-right:8px;
527
+ background:#fff;
528
+ position:relative;
529
+ margin-bottom:-1px;
530
+ }
531
+ #content .tabs ul li a{
532
+ display:block;
533
+ font-size: 0.9em;
534
+ text-decoration:none;
535
+ line-height:1.3em;
536
+ padding:4px 6px 4px 6px;
537
+ border: 1px solid #ccc;
538
+ border-bottom: 1px solid #bbbbbb;
539
+ background-color: #eeeeee;
540
+ color:#777;
541
+ font-weight:bold;
542
+ }
543
+
544
+ #content .tabs ul li a:hover {
545
+ background-color: #ffffdd;
546
+ text-decoration:none;
547
+ }
548
+
549
+ #content .tabs ul li a.selected {
550
+ background-color: #fff;
551
+ border: 1px solid #bbbbbb;
552
+ border-bottom: 1px solid #fff;
553
+ }
554
+
555
+ #content .tabs ul li a.selected:hover {
556
+ background-color: #fff;
557
+ }
558
+
559
+ div.tabs-buttons { position:absolute; right: 0; width: 48px; height: 24px; background: white; bottom: 0; border-bottom: 1px solid #bbbbbb; }
560
+
561
+ button.tab-left, button.tab-right {
562
+ font-size: 0.9em;
563
+ cursor: pointer;
564
+ height:24px;
565
+ border: 1px solid #ccc;
566
+ border-bottom: 1px solid #bbbbbb;
567
+ position:absolute;
568
+ padding:4px;
569
+ width: 20px;
570
+ bottom: -1px;
571
+ }
572
+
573
+ button.tab-left {
574
+ right: 20px;
575
+ background: #eeeeee url(/images/somatics/bullet_arrow_left.png) no-repeat 50% 50%;
576
+ }
577
+
578
+ button.tab-right {
579
+ right: 0;
580
+ background: #eeeeee url(/images/somatics/bullet_arrow_right.png) no-repeat 50% 50%;
581
+ }
582
+
583
+ /***** Auto-complete *****/
584
+ div.autocomplete {
585
+ position:absolute;
586
+ width:250px;
587
+ background-color:white;
588
+ margin:0;
589
+ padding:0;
590
+ }
591
+ div.autocomplete ul {
592
+ list-style-type:none;
593
+ margin:0;
594
+ padding:0;
595
+ }
596
+ div.autocomplete ul li.selected { background-color: #ffb;}
597
+ div.autocomplete ul li {
598
+ list-style-type:none;
599
+ display:block;
600
+ margin:0;
601
+ padding:2px;
602
+ cursor:pointer;
603
+ font-size: 90%;
604
+ border-bottom: 1px solid #ccc;
605
+ border-left: 1px solid #ccc;
606
+ border-right: 1px solid #ccc;
607
+ }
608
+ div.autocomplete ul li span.informal {
609
+ font-size: 80%;
610
+ color: #aaa;
611
+ }
612
+
613
+ /***** Diff *****/
614
+ .diff_out { background: #fcc; }
615
+ .diff_in { background: #cfc; }
616
+
617
+ /***** Wiki *****/
618
+ div.wiki table {
619
+ border: 1px solid #505050;
620
+ border-collapse: collapse;
621
+ margin-bottom: 1em;
622
+ }
623
+
624
+ div.wiki table, div.wiki td, div.wiki th {
625
+ border: 1px solid #bbb;
626
+ padding: 4px;
627
+ }
628
+
629
+ div.wiki .external {
630
+ background-position: 0% 60%;
631
+ background-repeat: no-repeat;
632
+ padding-left: 12px;
633
+ background-image: url(/images/somatics/external.png);
634
+ }
635
+
636
+ div.wiki a.new {
637
+ color: #b73535;
638
+ }
639
+
640
+ div.wiki pre {
641
+ margin: 1em 1em 1em 1.6em;
642
+ padding: 2px;
643
+ background-color: #fafafa;
644
+ border: 1px solid #dadada;
645
+ width:auto;
646
+ overflow-x: auto;
647
+ }
648
+
649
+ div.wiki ul.toc {
650
+ background-color: #ffffdd;
651
+ border: 1px solid #e4e4e4;
652
+ padding: 4px;
653
+ line-height: 1.2em;
654
+ margin-bottom: 12px;
655
+ margin-right: 12px;
656
+ margin-left: 0;
657
+ display: table
658
+ }
659
+ * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */
660
+
661
+ div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
662
+ div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
663
+ div.wiki ul.toc li { list-style-type:none;}
664
+ div.wiki ul.toc li.heading2 { margin-left: 6px; }
665
+ div.wiki ul.toc li.heading3 { margin-left: 12px; font-size: 0.8em; }
666
+
667
+ div.wiki ul.toc a {
668
+ font-size: 0.9em;
669
+ font-weight: normal;
670
+ text-decoration: none;
671
+ color: #606060;
672
+ }
673
+ div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;}
674
+
675
+ a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; }
676
+ a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; }
677
+ h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; }
678
+
679
+ div.wiki img { vertical-align: middle; }
680
+
681
+ /***** My page layout *****/
682
+ .block-receiver {
683
+ border:1px dashed #c0c0c0;
684
+ margin-bottom: 20px;
685
+ padding: 15px 0 15px 0;
686
+ }
687
+
688
+ .mypage-box {
689
+ margin:0 0 20px 0;
690
+ color:#505050;
691
+ line-height:1.5em;
692
+ }
693
+
694
+ .handle {
695
+ cursor: move;
696
+ }
697
+
698
+ a.close-icon {
699
+ display:block;
700
+ margin-top:3px;
701
+ overflow:hidden;
702
+ width:12px;
703
+ height:12px;
704
+ background-repeat: no-repeat;
705
+ cursor:pointer;
706
+ background-image:url('/images/somatics/close.png');
707
+ }
708
+
709
+ a.close-icon:hover {
710
+ background-image:url('/images/somatics/close_hl.png');
711
+ }
712
+
713
+ /***** Gantt chart *****/
714
+ .gantt_hdr {
715
+ position:absolute;
716
+ top:0;
717
+ height:16px;
718
+ border-top: 1px solid #c0c0c0;
719
+ border-bottom: 1px solid #c0c0c0;
720
+ border-right: 1px solid #c0c0c0;
721
+ text-align: center;
722
+ overflow: hidden;
723
+ }
724
+
725
+ .task {
726
+ position: absolute;
727
+ height:8px;
728
+ font-size:0.8em;
729
+ color:#888;
730
+ padding:0;
731
+ margin:0;
732
+ line-height:0.8em;
733
+ white-space:nowrap;
734
+ }
735
+
736
+ .task_late { background:#f66 url(/images/somatics/task_late.png); border: 1px solid #f66; }
737
+ .task_done { background:#66f url(/images/somatics/task_done.png); border: 1px solid #66f; }
738
+ .task_todo { background:#aaa url(/images/somatics/task_todo.png); border: 1px solid #aaa; }
739
+ .milestone { background-image:url(/images/somatics/milestone.png); background-repeat: no-repeat; border: 0; }
740
+
741
+ /***** Icons *****/
742
+ .icon {
743
+ background-position: 0% 50%;
744
+ background-repeat: no-repeat;
745
+ padding-left: 20px;
746
+ padding-top: 2px;
747
+ padding-bottom: 3px;
748
+ }
749
+
750
+ .icon-add { background-image: url(/images/somatics/add.png); }
751
+ .icon-edit { background-image: url(/images/somatics/edit.png); }
752
+ .icon-copy { background-image: url(/images/somatics/copy.png); }
753
+ .icon-duplicate { background-image: url(/images/somatics/duplicate.png); }
754
+ .icon-del { background-image: url(/images/somatics/delete.png); }
755
+ .icon-move { background-image: url(/images/somatics/move.png); }
756
+ .icon-save { background-image: url(/images/somatics/save.png); }
757
+ .icon-cancel { background-image: url(/images/somatics/cancel.png); }
758
+ .icon-multiple { background-image: url(/images/somatics/table_multiple.png); }
759
+ .icon-folder { background-image: url(/images/somatics/folder.png); }
760
+ .open .icon-folder { background-image: url(/images/somatics/folder_open.png); }
761
+ .icon-package { background-image: url(/images/somatics/package.png); }
762
+ .icon-home { background-image: url(/images/somatics/home.png); }
763
+ .icon-user { background-image: url(/images/somatics/user.png); }
764
+ .icon-projects { background-image: url(/images/somatics/projects.png); }
765
+ .icon-help { background-image: url(/images/somatics/help.png); }
766
+ .icon-attachment { background-image: url(/images/somatics/attachment.png); }
767
+ .icon-history { background-image: url(/images/somatics/history.png); }
768
+ .icon-time { background-image: url(/images/somatics/time.png); }
769
+ .icon-time-add { background-image: url(/images/somatics/time_add.png); }
770
+ .icon-stats { background-image: url(/images/somatics/stats.png); }
771
+ .icon-warning { background-image: url(/images/somatics/warning.png); }
772
+ .icon-fav { background-image: url(/images/somatics/fav.png); }
773
+ .icon-fav-off { background-image: url(/images/somatics/fav_off.png); }
774
+ .icon-reload { background-image: url(/images/somatics/reload.png); }
775
+ .icon-lock { background-image: url(/images/somatics/locked.png); }
776
+ .icon-unlock { background-image: url(/images/somatics/unlock.png); }
777
+ .icon-checked { background-image: url(/images/somatics/true.png); }
778
+ .icon-details { background-image: url(/images/somatics/zoom_in.png); }
779
+ .icon-report { background-image: url(/images/somatics/report.png); }
780
+ .icon-comment { background-image: url(/images/somatics/comment.png); }
781
+ .icon-summary { background-image: url(/images/somatics/lightning.png); }
782
+
783
+ .icon-file { background-image: url(/images/somatics/files/default.png); }
784
+ .icon-file.text-plain { background-image: url(/images/somatics/files/text.png); }
785
+ .icon-file.text-x-c { background-image: url(/images/somatics/files/c.png); }
786
+ .icon-file.text-x-csharp { background-image: url(/images/somatics/files/csharp.png); }
787
+ .icon-file.text-x-php { background-image: url(/images/somatics/files/php.png); }
788
+ .icon-file.text-x-ruby { background-image: url(/images/somatics/files/ruby.png); }
789
+ .icon-file.text-xml { background-image: url(/images/somatics/files/xml.png); }
790
+ .icon-file.image-gif { background-image: url(/images/somatics/files/image.png); }
791
+ .icon-file.image-jpeg { background-image: url(/images/somatics/files/image.png); }
792
+ .icon-file.image-png { background-image: url(/images/somatics/files/image.png); }
793
+ .icon-file.image-tiff { background-image: url(/images/somatics/files/image.png); }
794
+ .icon-file.application-pdf { background-image: url(/images/somatics/files/pdf.png); }
795
+ .icon-file.application-zip { background-image: url(/images/somatics/files/zip.png); }
796
+ .icon-file.application-x-gzip { background-image: url(/images/somatics/files/zip.png); }
797
+
798
+ img.gravatar {
799
+ padding: 2px;
800
+ border: solid 1px #d5d5d5;
801
+ background: #fff;
802
+ }
803
+
804
+ div.issue img.gravatar {
805
+ float: right;
806
+ margin: 0 0 0 1em;
807
+ padding: 5px;
808
+ }
809
+
810
+ div.issue table img.gravatar {
811
+ height: 14px;
812
+ width: 14px;
813
+ padding: 2px;
814
+ float: left;
815
+ margin: 0 0.5em 0 0;
816
+ }
817
+
818
+ h2 img.gravatar {
819
+ padding: 3px;
820
+ margin: -2px 4px -4px 0;
821
+ vertical-align: top;
822
+ }
823
+
824
+ h4 img.gravatar {
825
+ padding: 3px;
826
+ margin: -6px 0 -4px 0;
827
+ vertical-align: top;
828
+ }
829
+
830
+ td.username img.gravatar {
831
+ float: left;
832
+ margin: 0 1em 0 0;
833
+ }
834
+
835
+ #activity dt img.gravatar {
836
+ float: left;
837
+ margin: 0 1em 1em 0;
838
+ }
839
+
840
+ #activity dt,
841
+ .journal {
842
+ clear: left;
843
+ }
844
+
845
+ h2 img { vertical-align:middle; }
846
+
847
+ .hascontextmenu { cursor: context-menu; }
848
+
849
+ /***** Media print specific styles *****/
850
+ @media print {
851
+ #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; }
852
+ #main { background: #fff; }
853
+ #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;}
854
+ #wiki_add_attachment { display:none; }
855
+ .hide-when-print { display: none; }
856
+ }
857
+
858
+ #main-menu ul li ul {display:none;}
859
+ #main-menu ul li:hover ul {display:block;position:absolute;}
860
+ #main-menu ul li ul li{list-style-type: none;float:none;}
861
+
862
+ #admin-menu ul {margin: 0; padding: 0;}
863
+ #admin-menu li {margin: 0; padding: 0 0 12px 0; list-style-type:none;}