diff app/views/pastes/new.html.erb @ 424:967233b26404

Fix styling for md size
author nanaya <me@myconan.net>
date Sat, 26 Sep 2015 03:56:24 +0900
parents 080dd141898c
children b2991317d4d7
line wrap: on
line diff
--- a/app/views/pastes/new.html.erb	Thu Sep 17 18:39:33 2015 +0900
+++ b/app/views/pastes/new.html.erb	Sat Sep 26 03:56:24 2015 +0900
@@ -14,39 +14,37 @@
       %>
   </div></div>
 
-  <div class="row"><div class="col-sm-3">
-    <div class="form-group <%= error_class f.object, :key %>">
-      <%= f.label :key, t(".deletion_key") %>
-      <%= f.text_field :key, :class => "form-control" %>
-    </div>
+  <div class="form-group <%= error_class f.object, :key %> form-group--narrow">
+    <%= f.label :key, t(".deletion_key") %>
+    <%= f.text_field :key, :class => "form-control" %>
+  </div>
 
-    <div class="form-group">
-      <label><%= t(".privacy.label") %></label>
+  <div class="form-group">
+    <label><%= t(".privacy.label") %></label>
 
-      <div class="radio-container">
-        <% paste_privacy_options.each do |label, value| %>
-          <div class="radio">
-            <label>
-              <%= f.radio_button :is_private, value %>
-              <%= t(".privacy.#{label}") %>
-            </label>
-          </div>
-        <% end %>
-      </div>
+    <div class="radio-container">
+      <% paste_privacy_options.each do |label, value| %>
+        <div class="radio">
+          <label>
+            <%= f.radio_button :is_private, value %>
+            <%= t(".privacy.#{label}") %>
+          </label>
+        </div>
+      <% end %>
     </div>
+  </div>
 
-    <div class="form-group">
-      <%= f.label :language %>
+  <div class="form-group form-group--narrow">
+    <%= f.label :language %>
 
-      <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %>
-    </div>
+    <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %>
+  </div>
 
-    <div class="form-group">
-      <%= f.button :class => "btn btn-primary" %>
+  <div class="form-group">
+    <%= f.button :class => "btn btn-primary" %>
 
-      <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
-    </div>
-  </div></div>
+    <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
+  </div>
 <% end %>
 
 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog">