varius style changes

This commit is contained in:
jomo
2014-05-09 01:10:43 +02:00
parent d7f0dff89e
commit ca978d9af6
3 changed files with 33 additions and 15 deletions

View File

@@ -11,8 +11,8 @@
#head { #head {
#menu { #menu {
#logo:hover { #logo {
transition: none; display: none;
} }
} }
} }
@@ -44,5 +44,17 @@
} }
} }
#user-info {
tbody {
tr {
display: block;
margin-bottom: 0.5em;
}
td:first-child:after {
content: ":";
}
}
}
} }

View File

@@ -100,10 +100,11 @@ a {
} }
ul { ul {
margin: 0 0 0 100px; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
line-height: 0; line-height: 0;
text-align: center;
li { li {
display: inline-block; display: inline-block;
@@ -199,7 +200,7 @@ span.no-about {
h1 { h1 {
font-weight: normal; font-weight: normal;
font-size: 200%; font-size: 200%;
margin: 0; margin: 1em 0 0.5em;
text-shadow: 0 1px #999; text-shadow: 0 1px #999;
word-wrap: break-word; word-wrap: break-word;
} }
@@ -727,6 +728,10 @@ table {
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
table-layout: fixed; table-layout: fixed;
label {
font-weight: bold;
}
} }
img { img {

View File

@@ -1,6 +1,4 @@
<div id="user-info"> <div id="user-info">
<h1><%= @user.name %></h1>
<% if @user.is?(current_user) || (mod? && current_user.role >= @user.role) %> <% if @user.is?(current_user) || (mod? && current_user.role >= @user.role) %>
<div class="profile-action" ><%= link_to "edit profile", edit_user_path(@user), :class => "btn blue" %></div> <div class="profile-action" ><%= link_to "edit profile", edit_user_path(@user), :class => "btn blue" %></div>
<% end %> <% end %>
@@ -11,6 +9,9 @@
<%= link_to "revert", revert_path, :class => "btn blue" %> <%= link_to "revert", revert_path, :class => "btn blue" %>
<% end %> <% end %>
</div> </div>
<h1><%= @user.name %></h1>
<div class="clear"></div> <div class="clear"></div>
<% if @user.banned? %> <% if @user.banned? %>
@@ -37,46 +38,46 @@
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td>IGN</td> <td><b>IGN</b></td>
<td><%= @user.ign %></td> <td><%= @user.ign %></td>
</tr> </tr>
<tr> <tr>
<td>Role</td> <td><b>Role</b></td>
<td><%= link_to @user.role, users_path(:role => @user.role.name) %></td> <td><%= link_to @user.role, users_path(:role => @user.role.name) %></td>
</tr> </tr>
<% if current_user && !@user.skype.blank? && (@user.skype_public || current_user == @user || mod?) %> <% if current_user && !@user.skype.blank? && (@user.skype_public || current_user == @user || mod?) %>
<tr> <tr>
<td>Skype</td> <td><b>Skype</b></td>
<td><%= link_to @user.skype, "skype:#{@user.skype}?chat", target: "_blank" %></a></td> <td><%= link_to @user.skype, "skype:#{@user.skype}?chat", target: "_blank" %></a></td>
</tr> </tr>
<% end %> <% end %>
<% if !@user.youtube.blank? && !@user.youtube_channelname.blank? %> <% if !@user.youtube.blank? && !@user.youtube_channelname.blank? %>
<tr> <tr>
<td>YouTube</td> <td><b>YouTube</b></td>
<td><%= link_to @user.youtube_channelname, "https://youtube.com/user/#{CGI.escape(@user.youtube)}", :target => "_blank" %></td> <td><%= link_to @user.youtube_channelname, "https://youtube.com/user/#{CGI.escape(@user.youtube)}", :target => "_blank" %></td>
</tr> </tr>
<% end %> <% end %>
<% if !@user.twitter.blank? %> <% if !@user.twitter.blank? %>
<tr> <tr>
<td>Twitter</td> <td><b>Twitter</b></td>
<td><%= link_to "@#{@user.twitter}", "https://twitter.com/#{CGI.escape(@user.twitter)}", :target => "_blank" %></td> <td><%= link_to "@#{@user.twitter}", "https://twitter.com/#{CGI.escape(@user.twitter)}", :target => "_blank" %></td>
</tr> </tr>
<% end %> <% end %>
<tr> <tr>
<td>Joined</td> <td><b>Joined</b></td>
<td><time title="<%= @user.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @user.created_at.to_datetime.rfc3339 %>"><%= @user.created_at.strftime("%e %b %Y, %H:%M") %></time></td> <td><time title="<%= @user.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @user.created_at.to_datetime.rfc3339 %>"><%= @user.created_at.strftime("%e %b %Y, %H:%M") %></time></td>
</tr> </tr>
<% if mod? || @user.is?(current_user) %> <% if mod? || @user.is?(current_user) %>
<tr> <tr>
<td>Last IP</td> <td><b>Last IP</b></td>
<td><%= @user.last_ip %></td> <td><%= @user.last_ip %></td>
</tr> </tr>
<tr> <tr>
<td>Email</td> <td><b>Email</b></td>
<td><%= mail_to @user.email, @user.email, :subject => "Redstoner" %></td> <td><%= mail_to @user.email, @user.email, :subject => "Redstoner" %></td>
</tr> </tr>
<tr> <tr>
<td>Last seen</td> <td><b>Last seen</b></td>
<td><time title="<%= @user.last_seen.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @user.last_seen.to_datetime.rfc3339 %>"><%= @user.last_seen.strftime("%e %b %Y, %H:%M") %></time></td> <td><time title="<%= @user.last_seen.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @user.last_seen.to_datetime.rfc3339 %>"><%= @user.last_seen.strftime("%e %b %Y, %H:%M") %></time></td>
</tr> </tr>
<% end %> <% end %>