This commit is contained in:
jomo
2013-10-07 05:33:12 +02:00
parent 5fac505a31
commit 292e1ae4bb
4 changed files with 21 additions and 3 deletions
+18
View File
@@ -231,6 +231,9 @@ and (min-width: 1000px)
max-width: 100% !important; max-width: 100% !important;
height: 200px; height: 200px;
padding: 5px 3px; padding: 5px 3px;
&.full-width {
width: 100%;
}
&.vertical { &.vertical {
resize: vertical; resize: vertical;
} }
@@ -396,4 +399,19 @@ and (min-width: 1000px)
font-weight: bold; font-weight: bold;
} }
pre {
background: #ddd;
padding: 0.5em;
}
code {
background: #ddd;
}
pre code {
background: inherit;
padding: 0;
}
} }
+1 -1
View File
@@ -2,7 +2,7 @@
<%= simple_form_for @post do |f|%> <%= simple_form_for @post do |f|%>
<%= f.input :title, :label => false %> <%= f.input :title, :label => false %>
<%= f.input :content, :label => false %> <%= f.input :content, :label => false, input_html: {class: "full-width vertical"} %>
<%= f.submit "Update Post", :id => "edit_create_post" %> <%= f.submit "Update Post", :id => "edit_create_post" %>
<% end %> <% end %>
<div id="delete_post"> <div id="delete_post">
+1 -1
View File
@@ -15,5 +15,5 @@
</div> </div>
</div> </div>
<% end %> <% end %>
<%= link_to 'Make new Post', new_blogpost_path if mod? %> <%= button_to 'Make new Post', new_blogpost_path, method: "get" if mod? %>
</div> </div>
+1 -1
View File
@@ -1,6 +1,6 @@
<h1>New Post</h1> <h1>New Post</h1>
<%= simple_form_for @post do |f|%> <%= simple_form_for @post do |f|%>
<%= f.input :title, :label => false %> <%= f.input :title, :label => false %>
<%= f.input :content, :label => false %> <%= f.input :content, :label => false, input_html: {class: "full-width vertical"} %>
<%= f.submit "Update Post", :id => "edit_create_post" %> <%= f.submit "Update Post", :id => "edit_create_post" %>
<% end %> <% end %>