grandstand 0.2.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. data/Gemfile +6 -0
  2. data/README.md +72 -0
  3. data/app/controllers/galleries_controller.rb +4 -0
  4. data/app/controllers/grandstand/galleries_controller.rb +10 -1
  5. data/app/controllers/grandstand/images_controller.rb +9 -3
  6. data/app/controllers/grandstand/main_controller.rb +2 -4
  7. data/app/controllers/grandstand/pages_controller.rb +8 -1
  8. data/app/controllers/grandstand/sessions_controller.rb +1 -1
  9. data/app/helpers/grandstand/main_helper.rb +17 -0
  10. data/app/models/grandstand/gallery.rb +2 -1
  11. data/app/models/grandstand/image.rb +1 -0
  12. data/app/models/grandstand/page.rb +4 -0
  13. data/app/models/grandstand/page_section.rb +2 -0
  14. data/app/models/grandstand/post.rb +2 -0
  15. data/app/models/grandstand/user.rb +6 -4
  16. data/app/views/grandstand/galleries/delete.html.erb +2 -2
  17. data/app/views/grandstand/galleries/edit.html.erb +1 -1
  18. data/app/views/grandstand/galleries/editor.html.erb +3 -3
  19. data/app/views/grandstand/galleries/index.html.erb +5 -5
  20. data/app/views/grandstand/galleries/new.html.erb +1 -1
  21. data/app/views/grandstand/galleries/show.html.erb +11 -10
  22. data/app/views/grandstand/images/_form.html.erb +1 -1
  23. data/app/views/grandstand/images/delete.html.erb +2 -2
  24. data/app/views/grandstand/images/edit.html.erb +2 -2
  25. data/app/views/grandstand/images/new.html.erb +2 -2
  26. data/app/views/grandstand/images/show.html.erb +2 -2
  27. data/app/views/grandstand/main/index.html.erb +8 -10
  28. data/app/views/grandstand/pages/_form.html.erb +4 -5
  29. data/app/views/grandstand/pages/_row.html.erb +4 -3
  30. data/app/views/grandstand/pages/delete.html.erb +2 -2
  31. data/app/views/grandstand/pages/edit.html.erb +6 -3
  32. data/app/views/grandstand/pages/index.html.erb +10 -7
  33. data/app/views/grandstand/pages/new.html.erb +6 -3
  34. data/app/views/grandstand/pages/show.html.erb +25 -3
  35. data/app/views/grandstand/posts/_form.html.erb +1 -3
  36. data/app/views/grandstand/posts/_list.html.erb +1 -1
  37. data/app/views/grandstand/posts/delete.html.erb +1 -2
  38. data/app/views/grandstand/posts/edit.html.erb +5 -2
  39. data/app/views/grandstand/posts/index.html.erb +10 -5
  40. data/app/views/grandstand/posts/new.html.erb +5 -2
  41. data/app/views/grandstand/posts/show.html.erb +3 -5
  42. data/app/views/grandstand/sessions/forgot.html.erb +2 -2
  43. data/app/views/grandstand/sessions/show.html.erb +2 -2
  44. data/app/views/grandstand/shared/_footer.html.erb +1 -0
  45. data/app/views/grandstand/users/_form.html.erb +7 -3
  46. data/app/views/grandstand/users/delete.html.erb +1 -1
  47. data/app/views/grandstand/users/edit.html.erb +1 -1
  48. data/app/views/grandstand/users/index.html.erb +4 -2
  49. data/app/views/grandstand/users/new.html.erb +1 -1
  50. data/app/views/grandstand/users/show.html.erb +7 -4
  51. data/app/views/layouts/grandstand.html.erb +17 -55
  52. data/app/views/layouts/{grandstand_login.html.erb → grandstand_minimal.html.erb} +5 -2
  53. data/app/views/pages/show.html.erb +0 -8
  54. data/app/views/posts/show.html.erb +1 -1
  55. data/app/views/shared/404.html.erb +1 -1
  56. data/config/routes.rb +5 -0
  57. data/lib/generators/grandstand/install/install_generator.rb +40 -0
  58. data/lib/generators/grandstand/install/templates/initializer.rb +27 -0
  59. data/lib/generators/grandstand/install/templates/migration.rb +95 -0
  60. data/lib/generators/grandstand/install/templates/public/fonts/museosans.eot +0 -0
  61. data/lib/generators/grandstand/install/templates/public/fonts/museosans.svg +247 -0
  62. data/lib/generators/grandstand/install/templates/public/fonts/museosans.ttf +0 -0
  63. data/lib/generators/grandstand/install/templates/public/fonts/museosans.woff +0 -0
  64. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-input.gif +0 -0
  65. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-progress-bar.png +0 -0
  66. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-progress-complete.gif +0 -0
  67. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/background-progress.gif +0 -0
  68. data/lib/generators/grandstand/install/templates/public/images/icons/add.png +0 -0
  69. data/lib/generators/grandstand/install/templates/public/images/icons/delete.png +0 -0
  70. data/lib/generators/grandstand/install/templates/public/images/icons/edit.png +0 -0
  71. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/bold.png +0 -0
  72. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/gallery.png +0 -0
  73. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image-center.png +0 -0
  74. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image-left.png +0 -0
  75. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image-right.png +0 -0
  76. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/image.png +0 -0
  77. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/italic.png +0 -0
  78. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/ordered-list.png +0 -0
  79. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/quote.png +0 -0
  80. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/source.png +0 -0
  81. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/strikethrough.png +0 -0
  82. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/underline.png +0 -0
  83. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/editor/unordered-list.png +0 -0
  84. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/error.png +0 -0
  85. data/lib/generators/grandstand/install/templates/public/images/icons/external.png +0 -0
  86. data/{public/grandstand/images → lib/generators/grandstand/install/templates/public/images/icons}/galleries-empty.png +0 -0
  87. data/lib/generators/grandstand/install/templates/public/images/icons/galleries.png +0 -0
  88. data/lib/generators/grandstand/install/templates/public/images/icons/gallery.png +0 -0
  89. data/lib/generators/grandstand/install/templates/public/images/icons/handle.gif +0 -0
  90. data/lib/generators/grandstand/install/templates/public/images/icons/image-library.png +0 -0
  91. data/lib/generators/grandstand/install/templates/public/images/icons/image.png +0 -0
  92. data/lib/generators/grandstand/install/templates/public/images/icons/okay.png +0 -0
  93. data/lib/generators/grandstand/install/templates/public/images/icons/pages.png +0 -0
  94. data/lib/generators/grandstand/install/templates/public/images/icons/posts.png +0 -0
  95. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/icons/processing.gif +0 -0
  96. data/lib/generators/grandstand/install/templates/public/images/icons/users.png +0 -0
  97. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/spinner-dark.gif +0 -0
  98. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/images/uploader.swf +0 -0
  99. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/application.js +27 -21
  100. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/jquery.js +1 -1
  101. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/mustache.js +0 -0
  102. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/preview.js +0 -0
  103. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/selection.js +1 -1
  104. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/string.js +0 -1
  105. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/javascripts/wysiwyg.js +8 -9
  106. data/lib/generators/grandstand/install/templates/public/stylesheets/application.css +368 -0
  107. data/lib/generators/grandstand/install/templates/public/stylesheets/buttons.css +81 -0
  108. data/lib/generators/grandstand/install/templates/public/stylesheets/dialog.css +142 -0
  109. data/lib/generators/grandstand/install/templates/public/stylesheets/forms.css +94 -0
  110. data/lib/generators/grandstand/install/templates/public/stylesheets/global.css +94 -0
  111. data/lib/generators/grandstand/install/templates/public/stylesheets/login.css +37 -0
  112. data/{public/grandstand → lib/generators/grandstand/install/templates/public}/stylesheets/wysiwyg-content.css +1 -0
  113. data/lib/generators/grandstand/install/templates/public/stylesheets/wysiwyg.css +94 -0
  114. data/lib/generators/grandstand/install/templates/s3.yml +8 -0
  115. data/lib/grandstand.rb +78 -16
  116. data/lib/grandstand/application.rb +1 -10
  117. data/lib/grandstand/controller.rb +7 -1
  118. data/lib/grandstand/form_builder.rb +2 -2
  119. data/lib/grandstand/helper.rb +3 -0
  120. data/lib/grandstand/session.rb +1 -1
  121. metadata +143 -101
  122. data/.gitignore +0 -2
  123. data/MIT-LICENSE +0 -20
  124. data/README.markdown +0 -43
  125. data/README.txt +0 -0
  126. data/Rakefile +0 -50
  127. data/VERSION +0 -1
  128. data/app/helpers/site_helper.rb +0 -2
  129. data/app/stylesheets/_buttons.less +0 -76
  130. data/app/stylesheets/application.less +0 -331
  131. data/app/stylesheets/global.less +0 -452
  132. data/app/stylesheets/login.less +0 -30
  133. data/app/stylesheets/wysiwyg.less +0 -108
  134. data/app/views/grandstand/pages/_left.html.erb +0 -3
  135. data/app/views/grandstand/posts/_left.html.erb +0 -3
  136. data/app/views/grandstand/users/_left.html.erb +0 -3
  137. data/grandstand.gemspec +0 -207
  138. data/lib/grandstand/stylesheets_controller.rb +0 -14
  139. data/public/grandstand/images/icons/add.png +0 -0
  140. data/public/grandstand/images/icons/collapse.png +0 -0
  141. data/public/grandstand/images/icons/delete.png +0 -0
  142. data/public/grandstand/images/icons/edit.png +0 -0
  143. data/public/grandstand/images/icons/expand.png +0 -0
  144. data/public/grandstand/images/icons/galleries.png +0 -0
  145. data/public/grandstand/images/icons/gallery.png +0 -0
  146. data/public/grandstand/images/icons/image.png +0 -0
  147. data/public/grandstand/images/icons/okay.png +0 -0
  148. data/public/grandstand/images/icons/pages.png +0 -0
  149. data/public/grandstand/images/icons/posts.png +0 -0
  150. data/public/grandstand/images/icons/upload.png +0 -0
  151. data/public/grandstand/images/icons/users.png +0 -0
  152. data/public/grandstand/images/logo.png +0 -0
  153. data/vendor/cache/more-0.1.1.gem +0 -0
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- pkg/
2
- .DS_Store
@@ -1,20 +0,0 @@
1
- Copyright (c) 2010 Flip Sasser
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,43 +0,0 @@
1
- Grandstand
2
- ==========
3
-
4
- Grandstand is a Rails 3 Gem that allows you to build totally simple blogs and portfolios using a gallery and blog post editor. It's as simple as adding
5
-
6
- gem 'grandstand'
7
-
8
- to your `Gemfile` and running `bundle install`. Try it now!
9
-
10
- Configuration
11
- ---
12
- Grandstand has three (count 'em) configuration options.
13
-
14
- 1. Image sizes
15
- Use this to control how your images are resized when they are uploaded. It's a hash that accepts the size name as the key and the
16
- geometry string as the value, e.g.
17
- Grandstand.image_sizes[:large] = '800x600#'
18
-
19
- 2. Page sections
20
-
21
-
22
- Authentication
23
- ---
24
- Grandstand supports a very simple authentication scheme: users. With passwords! And that's it. It gives you a few helper methods, based on
25
- most auth systems' standards:
26
-
27
- require_user
28
-
29
- Use as a before filter or call it directly in your controllers. Simple. Easy-peasy. Passes the user back to the admin login page.
30
-
31
- current_user
32
-
33
- Use in your controllers and views. Provides access to the logged-in user... if they're logged in.
34
-
35
- Admin Interface
36
- ---
37
- Grandstand has a basic admin interface that allows you to manage blog posts, galleries, pages, and users. That's... like... it.
38
-
39
- Galleries
40
- ---
41
-
42
-
43
- Copyright (c) 2010 Flip Sasser, released under the MIT license
data/README.txt DELETED
File without changes
data/Rakefile DELETED
@@ -1,50 +0,0 @@
1
- require 'rake'
2
- require 'rake/testtask'
3
- require 'rake/rdoctask'
4
-
5
- desc 'Default: run unit tests.'
6
- task :default => :test
7
-
8
- desc 'Test the grandstand plugin.'
9
- Rake::TestTask.new(:test) do |t|
10
- t.libs << 'lib'
11
- t.libs << 'test'
12
- t.pattern = 'test/**/*_test.rb'
13
- t.verbose = true
14
- end
15
-
16
- desc 'Generate documentation for the grandstand plugin.'
17
- Rake::RDocTask.new(:rdoc) do |rdoc|
18
- rdoc.rdoc_dir = 'rdoc'
19
- rdoc.title = 'Grandstand'
20
- rdoc.options << '--line-numbers' << '--inline-source'
21
- rdoc.rdoc_files.include('README')
22
- rdoc.rdoc_files.include('lib/**/*.rb')
23
- end
24
-
25
- begin
26
- require "jeweler"
27
- Jeweler::Tasks.new do |gemspec|
28
- gemspec.name = "grandstand"
29
- gemspec.summary = "A blog / gallery gem for Rails 3 that's dead-simple to configure, override, and rebuild"
30
- # gem.files = Dir["{lib}/**/*", "{app}/**/*", "{config}/**/*", "{public}/**/*", "{rails}/**/*", "README"]
31
- # other fields that would normally go in your gemspec
32
- # like authors, email and has_rdoc can also be included here
33
- gemspec.description = %{
34
- Grandstand is a simple blog and photo gallery application. It takes a minimal amount of configuration and can
35
- be built installed as a gem and used within minutes. It's totally cool. Seriously.
36
- }
37
- gemspec.email = "flip@x451.com"
38
- gemspec.homepage = "http://github.com/flipsasser/grandstand"
39
- gemspec.authors = ["Flip Sasser"]
40
- gemspec.test_files = []
41
- # TODO: Move less and more to development dependencies
42
- gemspec.add_development_dependency 'less', '>= 1.2.21'
43
- gemspec.add_development_dependency 'more', '>= 0.1.1'
44
- gemspec.add_dependency 'aws-s3', '>= 0.6.2'
45
- gemspec.add_dependency 'mustache', '>= 0.11.2'
46
- gemspec.add_dependency 'paperclip', '>= 2.3.3'
47
- end
48
- rescue
49
- puts "Jeweler or one of its dependencies is not installed."
50
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.2.7
@@ -1,2 +0,0 @@
1
- module SiteHelper
2
- end
@@ -1,76 +0,0 @@
1
- /*
2
- buttons.less contains all button styling. Button styling should be mixed-in
3
- using #grandstand > .button-class to whatever elements need to look like buttons -
4
- be they links, button tags, or menu items.
5
- */
6
- #grandstand {
7
- .styled-toolbar {
8
- background-color:#a7a7a7;
9
- background-image:-moz-linear-gradient(top, #cacaca, #a7a7a7);
10
- background-image:-webkit-gradient(linear, left top, left bottom, from(#cacaca), to(#a7a7a7));
11
- overflow:hidden;
12
- padding:5px;
13
- }
14
-
15
- .button-default {
16
- background-color:#ececec;
17
- background-image:-moz-linear-gradient(top, #f4f4f4, #ececec);
18
- background-image:-webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
19
- border:1px solid #d4d4d4;
20
- color:#333;
21
- cursor:pointer;
22
- display:inline-block;
23
- font-size:12px;
24
- font-weight:bold;
25
- line-height:16px;
26
- margin:0;
27
- overflow:hidden;
28
- padding:4px 10px;
29
- text-decoration:none;
30
- text-shadow:#fff 0 1px 0;
31
- vertical-align:baseline;
32
- vertical-align:middle;
33
- -moz-border-radius:2px;
34
- -webkit-border-radius:2px;
35
- }
36
-
37
- .button-hover {
38
- background-color:#3072b3;
39
- background-image:-moz-linear-gradient(top, #599bdc, #3072b3);
40
- background-image:-webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));
41
- border-color:#518cc6;
42
- border-bottom-color:#2a65a0;
43
- color:#fff;
44
- text-shadow:rgba(0, 0, 0, 0.4) 0 -1px 0;
45
- }
46
-
47
- .button-active {
48
- background-color:#599bdc;
49
- background-image:-moz-linear-gradient(top, #3072b3, #599bdc);
50
- background-image:-webkit-gradient(linear, left top, left bottom, from(#3072b3), to(#599bdc));
51
- border-bottom-color:#518cc6;
52
- border-top-color:#2a65a0;
53
- -moz-box-shadow:inset rgba(0, 0, 0, 0.2) 0 0 1px;
54
- -webkit-box-shadow:inset rgba(0, 0, 0, 0.2) 0 0 1px;
55
- }
56
-
57
- .button-grey {
58
- background-color:#333;
59
- background-image:-moz-linear-gradient(top, #333, #444);
60
- background-image:-webkit-gradient(linear, left top, left bottom, from(#444), to(#333));
61
- border-color:#000;
62
- color:#fff;
63
- text-shadow:#000 0 -1px 0;
64
- }
65
-
66
- .button-grey-hover {
67
- background-color:#444;
68
- background-image:-moz-linear-gradient(top, #333, #444);
69
- background-image:-webkit-gradient(linear, left top, left bottom, from(#333), to(#444));
70
- }
71
-
72
- .button-grey-active {
73
- -moz-box-shadow:inset rgba(0, 0, 0, 1) 0 0px 1px;
74
- -webkit-box-shadow:inset rgba(0, 0, 0, 1) 0 0px 1px;
75
- }
76
- }
@@ -1,331 +0,0 @@
1
- /*
2
- application.less contains all of the layout elements for the logged-in application state. This is styling
3
- for the editor UI ONLY. It relies heavily on global.less, which provides all form element styling and much
4
- of the generic UI found in the app - including during inline editing and the like.
5
- */
6
- @import url('_buttons.less');
7
-
8
- /* Layout Elements */
9
-
10
- body {
11
- overflow:hidden;
12
- }
13
-
14
- #header {
15
- background-color:#eee;
16
- background-image:-moz-linear-gradient(top, #eee, #ddd);
17
- background-image:-webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
18
- border-bottom:1px solid #eee;
19
- border-top:1px solid #fff;
20
- height:35px;
21
- left:0;
22
- padding:0 10px;
23
- position:absolute;
24
- width:100%;
25
- z-index:2;
26
- box-sizing:border-box;
27
- -moz-box-sizing:border-box;
28
- -ms-box-sizing:border-box;
29
- -webkit-box-sizing:border-box;
30
- -moz-box-shadow:#999 0 1px 2px;
31
- -webkit-box-shadow:#999 0 1px 2px;
32
-
33
- .float-right {
34
- line-height:35px;
35
- /* margin-top:11px;*/
36
- }
37
-
38
- .float-right a {
39
- color:#000;
40
- display:inline-block;
41
- padding:0 7px;
42
- }
43
-
44
- .float-right a:hover {
45
- background-color:rgba(255, 255, 255, 0.3);
46
- text-decoration:underline;
47
- }
48
- }
49
-
50
- #logo {
51
- display:inline-block;
52
- padding-top:1px;
53
- }
54
-
55
- #content {
56
- height:100%;
57
- overflow:hidden;
58
- padding:36px 0 0 0;
59
- position:absolute;
60
- width:100%;
61
- box-sizing:border-box;
62
- -moz-box-sizing:border-box;
63
- -ms-box-sizing:border-box;
64
- -webkit-box-sizing:border-box;
65
- }
66
-
67
- #left {
68
- left:20px;
69
- position:absolute;
70
- top:51px;
71
- width:150px;
72
-
73
- .button {
74
- display:block;
75
- margin-bottom:10px;
76
- }
77
-
78
- ul {
79
- background-color:#ececec;
80
- background-image:-moz-linear-gradient(top, #f4f4f4, #ececec);
81
- background-image:-webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
82
- list-style-type:none;
83
- margin:0;
84
- padding:0;
85
- -moz-border-radius:2px;
86
- -webkit-border-radius:2px;
87
-
88
- li.first {
89
- > a {
90
- border-top-color:#d4d4d4;
91
- -moz-border-radius-topleft:2px;
92
- -webkit-border-top-left-radius:2px;
93
- }
94
-
95
- a.expand {
96
- -moz-border-radius-topleft:0;
97
- -moz-border-radius-topright:2px;
98
- -webkit-border-top-left-radius:0;
99
- -webkit-border-top-right-radius:2px;
100
- }
101
- }
102
-
103
- li {
104
- margin:0;
105
- padding:0;
106
-
107
- a {
108
- #grandstand > .button-default;
109
- border-top-color:#f4f4f4;
110
- display:block;
111
- padding:5px;
112
- -moz-border-radius:0;
113
- -webkit-border-radius:0;
114
- }
115
-
116
- a:hover {
117
- #grandstand > .button-hover;
118
- }
119
-
120
- a:active {
121
- #grandstand > .button-active;
122
- }
123
-
124
- a.expand {
125
- float:right;
126
- margin-right:0;
127
- height:26px;
128
- line-height:26px;
129
- padding:0;
130
- width:15px;
131
-
132
- span {
133
- background:url(../images/icons/expand.png) center bottom no-repeat;
134
- display:block;
135
- height:16px;
136
- margin-top:4px;
137
- width:16px;
138
- }
139
- }
140
-
141
- ul {
142
- display:none;
143
-
144
- li a {
145
- font-size:10px;
146
- padding-left:20px;
147
- }
148
- }
149
- }
150
-
151
- li.expandable {
152
- > a {
153
- border-right-width:0;
154
- }
155
-
156
- > a.expand {
157
- border-right-width:1px;
158
- }
159
- }
160
-
161
- li.last a {
162
- -moz-border-radius-bottomleft:2px;
163
- -moz-border-radius-bottomright:2px;
164
- -webkit-border-bottom-left-radius:2px;
165
- -webkit-border-bottom-right-radius:2px;
166
- }
167
-
168
- li.expanded {
169
- a.expand span {
170
- background-image:url(../images/icons/collapse.png);
171
- }
172
-
173
- ul {
174
- display:block;
175
- }
176
- }
177
- }
178
- }
179
-
180
- #main {
181
- height:100%;
182
- padding:20px 20px 20px 190px;
183
- overflow-x:hidden;
184
- overflow-y:auto;
185
- box-sizing:border-box;
186
- -moz-box-sizing:border-box;
187
- -ms-box-sizing:border-box;
188
- -webkit-box-sizing:border-box;
189
- }
190
-
191
- #cover {
192
- background-color:#000;
193
- height:100%;
194
- left:0;
195
- opacity:0.6;
196
- position:fixed;
197
- top:0;
198
- width:100%;
199
- z-index:2;
200
- }
201
-
202
- #cover.loading {
203
- background-image:url(../images/spinner-dark.gif);
204
- background-position:center center;
205
- background-repeat:no-repeat;
206
- }
207
-
208
- #dialog {
209
- left:50%;
210
- margin-left:-200px;
211
- position:fixed;
212
- top:0;
213
- width:400px;
214
- z-index:3;
215
- -moz-border-radius-bottomleft:5px;
216
- -moz-border-radius-bottomright:5px;
217
- -webkit-border-bottom-left-radius:5px;
218
- -webkit-border-bottom-right-radius:5px;
219
- -moz-box-shadow:#333 0 1px 2px;
220
- -webkit-box-shadow:#333 0 1px 2px;
221
-
222
- h2 {
223
- background:#fafafa;
224
- border-bottom:1px solid #ddd;
225
- color:#555;
226
- font-size:10pt;
227
- margin:0 !important;
228
- padding:5px;
229
- text-shadow:#fff 0 1px 0;
230
- }
231
-
232
- form {
233
- border-top:1px solid #fff;
234
- margin:0;
235
- }
236
-
237
- form.two-pane {
238
- background:#d9dfe8;
239
- border-top-width:0;
240
- -moz-border-radius-bottomleft:5px;
241
- -moz-border-radius-bottomright:5px;
242
- -webkit-border-bottom-left-radius:5px;
243
- -webkit-border-bottom-right-radius:5px;
244
- }
245
-
246
- .destination {
247
- background-color:#fff;
248
- border-left:1px solid #aaa;
249
- height:100%;
250
- margin-left:200px;
251
- }
252
-
253
- .field {
254
- background:#f0f0f0;
255
- padding:10px;
256
- }
257
-
258
- .image {
259
- cursor:pointer;
260
- }
261
-
262
- .scrollable {
263
- /* height:100%;*/
264
- overflow-x:hidden;
265
- overflow-y:auto;
266
- padding:10px 0;
267
- width:100%;
268
- -moz-box-sizing:border-box;
269
- -ms-box-sizing:border-box;
270
- -webkit-box-sizing:border-box;
271
- }
272
-
273
- .source {
274
- float:left;
275
- height:100%;
276
- overflow-x:hidden;
277
- overflow-y:auto;
278
- width:200px;
279
-
280
- .header {
281
- background-color:transparent !important;
282
- background-image:none !important;
283
- border-width:0 !important;
284
- color:#505d81;
285
- font-weight:bold;
286
- padding:10px 10px 5px 10px;
287
- text-shadow:#f1f5f8 0 1px 0;
288
- text-transform:uppercase;
289
- }
290
-
291
- a {
292
- border-top:1px solid #d9dfe8;
293
- color:#000;
294
- display:block;
295
- padding:5px 5px 5px 20px;
296
- text-decoration:none;
297
- }
298
-
299
- a.active {
300
- background:-webkit-gradient(linear, left top, left bottom, from(#63a4e2), to(#0066c0));
301
- border-top:1px solid #4691d6;
302
- color:#fff;
303
- text-shadow:#000 0 1px 0;
304
- }
305
- }
306
-
307
- .toolbar {
308
- #grandstand > .styled-toolbar;
309
- border-top:1px solid #888;
310
- clear:both;
311
- text-align:right;
312
- -moz-border-radius-bottomleft:5px;
313
- -moz-border-radius-bottomright:5px;
314
- -webkit-border-bottom-left-radius:5px;
315
- -webkit-border-bottom-right-radius:5px;
316
-
317
- .button {
318
- border-color:#888;
319
- }
320
- }
321
- }
322
-
323
- #dialog.large {
324
- margin-left:-450px;
325
- width:900px;
326
- }
327
-
328
- #dialog.medium {
329
- margin-left:-300px;
330
- width:600px;
331
- }