transit 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. data/Gemfile +19 -11
  2. data/app/assets/images/transit/icon24x24.png +0 -0
  3. data/app/assets/images/transit/icon24x24_files.png +0 -0
  4. data/app/assets/images/transit/jplayer.swf +0 -0
  5. data/app/assets/images/transit/uploadify.swf +0 -0
  6. data/app/assets/images/transit/video_player.swf +0 -0
  7. data/app/assets/javascripts/jqtools/expose.js +224 -0
  8. data/app/assets/javascripts/jqtools/flashembed.js +300 -0
  9. data/app/assets/javascripts/jqtools/overlay.js +294 -0
  10. data/app/assets/javascripts/jqtools/scrollable.js +3 -0
  11. data/app/assets/javascripts/jqtools/scrollable/autoscroll.js +81 -0
  12. data/app/assets/javascripts/jqtools/scrollable/base.js +335 -0
  13. data/app/assets/javascripts/jqtools/scrollable/navigator.js +139 -0
  14. data/app/assets/javascripts/jqtools/validator.js +590 -0
  15. data/app/assets/javascripts/jqueryui/accordion.js +611 -0
  16. data/app/assets/javascripts/jqueryui/autocomplete.js +612 -0
  17. data/app/assets/javascripts/jqueryui/button.js +388 -0
  18. data/app/assets/javascripts/jqueryui/core.js +312 -0
  19. data/app/assets/javascripts/jqueryui/datepicker.js +1791 -0
  20. data/app/assets/javascripts/jqueryui/dialog.js +878 -0
  21. data/app/assets/javascripts/jqueryui/draggable.js +815 -0
  22. data/app/assets/javascripts/jqueryui/droppable.js +285 -0
  23. data/app/assets/javascripts/jqueryui/effects/blind.js +49 -0
  24. data/app/assets/javascripts/jqueryui/effects/bounce.js +78 -0
  25. data/app/assets/javascripts/jqueryui/effects/clip.js +54 -0
  26. data/app/assets/javascripts/jqueryui/effects/core.js +746 -0
  27. data/app/assets/javascripts/jqueryui/effects/drop.js +50 -0
  28. data/app/assets/javascripts/jqueryui/effects/explode.js +79 -0
  29. data/app/assets/javascripts/jqueryui/effects/fade.js +32 -0
  30. data/app/assets/javascripts/jqueryui/effects/fold.js +56 -0
  31. data/app/assets/javascripts/jqueryui/effects/highlight.js +50 -0
  32. data/app/assets/javascripts/jqueryui/effects/pulsate.js +51 -0
  33. data/app/assets/javascripts/jqueryui/effects/scale.js +178 -0
  34. data/app/assets/javascripts/jqueryui/effects/shake.js +57 -0
  35. data/app/assets/javascripts/jqueryui/effects/slide.js +50 -0
  36. data/app/assets/javascripts/jqueryui/effects/transfer.js +45 -0
  37. data/app/assets/javascripts/jqueryui/mouse.js +160 -0
  38. data/app/assets/javascripts/jqueryui/position.js +252 -0
  39. data/app/assets/javascripts/jqueryui/progressbar.js +109 -0
  40. data/app/assets/javascripts/jqueryui/resizable.js +814 -0
  41. data/app/assets/javascripts/jqueryui/selectable.js +266 -0
  42. data/app/assets/javascripts/jqueryui/slider.js +666 -0
  43. data/app/assets/javascripts/jqueryui/sortable.js +1077 -0
  44. data/app/assets/javascripts/jqueryui/tabs.js +758 -0
  45. data/app/assets/javascripts/jqueryui/widget.js +262 -0
  46. data/app/assets/javascripts/libs/backbone.js +1152 -0
  47. data/app/assets/javascripts/libs/cookie.js +89 -0
  48. data/app/assets/javascripts/libs/fileinput.js +130 -0
  49. data/app/assets/javascripts/libs/jplayer.js +1768 -0
  50. data/app/assets/javascripts/libs/proper.js +541 -0
  51. data/app/assets/javascripts/libs/sanitize.js +282 -0
  52. data/app/assets/javascripts/libs/selecttolist.js +75 -0
  53. data/app/assets/javascripts/libs/underscore.js +807 -0
  54. data/app/assets/javascripts/libs/uploadify.js +677 -0
  55. data/app/assets/javascripts/libs/wymeditor.js +9538 -0
  56. data/app/assets/javascripts/transit.js +4 -0
  57. data/app/assets/javascripts/transit/admin.js +22 -0
  58. data/app/assets/javascripts/transit/admin/contexts.js +52 -0
  59. data/app/assets/javascripts/transit/admin/fields.js +36 -0
  60. data/app/assets/javascripts/transit/admin/upload.js +109 -0
  61. data/app/assets/javascripts/transit/config.js.erb +101 -0
  62. data/app/assets/javascripts/transit/contexts/audio.js +39 -0
  63. data/app/assets/javascripts/transit/contexts/video.js +79 -0
  64. data/app/assets/javascripts/transit/core.js +171 -0
  65. data/app/assets/javascripts/transit/frontend.js +3 -0
  66. data/app/assets/javascripts/transit/lib/base64.js +120 -0
  67. data/app/assets/javascripts/transit/lib/editor.js +177 -0
  68. data/app/assets/javascripts/transit/views/audio_player.jst +22 -0
  69. data/app/assets/javascripts/transit/views/editor_toolbar.jst +12 -0
  70. data/app/assets/javascripts/transit/views/file_upload.jst +5 -0
  71. data/app/assets/javascripts/transit/views/video_player.jst +20 -0
  72. data/app/assets/javascripts/transit/views/wym_box.jst +4 -0
  73. data/app/assets/javascripts/transit/views/wym_iframe.jst +3 -0
  74. data/app/assets/stylesheets/transit.css.scss.erb +42 -0
  75. data/app/assets/stylesheets/transit/forms.css.scss +66 -0
  76. data/app/assets/stylesheets/transit/media/audio.css.scss +65 -0
  77. data/app/assets/stylesheets/transit/media/video.css.scss +30 -0
  78. data/app/assets/stylesheets/transit/panel.css.scss +100 -0
  79. data/app/assets/stylesheets/transit/ui.css.scss +507 -0
  80. data/app/controllers/pages_controller.rb +3 -0
  81. data/app/controllers/posts_controller.rb +3 -0
  82. data/app/controllers/transit/assets_controller.rb +38 -0
  83. data/app/controllers/transit/contexts_controller.rb +12 -9
  84. data/app/controllers/transit/pages_controller.rb +26 -0
  85. data/app/controllers/transit/posts_controller.rb +31 -0
  86. data/app/controllers/transit/topics_controller.rb +5 -0
  87. data/app/controllers/transit_controller.rb +16 -0
  88. data/app/helpers/transit/admin_helper.rb +43 -0
  89. data/app/helpers/transit/form_helper.rb +17 -0
  90. data/app/helpers/transit/package_helper.rb +41 -0
  91. data/app/helpers/transit/pagination_helper.rb +58 -0
  92. data/app/helpers/transit_helper.rb +42 -0
  93. data/app/models/comment.rb +37 -0
  94. data/app/models/contexts/audio.rb +12 -0
  95. data/app/models/{text.rb → contexts/text.rb} +0 -0
  96. data/app/models/contexts/video.rb +24 -0
  97. data/app/models/topic.rb +19 -0
  98. data/app/models/transit/asset.rb +68 -0
  99. data/{lib → app/models}/transit/context.rb +29 -0
  100. data/app/views/contexts/_text.html.erb +1 -1
  101. data/app/views/posts/index.rss.builder +18 -0
  102. data/app/views/transit/assets/_file.html.erb +4 -0
  103. data/app/views/transit/assets/_image.html.erb +13 -0
  104. data/app/views/transit/assets/create.js.erb +8 -0
  105. data/app/views/transit/assets/destroy.js.erb +3 -0
  106. data/app/views/transit/assets/manage.html.erb +20 -0
  107. data/app/views/transit/contexts/_audio.html.erb +18 -0
  108. data/app/views/transit/contexts/_text.html.erb +6 -0
  109. data/app/views/transit/contexts/_video.html.erb +13 -0
  110. data/app/views/transit/contexts/destroy.js.erb +1 -0
  111. data/app/views/transit/contexts/index.html.erb +5 -0
  112. data/app/views/transit/contexts/new.js.erb +7 -0
  113. data/app/views/transit/contexts/show.html.erb +8 -0
  114. data/app/views/transit/index.html.erb +26 -0
  115. data/app/views/transit/index.js.erb +1 -0
  116. data/app/views/transit/interface/post_panel.html.erb +96 -0
  117. data/app/views/transit/pages/_table.html.erb +7 -0
  118. data/app/views/transit/pages/edit.html.erb +17 -0
  119. data/app/views/transit/pages/index.html.erb +17 -0
  120. data/app/views/transit/pages/update.js.erb +1 -0
  121. data/app/views/transit/posts/_form.html.erb +49 -0
  122. data/app/views/transit/posts/edit.html.erb +14 -0
  123. data/app/views/transit/posts/new.html.erb +21 -0
  124. data/app/views/transit/table.html.erb +13 -0
  125. data/app/views/transit/table.js.erb +8 -0
  126. data/app/views/transit/topics/manage.html.erb +28 -0
  127. data/config/locales/en.yml +22 -0
  128. data/config/routes.rb +3 -3
  129. data/lib/transit.rb +51 -17
  130. data/lib/transit/admin.rb +85 -0
  131. data/lib/transit/builders/form_builder.rb +319 -0
  132. data/lib/transit/builders/jst_builder.rb +38 -0
  133. data/lib/transit/builders/package_builder.rb +45 -0
  134. data/lib/transit/config.rb +20 -0
  135. data/lib/transit/controller/generator.rb +42 -0
  136. data/lib/transit/controller/responder.rb +34 -0
  137. data/lib/transit/core_ext.rb +18 -0
  138. data/lib/transit/errors/resource_not_found.rb +6 -0
  139. data/lib/transit/model/assets.rb +14 -0
  140. data/lib/transit/model/attachments.rb +55 -0
  141. data/lib/transit/model/auto_increment.rb +22 -0
  142. data/lib/transit/model/base.rb +56 -0
  143. data/lib/transit/model/comments.rb +19 -0
  144. data/lib/transit/model/hooks.rb +38 -0
  145. data/lib/transit/model/owners.rb +14 -0
  146. data/lib/transit/model/paginator.rb +92 -0
  147. data/lib/transit/model/topics.rb +14 -0
  148. data/lib/transit/package/page.rb +20 -12
  149. data/lib/transit/package/post.rb +87 -33
  150. data/lib/transit/package/post/validations.rb +14 -0
  151. data/lib/transit/rails/engine.rb +29 -13
  152. data/lib/transit/rails/railtie.rb +31 -0
  153. data/lib/transit/rails/routing.rb +11 -6
  154. data/lib/transit/services.rb +13 -0
  155. data/lib/transit/services/base.rb +14 -0
  156. data/lib/transit/services/facebook.rb +13 -0
  157. data/lib/transit/services/ted.rb +10 -0
  158. data/lib/transit/services/twitter.rb +13 -0
  159. data/lib/transit/services/vimeo.rb +10 -0
  160. data/lib/transit/services/you_tube.rb +12 -0
  161. data/lib/transit/version.rb +1 -1
  162. metadata +178 -31
  163. data/app/assets/stylesheets/includes/_compat.scss +0 -24
  164. data/app/assets/stylesheets/includes/_defaults.scss +0 -99
  165. data/app/assets/stylesheets/includes/_global.scss +0 -16
  166. data/app/assets/stylesheets/includes/_imports.scss +0 -27
  167. data/app/assets/stylesheets/includes/_mixins.scss +0 -38
  168. data/app/assets/stylesheets/includes/_setup.scss +0 -85
  169. data/app/assets/stylesheets/layout.css.scss +0 -29
  170. data/app/assets/stylesheets/transit.css +0 -3
  171. data/app/controllers/application_controller.rb +0 -5
  172. data/app/controllers/transit/index_controller.rb +0 -7
  173. data/app/controllers/transit/packages_controller.rb +0 -64
  174. data/app/controllers/transit/transit_controller.rb +0 -4
  175. data/app/helpers/routing_helpers.rb +0 -7
  176. data/app/models/audio.rb +0 -4
  177. data/app/models/package_asset.rb +0 -11
  178. data/app/models/video.rb +0 -8
  179. data/app/views/contexts/_audio.html.erb +0 -1
  180. data/app/views/contexts/_video.html.erb +0 -1
  181. data/app/views/layouts/transit.html.erb +0 -31
  182. data/app/views/transit/index/index.html.erb +0 -0
  183. data/lib/transit/helpers/controller_helpers.rb +0 -40
  184. data/lib/transit/helpers/model_helpers.rb +0 -26
  185. data/lib/transit/package.rb +0 -25
  186. data/lib/transit/package/base.rb +0 -49
@@ -0,0 +1,22 @@
1
+ <div id="transit_media_interface_<%= uid %>" class="media-interface media-interface-audio">
2
+ <ul class="media-controls">
3
+ <li><a href="#" class="media-play" tabindex="1">play</a></li>
4
+ <li><a href="#" class="media-pause" tabindex="1">pause</a></li>
5
+ <li><a href="#" class="media-stop" tabindex="1">stop</a></li>
6
+ <li><a href="#" class="media-mute" tabindex="1">mute</a></li>
7
+ <li><a href="#" class="media-unmute" tabindex="1">unmute</a></li>
8
+ </ul>
9
+ <div class='media-video-play'></div>
10
+ <div class="media-progress">
11
+ <div class="media-seek-bar">
12
+ <div class="media-play-bar"></div>
13
+ </div>
14
+ </div>
15
+ <div class='media-volume-bar-container'>
16
+ <div class="media-volume-bar">
17
+ <div class="media-volume-bar-value"></div>
18
+ </div>
19
+ </div>
20
+ <div class="media-current-time"></div>
21
+ <div class="media-duration"></div>
22
+ </div>
@@ -0,0 +1,12 @@
1
+ <div class="transit_editor_toolbar">
2
+ <ul>
3
+ <% _.each(buttons, function( value, key, list ){ %>
4
+ <li>
5
+ <a href="#" class="<%= key %> transit_editor_button" rel="<%= key %>" title="<%= value.title %>">
6
+ <%= value.title %>
7
+ </a>
8
+ </li>
9
+ <% }); %>
10
+ </ul>
11
+ <div id='transit_editor_toolbar_action'></div>
12
+ </div>
@@ -0,0 +1,5 @@
1
+ <div id="file_uploader">
2
+ <div id="file_upload_queue">
3
+ </div>
4
+ <input type="file" name="<%= field_name %>" value="" id="<%= field_id %>" />
5
+ </div>
@@ -0,0 +1,20 @@
1
+ <div id="transit_media_interface_<%= uid %>" class="media-interface media-interface-video">
2
+ <div class="media-video-play"></div>
3
+ <ul class="media-controls">
4
+ <li><a href="#" class="media-play" tabindex="1">play</a></li>
5
+ <li><a href="#" class="media-pause" tabindex="1">pause</a></li>
6
+ <li><a href="#" class="media-stop" tabindex="1">stop</a></li>
7
+ <li><a href="#" class="media-mute" tabindex="1">mute</a></li>
8
+ <li><a href="#" class="media-unmute" tabindex="1">unmute</a></li>
9
+ </ul>
10
+ <div class="media-progress">
11
+ <div class="media-seek-bar">
12
+ <div class="media-play-bar"></div>
13
+ </div>
14
+ </div>
15
+ <div class="media-volume-bar">
16
+ <div class="media-volume-bar-value"></div>
17
+ </div>
18
+ <div class="media-current-time"></div>
19
+ <div class="media-duration"></div>
20
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class='wym_box'>
2
+ <div class='wym_area_main'><%= iframe %></div>
3
+ <div class='wym_area_bottom'></div>
4
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class='wym_iframe wym_section'>
2
+ <iframe src='javascript:false;' onload='this.contentWindow.parent.WYMeditor.INSTANCES[<%= frame_index %>].initIframe(this)'></iframe>
3
+ </div>
@@ -0,0 +1,42 @@
1
+ /*
2
+ *= require_self
3
+ */
4
+
5
+ @mixin transit_icon24($row:1, $bgx:0px, $offset:0px){
6
+ background-image:url(<%= asset_path 'transit/icon24x24.png' %>); background-repeat:no-repeat;
7
+ $y: (($row - 1) * -24px) + $offset;
8
+ background-position:$bgx $y;
9
+ }
10
+
11
+ @mixin transit_fileIcon($row:1, $bgx:0px, $offset:0px){
12
+ background-image:url(<%= asset_path 'transit/icon24x24_files.png' %>); background-repeat:no-repeat;
13
+ $y: (($row - 1) * -24px) + $offset;
14
+ background-position:$bgx $y;
15
+ }
16
+
17
+ a[href$='.zip'], a[href$='.rar'], a[href$='.gzip']{
18
+ @include transit_fileIcon(6);
19
+ }
20
+
21
+ a[href$='.wav'], a[href$='.mp3'], a.file_icon_audio{ @include transit_fileIcon(7); }
22
+ a[href$='.mp4'], a[href$='.wmv'], a[href$='.mov'], a[href$='.mpeg'], a.file_icon_video{ @include transit_fileIcon(8); }
23
+ a[href$='.swf'], a[href$='.flv'], a[href$='.fla'], a.file_icon_flash{ @include transit_fileIcon(9); }
24
+ a[href$='.pdf'], a.file_icon_pdf{ @include transit_fileIcon(1); }
25
+ a[href$='.doc'], a[href$='.docx'], a.file_icon_word{ @include transit_fileIcon(2); }
26
+ a[href$='.csv'], a[href$='.xls'], a[href$='.xlsx'], a.file_icon_excel{ @include transit_fileIcon(3); }
27
+ a[href$='.ppt'], a[href$='.pptx'], a[href$='.key'], a.file_icon_powerpoint{ @include transit_fileIcon(4); }
28
+ a[href$='.tif'], a[href$='.tiff'], a[href$='.bmp'], a.file_icon_image{ @include transit_fileIcon(5); }
29
+ a[href$='.eps'], a[href$='.ai'], a.file_icon_vector{ @include transit_fileIcon(10); }
30
+
31
+ @mixin iconSquare($size:32){
32
+ display:block; width:#{$size}px; height:#{$size}px; text-indent:-9999em;
33
+ }
34
+
35
+ @import 'blueprint/grid';
36
+ @import 'blueprint/typography';
37
+ @import "compass/typography/lists";
38
+ @import "compass/css3/border-radius";
39
+ @import "transit/forms";
40
+ @import "transit/panel";
41
+ @import "includes/transit";
42
+ @import "transit/ui";
@@ -0,0 +1,66 @@
1
+ ul#context_list{ padding:0; width:100%; list-style-type:none; margin:0;
2
+ li.field{ padding:.5em; position:relative; border:1px dashed #ccc; margin-bottom:1em; overflow:visible;
3
+ textarea{ background:transparent; border:none; }
4
+ a.icon_delete{ @include iconSquare(24); }
5
+ }
6
+ li.field_video{ text-align:center;
7
+ *{ text-align:left; }
8
+ div.video_player{ margin:0px auto 2em auto; height:320px; }
9
+ }
10
+ li.field_audio{ text-align:center;
11
+ *{ text-align:left; }
12
+ div.audio_player{ width:360px; margin:1em auto; }
13
+ }
14
+ li.field_video, li.field_audio{
15
+ div.toolbar{ height:200px; width:400px;
16
+ ol{ list-style-type:none; @include pie-clearfix; padding:.25em; margin-bottom:1em;
17
+ li{ padding:0; margin:0; }
18
+ label, input, select{ display:inline !important; }
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ div.transit_editor_toolbar{ padding:0; text-align:left; display:block !important; margin-bottom:10px;
25
+ ul{ list-style-type:none; margin:0; padding:3px; border:1px solid #eee; white-space:nowrap; @include pie-clearfix; overflow:visible;
26
+ li{ margin:0px 2px; padding:0px; display:block; float:left;
27
+ a{ @include iconSquare(24); border:1px solid #ccc; background-color:white;
28
+ &:focus, &:active{ outline:none; }
29
+ }
30
+ a:hover{ background-color:#DCF5F9; border:1px solid darken(#DCF5F9, 10%); }
31
+ a:active { background-color:#aaa; border: 1px solid darken(#aaa, 5%); }
32
+ a.bold { @include transit_icon24(8); }
33
+ a.italic { @include transit_icon24(7); }
34
+ a.underline { @include transit_icon24(9); }
35
+ a.undo { @include transit_icon24(15); }
36
+ a.redo { @include transit_icon24(16); }
37
+ a.ordered_list { @include transit_icon24(11); }
38
+ a.unordered_list { @include transit_icon24(10); }
39
+ a.cut { @include transit_icon24(12); }
40
+ a.copy { @include transit_icon24(13); }
41
+ a.paste { @include transit_icon24(14); }
42
+ a.unlink { @include transit_icon24(28); }
43
+ a.insert_link { @include transit_icon24(5); }
44
+ a.insert_image { @include transit_icon24(6); }
45
+ }
46
+ li.separator { width:1px; height:24px; background: #555; border:none !important; }
47
+ }
48
+ }
49
+
50
+ div.transit_context_dialog{ text-align:left;
51
+ div.ui-dialog-titlebar{ padding:0 1em; height:20px; line-height:20px; font-size:11px;
52
+ span.ui-dialog-title{ display:inline; margin:0; padding:0; }
53
+ }
54
+ }
55
+ div.wym_iframe{
56
+ iframe{ width:100%; }
57
+ }
58
+
59
+ *.transit-editable{ outline:1px dashed #dedede;
60
+ &:focus, &:active{ outline:none; }
61
+ }
62
+
63
+ #edit_post_form{ @include column(14); }
64
+ #new_post_teaser{ width:98%; height:100px; border:1px dashed #ccc; font:1em $blueprint-font-family; background:transparent !important; }
65
+ #new_post_help_note{ font-style:italic; font-size:.95em; }
66
+ #transit_admin_help{ display:none; }
@@ -0,0 +1,65 @@
1
+ @import "compass/css3/border-radius";
2
+ @import "compass/css3/gradient";
3
+ @import "compass/css3/pie";
4
+ @import "compass/typography/lists";
5
+
6
+
7
+ @mixin transit-audio-player($bg-image, $font-color:#fff, $bg-color:#000){
8
+ font-size: 1em; color: $font-color; line-height: 1.6; width: 360px; height:30px; position:relative;
9
+
10
+ div.player_instance{ height:100%; width:100%; }
11
+ div.media-interface-audio { height:30px; width:100%; background: $bg-color url($bg-image) 0 -210px;
12
+ @include border-radius(3px); position:absolute; top:0px; left:0px;
13
+ ul.media-controls { @include inline-block-list; height:100%;
14
+ a{ position: absolute; overflow: hidden; text-indent: -9999px; background-image:url($bg-image); background-repeat:no-repeat;
15
+ &.media-play { background-position:0px 0px;
16
+ &:hover{ background-position:-33px 0; }
17
+ }
18
+ &.media-pause { background-position:0 -30px; display: none;
19
+ &:hover { background-position:-33px -30px; }
20
+ }
21
+ &.media-play, &.media-pause { width: 33px; height: 30px; z-index: 1; outline: none;
22
+ top:0px; left:0px; border-right:1px solid lighten($bg-color, 10%);
23
+ }
24
+ &.media-mute, &.media-unmute { width: 17px; height: 13px; z-index: 1; outline: none; top: 9px; left: 290px;
25
+ background-image:url($bg-image); background-repeat:no-repeat;
26
+ }
27
+ &.media-mute { background-position:-10px -68px;
28
+ &:hover { background-position:-43px -68px; }
29
+ }
30
+ &.media-unmute { background-position:-10px -98px; display: none;
31
+ &:hover { background-position:-43px -98px; }
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ div{
38
+ &.media-progress { position: absolute; overflow: hidden;
39
+ position: absolute; top: 0; left: 34px; width: 225px; height: 6px; padding: 12px 10px;
40
+ border-left: 1px solid darken($bg-color, 10%); border-right: 1px solid darken($bg-color, 10%);
41
+ }
42
+ &.media-audio div.media-type-single div.media-progress { width:175px;
43
+ height: 7px; padding: 1px; background: url($bg-image) 0 -192px repeat-x; }
44
+ &.media-seek-bar { width: 0px; height: 5px; cursor: pointer;
45
+ background: url($bg-image) 0 -163px repeat-x; @include border-radius(1px); }
46
+ &.media-play-bar { width: 0px; height: 5px; background: url($bg-image) 0 -133px repeat-x;
47
+ @include border-radius(1px);
48
+ }
49
+ &.media-volume-bar-container { position: absolute; top: 0; left: 281px; width: 40px; height: 6px;
50
+ padding: 12px 10px; border-left: 1px solid lighten($bg-color, 10%); }
51
+ &.media-volume-bar { position: relative; overflow: hidden; top:0px; left: 20px;
52
+ background: url($bg-image) 0 -192px repeat-x; width: 40px; height: 9px; cursor: pointer; }
53
+ &.media-volume-bar-value { width: 0px; height: 5px; margin: 1px; background: url($bg-image) 0 -133px repeat-x;
54
+ @include border-radius(1px);
55
+ }
56
+ }
57
+
58
+ div.media-current-time{ display:none; }
59
+ div.media-duration{ display:none; }
60
+ /* The seeking class is added/removed inside jPlayer
61
+ div.media-seeking-bg {
62
+ background: url("pbar-ani.gif");
63
+ }
64
+ */
65
+ }
@@ -0,0 +1,30 @@
1
+ @import "compass/css3/border-radius";
2
+ @import "compass/css3/gradient";
3
+ @import "compass/css3/pie";
4
+ @import "compass/typography/lists";
5
+
6
+
7
+ @mixin transit-video-player($bg-image){ position:relative;
8
+ div.media-video { font-size: 1em; line-height: 1.6; }
9
+ div.media-interface { position:absolute; bottom:0px; left:0px; width:100%; height:40px; }
10
+ div.media-interface ul.media-controls { @include inline-block-list; height:100%; padding:0px 10px; position:relative;
11
+ li{ margin:0 3px 0 0; }
12
+ li:first-child{ width:30px; }
13
+
14
+ a { overflow:hidden; text-indent: -9999px; display:block;
15
+ &.media-play, &.media-pause, &.media-mute, &.media-unmute{ height:30px; width:30px; z-index: 1;
16
+ @include border-radius(3px); background-image:url($bg-image); background-repeat:no-repeat; position:absolute;
17
+ }
18
+ &.media-stop{ display:none; }
19
+ &.media-play{ background-position:0px 0px;
20
+ &:hover{ background-position:-41px 0px; }
21
+ }
22
+ &.media-pause{ background-position:0px -42px;
23
+ &:hover{ background-position:-41px -42px; }
24
+ }
25
+ &.media-play, &.media-pause{ top:4px; left:10px; }
26
+ &.media-mute, &.media-unmute{ top:4px; left:45px; }
27
+ }
28
+ }
29
+
30
+ }
@@ -0,0 +1,100 @@
1
+ #transit_admin_panel{ @include column(9, true); float:right; clear:none !important; padding:10px;
2
+ #post_meta{
3
+ h4.published{ padding:.5em; margin-bottom:1em; border:1px solid #ddd; position:relative;
4
+ input{ position:absolute; top:.5em; right:1em; }
5
+ }
6
+ #post_primary_image{ border-bottom:1px dashed #ddd; @include pie-clearfix; padding-bottom:1em; margin-bottom:1em;
7
+ h4{ margin-bottom:1em; }
8
+ span.primary_image_holder{ display:block; float:left; height:50px; width:50px; border:1px solid #ccc; background:#dedede;
9
+ margin:0 1em .5em 0;
10
+ }
11
+ img{ width:50px; }
12
+ span.image_options{ width:70%; display:block; float:left; }
13
+ div.fileinput-wrapper { position:relative; @include inline-block; overflow:hidden; padding:0;
14
+ span.fileinput-input, span.fileinput-button{
15
+ float:left; height:25px; padding:0px 5px; overflow:hidden; white-space:nowrap; line-height:25px;
16
+ }
17
+ span.fileinput-input{ width:150px; background:none !important; border:1px dashed #ccc !important; color:#333 !important; }
18
+ span.fileinput-button { overflow:hidden; white-space:nowrap; width:20px; @include border-radius(3px);
19
+ span.fileinput-button-text{ @extend .ui-icon; @extend .ui-icon-plusthick; position:relative; top:4px; left:2px; }
20
+ }
21
+
22
+ input.fileinput-file { position:absolute; left:-9999px; -moz-opacity:0; filter:alpha(opacity=0); opacity:0;}
23
+ }
24
+ }
25
+ }
26
+ #transit_admin_panel_wrapper{ border:none; padding:0px;
27
+ h4{ margin:0; }
28
+ #post_teaser{ width:95%; height:125px; }
29
+ }
30
+ #datepicker_target{ height:1px; overflow:hidden; }
31
+ div.datepicker{ width:100%; margin-bottom:1em;
32
+ div.ui-datepicker-inline, table{ width:100%; }
33
+ }
34
+ #post_topics{
35
+ ol, ul{ list-style-type:none; margin-right:0px; padding:0px; }
36
+ }
37
+ #topic_selections{
38
+ li{ display:block; height:25px; line-height:25px; position:relative; @extend .ui-state-hover; padding:0px;
39
+ text-indent:1em; margin-bottom:5px;
40
+ a.remove_from_list{ position:absolute; right:0px; top:0px;
41
+ display:block; @include transit_icon24(2); @include iconSquare(24);
42
+ }
43
+ }
44
+ }
45
+ #post_assets{ position:relative; padding-top:1.5em;
46
+ #upload_file_link{ position:absolute; top:1em; right:1em; }
47
+ h4.primary{ margin-bottom:1em; }
48
+ ul{ list-style-type:none; margin:0 0 1em 0; padding:0px; @include pie-clearfix;
49
+ li.header{ border-top:1px dashed #ccc; padding:.75em 0px .5em 0px; border-bottom:1px dashed #ccc; margin-bottom:.5em; }
50
+ li{ display:block; position:relative;
51
+ span.add_heading{ font-weight:bold !important; display:block; }
52
+ ul{ list-style-type:none; @include inline-block-list;
53
+ li{ padding-left:3px; border-left:1px solid #ccc; margin-right:2px; }
54
+ li:first-child{ padding-left:0; border-left:0; }
55
+ }
56
+ }
57
+ }
58
+ #asset_image_list{
59
+ span.image_asset_holder{ position:relative; display:block; float:left; margin-right:1em;
60
+ border:1px solid #ccc; width:50px; height:50px;
61
+ }
62
+ a.icon_delete{ position:absolute; bottom:-1px; left:-1px; background-color:white; border:1px solid #ccc; }
63
+ }
64
+ #asset_file_list{
65
+ li.file{ position:relative; padding:2px 0px; border-bottom:1px dotted #dedede; }
66
+ a{ display:block; height:25px; line-height:25px; text-indent:25px; }
67
+ a.icon_delete{ position:absolute; top:0px; right:0px; @include iconSquare(24); }
68
+ }
69
+ }
70
+ #post_contexts{
71
+ h4{ margin-bottom:.5em; }
72
+ ul{ padding:0px; margin:0px; }
73
+ li.icon_text a{ @include transit_icon24(17); }
74
+ li.icon_video a{ @include transit_icon24(18); }
75
+ li.icon_audio a{ @include transit_icon24(20); }
76
+ li{ display:block; margin:0 0 .5em 0; padding:0; }
77
+ a{ display:block; text-indent:30px; height:25px; line-height:25px; @extend .ui-state-hover; font-weight:bold; }
78
+ }
79
+ a.icon_delete{ @include transit_icon24(2, -2px, -2px); @include iconSquare(20); }
80
+ }
81
+
82
+ #file_uploader{
83
+ #file_upload_queue{ padding:50px 0px 0px 0px; margin-right:0px;
84
+ div.uploadifyQueueItem{ padding-right:30px; position:relative;
85
+ div.uploadifyProgress{ height:5px; width:100%;
86
+ div.ui-progressbar-value{ height:100%; }
87
+ }
88
+ span.fileName{ position:relative; display:block; text-indent:5px; height:24px; line-height:24px; z-index:1000; }
89
+ span.data{ display:none; }
90
+ div.cancel{ position:absolute; top:0px; right:0px;
91
+ a{ @include iconSquare(24); @include transit_icon24(2); }
92
+ img{ display:none; }
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ #transit_admin_panel_buttons{ @include inline-block-list; text-align:right; padding:5px; position:absolute; top:0px; right:1em;
99
+ a, button{ font-size:1.15em; font-weight:bold; text-align:left; }
100
+ }
@@ -0,0 +1,507 @@
1
+ @import 'compass/css3/border-radius';
2
+ @import 'compass/css3/opacity';
3
+ @import "blueprint/utilities";
4
+
5
+ $ui-font-family:'Helvetica Nueue', Helvetica, sans-serif, sans-serif !default;
6
+ $ui-font-weight:normal !default;
7
+ $ui-font-size:1em !default;
8
+ $ui-corner-radius:4px !default;
9
+ $ui-image-path:'/images/ui' !default;
10
+
11
+ $ui-header-bg-color:#333 !default;
12
+ $ui-header-bg-image:"#{$ui-image-path}/ui-bg_diagonals-thick_8_333333_40x40.png" !default;
13
+ $ui-header-border-color:#a3a3a3 !default;
14
+ $ui-header-text-color:#eee !default;
15
+ $ui-header-icon-color:#bbbbbb !default;
16
+
17
+ $ui-content-bg-color:#f9f9f9 !default;
18
+ $ui-content-bg-image:"#{$ui-image-path}/ui-bg_flat_65_ffffff_40x100.png" !default;
19
+ $ui-content-border-color:#ccc !default;
20
+ $ui-content-text-color:#222 !default;
21
+ $ui-content-icon-color:#222222 !default;
22
+
23
+ $ui-default-bg-color:#333 !default;
24
+ $ui-default-bg-image:"#{$ui-image-path}/ui-bg_flat_40_333333_40x100.png" !default;
25
+ $ui-default-border-color:#222 !default;
26
+ $ui-default-text-color:#e3e3e3 !default;
27
+ $ui-default-icon-color:#ededed !default;
28
+
29
+ $ui-hover-bg-color:#111111 !default;
30
+ $ui-hover-bg-image:"#{$ui-image-path}/ui-bg_flat_55_111111_40x100.png" !default;
31
+ $ui-hover-border-color:#000000 !default;
32
+ $ui-hover-text-color:#ffffff !default;
33
+ $ui-hover-icon-color:#ffffff !default;
34
+
35
+ $ui-active-bg-color:#dbd7d7 !default;
36
+ $ui-active-bg-image:"#{$ui-image-path}/ui-bg_flat_65_ffffff_40x100.png" !default;
37
+ $ui-active-border-color:#cccccc !default;
38
+ $ui-active-text-color:#222222 !default;
39
+ $ui-active-icon-color:#222222 !default;
40
+
41
+ $ui-highlight-bg-color:#d15245 !default;
42
+ $ui-highlight-bg-image:"#{$ui-image-path}/ui-bg_flat_55_d15245_40x100.png" !default;
43
+ $ui-highlight-border-color:darken($ui-highlight-bg-color, 5%) !default;
44
+ $ui-highlight-text-color:#ffffff !default;
45
+ $ui-highlight-icon-color:#ffffff !default;
46
+
47
+ $ui-error-bg-color:#cd0a0a !default;
48
+ $ui-error-bg-image:"#{$ui-image-path}/ui-bg_inset-hard_45_cd0a0a_1x100.png" !default;
49
+ $ui-error-border-color:#9e0505 !default;
50
+ $ui-error-text-color:#ffffff !default;
51
+ $ui-error-icon-color:#ffcf29 !default;
52
+
53
+ $ui-overlay-bg-color:#777 !default;
54
+ $ui-overlay-bg-image:"#{$ui-image-path}/ui-bg_highlight-hard_40_aaaaaa_1x100.png" !default;
55
+ $ui-overlay-opacity:30 !default;
56
+
57
+ $ui-shadow-bg-color:#aaaaaa !default;
58
+ $ui-shadow-bg-image:"#{$ui-image-path}/ui-bg_highlight-soft_50_aaaaaa_1x100.png" !default;
59
+ $ui-shadow-opacity:20 !default;
60
+ $ui-shadow-thickness:8px !default;
61
+ $ui-shadow-top-offset:-8px !default;
62
+ $ui-shadow-left-offset:-8px !default;
63
+ $ui-shadow-corners:10px !default;
64
+
65
+ $ui-icon-base-path:'/images/ui' !default;
66
+ $ui-icons:"#{$ui-icon-base-path}/ui-icons_222222_256x240.png" !default;
67
+ $ui-content-icons:"#{$ui-icon-base-path}/ui-icons_222222_256x240.png" !default;
68
+ $ui-header-icons:"#{$ui-icon-base-path}/ui-icons_bbbbbb_256x240.png" !default;
69
+ $ui-default-icons:"#{$ui-icon-base-path}/ui-icons_ededed_256x240.png" !default;
70
+ $ui-hover-icons:"#{$ui-icon-base-path}/ui-icons_ffffff_256x240.png" !default;
71
+ $ui-active-icons:"#{$ui-icon-base-path}/ui-icons_222222_256x240.png" !default;
72
+ $ui-highlight-icons:"#{$ui-icon-base-path}/ui-icons_ffffff_256x240.png" !default;
73
+ $ui-error-icons:"#{$ui-icon-base-path}/ui-icons_ffcf29_256x240.png" !default;
74
+
75
+ /////////////////////////////////
76
+ // Component containers
77
+ /////////////////////////////////
78
+ .ui-widget { font-family: $ui-font-family; font-size: $ui-font-size;
79
+ .ui-widget { font-size: 1em ; }
80
+ }
81
+ .ui-widget
82
+ .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: $ui-font-family; font-size:1em; }
83
+ .ui-widget-content { border: 1px solid $ui-content-border-color; background:$ui-content-bg-color url($ui-content-bg-image) 50% top repeat-x; color: $ui-content-text-color;
84
+ a { color: $ui-content-text-color; }
85
+ }
86
+ .ui-widget-header { border: 1px solid $ui-header-border-color; background:$ui-header-bg-color url($ui-header-bg-image) 50% 50% repeat; color:$ui-header-text-color; font-weight:$ui-font-weight;
87
+ a { color:$ui-header-text-color; }
88
+ }
89
+
90
+ /////////////////////////////////
91
+ // Interaction states
92
+ /////////////////////////////////
93
+ .ui-state-default, .ui-widget-content .ui-state-default,
94
+ .ui-widget-header .ui-state-default {
95
+ border: 1px solid $ui-default-border-color;
96
+ background:$ui-default-bg-color url($ui-default-bg-image) 50% 50% repeat-x;
97
+ font-weight: normal; color:$ui-default-text-color;
98
+ }
99
+
100
+ .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color:$ui-default-text-color; text-decoration: none; }
101
+
102
+ .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover,
103
+ .ui-state-focus, .ui-widget-content .ui-state-focus,
104
+ .ui-widget-header .ui-state-focus { border: 1px solid $ui-hover-border-color;
105
+ background:$ui-hover-bg-color url($ui-hover-bg-image) 50% 50% repeat-x; font-weight: normal; color:$ui-hover-text-color; }
106
+
107
+ .ui-state-hover a, .ui-state-hover a:hover { color:$ui-hover-text-color; text-decoration: none; }
108
+ .ui-state-active, .ui-widget-content .ui-state-active,
109
+ .ui-widget-header .ui-state-active { border: 1px solid $ui-active-border-color; background:$ui-active-bg-color url($ui-active-bg-image) 50% 50% repeat-x;
110
+ font-weight: normal; color:$ui-active-text-color; }
111
+
112
+ .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color:$ui-active-text-color; text-decoration: none; }
113
+ .ui-widget :active { outline: none; }
114
+
115
+ /////////////////////////////////
116
+ // Interaction Cues
117
+ /////////////////////////////////
118
+ .ui-state-highlight, .ui-widget-content .ui-state-highlight,
119
+ .ui-widget-header .ui-state-highlight { border: 1px solid $ui-highlight-border-color; background:$ui-highlight-bg-color url($ui-highlight-bg-image) 50% 50% repeat-x; color:$ui-highlight-text-color; }
120
+ .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color:$ui-highlight-text-color; }
121
+
122
+ .ui-state-error, .ui-widget-content .ui-state-error,
123
+ .ui-widget-header .ui-state-error {border: 1px solid $ui-error-border-color; background:$ui-error-bg-color url($ui-error-bg-image) 50% bottom repeat-x; color:$ui-error-text-color; }
124
+
125
+ .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color:$ui-error-text-color; }
126
+ .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color:$ui-error-text-color; }
127
+
128
+ .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
129
+
130
+ .ui-priority-secondary, .ui-widget-content .ui-priority-secondary,
131
+ .ui-widget-header .ui-priority-secondary{ opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
132
+
133
+ .ui-state-disabled, .ui-widget-content .ui-state-disabled,
134
+ .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
135
+
136
+ /////////////////////////////////
137
+ // Icons
138
+ /////////////////////////////////
139
+
140
+ /* states and images */
141
+ .ui-icon { width: 16px; height: 16px; background-image: url($ui-icons);
142
+ display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat;
143
+ }
144
+ .ui-widget-content .ui-icon {background-image: url($ui-content-icons); }
145
+ .ui-widget-header .ui-icon {background-image: url($ui-header-icons); }
146
+ .ui-state-default .ui-icon { background-image: url($ui-default-icons); }
147
+ .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url($ui-hover-icons); }
148
+ .ui-state-active .ui-icon {background-image: url($ui-active-icons); }
149
+ .ui-state-highlight .ui-icon {background-image: url($ui-highlight-icons); }
150
+ .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url($ui-error-icons); }
151
+
152
+ .ui-icon-red .ui-icon{ background-image:url("#{$ui-image-path}/ui-red.png"); }
153
+ .ui-icon-green .ui-icon{ background-image:url("#{$ui-image-path}/ui-green.png"); }
154
+
155
+ /* positioning */
156
+ .ui-icon-carat-1-n { background-position: 0 0; }
157
+ .ui-icon-carat-1-ne { background-position: -16px 0; }
158
+ .ui-icon-carat-1-e { background-position: -32px 0; }
159
+ .ui-icon-carat-1-se { background-position: -48px 0; }
160
+ .ui-icon-carat-1-s { background-position: -64px 0; }
161
+ .ui-icon-carat-1-sw { background-position: -80px 0; }
162
+ .ui-icon-carat-1-w { background-position: -96px 0; }
163
+ .ui-icon-carat-1-nw { background-position: -112px 0; }
164
+ .ui-icon-carat-2-n-s { background-position: -128px 0; }
165
+ .ui-icon-carat-2-e-w { background-position: -144px 0; }
166
+ .ui-icon-triangle-1-n { background-position: 0 -16px; }
167
+ .ui-icon-triangle-1-ne { background-position: -16px -16px; }
168
+ .ui-icon-triangle-1-e { background-position: -32px -16px; }
169
+ .ui-icon-triangle-1-se { background-position: -48px -16px; }
170
+ .ui-icon-triangle-1-s { background-position: -64px -16px; }
171
+ .ui-icon-triangle-1-sw { background-position: -80px -16px; }
172
+ .ui-icon-triangle-1-w { background-position: -96px -16px; }
173
+ .ui-icon-triangle-1-nw { background-position: -112px -16px; }
174
+ .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
175
+ .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
176
+ .ui-icon-arrow-1-n { background-position: 0 -32px; }
177
+ .ui-icon-arrow-1-ne { background-position: -16px -32px; }
178
+ .ui-icon-arrow-1-e { background-position: -32px -32px; }
179
+ .ui-icon-arrow-1-se { background-position: -48px -32px; }
180
+ .ui-icon-arrow-1-s { background-position: -64px -32px; }
181
+ .ui-icon-arrow-1-sw { background-position: -80px -32px; }
182
+ .ui-icon-arrow-1-w { background-position: -96px -32px; }
183
+ .ui-icon-arrow-1-nw { background-position: -112px -32px; }
184
+ .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
185
+ .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
186
+ .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
187
+ .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
188
+ .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
189
+ .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
190
+ .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
191
+ .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
192
+ .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
193
+ .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
194
+ .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
195
+ .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
196
+ .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
197
+ .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
198
+ .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
199
+ .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
200
+ .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
201
+ .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
202
+ .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
203
+ .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
204
+ .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
205
+ .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
206
+ .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
207
+ .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
208
+ .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
209
+ .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
210
+ .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
211
+ .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
212
+ .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
213
+ .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
214
+ .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
215
+ .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
216
+ .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
217
+ .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
218
+ .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
219
+ .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
220
+ .ui-icon-arrow-4 { background-position: 0 -80px; }
221
+ .ui-icon-arrow-4-diag { background-position: -16px -80px; }
222
+ .ui-icon-extlink { background-position: -32px -80px; }
223
+ .ui-icon-newwin { background-position: -48px -80px; }
224
+ .ui-icon-refresh { background-position: -64px -80px; }
225
+ .ui-icon-shuffle { background-position: -80px -80px; }
226
+ .ui-icon-transfer-e-w { background-position: -96px -80px; }
227
+ .ui-icon-transferthick-e-w { background-position: -112px -80px; }
228
+ .ui-icon-folder-collapsed { background-position: 0 -96px; }
229
+ .ui-icon-folder-open { background-position: -16px -96px; }
230
+ .ui-icon-document { background-position: -32px -96px; }
231
+ .ui-icon-document-b { background-position: -48px -96px; }
232
+ .ui-icon-note { background-position: -64px -96px; }
233
+ .ui-icon-mail-closed { background-position: -80px -96px; }
234
+ .ui-icon-mail-open { background-position: -96px -96px; }
235
+ .ui-icon-suitcase { background-position: -112px -96px; }
236
+ .ui-icon-comment { background-position: -128px -96px; }
237
+ .ui-icon-person { background-position: -144px -96px; }
238
+ .ui-icon-print { background-position: -160px -96px; }
239
+ .ui-icon-trash { background-position: -176px -96px; }
240
+ .ui-icon-locked { background-position: -192px -96px; }
241
+ .ui-icon-unlocked { background-position: -208px -96px; }
242
+ .ui-icon-bookmark { background-position: -224px -96px; }
243
+ .ui-icon-tag { background-position: -240px -96px; }
244
+ .ui-icon-home { background-position: 0 -112px; }
245
+ .ui-icon-flag { background-position: -16px -112px; }
246
+ .ui-icon-calendar { background-position: -32px -112px; }
247
+ .ui-icon-cart { background-position: -48px -112px; }
248
+ .ui-icon-pencil { background-position: -64px -112px; }
249
+ .ui-icon-clock { background-position: -80px -112px; }
250
+ .ui-icon-disk { background-position: -96px -112px; }
251
+ .ui-icon-calculator { background-position: -112px -112px; }
252
+ .ui-icon-zoomin { background-position: -128px -112px; }
253
+ .ui-icon-zoomout { background-position: -144px -112px; }
254
+ .ui-icon-search { background-position: -160px -112px; }
255
+ .ui-icon-wrench { background-position: -176px -112px; }
256
+ .ui-icon-gear { background-position: -192px -112px; }
257
+ .ui-icon-heart { background-position: -208px -112px; }
258
+ .ui-icon-star { background-position: -224px -112px; }
259
+ .ui-icon-link { background-position: -240px -112px; }
260
+ .ui-icon-cancel { background-position: 0 -128px; }
261
+ .ui-icon-plus { background-position: -16px -128px; }
262
+ .ui-icon-plusthick { background-position: -32px -128px; }
263
+ .ui-icon-minus { background-position: -48px -128px; }
264
+ .ui-icon-minusthick { background-position: -64px -128px; }
265
+ .ui-icon-close { background-position: -80px -128px; }
266
+ .ui-icon-closethick { background-position: -96px -128px; }
267
+ .ui-icon-key { background-position: -112px -128px; }
268
+ .ui-icon-lightbulb { background-position: -128px -128px; }
269
+ .ui-icon-scissors { background-position: -144px -128px; }
270
+ .ui-icon-clipboard { background-position: -160px -128px; }
271
+ .ui-icon-copy { background-position: -176px -128px; }
272
+ .ui-icon-contact { background-position: -192px -128px; }
273
+ .ui-icon-image { background-position: -208px -128px; }
274
+ .ui-icon-video { background-position: -224px -128px; }
275
+ .ui-icon-script { background-position: -240px -128px; }
276
+ .ui-icon-alert { background-position: 0 -144px; }
277
+ .ui-icon-info { background-position: -16px -144px; }
278
+ .ui-icon-notice { background-position: -32px -144px; }
279
+ .ui-icon-help { background-position: -48px -144px; }
280
+ .ui-icon-check { background-position: -64px -144px; }
281
+ .ui-icon-bullet { background-position: -80px -144px; }
282
+ .ui-icon-radio-off { background-position: -96px -144px; }
283
+ .ui-icon-radio-on { background-position: -112px -144px; }
284
+ .ui-icon-pin-w { background-position: -128px -144px; }
285
+ .ui-icon-pin-s { background-position: -144px -144px; }
286
+ .ui-icon-play { background-position: 0 -160px; }
287
+ .ui-icon-pause { background-position: -16px -160px; }
288
+ .ui-icon-seek-next { background-position: -32px -160px; }
289
+ .ui-icon-seek-prev { background-position: -48px -160px; }
290
+ .ui-icon-seek-end { background-position: -64px -160px; }
291
+ .ui-icon-seek-start { background-position: -80px -160px; }
292
+ /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
293
+ .ui-icon-seek-first { background-position: -80px -160px; }
294
+ .ui-icon-stop { background-position: -96px -160px; }
295
+ .ui-icon-eject { background-position: -112px -160px; }
296
+ .ui-icon-volume-off { background-position: -128px -160px; }
297
+ .ui-icon-volume-on { background-position: -144px -160px; }
298
+ .ui-icon-power { background-position: 0 -176px; }
299
+ .ui-icon-signal-diag { background-position: -16px -176px; }
300
+ .ui-icon-signal { background-position: -32px -176px; }
301
+ .ui-icon-battery-0 { background-position: -48px -176px; }
302
+ .ui-icon-battery-1 { background-position: -64px -176px; }
303
+ .ui-icon-battery-2 { background-position: -80px -176px; }
304
+ .ui-icon-battery-3 { background-position: -96px -176px; }
305
+ .ui-icon-circle-plus { background-position: 0 -192px; }
306
+ .ui-icon-circle-minus { background-position: -16px -192px; }
307
+ .ui-icon-circle-close { background-position: -32px -192px; }
308
+ .ui-icon-circle-triangle-e { background-position: -48px -192px; }
309
+ .ui-icon-circle-triangle-s { background-position: -64px -192px; }
310
+ .ui-icon-circle-triangle-w { background-position: -80px -192px; }
311
+ .ui-icon-circle-triangle-n { background-position: -96px -192px; }
312
+ .ui-icon-circle-arrow-e { background-position: -112px -192px; }
313
+ .ui-icon-circle-arrow-s { background-position: -128px -192px; }
314
+ .ui-icon-circle-arrow-w { background-position: -144px -192px; }
315
+ .ui-icon-circle-arrow-n { background-position: -160px -192px; }
316
+ .ui-icon-circle-zoomin { background-position: -176px -192px; }
317
+ .ui-icon-circle-zoomout { background-position: -192px -192px; }
318
+ .ui-icon-circle-check { background-position: -208px -192px; }
319
+ .ui-icon-circlesmall-plus { background-position: 0 -208px; }
320
+ .ui-icon-circlesmall-minus { background-position: -16px -208px; }
321
+ .ui-icon-circlesmall-close { background-position: -32px -208px; }
322
+ .ui-icon-squaresmall-plus { background-position: -48px -208px; }
323
+ .ui-icon-squaresmall-minus { background-position: -64px -208px; }
324
+ .ui-icon-squaresmall-close { background-position: -80px -208px; }
325
+ .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
326
+ .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
327
+ .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
328
+ .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
329
+ .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
330
+ .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
331
+
332
+ /////////////////////////////////
333
+ // Misc visuals
334
+ /////////////////////////////////
335
+
336
+ /* Overlays */
337
+ .ui-widget-overlay {
338
+ background: $ui-overlay-bg-color url($ui-overlay-bg-image) 50% top repeat-x;
339
+ position: absolute; top: 0; left: 0; width: 100%; height: 100%;
340
+ @include opacity($ui-overlay-opacity);
341
+ }
342
+ .ui-widget-shadow {
343
+ margin: $ui-shadow-top-offset 0 0 $ui-shadow-left-offset;
344
+ padding:$ui-shadow-thickness;
345
+ background: $ui-shadow-bg-color url($ui-shadow-bg-image) 50% top repeat-x;
346
+ @include opacity($ui-shadow-opacity);
347
+ @include border-radius(10px);
348
+ }
349
+ /////////////////////////////////
350
+ // Layout helpers
351
+ /////////////////////////////////
352
+ .ui-helper-hidden { display: none; }
353
+ .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
354
+ .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
355
+ .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
356
+ .ui-helper-clearfix { display: inline-block; }
357
+ /* required comment for clearfix to work in Opera \*/
358
+ * html .ui-helper-clearfix { height:1%; }
359
+ .ui-helper-clearfix { display:block; }
360
+ /* end clearfix */
361
+ .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
362
+
363
+ /////////////////////////////////
364
+ // Interaction Cues
365
+ /////////////////////////////////
366
+ .ui-state-disabled { cursor: default !important; }
367
+
368
+ /////////////////////////////////
369
+ // Buttons
370
+ /////////////////////////////////
371
+ .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important;
372
+ cursor: pointer; text-align: center; zoom:1; overflow:visible; }
373
+ .ui-button-icon-only { width: 2.2em; }
374
+ button.ui-button-icon-only { width: 2.4em; }
375
+ .ui-button-icons-only { width: 3.4em; }
376
+ button.ui-button-icons-only { width: 3.7em; }
377
+
378
+ // button text
379
+ .ui-button .ui-button-text { display: block; line-height: 1.4; }
380
+ .ui-button-text-only .ui-button-text { padding: .4em 1em; }
381
+ .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
382
+ .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
383
+ .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
384
+ .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
385
+ input.ui-button { padding: .4em 1em; }
386
+ // button icons
387
+ .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon,
388
+ .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
389
+
390
+ .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
391
+ .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary,
392
+ .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
393
+ .ui-button-text-icon-secondary .ui-button-icon-secondary,
394
+ .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
395
+ .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
396
+
397
+ // button sets
398
+ .ui-buttonset { margin-right: 7px; }
399
+ .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
400
+
401
+ // ff fix
402
+ button.ui-button::-moz-focus-inner { border: 0; padding: 0; }
403
+ /////////////////////////////////
404
+ // Dialogs
405
+ /////////////////////////////////
406
+ .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden;
407
+ .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
408
+ .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
409
+ .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px;
410
+ span { display: block; margin: 1px; }
411
+ &:hover, &:focus{ padding:0px; }
412
+ }
413
+ .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
414
+ .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em;
415
+ .ui-dialog-buttonset { float: right; }
416
+ button { margin: .5em .4em .5em 0; cursor: pointer; }
417
+ }
418
+ .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
419
+ }
420
+ .ui-draggable .ui-dialog-titlebar { cursor: move; }
421
+ /////////////////////////////////
422
+ // Datepicker
423
+ /////////////////////////////////
424
+ .ui-datepicker { width: 17em; padding: .2em .2em 0; display: none;
425
+ .ui-datepicker-header { position:relative; padding:.2em 0; }
426
+ .ui-datepicker-prev, .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em;
427
+ span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
428
+ }
429
+ .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
430
+ .ui-datepicker-prev { left:2px; }
431
+ .ui-datepicker-next { right:2px; }
432
+ .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center;
433
+ select { font-size:1em; margin:1px 0; }
434
+ }
435
+ select.ui-datepicker-month-year {width: 100%;}
436
+ select.ui-datepicker-month, select.ui-datepicker-year{ width:49%; }
437
+ table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
438
+ th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
439
+ td { border: 0; padding: 1px;
440
+ span, a{ display: block; padding: .2em; text-align:center; text-decoration: none; }
441
+ }
442
+ .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0;
443
+ button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible;
444
+ &.ui-datepicker-current { float:left; }
445
+ }
446
+ }
447
+ }
448
+
449
+
450
+ // multiple calendars
451
+ .ui-datepicker.ui-datepicker-multi { width:auto;
452
+ .ui-datepicker-group { float:left;
453
+ table { width:95%; margin:0 auto .4em; }
454
+ }
455
+ .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
456
+ .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
457
+ .ui-datepicker-buttonpane { clear:left; }
458
+ }
459
+
460
+ .ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
461
+ .ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
462
+ .ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
463
+ .ui-datepicker-row-break { clear:both; width:100%; }
464
+
465
+ /* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
466
+ .ui-datepicker-cover {
467
+ display: none; /*sorry for IE5*/
468
+ display/**/: block; /*sorry for IE5*/
469
+ position: absolute; /*must have*/
470
+ z-index: -1; /*must have*/
471
+ filter: mask(); /*must have*/
472
+ top: -4px; /*must have*/
473
+ left: -4px; /*must have*/
474
+ width: 200px; /*must have*/
475
+ height: 200px; /*must have*/
476
+ }
477
+
478
+ /////////////////////////////////
479
+ // Accordion
480
+ /////////////////////////////////
481
+
482
+ .ui-accordion { width: 100%;
483
+ .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; @include pie-clearfix;
484
+ .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
485
+ }
486
+ .ui-accordion-li-fix { display: inline; }
487
+ .ui-accordion-header-active { border-bottom: 0 !important; }
488
+ .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
489
+ .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
490
+ .ui-accordion-content-active { display: block; }
491
+
492
+ }
493
+ .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
494
+
495
+ /////////////////////////////////
496
+ // Tabs
497
+ /////////////////////////////////
498
+
499
+ .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
500
+ .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
501
+ .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
502
+ .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
503
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
504
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
505
+ .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
506
+ .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
507
+ .ui-tabs .ui-tabs-hide { display: none !important; }