Fix some styles
This commit is contained in:
parent
2eee65ccf8
commit
dc50fdec88
7 changed files with 17 additions and 13 deletions
|
@ -29,6 +29,9 @@ $gray-medium-light: #eaeaea;
|
|||
}
|
||||
|
||||
|
||||
.thumbnail {
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
/* miscellaneous */
|
||||
.nowrap {
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
.thumbnail {
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.form_products {
|
||||
border-width: 1px;
|
||||
border-color: #000;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Place all the styles related to the Products controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
.orders .thumbnail {
|
||||
min-height: 200px;
|
||||
}
|
||||
|
|
|
@ -31,6 +31,6 @@ aside {
|
|||
}
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
.users .thumbnail {
|
||||
min-height: 330px;
|
||||
}
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
<div class="col-md-6 ">
|
||||
<div class="col-md-6">
|
||||
<h3 class="center" >sort by name</h3>
|
||||
|
||||
<% users.each do |user| %>
|
||||
<div class="thumbnail overview">
|
||||
<%= link_to image_tag("http://placekitten.com/g/50/50", class: "img-circle dagschotel"),
|
||||
user %>
|
||||
<%= link_to image_tag("http://babeholder.pixoil.com/img/100/100", class: "img-circle user_img"),
|
||||
new_user_order_path(user) %>
|
||||
|
||||
<%= link_to image_tag("http://placekitten.com/g/50/50", class: "img-circle dagschotel"), user %>
|
||||
<% if user.avatar.exists? %>
|
||||
<%= link_to image_tag(user.avatar), new_user_order_path(user) %>
|
||||
<% else %>
|
||||
<%= link_to image_tag("http://babeholder.pixoil.com/img/100/100", class: "img-circle user_img"), new_user_order_path(user) %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to user.name , new_user_order_path(user), class: "btn btn-info",
|
||||
style: get_color_style(user) %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h1>All products</h1>
|
||||
<%= render partial: 'flash' %>
|
||||
|
||||
<div class="row">
|
||||
<div class="row products">
|
||||
<div class="col-md-12">
|
||||
<%= render @products %>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<h1>All users</h1>
|
||||
<%= render partial: 'flash' %>
|
||||
|
||||
<div class="row">
|
||||
<div class="row users">
|
||||
<div class="col-md-12">
|
||||
<%= render @users %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue