# HG changeset patch # User nanaya # Date 1443207384 -32400 # Node ID 967233b2640486cd13f1c3595d52b4670072d81c # Parent ec413bbb4128061d174af884446d3dbd895b0acc Fix styling for md size diff -r ec413bbb4128 -r 967233b26404 app/assets/stylesheets/application.scss --- a/app/assets/stylesheets/application.scss Thu Sep 17 18:39:33 2015 +0900 +++ b/app/assets/stylesheets/application.scss Sat Sep 26 03:56:24 2015 +0900 @@ -3,6 +3,10 @@ .input-url1 { display: none !important; } +.form-group--narrow { + max-width: 300px; +} + .paste-paste { resize: vertical; font-family: $font-family-monospace; diff -r ec413bbb4128 -r 967233b26404 app/views/pastes/new.html.erb --- 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 @@ %> -
-
- <%= f.label :key, t(".deletion_key") %> - <%= f.text_field :key, :class => "form-control" %> -
+
+ <%= f.label :key, t(".deletion_key") %> + <%= f.text_field :key, :class => "form-control" %> +
-
- +
+ -
- <% paste_privacy_options.each do |label, value| %> -
- -
- <% end %> -
+
+ <% paste_privacy_options.each do |label, value| %> +
+ +
+ <% end %>
+
-
- <%= f.label :language %> +
+ <%= f.label :language %> - <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %> -
+ <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %> +
-
- <%= f.button :class => "btn btn-primary" %> +
+ <%= f.button :class => "btn btn-primary" %> - <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %> -
-
+ <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %> +
<% end %>
-
+
<%= form_for @paste, :method => :delete, :authenticity_token => false do |f| %> -
+
<%= f.text_field :key, :value => nil, @@ -52,7 +52,7 @@
<% end %> -
+