}
h3, h4 {
- margin-top: $lineheight;
- margin-bottom: $lineheight/2;
font-size: 1.25rem;
}
border-bottom: 1px solid $grey;
h4:first-child {
- margin-top: 0;
word-wrap: break-word;
}
}
border-collapse: separate;
border-spacing: 0;
width: 100%;
+ margin-bottom: $spacer;
th, td {
border-bottom: 1px solid $grey;
.subscribe-buttons {
float: left;
- margin: 18px 10px 10px;
+ margin: 0 10px;
min-width: 80px;
}
}
.export_area_inputs {
- margin-bottom: $lineheight/2;
+ margin-bottom: $spacer;
input[type="text"] {
width: 100px;
text-align: center;
}
}
-/* Rules for the user profile page */
-
-.contact-activity {
- margin-top: $lineheight;
- width: 100%;
-}
-
/* Rules for the user map */
.content_map .leaflet-popup-content {
margin-top: 0 0 0 60px;
font-size: 12px;
}
- img.user_thumbnail {
- float: left;
- margin: 0 $lineheight/2 0 0;
- }
}
/* Rules for the user list */
#user_list {
width: 100%;
-
- tr {
- vertical-align: middle;
- }
-
- p {
- margin-top: 0px;
- margin-bottom: 0px;
- }
-}
-
-#user_list_actions {
- float: right;
- margin-top: $lineheight/2;
}
/* Rules for the diary list page */
max-width: 100px;
max-height: 100px;
border: 1px solid $grey;
- margin-bottom: $lineheight;
- float: left;
- margin-right: $lineheight;
- }
-
- img.user_image_no_margins {
- max-width: 100px;
- max-height: 100px;
- border: 1px solid $grey;
}
img.user_thumbnail {
max-width: 50px;
max-height: 50px;
border: 1px solid $grey;
- margin-right: $lineheight;
- }
-
- img.user_thumbnail_no_margins {
- max-width: 50px;
- max-height: 50px;
- border: 1px solid $grey;
}
img.user_thumbnail_tiny {
}
}
- .comments .richtext {
- margin-left: 70px;
- }
-
/* Rules for the user notes list */
.note_list {
:icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
:description => render(:partial => "popup", :object => contact, :locals => { :type => type })
} %>
-<%= tag.div :class => "contact-activity clearfix row", :data => { :user => user_data } do %>
+<%= tag.div :class => "clearfix row", :data => { :user => user_data } do %>
<div class="col-auto">
- <%= user_thumbnail contact, :class => "user_thumbnail_no_margins" %>
+ <%= user_thumbnail contact %>
</div>
<div class="col">
<p class='text-muted mb-0'>
-<% content_for :head, tag(:meta, :name => :robots, :content => :noindex) %>
+<% content_for :head, tag.meta(:name => :robots, :content => :noindex) %>
<% content_for :heading do %>
- <div <% if @user %> id="userinformation"<% end %>>
+ <div <% if @user %> id="userinformation"<% end %> class="row">
<% if @user %>
- <%= user_image @user %>
+ <div class="col-auto">
+ <%= user_image @user %>
+ </div>
<% end %>
- <h1><%= @title %></h1>
- <nav class="secondary-actions">
- <ul class="clearfix">
- <% unless params[:friends] or params[:nearby] -%>
- <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
- <% end -%>
+ <div class="col">
+ <h1><%= @title %></h1>
- <% if @user && @user == current_user || !@user && current_user %>
- <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
- <% end %>
+ <nav class="secondary-actions">
+ <ul class="clearfix">
+ <% unless params[:friends] or params[:nearby] -%>
+ <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
+ <% end -%>
- <% if !@user && current_user %>
- <li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
- <% end %>
- </ul>
- </nav>
+ <% if @user && @user == current_user || !@user && current_user %>
+ <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
+ <% end %>
+
+ <% if !@user && current_user %>
+ <li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
+ <% end %>
+ </ul>
+ </nav>
+ </div>
</div>
<% end %>