Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

extracted more twb specific items into the twb template

  • Loading branch information...
commit 4c1d43d87aca17ebcb1d6d292d724efc5887fbff 1 parent 5cf93fb
Justin Ball authored
Showing with 141 additions and 171 deletions.
  1. +1 −1  app/helpers/theme_helper.rb
  2. +2 −3 app/views/layouts/global/_head.html.erb
  3. +1 −1  lib/generators/theme/theme_generator.rb
  4. BIN  public/images/bg.jpg
  5. 0  public/images/{ → twb}/TeachersLeadersHead.gif
  6. 0  public/images/{ → twb}/backtest2a.jpg
  7. 0  public/images/{ → twb}/backtest2c.gif
  8. 0  public/images/{ → twb}/button.gif
  9. BIN  public/images/twb/button_donate.png
  10. BIN  public/images/twb/button_participate.png
  11. 0  public/images/{ → twb}/button_register.gif
  12. 0  public/images/{ → twb}/button_search.gif
  13. 0  public/images/{ → twb}/button_signin.gif
  14. 0  public/images/{ → twb}/button_submit.gif
  15. 0  public/images/{ → twb}/button_whatb.png
  16. 0  public/images/{ → twb}/carta-line.gif
  17. 0  public/images/{ → twb}/donate_bg.png
  18. 0  public/images/{ → twb}/facebook_icon.gif
  19. 0  public/images/{ → twb}/featured_members.gif
  20. 0  public/images/{ → twb}/fredjane.jpg
  21. 0  public/images/{ → twb}/h6_blue_trans.png
  22. 0  public/images/{ → twb}/home-logo.jpg
  23. 0  public/images/{ → twb}/home-logo.png
  24. 0  public/images/{ → twb}/icon_conference.gif
  25. 0  public/images/{ → twb}/icon_courses.gif
  26. 0  public/images/{ → twb}/icon_donate.gif
  27. 0  public/images/{ → twb}/icon_help.gif
  28. 0  public/images/{ → twb}/icon_help_out.gif
  29. 0  public/images/{ → twb}/icon_network.gif
  30. 0  public/images/{ → twb}/icon_news.gif
  31. 0  public/images/{ → twb}/icon_where.gif
  32. 0  public/images/{ → twb}/inner-top.jpg
  33. 0  public/images/{ → twb}/landscape_whiteb.gif
  34. 0  public/images/{ → twb}/linkedin_icon.gif
  35. 0  public/images/{ → twb}/mainb.gif
  36. 0  public/images/{ → twb}/man.png
  37. 0  public/images/{ → twb}/map.png
  38. 0  public/images/{ → twb}/mid-spacing.gif
  39. 0  public/images/{ → twb}/mid_white_spacing.gif
  40. 0  public/images/{ → twb}/midsect_darkb.gif
  41. 0  public/images/{ → twb}/midsect_light.gif
  42. 0  public/images/{ → twb}/nav_dropdown_bottom.png
  43. 0  public/images/{ → twb}/nav_dropdown_grad.png
  44. 0  public/images/{ → twb}/nav_dropdown_hover.gif
  45. 0  public/images/{ → twb}/nav_dropdown_li.png
  46. 0  public/images/{ → twb}/nav_dropdown_sep.gif
  47. 0  public/images/{ → twb}/nav_separator.png
  48. 0  public/images/{ → twb}/parchment-background.jpg
  49. 0  public/images/{ → twb}/parchment-background2.gif
  50. 0  public/images/{ → twb}/parchment-background2.jpg
  51. 0  public/images/{ → twb}/parchment-background2.png
  52. 0  public/images/{ → twb}/participate.png
  53. 0  public/images/{ → twb}/raphael2.jpg
  54. 0  public/images/{ → twb}/registration.jpg
  55. 0  public/images/{ → twb}/rounded_field.gif
  56. 0  public/images/{ → twb}/search_bg.png
  57. 0  public/images/{ → twb}/search_bgb.png
  58. 0  public/images/{ → twb}/signin_bg.png
  59. 0  public/images/{ → twb}/splash.jpg
  60. 0  public/images/{ → twb}/splash1280.jpg
  61. 0  public/images/{ → twb}/splash1440.jpg
  62. 0  public/images/{ → twb}/splash800.jpg
  63. 0  public/images/{ → twb}/tagback.png
  64. 0  public/images/{ → twb}/top.gif
  65. 0  public/images/{ → twb}/twb-logo-home-2009.gif
  66. 0  public/images/{ → twb}/twb.png
  67. 0  public/images/{ → twb}/twb_members_in_action_head.gif
  68. 0  public/images/{ → twb}/twbguy_2.gif
  69. 0  public/images/{ → twb}/twitter_icon.gif
  70. 0  public/images/{ → twb}/youtube_icon.gif
  71. +0 −54 public/stylesheets/scaffold.css
  72. 0  public/stylesheets/themes/default/{default.css → styles.css}
  73. +39 −39 public/stylesheets/{ → themes/twb}/print.css
  74. +9 −9 public/stylesheets/{ → themes/twb}/splash1024.css
  75. +9 −9 public/stylesheets/{ → themes/twb}/splash1280.css
  76. +9 −9 public/stylesheets/{ → themes/twb}/splash1440.css
  77. +9 −9 public/stylesheets/{ → themes/twb}/splash800.css
  78. +28 −28 public/stylesheets/themes/twb/{twb.css → styles.css}
  79. +6 −6 themes/twb/views/home/home.html.erb
  80. +25 −0 themes/twb/views/layouts/global/_head.html.erb
  81. +3 −3 themes/twb/views/layouts/home.html.erb
2  app/helpers/theme_helper.rb
View
@@ -1,7 +1,7 @@
module ThemeHelper
def theme_stylesheet_link_tag
- stylesheet_link_tag "themes/#{current_theme}"
+ stylesheet_link_tag "themes/#{current_theme}/styles"
end
end
5 app/views/layouts/global/_head.html.erb
View
@@ -1,9 +1,8 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Teachers Without Borders supports teacher-leaders, worldwide, because they play a vital role in their communities." />
<title><%= @title || _(GlobalConfig.application_name) -%></title>
-<%= stylesheet_link_tag 'reset', 'ie', 'application', 'beast', 'standard', :cache=>true -%>
-<%= stylesheet_link_tag "print", :media => "print" %>
-<%= javascript_include_tag 'jquery', 'jquery-ui', 'jrails', 'thickbox', 'jquery.blockUI.js', 'jquery-plugins/jquery.jgrowl_minimized.js', 'application' -%>
+<%= stylesheet_link_tag 'reset', 'ie', 'application', 'beast', 'standard', :cache=>true -%>
+<%= javascript_include_tag 'jquery', 'jquery-ui', 'jrails', 'thickbox', 'jquery-plugins/jquery.jgrowl_minimized.js', 'application' -%>
<%= theme_stylesheet_link_tag %>
<%= javascript_tag %[const AUTH_TOKEN = #{form_authenticity_token.inspect};] if protect_against_forgery? -%>
<%= yield :head -%>
2  lib/generators/theme/theme_generator.rb
View
@@ -17,7 +17,7 @@ def manifest
#stylesheets
m.directory "public/stylesheets/themes"
m.directory "public/stylesheets/themes/#{file_name}"
- m.file "stylesheets/styles.css", "public/stylesheets/themes/#{file_name}/#{file_name}.css"
+ m.file "stylesheets/styles.css", "public/stylesheets/themes/#{file_name}/styles.css"
# localization
m.file "locale/en.yml", "themes/#{file_name}/locale/en.yml"
BIN  public/images/bg.jpg
View
Deleted file not rendered
0  public/images/TeachersLeadersHead.gif → public/images/twb/TeachersLeadersHead.gif
View
File renamed without changes
0  public/images/backtest2a.jpg → public/images/twb/backtest2a.jpg
View
File renamed without changes
0  public/images/backtest2c.gif → public/images/twb/backtest2c.gif
View
File renamed without changes
0  public/images/button.gif → public/images/twb/button.gif
View
File renamed without changes
BIN  public/images/twb/button_donate.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  public/images/twb/button_participate.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0  public/images/button_register.gif → public/images/twb/button_register.gif
View
File renamed without changes
0  public/images/button_search.gif → public/images/twb/button_search.gif
View
File renamed without changes
0  public/images/button_signin.gif → public/images/twb/button_signin.gif
View
File renamed without changes
0  public/images/button_submit.gif → public/images/twb/button_submit.gif
View
File renamed without changes
0  public/images/button_whatb.png → public/images/twb/button_whatb.png
View
File renamed without changes
0  public/images/carta-line.gif → public/images/twb/carta-line.gif
View
File renamed without changes
0  public/images/donate_bg.png → public/images/twb/donate_bg.png
View
File renamed without changes
0  public/images/facebook_icon.gif → public/images/twb/facebook_icon.gif
View
File renamed without changes
0  public/images/featured_members.gif → public/images/twb/featured_members.gif
View
File renamed without changes
0  public/images/fredjane.jpg → public/images/twb/fredjane.jpg
View
File renamed without changes
0  public/images/h6_blue_trans.png → public/images/twb/h6_blue_trans.png
View
File renamed without changes
0  public/images/home-logo.jpg → public/images/twb/home-logo.jpg
View
File renamed without changes
0  public/images/home-logo.png → public/images/twb/home-logo.png
View
File renamed without changes
0  public/images/icon_conference.gif → public/images/twb/icon_conference.gif
View
File renamed without changes
0  public/images/icon_courses.gif → public/images/twb/icon_courses.gif
View
File renamed without changes
0  public/images/icon_donate.gif → public/images/twb/icon_donate.gif
View
File renamed without changes
0  public/images/icon_help.gif → public/images/twb/icon_help.gif
View
File renamed without changes
0  public/images/icon_help_out.gif → public/images/twb/icon_help_out.gif
View
File renamed without changes
0  public/images/icon_network.gif → public/images/twb/icon_network.gif
View
Diff not rendered
0  public/images/icon_news.gif → public/images/twb/icon_news.gif
View
Diff not rendered
0  public/images/icon_where.gif → public/images/twb/icon_where.gif
View
Diff not rendered
0  public/images/inner-top.jpg → public/images/twb/inner-top.jpg
View
Diff not rendered
0  public/images/landscape_whiteb.gif → public/images/twb/landscape_whiteb.gif
View
Diff not rendered
0  public/images/linkedin_icon.gif → public/images/twb/linkedin_icon.gif
View
Diff not rendered
0  public/images/mainb.gif → public/images/twb/mainb.gif
View
Diff not rendered
0  public/images/man.png → public/images/twb/man.png
View
Diff not rendered
0  public/images/map.png → public/images/twb/map.png
View
Diff not rendered
0  public/images/mid-spacing.gif → public/images/twb/mid-spacing.gif
View
Diff not rendered
0  public/images/mid_white_spacing.gif → public/images/twb/mid_white_spacing.gif
View
Diff not rendered
0  public/images/midsect_darkb.gif → public/images/twb/midsect_darkb.gif
View
Diff not rendered
0  public/images/midsect_light.gif → public/images/twb/midsect_light.gif
View
Diff not rendered
0  public/images/nav_dropdown_bottom.png → public/images/twb/nav_dropdown_bottom.png
View
Diff not rendered
0  public/images/nav_dropdown_grad.png → public/images/twb/nav_dropdown_grad.png
View
Diff not rendered
0  public/images/nav_dropdown_hover.gif → public/images/twb/nav_dropdown_hover.gif
View
Diff not rendered
0  public/images/nav_dropdown_li.png → public/images/twb/nav_dropdown_li.png
View
Diff not rendered
0  public/images/nav_dropdown_sep.gif → public/images/twb/nav_dropdown_sep.gif
View
Diff not rendered
0  public/images/nav_separator.png → public/images/twb/nav_separator.png
View
Diff not rendered
0  public/images/parchment-background.jpg → public/images/twb/parchment-background.jpg
View
Diff not rendered
0  public/images/parchment-background2.gif → public/images/twb/parchment-background2.gif
View
Diff not rendered
0  public/images/parchment-background2.jpg → public/images/twb/parchment-background2.jpg
View
Diff not rendered
0  public/images/parchment-background2.png → public/images/twb/parchment-background2.png
View
Diff not rendered
0  public/images/participate.png → public/images/twb/participate.png
View
Diff not rendered
0  public/images/raphael2.jpg → public/images/twb/raphael2.jpg
View
Diff not rendered
0  public/images/registration.jpg → public/images/twb/registration.jpg
View
Diff not rendered
0  public/images/rounded_field.gif → public/images/twb/rounded_field.gif
View
Diff not rendered
0  public/images/search_bg.png → public/images/twb/search_bg.png
View
Diff not rendered
0  public/images/search_bgb.png → public/images/twb/search_bgb.png
View
Diff not rendered
0  public/images/signin_bg.png → public/images/twb/signin_bg.png
View
Diff not rendered
0  public/images/splash.jpg → public/images/twb/splash.jpg
View
Diff not rendered
0  public/images/splash1280.jpg → public/images/twb/splash1280.jpg
View
Diff not rendered
0  public/images/splash1440.jpg → public/images/twb/splash1440.jpg
View
Diff not rendered
0  public/images/splash800.jpg → public/images/twb/splash800.jpg
View
Diff not rendered
0  public/images/tagback.png → public/images/twb/tagback.png
View
Diff not rendered
0  public/images/top.gif → public/images/twb/top.gif
View
Diff not rendered
0  public/images/twb-logo-home-2009.gif → public/images/twb/twb-logo-home-2009.gif
View
Diff not rendered
0  public/images/twb.png → public/images/twb/twb.png
View
Diff not rendered
0  public/images/twb_members_in_action_head.gif → public/images/twb/twb_members_in_action_head.gif
View
Diff not rendered
0  public/images/twbguy_2.gif → public/images/twb/twbguy_2.gif
View
Diff not rendered
0  public/images/twitter_icon.gif → public/images/twb/twitter_icon.gif
View
Diff not rendered
0  public/images/youtube_icon.gif → public/images/twb/youtube_icon.gif
View
Diff not rendered
54 public/stylesheets/scaffold.css
View
@@ -1,54 +0,0 @@
-body { background-color: #fff; color: #333; }
-
-body, p, ol, ul, td {
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
-}
-
-pre {
- background-color: #eee;
- padding: 10px;
- font-size: 11px;
-}
-
-a { color: #000; }
-a:visited { color: #666; }
-a:hover { color: #fff; background-color:#000; }
-
-.fieldWithErrors {
- padding: 2px;
- background-color: red;
- display: table;
-}
-
-#errorExplanation {
- width: 400px;
- border: 2px solid red;
- padding: 7px;
- padding-bottom: 12px;
- margin-bottom: 20px;
- background-color: #f0f0f0;
-}
-
-#errorExplanation h2 {
- text-align: left;
- font-weight: bold;
- padding: 5px 5px 5px 15px;
- font-size: 12px;
- margin: -7px;
- background-color: #c00;
- color: #fff;
-}
-
-#errorExplanation p {
- color: #333;
- margin-bottom: 0;
- padding: 5px;
-}
-
-#errorExplanation ul li {
- font-size: 12px;
- list-style: square;
-}
-
0  public/stylesheets/themes/default/default.css → public/stylesheets/themes/default/styles.css
View
File renamed without changes
78 public/stylesheets/print.css → public/stylesheets/themes/twb/print.css
View
@@ -1,39 +1,39 @@
-body {
- background: white;
- font-size: 12pt;
-}
-
-a:link, a:visited {
- color: #520;
- background: transparent;
- font-weight: bold;
- text-decoration: underline;
-}
-
- a:link:after, #content a:visited:after {
- content: " (" attr(href) ") ";
- font-size: 90%;
-}
-
-a[href^="/"]:after {
- content: " (http://www.teacherswithoutborders.org" attr(href) ") ";
-}
-
-#header,
-#landscape,
-#nav,
-#subnav,
-#footer dl {
- display: none;
-}
-
-.content {
- width: auto;
- margin: 0 5%;
- padding: 0;
- border: 0;
- float: none !important;
- color: black;
- background: transparent;
-
-}
+body {
+ background: white;
+ font-size: 12pt;
+}
+
+a:link, a:visited {
+ color: #520;
+ background: transparent;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+ a:link:after, #content a:visited:after {
+ content: " (" attr(href) ") ";
+ font-size: 90%;
+}
+
+a[href^="/"]:after {
+ content: " (http://www.teacherswithoutborders.org" attr(href) ") ";
+}
+
+#header,
+#landscape,
+#nav,
+#subnav,
+#footer dl {
+ display: none;
+}
+
+.content {
+ width: auto;
+ margin: 0 5%;
+ padding: 0;
+ border: 0;
+ float: none !important;
+ color: black;
+ background: transparent;
+
+}
18 public/stylesheets/splash1024.css → public/stylesheets/themes/twb/splash1024.css
View
@@ -1,9 +1,9 @@
-#splash{margin:10px auto; width:994px; height:621px; background-image:url(../images/splash.jpg)}
-#btn1 {height:65px;left:290px;position:relative;top:183px;width:355px;}
-#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn2 {float:left;height:130px;left:32px;position:relative;top:185px;width:270px;}
-#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn3 {float:left;height:125px;left:58px;position:relative;top:190px;width:270px;}
-#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn4 {float:left;height:130px;left:86px;position:relative;top:185px;width:270px;}
-#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#splash{margin:10px auto; width:994px; height:621px; background-image:url(../images/splash.jpg)}
+#btn1 {height:65px;left:290px;position:relative;top:183px;width:355px;}
+#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn2 {float:left;height:130px;left:32px;position:relative;top:185px;width:270px;}
+#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn3 {float:left;height:125px;left:58px;position:relative;top:190px;width:270px;}
+#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn4 {float:left;height:130px;left:86px;position:relative;top:185px;width:270px;}
+#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
18 public/stylesheets/splash1280.css → public/stylesheets/themes/twb/splash1280.css
View
@@ -1,9 +1,9 @@
-#splash{margin:10px auto; width:1250px; height:781px; background-image:url(../images/splash1280.jpg)}
-#btn1 {height:81px;left:365px;position:relative;top:230px;width:440px;position:relative;}
-#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn2 {float:left;height:160px;left:45px;position:relative;top:237px;width:330px;}
-#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn3 {float:left;height:155px;position:relative;top:240px;width:330px;left:90px;}
-#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn4 {float:left;height:160px;position:relative;top:237px;width:330px;left:133px;}
-#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#splash{margin:10px auto; width:1250px; height:781px; background-image:url(../images/splash1280.jpg)}
+#btn1 {height:81px;left:365px;position:relative;top:230px;width:440px;position:relative;}
+#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn2 {float:left;height:160px;left:45px;position:relative;top:237px;width:330px;}
+#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn3 {float:left;height:155px;position:relative;top:240px;width:330px;left:90px;}
+#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn4 {float:left;height:160px;position:relative;top:237px;width:330px;left:133px;}
+#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
18 public/stylesheets/splash1440.css → public/stylesheets/themes/twb/splash1440.css
View
@@ -1,9 +1,9 @@
-#splash{margin:10px auto; width:1410px; height:881px; background-image:url(../images/splash1440.jpg)}
-#btn1 {left: 418px; top: 260px; height: 93px; width: 489px; position:relative;}
-#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn2 {float:left; left: 52px; top: 263px; height: 184px; width: 369px; position:relative;}
-#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn3 {float:left; left: 105px; top: 271px; height: 176px; width: 369px; position:relative;}
-#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn4 {float:left; left: 160px; top: 263px; height: 184px; width: 369px; position:relative;}
-#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#splash{margin:10px auto; width:1410px; height:881px; background-image:url(../images/splash1440.jpg)}
+#btn1 {left: 418px; top: 260px; height: 93px; width: 489px; position:relative;}
+#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn2 {float:left; left: 52px; top: 263px; height: 184px; width: 369px; position:relative;}
+#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn3 {float:left; left: 105px; top: 271px; height: 176px; width: 369px; position:relative;}
+#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn4 {float:left; left: 160px; top: 263px; height: 184px; width: 369px; position:relative;}
+#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
18 public/stylesheets/splash800.css → public/stylesheets/themes/twb/splash800.css
View
@@ -1,9 +1,9 @@
-#splash{margin:10px auto; width:770px; height:481px; background-image:url(../images/splash800.jpg)}
-#btn1 {height:48px;left:220px;position:relative;top:143px;width:280px;}
-#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn2 {float:left;height:102px;left:27px;position:relative;top:144px;width:204px;}
-#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn3 {float:left;height:95px;left:52px;position:relative;top:150px;width:204px;}
-#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
-#btn4 {float:left;height:102px;left:78px;position:relative;top:144px;width:204px;}
-#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#splash{margin:10px auto; width:770px; height:481px; background-image:url(../images/splash800.jpg)}
+#btn1 {height:48px;left:220px;position:relative;top:143px;width:280px;}
+#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn2 {float:left;height:102px;left:27px;position:relative;top:144px;width:204px;}
+#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn3 {float:left;height:95px;left:52px;position:relative;top:150px;width:204px;}
+#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
+#btn4 {float:left;height:102px;left:78px;position:relative;top:144px;width:204px;}
+#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
56 public/stylesheets/themes/twb/twb.css → public/stylesheets/themes/twb/styles.css
View
@@ -1,8 +1,8 @@
-body{font:normal 13px/20px "Verdana",Arial,Helvetica,sans-serif;background:#FFF url(/images/backtest2a.jpg);background-repeat:no-repeat;background-position:top;color:#454545;margin:0px auto;text-align:center;}
+body{font:normal 13px/20px "Verdana",Arial,Helvetica,sans-serif;background:#FFF url(/images/twb/backtest2a.jpg);background-repeat:no-repeat;background-position:top;color:#454545;margin:0px auto;text-align:center;}
#wrapper{width:960px;margin:0px auto;padding-left:0px;border:dotted 1px #ccc;}
/*------------------ @globals ------------------*/
#site{position:relative;}
-#twb{position:relative;background:#333399 url(/images/backtest2c.gif) top center no-repeat;}
+#twb{position:relative;background:#333399 url(/images/twb/backtest2c.gif) top center no-repeat;}
#twbfront{width:100%;height:100%;position:relative;}
.container{width:960px;margin:0 auto;}
a{color:#333399;}
@@ -37,25 +37,25 @@ ul li a:hover{color:#333399;}
#header2 h1{float:left;position:relative;}
#header2 h1,
#header2 h1 a{width:260px;height:77px;display:block;}
-#header2 h1 a{background:url(/images/twb.png) no-repeat 0 0;text-indent:-9999px;}
-#header2 h2{clear:left;height:25px;float:left;padding:10px;background:url(/images/h7_blue_trans.png) repeat 0 0;position:relative;margin-top:30px;}
+#header2 h1 a{background:url(/images/twb/twb.png) no-repeat 0 0;text-indent:-9999px;}
+#header2 h2{clear:left;height:25px;float:left;padding:10px;background:url(/images/twb/h7_blue_trans.png) repeat 0 0;position:relative;margin-top:30px;}
#header2 h2 span{display:block;height:25px;text-indent:-9999px;}
#header{height:auto;padding-bottom:40px;}
#header h1{float:left;position:relative;}
#header h1,
#header h1 a{width:260px;height:77px;display:block;}
-#header h1 a{background:url(/images/twb.png) no-repeat 0 0;text-indent:-9999px;}
+#header h1 a{background:url(/images/twb/twb.png) no-repeat 0 0;text-indent:-9999px;}
/*-- nav --*/
-ul#nav{float:right;height:50px;background:url(/images/nav_separator.png) no-repeat 0 0;padding-left:2px;margin:0;z-index:1000;}
+ul#nav{float:right;height:50px;background:url(/images/twb/nav_separator.png) no-repeat 0 0;padding-left:2px;margin:0;z-index:1000;}
ul#nav li,
ul#nav li a{display:block;float:left;line-height:12px;}
-ul#nav li{background:url(/images/nav_separator.png) no-repeat right 0;padding-left:0;padding-right:2px;height:50px;position:relative;}
+ul#nav li{background:url(/images/twb/nav_separator.png) no-repeat right 0;padding-left:0;padding-right:2px;height:50px;position:relative;}
ul#nav li a{/* text-transform:uppercase;*/
text-decoration:none;font-weight:bold;color:#333399;padding:19px 15px 19px 15px;background:none;}
ul#nav li.active a{color:#3c9b8d;}
/*-- Dropdowns --*/
-ul#nav li .dropdown{text-align:left;display:none;position:absolute;z-index:10050;width:208px;top:50px;left:-4px;overflow:hidden;clear:left;background:url(/images/nav_dropdown_grad.png) no-repeat 2px 0;padding-top:1px;}
-ul#nav li ul{width:100%;background:url(/images/nav_dropdown_li.png) repeat-y 0 0;overflow:hidden;margin:0;padding:0;}
+ul#nav li .dropdown{text-align:left;display:none;position:absolute;z-index:10050;width:208px;top:50px;left:-4px;overflow:hidden;clear:left;background:url(/images/twb/nav_dropdown_grad.png) no-repeat 2px 0;padding-top:1px;}
+ul#nav li ul{width:100%;background:url(/images/twb/nav_dropdown_li.png) repeat-y 0 0;overflow:hidden;margin:0;padding:0;}
ul#nav li:hover .dropdown,
ul#nav li.over .dropdown{display:block;}
/* add styling? */
@@ -66,37 +66,37 @@ ul#nav li.over ul li a{color:#454545;}
/* clear dropdowns */
ul#nav li ul li,
ul#nav li ul li a{float:none;height:1%;background:none;margin:0;padding:0;text-transform:none;font-weight:normal;}
-ul#nav li ul li{padding:4px 0 6px 8px;margin:0 5px 0 4px;background:url(/images/nav_dropdown_sep.gif) repeat-x 0 bottom;}
+ul#nav li ul li{padding:4px 0 6px 8px;margin:0 5px 0 4px;background:url(/images/twb/nav_dropdown_sep.gif) repeat-x 0 bottom;}
ul#nav li ul li.last{background:none;padding-bottom:4px;}
-ul#nav li ul li a{font-size:12px;line-height:12px;padding:5px 7px 6px 7px;color:#454545;background:url(/images/nav_dropdown_hover.gif) no-repeat left -23px;}
+ul#nav li ul li a{font-size:12px;line-height:12px;padding:5px 7px 6px 7px;color:#454545;background:url(/images/twb/nav_dropdown_hover.gif) no-repeat left -23px;}
ul#nav li ul li a:hover{background-position:left center;color:#fff;}
-ul#nav li .dropdown .bottom{background:url(/images/nav_dropdown_bottom.png) no-repeat left top;height:11px;line-height:1px;}
+ul#nav li .dropdown .bottom{background:url(/images/twb/nav_dropdown_bottom.png) no-repeat left top;height:11px;line-height:1px;}
/*-- signin form --*/
-#signin{background:transparent url(/images/signin_bg.png) no-repeat scroll 0 0;float:right;height:32px;margin-top:29px;padding-right:125px;padding-top:0;width:466px;}
+#signin{background:transparent url(/images/twb/signin_bg.png) no-repeat scroll 0 0;float:right;height:32px;margin-top:29px;padding-right:125px;padding-top:0;width:466px;}
#signin fieldset{border:0 none;margin:0 1px;padding:2px;}
#signin legend{display:none;}
-#signin div{background:transparent url(/images/rounded_field.gif) no-repeat scroll 0 0;float:left;height:18px;margin:-26px 0 5px;padding:2px;width:190px;}
+#signin div{background:transparent url(/images/twb/rounded_field.gif) no-repeat scroll 0 0;float:left;height:18px;margin:-26px 0 5px;padding:2px;width:190px;}
#signin p{border:0 none;padding:0;}
#signin .buttons{float:left;overflow:hidden;padding-bottom:0;padding-left:61px;padding-top:0;width:100%;}
#signin label{color:#656565;display:block;float:left;font-size:11px;font-weight:normal;line-height:18px;padding:0 0 0 5px;text-align:left;width:65px;}
#signin input#username,#signin input#password{background:transparent none repeat scroll 0 0;border:0 none;float:left;font-family:"Verdana",Helvetica,Arial,sans-serif;font-size:12px;line-height:18px;margin-top:1px;padding:0;width:113px;}
#signin input#password{font-weight:bold;}
#signin .signin_button{border:0 none;cursor:pointer;display:block;float:right;height:27px;margin:0 5px 0 0;padding:0;text-indent:-9999px;width:61px;}
-#signin #signin_button{background:transparent url(/images/button_signin.gif) no-repeat scroll 0 0;}
-#signin #register_button{background:transparent url(/images/button_register.gif) no-repeat scroll 0 0;margin-left:1px;}
+#signin #signin_button{background:transparent url(/images/twb/button_signin.gif) no-repeat scroll 0 0;}
+#signin #register_button{background:transparent url(/images/twb/button_register.gif) no-repeat scroll 0 0;margin-left:1px;}
/*----------------search------------*/
#log-out{position:relative;padding-left:475px;text-align:right;width:350px;right:inherit;top:24px;}
#log-out a{color:#333399;font-weight:bold;font-size:10px;margin-left:6px;}
-#search{background:transparent url(/images/search_bgb.png) no-repeat scroll 0 0;height:32px;left:59px;margin-left:306px;margin-top:56px;padding-right:0;padding-top:0;position:absolute;top:-1px;width:562px;z-index:1;}
+#search{background:transparent url(/images/twb/search_bgb.png) no-repeat scroll 0 0;height:32px;left:59px;margin-left:306px;margin-top:56px;padding-right:0;padding-top:0;position:absolute;top:-1px;width:562px;z-index:1;}
#search fieldset{border:0 none;margin:0 6px 0 280px;padding:1px 2px;}
#search legend{display:none;}
-#search div{background:transparent url(/images/rounded_field.gif) no-repeat scroll 0 0;float:left;height:18px;margin:-26px 0 5px;padding:2px;width:190px;}
+#search div{background:transparent url(/images/twb/rounded_field.gif) no-repeat scroll 0 0;float:left;height:18px;margin:-26px 0 5px;padding:2px;width:190px;}
#search p{border:0 none;padding:0;}
#search .buttons{float:left;margin-left:-3px;overflow:hidden;padding-bottom:0;padding-left:0;padding-top:0;width:100%;}
#search label{color:#656565;display:block;float:left;font-size:11px;font-weight:normal;line-height:18px;padding:0 0 0 2px;text-align:left;width:45px;}
#search input#in_search{background:transparent none repeat scroll 0 0;border:0 none;float:left;font-family:"Verdana",Helvetica,Arial,sans-serif;font-size:12px;line-height:18px;margin-top:1px;padding:0;width:113px;}
#search .search_button{border:0 none;cursor:pointer;display:block;float:right;height:27px;margin:1px 36px 0 0px;padding:0;text-indent:-9999px;width:30px;}
-#search #search_button{background:transparent url(/images/button_search.gif) no-repeat scroll 0 0;}
+#search #search_button{background:transparent url(/images/twb/button_search.gif) no-repeat scroll 0 0;}
#translation{height:22px;left:63px;margin-left:328px;margin-top:61px;padding-right:0;padding-top:0;position:absolute;top:2px;width:234px;z-index:1;}
#translation img{margin:0 2px 2px;}
#quote{color:#000000;float:right;font-size:29px;font-weight:800;left:-58px;line-height:34px;margin:0 200px;overflow:hidden;padding-bottom:10px;padding-top:15px;position:absolute;text-align:right;top:117px;width:760px;z-index:20;}
@@ -106,11 +106,11 @@ ul#nav li .dropdown .bottom{background:url(/images/nav_dropdown_bottom.png) no-r
#buttontext{height:70px;left:297px;margin-left:153px;margin-top:400px;padding:0px 0 0;position:absolute;top:4px;width:200px;z-index:3;visibility:hidden;}
#lilman{height:117px;left:285px;margin-left:240px;margin-top:460px;padding:44px 0 0;position:absolute;top:-189px;width:435px;z-index:2;}
/*------------------ @landscape ------------------*/
-#landscape{width:100%;height:200px;background:url(/images/mid-spacing.gif) repeat-x 0 0;}
-.landscape_white{background:url(/images/landscape_whiteb.gif) repeat-x 0 0;height:36px;}
+#landscape{width:100%;height:200px;background:url(/images/twb/mid-spacing.gif) repeat-x 0 0;}
+.landscape_white{background:url(/images/twb/landscape_whiteb.gif) repeat-x 0 0;height:36px;}
#land_white_top{background-position:0 0;}
#land_white_bottom{background-position:0 -36px;}
-#midsect{background:url(/images/mid_white_spacing.gif) repeat 0 0;width:100%;/*overflow:hidden;*/
+#midsect{background:url(/images/twb/mid_white_spacing.gif) repeat 0 0;width:100%;/*overflow:hidden;*/
height:245px;padding:20px 0 0px 0;color:#333;}
#midsect p a{color:#333;text-decoration:none;padding:0 2px;}
#midsect p a:hover{background:#FFF;}
@@ -124,7 +124,7 @@ img.icon{width:48px;height:48px;float:left;clear:left;margin-right:20px;margin-b
.activity_box{clear:both;margin:5px 0 0px;padding:5px 0 0;}
#content{background:#FFF;width:860px;padding-bottom:20px;text-align:left;margin-left:auto;margin-right:auto;min-height:600px;height:auto !important;height:600px;}
#main{background:#FFF;width:100%;overflow:hidden;padding:0px 0;}
-#main2{background:#FFF url(/images/mainb.gif) repeat 0 0;width:100%;overflow:hidden;/* border:dashed 1px #444;*/
+#main2{background:#FFF url(/images/twb/mainb.gif) repeat 0 0;width:100%;overflow:hidden;/* border:dashed 1px #444;*/
padding:0px 0;}
#iframe{text-align:center;}
#titlesH8{text-align:center;font-size:22px;line-height:22px;padding-bottom:10px;font-weight:normal;color:#333;}
@@ -133,7 +133,7 @@ padding:0px 0;}
.col300{float:left;width:300px;overflow:hidden;text-align:center;}
.col300 titlesh9{padding-top:10px;}
.middle{padding:0 30px;}
-#featured_member{background:url(/images/featured_members.gif) no-repeat 0 0;height:221px;width:270px;padding:5px 15px 0px 15px;}
+#featured_member{background:url(/images/twb/featured_members.gif) no-repeat 0 0;height:221px;width:270px;padding:5px 15px 0px 15px;}
#featured_member h9{padding-top:0px;}
.blog-simpleB{padding-top:5px;border-bottom:dotted 1px #ccc;}
.blog-simpleB a{font-weight:bold;font-size:12px;}
@@ -150,14 +150,14 @@ legend{font-size:18px;color:#05554d;font-weight:normal;}
.choice label.radioWrapper{width:50px;}
input.button,
button.button,
-a.button,a.button:hover{background:url(/images/button.gif) no-repeat 0 0;display:block;border:0;color:#fff;width:95px;height:22px;text-align:center;cursor:pointer;float:left;margin-right:2px;font-size:11px;font:bold 11px "Verdana",Helvetica,Arial,sans-serif;text-decoration:none;}
+a.button,a.button:hover{background:url(/images/twb/button.gif) no-repeat 0 0;display:block;border:0;color:#fff;width:95px;height:22px;text-align:center;cursor:pointer;float:left;margin-right:2px;font-size:11px;font:bold 11px "Verdana",Helvetica,Arial,sans-serif;text-decoration:none;}
a.button{padding-top:5px;}
/*------------------ @footer ------------------*/
-#footer{padding:20px 0 10px 0;width:100%;color:#333;background:url(/images/midsect_darkb.gif) repeat 0 0;}
+#footer{padding:20px 0 10px 0;width:100%;color:#333;background:url(/images/twb/midsect_darkb.gif) repeat 0 0;}
#footer a{color:#000099;}
-#top{background:url(/images/top.gif) no-repeat 0 0;padding-left:20px;float:right;color:#555555;text-decoration:none;}
+#top{background:url(/images/twb/top.gif) no-repeat 0 0;padding-left:20px;float:right;color:#555555;text-decoration:none;}
#footer p{clear:both;padding-top:15px;}
-#footer dl{float:left;width:170px;padding:10px;overflow:hidden;height:120px;background:url(/images/midsect_light.gif) repeat 0 0;margin-right:2px;}
+#footer dl{float:left;width:170px;padding:10px;overflow:hidden;height:120px;background:url(/images/twb/midsect_light.gif) repeat 0 0;margin-right:2px;}
#footer dl.alt{}
#footer dt{font-size:15px;padding-bottom:3px;}
#footer dt a{color:#333333;text-decoration:none;font-size:15px;}
12 themes/twb/views/home/home.html.erb
View
@@ -5,21 +5,21 @@
<div id="landscape"></div>
<div id="midsect">
<div class="container">
- <div class="col450 padright"><a href="/pages/countries"><img src="/images/icon_where.gif" alt="" class="icon"></a>
- <div id="titlesH10"><a href="/pages/countries">NEW - Where We Work Mapping </a></div>
- <p><a href="/pages/countries">TWB reaches every corner of the world, offering programs in 26 countries.</a></p>
+ <div class="col450 padright"> <a href="/pages/countries"><img src="/images/twb/icon_where.gif" alt="" class="icon"></a>
+ <div id="titlesH8"><a href="/pages/countries">Global Impact</a></div>
+ <p><a href="/pages/countries">TWB reaches every corner of the world, offering programs in 26 countries.</a></p>
</div>
<div class="col450">
- <a href="/pages/support-us"><img src="/images/icon_donate.gif" alt="" class="icon"></a>
+ <a href="/pages/support-us"><img src="/images/twb/icon_donate.gif" alt="" class="icon"></a>
<div id="titlesH8"><a href="/pages/support-us">Donate</a></div>
<p><a href="/pages/support-us">Your contribution will help bridge the global education divide by empowering teachers to be leaders in their communities.</a></p>
</div>
- <div class="col450 padright"> <a href="/login"><img src="/images/icon_network.gif" alt="" class="icon"></a>
+ <div class="col450 padright"> <a href="/login"><img src="/images/twb/icon_network.gif" alt="" class="icon"></a>
<div id="titlesH8"><a href="/login">Free Membership</a></div>
<p><a href="/login">As a TWB member, you become part of a global community that supports teachers through professional development and mentorship as well as have access to the latest educational innovations across the world.</a></p>
</div>
<div class="col450"> <a href="/pages/make-a-difference">
- <img src="/images/icon_help.gif" alt="" class="icon"></a>
+ <img src="/images/twb/icon_help.gif" alt="" class="icon"></a>
<div id="titlesH8"><a href="/pages/make-a-difference">Make a Difference</a></div>
<p><a href="/pages/make-a-difference">We want you to take the initiative and use your passion, skills and experience to improve your community and the world. Find out how!</a></p>
</div>
25 themes/twb/views/layouts/global/_head.html.erb
View
@@ -0,0 +1,25 @@
+<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<meta name="description" content="Teachers Without Borders supports teacher-leaders, worldwide, because they play a vital role in their communities." />
+<title><%= @title || _(GlobalConfig.application_name) -%></title>
+<%= stylesheet_link_tag 'reset', 'ie', 'application', 'beast', 'standard', :cache=>true -%>
+<%= stylesheet_link_tag "print", :media => "print" %>
+<%= javascript_include_tag 'jquery', 'jquery-ui', 'jrails', 'thickbox', 'jquery.blockUI.js', 'jquery-plugins/jquery.jgrowl_minimized.js', 'application' -%>
+<%= theme_stylesheet_link_tag %>
+<%= javascript_tag %[const AUTH_TOKEN = #{form_authenticity_token.inspect};] if protect_against_forgery? -%>
+<%= yield :head -%>
+<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
+<!--[if lt IE 7]>
+ <link rel="stylesheet" href="/css/ie6.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ jQuery().ready(function() {
+ jQuery("#nav li:has(.dropdown)").hover(function() {
+ jQuery(this).addClass("over");
+ }, function() {
+ jQuery(this).removeClass("over");
+ });
+ });
+ </script>
+<![endif]-->
+<!--[if IE 7]>
+ <link rel="stylesheet" href="/css/ie7.css" type="text/css" media="screen" />
+<![endif]-->
6 themes/twb/views/layouts/home.html.erb
View
@@ -22,12 +22,12 @@
<div id="buttontext" class="container"><h7>&nbsp;&nbsp; Donate<br /><br />Participate</h7></div>
<div id="donate" class="container">
<p>
- <a href="/pages/make-a-difference"><img src="/images/button_donate.png" alt="" width="150" height="36" /></a>
- <a href="/pages/support-us"><img src="/images/button_participate.png" alt="" width="150" height="36" /></a>
+ <a href="/pages/make-a-difference"><img src="/images/twb/button_donate.png" alt="" width="150" height="36" /></a>
+ <a href="/pages/support-us"><img src="/images/twb/button_participate.png" alt="" width="150" height="36" /></a>
</p>
</div>
<div id="lilman" class="container">
- <a href="/pages/what-we-do"><img src="/images/button_whatb.png" alt="" width="375" height="190" /></a>
+ <a href="/pages/what-we-do"><img src="/images/twb/button_whatb.png" alt="" width="375" height="190" /></a>
</div>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.