social_stream-documents 1.1.4 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/icons/attach.png +0 -0
  3. data/app/assets/javascripts/{social_stream.audio.js.erb → social_stream/audio.js.erb} +7 -3
  4. data/app/assets/javascripts/social_stream/document.js +27 -0
  5. data/app/assets/javascripts/social_stream/documents.timeline.js +11 -0
  6. data/app/assets/javascripts/social_stream/documents.wall.js +48 -0
  7. data/app/assets/javascripts/{social_stream.video.js.erb → social_stream/video.js.erb} +11 -8
  8. data/app/assets/javascripts/social_stream-documents.js +1 -1
  9. data/{spec/dummy/config/navigation.rb → app/assets/stylesheets/social_stream/documents/_toolbar.css.sass} +0 -0
  10. data/app/assets/stylesheets/social_stream/documents/aside/_documents.css.sass +4 -0
  11. data/app/assets/stylesheets/social_stream/documents/aside/layout/_documents.css.sass +30 -0
  12. data/{spec/dummy/db/.gitkeep → app/assets/stylesheets/social_stream/documents/create/_new.css.sass} +0 -0
  13. data/app/assets/stylesheets/social_stream/documents/create/layout/_new.css.sass +32 -0
  14. data/app/assets/stylesheets/social_stream/documents/documents/_documents.css.sass +4 -0
  15. data/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass +52 -0
  16. data/app/assets/stylesheets/social_stream/documents/explore/_explore-documents.css.sass +12 -0
  17. data/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass +20 -0
  18. data/app/assets/stylesheets/social_stream/documents/responsive/_responsive-1200px-min.css.sass +21 -0
  19. data/app/assets/stylesheets/social_stream/documents/responsive/_responsive-767px-max.css.sass +58 -0
  20. data/app/assets/stylesheets/social_stream/documents/responsive/_responsive-768px-979px.css.sass +54 -0
  21. data/app/assets/stylesheets/social_stream/documents/search/_header.css.sass +25 -0
  22. data/app/assets/stylesheets/social_stream/documents/search/layout/_header.css.sass +33 -0
  23. data/app/assets/stylesheets/social_stream/documents/show/_show.css.sass +72 -0
  24. data/app/assets/stylesheets/social_stream/documents/show/layout/_show.css.sass +112 -0
  25. data/app/assets/stylesheets/social_stream/documents/timeline/_audios.css.sass +21 -0
  26. data/app/assets/stylesheets/social_stream/documents/timeline/_wallinput.css.sass +10 -0
  27. data/app/assets/stylesheets/social_stream/documents/timeline/layout/_audios.css.sass +67 -0
  28. data/app/assets/stylesheets/social_stream/documents/timeline/layout/_wallinput.css.sass +10 -0
  29. data/app/assets/stylesheets/social_stream-documents.css.sass +49 -0
  30. data/app/controllers/documents_controller.rb +16 -5
  31. data/app/decorators/social_stream/base/activity_object_decorator.rb +1 -0
  32. data/app/helpers/documents_helper.rb +35 -18
  33. data/app/models/audio.rb +1 -6
  34. data/app/models/document.rb +23 -28
  35. data/app/models/picture.rb +0 -19
  36. data/app/models/video.rb +0 -5
  37. data/app/views/audios/_audio.html.erb +2 -11
  38. data/app/views/audios/_audio_processed.html.erb +28 -23
  39. data/app/views/audios/_audio_processing.html.erb +5 -5
  40. data/app/views/audios/_quick_search_result.html.erb +3 -0
  41. data/app/views/audios/_search_result.html.erb +1 -0
  42. data/app/views/audios/_timeline.html.erb +11 -0
  43. data/app/views/audios/index.html.erb +3 -1
  44. data/app/views/common_documents/_document.html.erb +18 -0
  45. data/app/views/common_documents/_filter.html.erb +1 -0
  46. data/app/views/common_documents/_form.html.erb +44 -0
  47. data/app/views/common_documents/_index.html.erb +27 -63
  48. data/app/views/common_documents/_info.html.erb +50 -0
  49. data/app/views/common_documents/_list.html.erb +2 -0
  50. data/app/views/common_documents/_new.modal.html.erb +13 -0
  51. data/app/views/common_documents/_new_button.html.erb +11 -0
  52. data/app/views/common_documents/_quick_search_result.html.erb +19 -0
  53. data/app/views/common_documents/_show.html.erb +76 -27
  54. data/app/views/documents/_document.html.erb +2 -26
  55. data/app/views/documents/_document_show.html.erb +2 -4
  56. data/app/views/documents/_new_activity.html.erb +3 -1
  57. data/app/views/documents/_quick_search_result.html.erb +3 -0
  58. data/app/views/documents/_search_result.html.erb +1 -0
  59. data/app/views/documents/_timeline.html.erb +15 -0
  60. data/app/views/documents/index.html.erb +7 -1
  61. data/app/views/documents/new.html.erb +9 -0
  62. data/app/views/documents/search.html.erb +1 -1
  63. data/app/views/pictures/_picture.html.erb +2 -41
  64. data/app/views/pictures/_picture_show.html.erb +1 -16
  65. data/app/views/pictures/_quick_search_result.html.erb +3 -0
  66. data/app/views/pictures/_search_result.html.erb +1 -0
  67. data/app/views/pictures/_timeline.html.erb +17 -0
  68. data/app/views/pictures/index.html.erb +3 -1
  69. data/app/views/videos/_quick_search_result.html.erb +3 -0
  70. data/app/views/videos/_search_result.html.erb +1 -0
  71. data/app/views/videos/_timeline.html.erb +9 -0
  72. data/app/views/videos/_video.html.erb +2 -11
  73. data/app/views/videos/_video_processed.html.erb +11 -15
  74. data/app/views/videos/_video_processing.html.erb +6 -5
  75. data/app/views/videos/_video_show.html.erb +1 -1
  76. data/app/views/videos/index.html.erb +3 -1
  77. data/config/locales/en.yml +25 -12
  78. data/config/locales/es.yml +23 -12
  79. data/lib/generators/social_stream/documents/install_generator.rb +2 -3
  80. data/lib/generators/social_stream/documents/templates/initializer.rb +37 -9
  81. data/lib/social_stream/documents/dependencies.rb +1 -0
  82. data/lib/social_stream/documents/engine.rb +5 -14
  83. data/lib/social_stream/documents/models/activity_object.rb +18 -0
  84. data/lib/social_stream/documents/version.rb +1 -1
  85. data/lib/social_stream-documents.rb +56 -13
  86. data/lib/tasks/db/populate.rake +21 -0
  87. data/social_stream-documents.gemspec +4 -1
  88. data/spec/controllers/documents_controller_spec.rb +15 -9
  89. data/spec/controllers/pictures_controller_spec.rb +8 -8
  90. data/spec/socialstream_documents_spec.rb +6 -0
  91. data/vendor/assets/stylesheets/jplayer.blue.monday.css +2 -1
  92. metadata +71 -74
  93. data/app/assets/javascripts/social_stream.repository.js.erb +0 -27
  94. data/app/assets/stylesheets/documents.css.scss +0 -302
  95. data/app/assets/stylesheets/show.css.scss +0 -111
  96. data/app/assets/stylesheets/social_stream-documents.css +0 -6
  97. data/app/views/audios/_audio_focus_search.html.erb +0 -3
  98. data/app/views/audios/_audio_global_search.html.erb +0 -3
  99. data/app/views/audios/_audio_with_details.html.erb +0 -3
  100. data/app/views/common_documents/_document_info.html.erb +0 -48
  101. data/app/views/common_documents/_edit_form.html.erb +0 -57
  102. data/app/views/common_documents/_headers.html.erb +0 -77
  103. data/app/views/documents/_document_focus_search.html.erb +0 -2
  104. data/app/views/documents/_document_global_search.html.erb +0 -2
  105. data/app/views/documents/_document_with_details.html.erb +0 -13
  106. data/app/views/documents/_new_activity_fields.html.erb +0 -15
  107. data/app/views/pictures/_picture_focus_search.html.erb +0 -2
  108. data/app/views/pictures/_picture_global_search.html.erb +0 -2
  109. data/app/views/pictures/_picture_with_details.html.erb +0 -2
  110. data/app/views/videos/_video_focus_search.html.erb +0 -2
  111. data/app/views/videos/_video_global_search.html.erb +0 -2
  112. data/app/views/videos/_video_with_details.html.erb +0 -2
  113. data/config/locales/de.yml +0 -78
  114. data/config/locales/fr.yml +0 -78
  115. data/config/locales/hu.yml +0 -77
  116. data/config/locales/nl.yml +0 -78
  117. data/lib/social_stream/views/toolbar/documents.rb +0 -28
  118. data/lib/tasks/db/populate_documents.rake +0 -19
  119. data/spec/dummy/.gitignore +0 -1
  120. data/spec/dummy/Rakefile +0 -7
  121. data/spec/dummy/app/assets/javascripts/application.js +0 -9
  122. data/spec/dummy/app/assets/stylesheets/application.css +0 -7
  123. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  124. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  125. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  126. data/spec/dummy/config/application.rb +0 -45
  127. data/spec/dummy/config/boot.rb +0 -10
  128. data/spec/dummy/config/database.yml +0 -25
  129. data/spec/dummy/config/environment.rb +0 -5
  130. data/spec/dummy/config/environments/development.rb +0 -30
  131. data/spec/dummy/config/environments/production.rb +0 -60
  132. data/spec/dummy/config/environments/test.rb +0 -39
  133. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  134. data/spec/dummy/config/initializers/devise.rb +0 -176
  135. data/spec/dummy/config/initializers/inflections.rb +0 -10
  136. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  137. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  138. data/spec/dummy/config/initializers/session_store.rb +0 -8
  139. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  140. data/spec/dummy/config/locales/en.yml +0 -5
  141. data/spec/dummy/config/relations.yml +0 -39
  142. data/spec/dummy/config/routes.rb +0 -60
  143. data/spec/dummy/config.ru +0 -4
  144. data/spec/dummy/db/schema.rb +0 -6
  145. data/spec/dummy/public/404.html +0 -26
  146. data/spec/dummy/public/422.html +0 -26
  147. data/spec/dummy/public/500.html +0 -26
  148. data/spec/dummy/public/favicon.ico +0 -0
  149. data/spec/dummy/public/javascripts/application.js +0 -2
  150. data/spec/dummy/public/javascripts/controls.js +0 -965
  151. data/spec/dummy/public/javascripts/dragdrop.js +0 -974
  152. data/spec/dummy/public/javascripts/effects.js +0 -1123
  153. data/spec/dummy/public/javascripts/prototype.js +0 -6001
  154. data/spec/dummy/public/javascripts/rails.js +0 -191
  155. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  156. data/spec/dummy/script/rails +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b829179295505e98c6138be7a0b1d68941a03130
