From 16c4b0e18cb3de3a7fd81ff46615e53e8db080c6 Mon Sep 17 00:00:00 2001 From: yanxd Date: Thu, 9 Jan 2014 09:15:58 +0800 Subject: [PATCH] board#new css --- app/views/messages/_form.html.erb | 7 ++++--- public/stylesheets/nyan.css | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb index 8ca518a72..2ed830ceb 100644 --- a/app/views/messages/_form.html.erb +++ b/app/views/messages/_form.html.erb @@ -4,11 +4,12 @@ <% replying ||= false %> -
+


-<%= f.text_field :subject,:size => 60, :style => "width:490px;", :id => "message_subject" %> - +<%= f.text_field :subject,:size => 60, :style => "width: 99%;", :id => "message_subject" %> +

+

<% unless replying %> <% if @message.safe_attribute? 'sticky' %> <%= f.check_box :sticky %> <%= label_tag 'message_sticky', l(:label_board_sticky) %> diff --git a/public/stylesheets/nyan.css b/public/stylesheets/nyan.css index fcc58bd3e..03e4d6775 100644 --- a/public/stylesheets/nyan.css +++ b/public/stylesheets/nyan.css @@ -3,6 +3,9 @@ .text_center{ text-align: center; } +.ph10_5{ /*padding horizontal 10% 5%*/ + padding: 0px 5% 0px 10%; +} * { font-family: Helvetica, Tahoma, Arial, "Microsoft YaHei", "微软雅黑", SimSun, "宋体", STXihei, "华文细黑", Heiti, "黑体", sans-serif; }