From 289b0581df5cf08b1891272a17fd39eb1b515f10 Mon Sep 17 00:00:00 2001 From: yanxd Date: Sat, 11 Jan 2014 09:08:15 +0800 Subject: [PATCH] stores css --- app/controllers/stores_controller.rb | 2 +- app/views/layouts/base_stores.html.erb | 93 +++++++++++++++----------- app/views/stores/index.html.erb | 88 ++++++++++++++++++++++++ public/stylesheets/nyan.css | 11 +-- 4 files changed, 149 insertions(+), 45 deletions(-) diff --git a/app/controllers/stores_controller.rb b/app/controllers/stores_controller.rb index 6a0984e3f..2790308ba 100644 --- a/app/controllers/stores_controller.rb +++ b/app/controllers/stores_controller.rb @@ -10,5 +10,5 @@ class StoresController < ApplicationController def index end - + end diff --git a/app/views/layouts/base_stores.html.erb b/app/views/layouts/base_stores.html.erb index 018603b36..60e686f1a 100644 --- a/app/views/layouts/base_stores.html.erb +++ b/app/views/layouts/base_stores.html.erb @@ -1,55 +1,70 @@ - - - <%= h html_title %> - - - <%= csrf_meta_tag %> - <%= favicon %> - <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %> - <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> - <%= javascript_heads %> - <%= heads_for_theme %> - <%= call_hook :view_layouts_base_html_head %> - <%= yield :header_tags -%> - - -
-
-
- <%= render :partial => 'layouts/base_header'%> -
+ + + <%= h html_title %> + + + <%= csrf_meta_tag %> + <%= favicon %> + <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %> + <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> + <%= javascript_heads %> + <%#= heads_for_theme %> + <%= call_hook :view_layouts_base_html_head %> + <%= yield :header_tags -%> + + +
+
+
+ <%= render :partial => 'layouts/base_header'%> +
- -
- - - -
+ + +
- <%= call_hook :view_layouts_base_body_bottom %> - +
+ <%= call_hook :view_layouts_base_body_bottom %> + diff --git a/app/views/stores/index.html.erb b/app/views/stores/index.html.erb index e69de29bb..c282da570 100644 --- a/app/views/stores/index.html.erb +++ b/app/views/stores/index.html.erb @@ -0,0 +1,88 @@ + + +<% content_for :top_field do%> +
+ <%= form_for('#', :remote => true) do |f| %> + <%= f.text_field :name, size:"100", placeholder:'请输入要搜索的关键字' %> + <%= f.submit value:"search", class:"whiteButton m3p10 h30"%> + <% end %> +
+<% end %> + +<% content_for :sidebar do%> + this is sidebar in index.html.erb +<% end %> + +
+<% 4.times do |c|%> +
+

热门<%=c%>

+ + + + + + + + + <% 5.times do |c1|%> + + + + + <% end %> + +
文件名下载次数
<%=c1%><%=c1%> ti
+
+<% reset_cycle; end %> +
diff --git a/public/stylesheets/nyan.css b/public/stylesheets/nyan.css index 03e4d6775..2bf095e4f 100644 --- a/public/stylesheets/nyan.css +++ b/public/stylesheets/nyan.css @@ -1,5 +1,10 @@ /* TODO: base/common/page 准备封装一些基本样式组合调用 参考YUI *******************************************************************************/ +.border_box { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + -box-sizing: border-box; +} .text_center{ text-align: center; } @@ -201,11 +206,7 @@ input[class='nyan-clean-gray']:active, .nyan-clean-gray:active { } /* 贴吧 forum memo *******************************************************************************/ -/** { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - -box-sizing: border-box; -}*/ + div.actions input[type="text"]{ padding: 3px; width: 100%;