4
- data.tar.gz: f79a536beb2986620351d4befc456df3461dad13
3
+ metadata.gz: 21343b627b82723ae7bc741d39e7750f5d435862
4
+ data.tar.gz: c267351a0ad8192a6decb3b1e379bea0a68a15cf
5
5
  SHA512:
6
- metadata.gz: dc29eaac24c2794ad1c9504e785e474815709cbf4102143d7898a5d8efef7e871c0130aad2401a9688882f59ba8b9ab69fd72a4b55a1c3d2bf20384fe43bc8a5
7
- data.tar.gz: b59e31e358156bd92d9ab8caf89594b1622077909f2677ae3514b9db6888476092e5543bf12d1ed3a88a4940ffbd644dcb4dc18cdf5a7012340420b80655d64a
6
+ metadata.gz: e21074e415ac60ea399f4217d5e6a37bec96704db37c8d443b3036752a6799bdf2bae072907e507f45cc7a6c5fd9203818e74311245c572349377774f4f653d0
7
+ data.tar.gz: 3fb4e86053d6186c783e027f7033affff5d8dee57685d367aa849884eb3ed72379cd27367a4945d30373976f8ce3071796b99541181f30ba93fe141afcaa7a29
Binary file
@@ -1,6 +1,8 @@
1
- //= require social_stream.timeline
1
+ //= require social_stream/callback
2
2
 
3
3
  SocialStream.Audio = (function(SS, $, undefined){
4
+ var callback = new SS.Callback();
5
+
4
6
  var initJplayer = function(){
5
7
  $(".jp-audio .jp-jplayer").each(function() {
6
8
  $(this).jPlayer({
@@ -16,10 +18,12 @@ SocialStream.Audio = (function(SS, $, undefined){
16
18
  })
17
19
  });
18
20
 
19
- $(".audio-format-links").hide();
21
+ $(".format-links").hide();
20
22
  }
21
23
 
22
- SocialStream.Timeline.addInitCallback(initJplayer);
24
+ callback.register('show', initJplayer);
23
25
 
26
+ return callback.extend({
27
+ });
24
28
 
25
29
  })(SocialStream, jQuery);
@@ -0,0 +1,27 @@
1
+ //= require social_stream/callback
2
+
3
+ SocialStream.Document = (function(SS, $, undefined){
4
+ var callback = new SS.Callback();
5
+
6
+ var initTagsForm = function() {
7
+ SS.Tag.select2('input[name$="[tag_list]"]');
8
+ };
9
+
10
+ var initPagination = function() {
11
+ SS.Pagination.show();
12
+ };
13
+
14
+ var initNewModal = function() {
15
+ $('.new_document-modal-link').attr('href', '#new_document-modal');
16
+ };
17
+
18
+ callback.register('index', initPagination);
19
+
20
+ callback.register('new_', initNewModal);
21
+
22
+ callback.register('edit', initTagsForm);
23
+
24
+ return callback.extend({
25
+ });
26
+
27
+ })(SocialStream, jQuery);
@@ -0,0 +1,11 @@
1
+ //= require social_stream/timeline
2
+ //= require social_stream/audio
3
+ //= require social_stream/video
4
+
5
+ SocialStream.Timeline.callbackRegister('show',
6
+ SocialStream.Audio.show,
7
+ SocialStream.Video.show);
8
+
9
+ SocialStream.Timeline.callbackRegister('update',
10
+ SocialStream.Audio.show,
11
+ SocialStream.Video.show);
@@ -0,0 +1,48 @@
1
+ //= require social_stream/wall
2
+
3
+ SocialStream.Wall.callbackRegister('show', function(){
4
+ $('.wall_input button.new_document').click(function(event){
5
+ event.preventDefault();
6
+
7
+ $(this).addClass("selected");
8
+
9
+ // build document form
10
+ if ($('.wall_input input[name^=document]').length === 0) {
11
+ $('<label/>', {
12
+ "for": 'document_title',
13
+ text: I18n.t('activerecord.attributes.document.title')
14
+ }).insertBefore($('#post_text'));
15
+
16
+ $('<textarea/>', {
17
+ name: 'document[description]',
18
+ 'class': 'document_description',
19
+ placeholder: I18n.t('document.description.input')
20
+ }).insertAfter($('#post_text'));
21
+
22
+ $('.wall_input textarea.document_description').val($('#post_text').val());
23
+
24
+ $('#post_text').
25
+ attr('name', 'document[title]').
26
+ attr('placeholder', I18n.t('document.title.input'));
27
+
28
+ $('<input>', {
29
+ name: 'document[file]',
30
+ type: 'file',
31
+ style: 'display: none;'
32
+ }).insertAfter('.wall_input textarea.document_description');
33
+
34
+ SocialStream.Wall.changeAction($(this).attr('data-path'));
35
+ $('.wall_input form').
36
+ attr('enctype', 'multipart/form-data'); // this is ignored if done after creating the file input
37
+
38
+ $('.wall_input input[name="post[owner_id]"]').attr('name', 'document[owner_id');
39
+ SocialStream.Wall.changeRelationSelect('document');
40
+ }
41
+
42
+ $('.wall_input input[type=file]').trigger('click');
43
+
44
+ $('.wall_input input[type=file]').change(function(){
45
+ $("#post_text").val($(this).val().replace(/C:\\fakepath\\/i, ''));
46
+ });
47
+ });
48
+ });
@@ -1,6 +1,8 @@
1
- //= require social_stream.timeline
1
+ //= require social_stream/callback
2
2
 
3
3
  SocialStream.Video = (function(SS, $, undefined){
4
+ var callback = new SS.Callback();
5
+
4
6
  var initJplayer = function(){
5
7
  $(".jp-video .jp-jplayer").each(function() {
6
8
  $(this).jPlayer({
@@ -19,21 +21,22 @@ SocialStream.Video = (function(SS, $, undefined){
19
21
  })
20
22
  });
21
23
 
22
- $(".video-format-links").hide();
24
+ $(".video .format-links").hide();
23
25
  $(".video-full").hide();
24
26
 
25
- $(".video_thumbnail_play_over").click(function(){
27
+ $(".video .play_over").click(function(){
26
28
  var video = $(this).closest(".video")
27
- video.find(".video-thumb").hide();
28
- video.find(".video-details").hide();
29
+ video.find(".thumb").hide();
30
+ video.find(".text").hide();
29
31
  video.find(".jp-video-play").hide();
30
32
  video.find(".video-full").show();
31
- video.find(".jp-jplayer").jPlayer("play", 0);
33
+ video.find(".jp-jplayer").jPlayer("play", 0);
32
34
  });
33
-
34
35
  }
35
36
 
36
- SocialStream.Timeline.addInitCallback(initJplayer);
37
+ callback.register('show', initJplayer);
37
38
 
39
+ return callback.extend({
40
+ });
38
41
 
39
42
  })(SocialStream, jQuery);
@@ -4,6 +4,6 @@
4
4
  //= require social_stream-base
5
5
  //
6
6
  //= require_self
7
- //= require_tree .
7
+ //= require_tree ./social_stream
8
8
 
9
9
  SocialStream.Documents = SocialStream.Documents || {};
@@ -0,0 +1,4 @@
1
+ #documents
2
+ input
3
+ &[type="text"]
4
+ @include filter
@@ -0,0 +1,30 @@
1
+ #document_info
2
+ @include makeColumn(6, 0)
3
+ display: inline-block
4
+
5
+ #documents
6
+ .document_show
7
+ @include makeColumn(1, 0)
8
+ display: inline
9
+ input
10
+ &[type="submit"]
11
+ float: right
12
+ width: 90px
13
+ display: inline-block
14
+ margin: 3px 0 0 -14px
15
+ .tab-content
16
+ @include makeColumn(10, 0)
17
+ padding-bottom: 100px
18
+
19
+ nav.more
20
+ clear: both
21
+ margin-top: 10px
22
+ .btn-see-more
23
+ position: absolute
24
+ z-index: 100
25
+ padding: 0px 10px 0px 4px
26
+ .loading
27
+ z-index: 200
28
+ position: relative
29
+ .documents
30
+ clear: both
@@ -0,0 +1,32 @@
1
+ #new_document-modal
2
+ .modal-body
3
+ max-height: 520px
4
+ padding: 0 15px 15px 15px
5
+ form.new_site_client
6
+ margin-left: 0px
7
+ width: 100%
8
+ .name,
9
+ .url
10
+ margin-left: 0px
11
+ width: 100%
12
+ input
13
+ &[type="file"]
14
+ line-height: 0px
15
+ #new_file
16
+ label
17
+ font-size: 22px
18
+ font-weight: bold
19
+ color: #CCC
20
+ form.new_document
21
+ section
22
+ border-bottom: 1px dashed #CCC
23
+ padding-top: 15px
24
+ padding-bottom: 15px
25
+ #document_file
26
+ @include ellipsis
27
+ .description
28
+ textarea
29
+ height: 100px
30
+ input
31
+ &[type="submit"]
32
+ margin: 8px 0 0
@@ -0,0 +1,4 @@
1
+ #repository
2
+ .btn
3
+ @extend .btn-blue
4
+
@@ -0,0 +1,52 @@
1
+ .repository
2
+ @include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
3
+ display: block
4
+ float: left
5
+ margin-left: 2.5%
6
+
7
+ #repository
8
+
9
+ .repository_show
10
+ @include grid-core-span(1, $fluidGridColumnWidth, $fluidGridGutterWidth)
11
+ display: inline
12
+ input
13
+ &[type="text"]
14
+ width: 22% !important
15
+ display: inline
16
+ margin-top: 3px
17
+ float: right
18
+
19
+ .btn
20
+ float: right
21
+ width: 90px
22
+ display: inline-block
23
+ margin: 3px 16px 0 -14px
24
+ padding: 5px 12px
25
+ .tab-content
26
+ @include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
27
+ padding-bottom: 100px
28
+
29
+ .repository-list
30
+ .document,
31
+ .picture,
32
+ .audio,
33
+ .video
34
+ min-height: 81px
35
+
36
+ nav.more
37
+ clear: both
38
+ margin-top: 10px
39
+ .btn-see-more
40
+ position: absolute
41
+ z-index: 100
42
+ padding: 0px 10px 0px 4px
43
+ .loading
44
+ z-index: 200
45
+ position: relative
46
+
47
+ #comments
48
+ .new_comment
49
+ margin-left: 44px
50
+
51
+ .documents
52
+ clear: both
@@ -0,0 +1,12 @@
1
+ #search-results,
2
+ .repository-list-net,
3
+ .repository-list
4
+ .picture,
5
+ .audio,
6
+ .video,
7
+ .document
8
+ .author
9
+ font-size: 13px
10
+ .actions
11
+ color: $gray
12
+ font-size: 12px
@@ -0,0 +1,20 @@
1
+ #search-results,
2
+ .repository-list-net,
3
+ .repository-list
4
+ .picture,
5
+ .audio,
6
+ .video,
7
+ .document
8
+ display: inline
9
+ @include makeColumn(3, 0)
10
+ margin-left: 19px
11
+ margin-bottom: 14px
12
+ .thumb
13
+ @include makeColumnoMargin(1, 0)
14
+ display: inline
15
+ margin-top: 14px
16
+ .brifing
17
+ @include makeColumnoMargin(2, 0)
18
+ display: inline-block
19
+ .author
20
+ margin-top: -10px
@@ -0,0 +1,21 @@
1
+ //
2
+ // Responsive: Large desktop and up
3
+ // --------------------------------------------------
4
+
5
+
6
+ @media (min-width: 1200px)
7
+ #user
8
+ .activities
9
+ .wall_input
10
+ #new_post
11
+ .document_description
12
+ width: 96% !important
13
+
14
+ #comments
15
+ div.new_comment
16
+ min-height: 100px
17
+ width: 90%
18
+ .avatar
19
+ width: 11%
20
+ form.new_comment
21
+ width: 86.8%
@@ -0,0 +1,58 @@
1
+ //
2
+ // Responsive: Landscape phone to desktop/tablet
3
+ // --------------------------------------------------
4
+
5
+
6
+ @media (max-width: 767px)
7
+ #user
8
+ .activities
9
+ .wall_input
10
+ #new_post
11
+ .document_description
12
+ width: 96%
13
+
14
+ .picture,
15
+ .audio,
16
+ .video,
17
+ .document
18
+ .tab-content
19
+ width: 100% !important
20
+ overflow: initial
21
+ .central
22
+ width: 100% !important
23
+ margin-left: 0px !important
24
+ .comments
25
+ .avatar
26
+ float: left
27
+ .media-heading
28
+ font-size: 16px
29
+ .media-body
30
+ float: left
31
+ display: inline-block
32
+ width: 73%
33
+ p
34
+ font-size: 15px
35
+ .event
36
+ .details
37
+ margin-left: 10px
38
+ #comments
39
+ div.new_comment
40
+ min-height: 80px
41
+ height: auto
42
+ width: 100%
43
+ .avatar
44
+ width: 15%
45
+ form.new_comment
46
+ width: 80.8%
47
+
48
+ #repository
49
+ .repository
50
+ @include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
51
+
52
+ // UP TO LANDSCAPE PHONE
53
+ // ---------------------
54
+
55
+ @media (max-width: 480px)
56
+
57
+
58
+
@@ -0,0 +1,54 @@
1
+ //
2
+ // Responsive: Tablet to desktop
3
+ // --------------------------------------------------
4
+
5
+
6
+ @media (min-width: 768px) and (max-width: 979px)
7
+ #picture,
8
+ #audio,
9
+ #video,
10
+ #document
11
+ .picture,
12
+ .audio,
13
+ .video,
14
+ .document
15
+ .central
16
+ @include grid-core-span(8, $fluidGridColumnWidth, $fluidGridGutterWidth)
17
+ .details
18
+ width: 26% !important
19
+ float: left
20
+ margin-left: 20px !important
21
+ section
22
+ border-bottom: 1px dashed #ccc
23
+ padding-top: 0px
24
+ label
25
+ font-size: 15px
26
+ padding: 2px 0 0 5px
27
+ .upload
28
+ margin-top: 0px
29
+ input
30
+ &[type="file"]
31
+ display: inline
32
+ width: 98% !important
33
+ line-height: 0px
34
+ background-color: $white
35
+ @extend .border-radius-5
36
+ .title
37
+ input
38
+ &[type="text"]
39
+ display: inline
40
+ width: 90% !important
41
+ #picture_tag_list
42
+ display: inline
43
+ width: 90% !important
44
+ .description
45
+ textarea
46
+ display: inline-block
47
+ @include size (70px, 90% !important)
48
+ width: 90% !important
49
+
50
+
51
+ #repository
52
+ .repository
53
+ @include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
54
+
@@ -0,0 +1,25 @@
1
+ header
2
+ .search-nav
3
+ .mat
4
+ .results
5
+ ul
6
+ li
7
+ background-color: #f9f9f9
8
+ &:hover
9
+ background-color: #fff
10
+ .document,
11
+ .picture,
12
+ .audio,
13
+ .video
14
+ &:hover
15
+ .thumb,
16
+ .brifing
17
+ @include opacity(100)
18
+ .thumb
19
+ @include opacity(70)
20
+ .brifing
21
+ @include opacity(70)
22
+ .author
23
+ @include ellipsis
24
+ .counters
25
+ font-size: 9px
@@ -0,0 +1,33 @@
1
+ header
2
+ .search-nav
3
+ .mat
4
+ .results
5
+ ul
6
+ li
7
+ .document,
8
+ .picture,
9
+ .audio,
10
+ .video
11
+ min-height: 80px
12
+ .thumb
13
+ @include opacity(70)
14
+ width: 38%
15
+ float: left
16
+ margin-top: 6px
17
+ .icon_file_50-default
18
+ background-size: 315px
19
+ .brifing
20
+ @include opacity(70)
21
+ width: 62%
22
+ float: left
23
+ h5
24
+ @include ellipsis
25
+ margin: 4px 0 0 0
26
+ font-size: 13px
27
+ .author
28
+ @include ellipsis
29
+ font-size: 11px
30
+ .counters
31
+ font-size: 9px
32
+ .counter
33
+ color: $blue
@@ -0,0 +1,72 @@
1
+ .picture,
2
+ .audio,
3
+ .video,
4
+ .documents
5
+ .central
6
+ .show
7
+ @include border-radius(10px)
8
+ border: 1px solid #f7f7f7
9
+ @include gradient-radial ($innerColor: #666, $outerColor: #333)
10
+ text-align: center
11
+ h6
12
+ color: $white
13
+ font-size: 15px
14
+ .actions
15
+ border: 1px solid #333
16
+ @include border-radius (3px)
17
+ border-bottom-color: #444
18
+ background-color: rgba(50, 50, 50, 0.3)
19
+ .tabbable
20
+ .tab-content
21
+ .media
22
+ background-color: $white
23
+ border-bottom: 1px solid #ddd
24
+ border-left: 1px solid #ddd
25
+ &:last-child
26
+ border-bottom: none
27
+ .actions
28
+ .post_time_ago
29
+ color: $gray
30
+
31
+ .tooltip
32
+ @include opacity (90)
33
+ @include border-radius (5px)
34
+ background: $gray
35
+ color: whitesmoke
36
+ .audience_logo
37
+ img
38
+ @include border-radius (5px)
39
+
40
+ .details
41
+ @extend .hidden-phone
42
+ h4
43
+ color: #999
44
+ font-size: 15px
45
+ .tabbable
46
+ ul
47
+ li.active
48
+ a
49
+ background-color: #f3f3f3
50
+ .tab-content
51
+ color: $blue
52
+ border-left: 1px solid #dddddd
53
+ background-color: #f3f3f3
54
+
55
+
56
+ #document-info
57
+ .counters
58
+ color: $grayLight
59
+ .counter
60
+ color: #00C3FF
61
+ font-sixe: 15px
62
+
63
+
64
+
65
+ #comments
66
+ div.new_comment
67
+ form.new_comment
68
+ input
69
+ &[type="submit"]
70
+ @include buttonBackground($blueDark, $blue, $textColor: #fff, $textShadow: 0 -1px 0 rgba(0,0,0,.25))
71
+
72
+