From 08c20d5d0c90e132a4d41d5298fce6dafd375949 Mon Sep 17 00:00:00 2001 From: Yuriy Volkov Date: Sun, 18 Apr 2010 13:11:18 +0300 Subject: [PATCH] move styling into the separate css file --- appoyo/app/views/layouts/fbpage.fbml.erb | 76 +++++++++++++------------------- appoyo/public/stylesheets/fbpage.css | 58 ++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 45 deletions(-) create mode 100644 appoyo/public/stylesheets/fbpage.css diff --git a/appoyo/app/views/layouts/fbpage.fbml.erb b/appoyo/app/views/layouts/fbpage.fbml.erb index 65213cc..65c703d 100644 --- a/appoyo/app/views/layouts/fbpage.fbml.erb +++ b/appoyo/app/views/layouts/fbpage.fbml.erb @@ -1,60 +1,46 @@ -<% if "start" != @current_action && "gallery" != @current_action %> -
- -
-<% end%> + + <%= stylesheet_link_tag "fbpage" %> - + <% if "start" != @current_action && "gallery" != @current_action %> +
+ +
+ <% end%> - + -<%= yield %> + <%= yield %> - +
- <%=t :do_u_wanna_3d%> + <%=t :do_u_wanna_3d%>
-
-
+
+
<%=t :make_it_for_free%> -
+
- <%=t :demo_entrance%> + <%=t :demo_entrance%>
@@ -62,27 +48,27 @@ ul#simple-menu li a.current:hover{color:#2E4560;background:#fff;}
 
-
+ - + diff --git a/appoyo/public/stylesheets/fbpage.css b/appoyo/public/stylesheets/fbpage.css new file mode 100644 index 0000000..c98425c --- /dev/null +++ b/appoyo/public/stylesheets/fbpage.css @@ -0,0 +1,58 @@ +/*fbpage layout style*/ +#demo-container { + padding:95px 15px 0 15px; + margin: 0 0 20px 0; + background-image: url('images/appoyo_bg.jpg'); +} + +ul#simple-menu { + list-style-type:none; + width:100%; + position:relative; + height:27px; + font-family:"Trebuchet MS",Arial,sans-serif; + font-size:13px; + font-weight:bold; + margin:0; + padding:11px 0 0 0; +} + +ul#simple-menu li{ + display:block; + float:left; + margin:0 0 0 4px; + height:27px; +} + +ul#simple-menu li.left { + margin:0; +} +ul#simple-menu li a { + display:block; + float:left; + color:#fff; + background:#a7aeb0; + line-height:27px; + text-decoration:none; + padding:0 17px 0 18px; + height:27px; +} +ul#simple-menu li a.right { + padding-right:19px; +} +ul#simple-menu li a:hover { + background:#2E4560; +} +ul#simple-menu li a.current { + color:#2E4560;background:#fff; +} +ul#simple-menu li a.current:hover { + color:#2E4560;background:#fff; +} + +/*tag cloud style*/ +.css1 { font-size: 1.0em; } +.css2 { font-size: 1.2em; } +.css3 { font-size: 1.4em; } +.css4 { font-size: 1.6em; } + -- 2.11.4.GIT