Permalink
Browse files

add documents for profile

  • Loading branch information...
1 parent 7209ad7 commit 44b2e4694c52d0d3eda896dd86d9c4216e2f4f60 @diegocarrera diegocarrera committed Apr 11, 2012
Showing with 97 additions and 0 deletions.
  1. +84 −0 app/assets/stylesheets/avatars_for_rails.css
  2. +13 −0 app/views/common_documents/_profile.html.erb
@@ -0,0 +1,84 @@
+/*
+*= require jquery.Jcrop
+*= require jquery.fileupload-ui
+*/
+
+/******************** Common ***********************/
+
+#avatars_for_rails img { max-width: none !important; }
+.clearfloat { clear: both; height: 0px;}
+
+/******************** Avatars ***********************/
+.avatars { padding-left: 10px; }
+.avatar { float:left; position:relative;}
+.avatar .actions { }
+.avatar .delete_avatar {
+ position:absolute;
+ top:5px;
+ right:5px;
+ display:none;
+}
+.avatar .default {
+ border: 5px solid #2A3890;
+}
+.avatar .non_default {
+ border: 5px solid #E0EEF5;
+}
+#avatar_logo_drag{
+ margin-left: 25px;
+}
+/******************** New form ***********************/
+.new_logo_form {
+}
+/******************** Slide Effect ***********************/
+.boxgrid {
+ width: 104px;
+ height: 104px;
+ float:left;
+ overflow: hidden;
+ position: relative;
+}
+.boxgrid img {
+ position: absolute;
+ top: 0;
+ left: 0;
+ border: 0;
+}
+.boxcaption {
+ top: 104px;
+ left: 5px;
+ float: left;
+ position: absolute;
+ background: #E0EEF5;
+ opacity: .8;
+ width: 84px;
+ height: 28px;
+ /* For IE 5-7 */
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
+ /* For IE 8 */
+ -MS-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
+}
+.captionfull .boxcaption {
+ top: 104px;
+ left: 5px;
+ padding: 5px;
+}
+/**************** Crop **************/
+#precropDiv {
+ width:499px;
+ display:inline-block;
+ padding: 0px 30px 0px 29px;
+}
+#precropPrev {
+ vertical-align:top;
+ display:inline-block;
+ /*padding: 5px 4px 5px 4px;*/
+}
+#precropPrevImg {
+ width:100px;
+ height:100px;
+ overflow:hidden;
+ margin-left:30px;
+ border: 1px solid #E0EEF5;
+}
+
@@ -0,0 +1,13 @@
+<%= div_for document, :class => 'row' do %>
+ <ul class="thumbnails span2">
+ <li class="span">
+ <%= link_to "", document, :class => icon_class_for(document), :alt => document.title %>
+ </li>
+ <li class="span_profile">
+ <div class="caption elipsis">
+ <h4 class="link_gray"><%= link_to truncate_name(document.title, :length => 15), document, :class => "size14" %></h4>
+ <h5></span> <span class="green"><%=35%></span> views</h5>
+ </div>
+ </li>
+ </ul>
+<% end %>

0 comments on commit 44b2e46

Please sign in to comment.