fix textareas

This commit is contained in:
jomo
2014-05-01 18:01:10 +02:00
parent 4774ebbb25
commit 477112ec0b
7 changed files with 6 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
/* CSS for Phones only */
@media only screen
and (max-width: 700px)
@media only screen and (max-width: 700px)
{
th, td {

View File

@@ -459,17 +459,9 @@ textarea {
height: 75px;
}
&.full-width {
width: 100%;
}
&.vertical {
resize: vertical;
}
&.horizontal {
resize: horizontal;
}
}
tr.spacer {

View File

@@ -2,7 +2,7 @@
<%= form_for @post do |f|%>
<%= f.text_field :title %>
<%= render partial: "mdhelp" %>
<%= f.text_area :content, class: "vertical" %>
<%= f.text_area :content%>
<p><%= f.submit "Update Post", class: "btn blue left" %></p>
<% end %>
<p><%= button_to "Delete post", @post, method: "delete", data: {confirm: "Delete post & comments forever?"}, class: "btn red right" %></p>

View File

@@ -2,6 +2,6 @@
<%= form_for @post do |f|%>
<%= f.text_field :title, placeholder: "Title" %>
<%= render partial: "mdhelp" %>
<%= f.text_area :content, placeholder: "Text", input_html: {class: "vertical"} %>
<%= f.text_area :content, placeholder: "Text" %>
<p><%= f.submit "Create Post", class: "btn blue left" %></p>
<% end %>

View File

@@ -2,7 +2,7 @@
<%= form_for @info do |f|%>
<%= f.text_field :title%>
<%= render partial: "mdhelp" %>
<%= f.text_area :content, class: "vertical" %>
<%= f.text_area :content %>
<p><%= f.submit "Update Info", class: "btn blue left" %></p>
<% end %>
<p><%= button_to "Delete Info", @info, method: "delete", data: {confirm: "Delete Info forever?"}, class: "btn red right" %></p>

View File

@@ -2,6 +2,6 @@
<%= form_for @info, url: info_index_path do |f|%>
<%= f.text_field :title, placeholder: "Title" %>
<%= render partial: "mdhelp" %>
<%= f.text_area :content, placeholder: "Text", class: "vertical" %>
<%= f.text_area :content, placeholder: "Text" %>
<p><%= f.submit "Create Info", class: "btn blue left" %></p>
<% end %>

View File

@@ -54,7 +54,7 @@
<td>About you</td>
<td>
<%= render partial: "mdhelp" %>
<%= f.text_area :about, class: "vertical", placeholder: "Tell us something about you...", disabled: !can_edit? %>
<%= f.text_area :about, placeholder: "Tell us something about you...", disabled: !can_edit? %>
</td>
</tr>
</tbody>