endymion-origami 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.textile +138 -0
  3. data/Rakefile +39 -0
  4. data/app/helpers/layout_helper.rb +44 -0
  5. data/app/views/layouts/1_column_em.html.erb +110 -0
  6. data/app/views/layouts/1_column_percentage.html.erb +127 -0
  7. data/app/views/layouts/1_column_pixel.html.erb +110 -0
  8. data/app/views/layouts/2_column_left_menu_em.html.erb +209 -0
  9. data/app/views/layouts/2_column_left_menu_percentage.html.erb +181 -0
  10. data/app/views/layouts/2_column_left_menu_pixel.html.erb +216 -0
  11. data/app/views/layouts/2_column_right_menu_em.html.erb +204 -0
  12. data/app/views/layouts/2_column_right_menu_percentage.html.erb +227 -0
  13. data/app/views/layouts/2_column_right_menu_pixel.html.erb +240 -0
  14. data/app/views/layouts/3_column_blog_em.html.erb +257 -0
  15. data/app/views/layouts/3_column_blog_percentage.html.erb +255 -0
  16. data/app/views/layouts/3_column_blog_pixel.html.erb +268 -0
  17. data/app/views/layouts/3_column_holy_grail_em.html.erb +262 -0
  18. data/app/views/layouts/3_column_holy_grail_percentage.html.erb +255 -0
  19. data/app/views/layouts/3_column_holy_grail_pixel.html.erb +262 -0
  20. data/app/views/layouts/_body.html.erb +7 -0
  21. data/app/views/layouts/_column_1.html.erb +5 -0
  22. data/app/views/layouts/_column_2.html.erb +5 -0
  23. data/app/views/layouts/_column_3.html.erb +5 -0
  24. data/app/views/layouts/_flashes.html.erb +15 -0
  25. data/app/views/layouts/_footer.html.erb +5 -0
  26. data/app/views/layouts/_google_analytics_tracker.html.erb +8 -0
  27. data/app/views/layouts/_head.html.erb +23 -0
  28. data/app/views/layouts/_header.html.erb +5 -0
  29. data/app/views/layouts/_image_replacement.html.erb +3 -0
  30. data/app/views/layouts/_javascript_includes.html.erb +1 -0
  31. data/app/views/layouts/_layout_and_theme_stylesheets.html.erb +8 -0
  32. data/app/views/layouts/stacked_columns.html.erb +418 -0
  33. data/assets/bluetrip-css-framework/LICENSE +312 -0
  34. data/assets/bluetrip-css-framework/README.rst +37 -0
  35. data/assets/bluetrip-css-framework/css/ie.css +21 -0
  36. data/assets/bluetrip-css-framework/css/print.css +49 -0
  37. data/assets/bluetrip-css-framework/css/screen.css +409 -0
  38. data/assets/bluetrip-css-framework/css/style.css +7 -0
  39. data/assets/bluetrip-css-framework/examples/grid.html +232 -0
  40. data/assets/bluetrip-css-framework/examples/index.html +263 -0
  41. data/assets/bluetrip-css-framework/examples/test-small.jpg +0 -0
  42. data/assets/bluetrip-css-framework/img/grid.png +0 -0
  43. data/assets/bluetrip-css-framework/img/icons/cross.png +0 -0
  44. data/assets/bluetrip-css-framework/img/icons/doc.png +0 -0
  45. data/assets/bluetrip-css-framework/img/icons/email.png +0 -0
  46. data/assets/bluetrip-css-framework/img/icons/external.png +0 -0
  47. data/assets/bluetrip-css-framework/img/icons/feed.png +0 -0
  48. data/assets/bluetrip-css-framework/img/icons/im.png +0 -0
  49. data/assets/bluetrip-css-framework/img/icons/information.png +0 -0
  50. data/assets/bluetrip-css-framework/img/icons/key.png +0 -0
  51. data/assets/bluetrip-css-framework/img/icons/pdf.png +0 -0
  52. data/assets/bluetrip-css-framework/img/icons/tick.png +0 -0
  53. data/assets/bluetrip-css-framework/img/icons/visited.png +0 -0
  54. data/assets/bluetrip-css-framework/img/icons/xls.png +0 -0
  55. data/init.rb +1 -0
  56. data/install.rb +1 -0
  57. data/lib/chaise.rb +9 -0
  58. data/origami.gemspec +118 -0
  59. data/public/stylesheets/1_column_em.css +117 -0
  60. data/public/stylesheets/1_column_percentage.css +134 -0
  61. data/public/stylesheets/1_column_pixel.css +117 -0
  62. data/public/stylesheets/2_column_left_menu_em.css +149 -0
  63. data/public/stylesheets/2_column_left_menu_percentage.css +142 -0
  64. data/public/stylesheets/2_column_left_menu_pixel.css +149 -0
  65. data/public/stylesheets/2_column_right_menu_em.css +148 -0
  66. data/public/stylesheets/2_column_right_menu_percentage.css +142 -0
  67. data/public/stylesheets/2_column_right_menu_pixel.css +148 -0
  68. data/public/stylesheets/3_column_blog_pixel.css +162 -0
  69. data/rails/init.rb +1 -0
  70. data/rdoc/classes/ApplicationController.html +151 -0
  71. data/rdoc/created.rid +1 -0
  72. data/rdoc/files/README_textile.html +363 -0
  73. data/rdoc/files/lib/chaise_rb.html +101 -0
  74. data/rdoc/fr_class_index.html +27 -0
  75. data/rdoc/fr_file_index.html +28 -0
  76. data/rdoc/fr_method_index.html +27 -0
  77. data/rdoc/index.html +24 -0
  78. data/rdoc/rdoc-style.css +208 -0
  79. data/tasks/chaise_tasks.rake +15 -0
  80. data/test/chaise_test.rb +26 -0
  81. data/test/test_helper.rb +3 -0
  82. data/uninstall.rb +1 -0
  83. metadata +136 -0
@@ -0,0 +1,216 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <% head do %>
5
+ <title>The Left Menu 2 column Liquid Layout. Pixel widths. Cross-Browser. Equal Height Columns.</title>
6
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
7
+ <meta name="description" content="The Left Menu 2 column Liquid Layout. Pixel widths. Cross-Browser. Equal Height Columns." />
8
+ <meta name="keywords" content="The Left Menu 2 column Liquid Layout. Pixel widths. Cross-Browser. Equal Height Columns." />
9
+ <meta name="robots" content="index, follow" />
10
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
11
+
12
+ <% layout_and_theme_stylesheets '2_column_left_menu_pixel' do %>
13
+ <style media="screen" type="text/css">
14
+ /* <!-- */
15
+ /* General styles */
16
+ body {
17
+ margin:0;
18
+ padding:0;
19
+ border:0; /* This removes the border around the viewport in old versions of IE */
20
+ width:100%;
21
+ background:#fff;
22
+ min-width:600px; /* Minimum width of layout - remove line if not required */
23
+ /* The min-width property does not work in old versions of Internet Explorer */
24
+ }
25
+ /* Header styles */
26
+ #header {
27
+ clear:both;
28
+ float:left;
29
+ width:100%;
30
+ }
31
+ #header {
32
+ border-bottom:1px solid #000;
33
+ }
34
+ #header p,
35
+ #header h1,
36
+ #header h2 {
37
+ padding:.4em 15px 0 15px;
38
+ margin:0;
39
+ }
40
+ #header ul {
41
+ clear:left;
42
+ float:left;
43
+ width:100%;
44
+ list-style:none;
45
+ margin:10px 0 0 0;
46
+ padding:0;
47
+ }
48
+ #header ul li {
49
+ display:inline;
50
+ list-style:none;
51
+ margin:0;
52
+ padding:0;
53
+ }
54
+ #header ul li a {
55
+ display:block;
56
+ float:left;
57
+ margin:0 0 0 1px;
58
+ padding:3px 10px;
59
+ text-align:center;
60
+ background:#eee;
61
+ color:#000;
62
+ text-decoration:none;
63
+ position:relative;
64
+ left:15px;
65
+ line-height:1.3em;
66
+ }
67
+ #header ul li a:hover {
68
+ background:#369;
69
+ color:#fff;
70
+ }
71
+ #header ul li a.active,
72
+ #header ul li a.active:hover {
73
+ color:#fff;
74
+ background:#000;
75
+ font-weight:bold;
76
+ }
77
+ #header ul li a span {
78
+ display:block;
79
+ }
80
+ /* 'widths' sub menu */
81
+ #layoutdims {
82
+ clear:both;
83
+ background:#eee;
84
+ border-top:4px solid #000;
85
+ margin:0;
86
+ padding:6px 15px !important;
87
+ text-align:right;
88
+ }
89
+ /* column container */
90
+ .colmask {
91
+ position:relative; /* This fixes the IE7 overflow hidden bug and stops the layout jumping out of place */
92
+ clear:both;
93
+ float:left;
94
+ width:100%; /* width of whole page */
95
+ overflow:hidden; /* This chops off any overhanging divs */
96
+ }
97
+ /* 2 column left menu settings */
98
+ .leftmenu {
99
+ background:#FFD8B7;
100
+ }
101
+ .leftmenu .colright {
102
+ float:left;
103
+ width:200%;
104
+ position:relative;
105
+ left:200px;
106
+ background:#fff;
107
+ }
108
+ .leftmenu .col1wrap {
109
+ float:right;
110
+ width:50%;
111
+ position:relative;
112
+ right:200px;
113
+ padding-bottom:1em;
114
+ }
115
+ .leftmenu .col1 {
116
+ margin:0 15px 0 215px;
117
+ position:relative;
118
+ right:100%;
119
+ overflow:hidden;
120
+ }
121
+ .leftmenu .col2 {
122
+ float:left;
123
+ width:170px;
124
+ position:relative;
125
+ right:185px;
126
+ }
127
+ /* Footer styles */
128
+ #footer {
129
+ clear:both;
130
+ float:left;
131
+ width:100%;
132
+ border-top:1px solid #000;
133
+ }
134
+ #footer p {
135
+ padding:10px;
136
+ margin:0;
137
+ }
138
+ /* --> */
139
+ </style>
140
+ <!--[if lt IE 7]>
141
+ <style media="screen" type="text/css">
142
+ .col1 {
143
+ width:100%;
144
+ }
145
+ </style>
146
+ <![endif]-->
147
+ <% end %>
148
+ <% end %>
149
+
150
+ <% body do %>
151
+
152
+ <div id="header">
153
+ <%= render :partial => 'layouts/flashes' -%>
154
+ <% header do %>
155
+ <p><a href="http://matthewjamestaylor.com/blog/ultimate-multi-column-liquid-layouts-em-and-pixel-widths" title="Ultimate multi-column liquid layouts (em and pixel widths)">&laquo; Back to the CSS article</a> by <a href="http://matthewjamestaylor.com">Matthew James Taylor</a></p>
156
+ <h1>The 'Left Menu' 2 column Liquid Layout (Pixel-widths)</h1>
157
+ <h2>No CSS hacks. SEO friendly 2-1 column order. Cross-browser. Equal height columns.</h2>
158
+ <ul>
159
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-pixels.htm">3 Column <span>Holy Grail</span></a></li>
160
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-3-column-blog-style-pixels.htm">3 Column <span>Blog Style</span></a></li>
161
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-2-column-left-menu-pixels.htm" class="active">2 Column <span>Left Menu</span></a></li>
162
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-pixels.htm">2 Column <span>Right Menu</span></a></li>
163
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-1-column-full-page-pixels.htm">1 Column <span>Full Page</span></a></li>
164
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-stacked-columns-pixels.htm">Stacked <span>Columns</span></a></li>
165
+ </ul>
166
+ <p id="layoutdims">Measure columns in: <strong>Pixel widths</strong> | <a href="http://matthewjamestaylor.com/blog/ultimate-2-column-left-menu-ems.htm">Em widths</a> | <a href="http://matthewjamestaylor.com/blog/perfect-2-column-left-menu.htm">Percentage widths</a></p>
167
+ <% end %>
168
+ </div>
169
+ <div class="colmask leftmenu">
170
+ <div class="colright">
171
+ <div class="col1wrap">
172
+ <div class="col1">
173
+ <% column_1 do %>
174
+ <!-- Your page content will end up in here. -->
175
+ <% end %>
176
+ </div>
177
+ </div>
178
+ <div class="col2">
179
+ <% column_2 do %>
180
+ <!-- Column 1 start -->
181
+ <h2>No CSS hacks</h2>
182
+ <p>The CSS used for this layout is 100% valid and hack free. To overcome Internet Explorer's broken box model, no horizontal padding or margins are used. Instead, this design uses pixel widths and clever relative positioning.</p>
183
+ <h2>SEO friendly 2-1 column ordering</h2>
184
+ <p>The higher up content is in your page code, the more important it is considered by search engine algorithms. To make your website as optimised as possible your main page content must come before the side columns. This layout does exactly that: The center page comes first, then the left column and finally the right column (see the nested div structure diagram for more info). The columns can also be configured to any other order if required.</p>
185
+ <h2>Equal height columns</h2>
186
+ <p>It doesn't matter which column has the longest content, the background colour of all columns will stretch down to meet the footer. This feature was traditionally only available with table based layouts but now with a little CSS trickery we can do exactly the same with divs. Say goodbye to annoying short columns!</p>
187
+ <h2>No Images</h2>
188
+ <p>This layout requires no images. Many CSS website designs need images to colour in the column backgrounds but that is not necessary with this design. Why waste bandwidth and precious HTTP requests when you can do everything in pure CSS and XHTML?</p>
189
+ <h2>No JavaScript</h2>
190
+ <p>JavaScript is not required. Some website layouts rely on JavaScript hacks to resize divs and force elements into place but you won't see any of that nonsense here.</p>
191
+ <h2>Valid XHTML strict markup</h2>
192
+ <p>The HTML in this layout validates as XHTML 1.0 strict.</p>
193
+ <h2>Resizable text compatible</h2>
194
+ <p>This layout is fully compatible with resizable text. Resizable text is important for web accessibility. People who are vision impaired can make the text larger so it's easier for them to read. It is becoming increasingly more important to make your website resizable text compatible because people are expecting higher levels of web accessibility. Apple have made resizing the text on a website simple with the pinch gesture on their multi-touch trackpad. So far this trackpad is only available on the MacBook Air but it will soon be rolled out to all of their systems. Is your website text-resizing compatible?</p>
195
+ <!-- Column 1 end -->
196
+ <% end %>
197
+ </div>
198
+ </div>
199
+ </div>
200
+ <div id="footer">
201
+ <% footer do %>
202
+ <p>This page uses the <a href="http://matthewjamestaylor.com/blog/ultimate-2-column-left-menu-pixels.htm">Ultimate 'Left Menu' 2 column Liquid Layout</a> by <a href="http://matthewjamestaylor.com">Matthew James Taylor</a>. View more <a href="http://matthewjamestaylor.com/blog/-website-layouts">website layouts</a> and <a href="http://matthewjamestaylor.com/blog/-web-design">web design articles</a>.</p>
203
+ <% end %>
204
+ </div>
205
+
206
+ <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
207
+ </script>
208
+ <script type="text/javascript">
209
+ _uacct = "UA-1848067-8";
210
+ urchinTracker();
211
+ </script>
212
+
213
+ <%= google_analytics_tracker GOOGLE_ANALYTICS_ACCOUNT if defined?(GOOGLE_ANALYTICS_ACCOUNT) -%>
214
+
215
+ <% end %>
216
+ </html>
@@ -0,0 +1,204 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <% head do %>
5
+ <title>The Right Menu 2 column Liquid Layout. Em widths. Cross-Browser. Equal Height Columns.</title>
6
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
7
+ <meta name="description" content="The Right Menu 2 column Liquid Layout. Em widths. Cross-Browser. Equal Height Columns." />
8
+ <meta name="keywords" content="The Right Menu 2 column Liquid Layout. Em widths. Cross-Browser. Equal Height Columns." />
9
+ <meta name="robots" content="index, follow" />
10
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
11
+
12
+ <% layout_and_theme_stylesheets '2_column_right_menu_em' do %>
13
+ <style media="screen" type="text/css">
14
+ /* <!-- */
15
+ /* General styles */
16
+ body {
17
+ margin:0;
18
+ padding:0;
19
+ border:0; /* This removes the border around the viewport in old versions of IE */
20
+ width:100%;
21
+ background:#fff;
22
+ min-width:600px; /* Minimum width of layout - remove line if not required */
23
+ /* The min-width property does not work in old versions of Internet Explorer */
24
+ }
25
+ /* Header styles */
26
+ #header {
27
+ clear:both;
28
+ float:left;
29
+ width:100%;
30
+ }
31
+ #header {
32
+ border-bottom:1px solid #000;
33
+ }
34
+ #header p,
35
+ #header h1,
36
+ #header h2 {
37
+ padding:.4em 15px 0 15px;
38
+ margin:0;
39
+ }
40
+ #header ul {
41
+ clear:left;
42
+ float:left;
43
+ width:100%;
44
+ list-style:none;
45
+ margin:10px 0 0 0;
46
+ padding:0;
47
+ }
48
+ #header ul li {
49
+ display:inline;
50
+ list-style:none;
51
+ margin:0;
52
+ padding:0;
53
+ }
54
+ #header ul li a {
55
+ display:block;
56
+ float:left;
57
+ margin:0 0 0 1px;
58
+ padding:3px 10px;
59
+ text-align:center;
60
+ background:#eee;
61
+ color:#000;
62
+ text-decoration:none;
63
+ position:relative;
64
+ left:15px;
65
+ line-height:1.3em;
66
+ }
67
+ #header ul li a:hover {
68
+ background:#369;
69
+ color:#fff;
70
+ }
71
+ #header ul li a.active,
72
+ #header ul li a.active:hover {
73
+ color:#fff;
74
+ background:#000;
75
+ font-weight:bold;
76
+ }
77
+ #header ul li a span {
78
+ display:block;
79
+ }
80
+ /* 'widths' sub menu */
81
+ #layoutdims {
82
+ clear:both;
83
+ background:#eee;
84
+ border-top:4px solid #000;
85
+ margin:0;
86
+ padding:6px 15px !important;
87
+ text-align:right;
88
+ }
89
+ /* column container */
90
+ .colmask {
91
+ position:relative; /* This fixes the IE7 overflow hidden bug and stops the layout jumping out of place */
92
+ clear:both;
93
+ float:left;
94
+ width:100%; /* width of whole page */
95
+ overflow:hidden; /* This chops off any overhanging divs */
96
+ }
97
+ /* 2 column right menu settings */
98
+ .rightmenu {
99
+ background:#CDEAFF;
100
+ }
101
+ .rightmenu .colleft {
102
+ float:left;
103
+ width:200%;
104
+ margin-left:-12em;
105
+ position:relative;
106
+ right:100%;
107
+ background:#fff;
108
+ }
109
+ .rightmenu .col1wrap {
110
+ float:left;
111
+ width:50%;
112
+ position:relative;
113
+ left:50%;
114
+ padding-bottom:1em;
115
+ }
116
+ .rightmenu .col1 {
117
+ margin:0 1em 0 13em;
118
+ overflow:hidden;
119
+ }
120
+ .rightmenu .col2 {
121
+ float:right;
122
+ width:10em;
123
+ position:relative;
124
+ left:11em;
125
+ }
126
+ /* Footer styles */
127
+ #footer {
128
+ clear:both;
129
+ float:left;
130
+ width:100%;
131
+ border-top:1px solid #000;
132
+ }
133
+ #footer p {
134
+ padding:10px;
135
+ margin:0;
136
+ }
137
+ /* --> */
138
+ </style>
139
+ <!--[if lt IE 7]>
140
+ <style media="screen" type="text/css">
141
+ .col1 {
142
+ width:100%;
143
+ }
144
+ </style>
145
+ <![endif]-->
146
+ <% end %>
147
+ <% end %>
148
+
149
+ <% body do %>
150
+
151
+ <div id="header">
152
+ <%= render :partial => 'layouts/flashes' -%>
153
+ <% header do %>
154
+ <p><a href="http://matthewjamestaylor.com/blog/ultimate-multi-column-liquid-layouts-em-and-pixel-widths" title="Ultimate multi-column liquid layouts (em and pixel widths)">&laquo; Back to the CSS article</a> by <a href="http://matthewjamestaylor.com">Matthew James Taylor</a></p>
155
+ <h1>The 'Right Menu' 2 column Liquid Layout (Em-widths)</h1>
156
+ <h2>No CSS hacks. SEO friendly. Cross-browser. Equal height columns.</h2>
157
+ <ul>
158
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-ems.htm">3 Column <span>Holy Grail</span></a></li>
159
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-3-column-blog-style-ems.htm">3 Column <span>Blog Style</span></a></li>
160
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-2-column-left-menu-ems.htm">2 Column <span>Left Menu</span></a></li>
161
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-ems.htm" class="active">2 Column <span>Right Menu</span></a></li>
162
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-1-column-full-page-ems.htm">1 Column <span>Full Page</span></a></li>
163
+ <li><a href="http://matthewjamestaylor.com/blog/ultimate-stacked-columns-ems.htm">Stacked <span>Columns</span></a></li>
164
+ </ul>
165
+ <p id="layoutdims">Measure columns in: <a href="http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-pixels.htm">Pixel widths</a> | <strong>Em widths</strong> | <a href="http://matthewjamestaylor.com/blog/perfect-2-column-right-menu.htm">Percentage widths</a></p>
166
+ <% end %>
167
+ </div>
168
+ <div class="colmask rightmenu">
169
+ <div class="colleft">
170
+ <div class="col1wrap">
171
+ <div class="col1">
172
+ <% column_1 do %>
173
+ <!-- Your page content will end up in here. -->
174
+ <% end %>
175
+ </div>
176
+ </div>
177
+ <div class="col2">
178
+ <% column_2 do %>
179
+ <!-- Column 2 start -->
180
+ <h2>No CSS hacks</h2>
181
+ <p>The CSS used for this layout is 100% valid and hack free. To overcome Internet Explorer's broken box model, no horizontal padding or margins are used. Instead, this design uses pixel widths and clever relative positioning.</p>
182
+ <h2>SEO friendly 1-2 column ordering</h2>
183
+ <p>The higher up content is in your page code, the more important it is considered by search engine algorithms. To make your website as optimised as possible your main page content must come before the side columns. This layout does exactly that: The center page comes first, then the left column and finally the right column (see the nested div structure diagram for more info). The columns can also be configured to any other order if required.</p>
184
+ <h2>Equal height columns</h2>
185
+ <p>It doesn't matter which column has the longest content, the background colour of all columns will stretch down to meet the footer. This feature was traditionally only available with table based layouts but now with a little CSS trickery we can do exactly the same with divs. Say goodbye to annoying short columns!</p>
186
+ <h2>No Images</h2>
187
+ <p>This layout requires no images. Many CSS website designs need images to colour in the column backgrounds but that is not necessary with this design. Why waste bandwidth and precious HTTP requests when you can do everything in pure CSS and XHTML?</p>
188
+ <h2>No JavaScript</h2>
189
+ <p>JavaScript is not required. Some website layouts rely on JavaScript hacks to resize divs and force elements into place but you won't see any of that nonsense here.</p>
190
+ <!-- Column 2 end -->
191
+ <% end %>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ <div id="footer">
196
+ <% footer do %>
197
+ <p>This page uses the <a href="http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-ems.htm">Ultimate 'Right Menu' 2 column Liquid Layout</a> by <a href="http://matthewjamestaylor.com">Matthew James Taylor</a>. View more <a href="http://matthewjamestaylor.com/blog/-website-layouts">website layouts</a> and <a href="http://matthewjamestaylor.com/blog/-web-design">web design articles</a>.</p>
198
+ <% end %>
199
+ </div>
200
+
201
+ <%= google_analytics_tracker GOOGLE_ANALYTICS_ACCOUNT if defined?(GOOGLE_ANALYTICS_ACCOUNT) -%>
202
+
203
+ <% end %>
204
+ </html>
@@ -0,0 +1,227 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
3
+ <% head do %>
4
+ <title>The Perfect 2 Column Liquid Layout (right menu): No CSS hacks. SEO friendly. iPhone compatible.</title>
5
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
6
+ <meta name="description" content="The Perfect 2 Column Liquid Layout (right menu): No CSS hacks. SEO friendly. iPhone compatible." />
7
+ <meta name="keywords" content="The Perfect 2 Column Liquid Layout (right menu): No CSS hacks. SEO friendly. iPhone compatible." />
8
+ <meta name="robots" content="index, follow" />
9
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
10
+
11
+ <% layout_and_theme_stylesheets '2_column_right_menu_percentage' do %>
12
+ <style media="screen" type="text/css">
13
+ /* <!-- */
14
+ /* General styles */
15
+ body {
16
+ margin:0;
17
+ padding:0;
18
+ border:0; /* This removes the border around the viewport in old versions of IE */
19
+ width:100%;
20
+ min-width:600px; /* Minimum width of layout - remove line if not required */
21
+ /* The min-width property does not work in old versions of Internet Explorer */
22
+ }
23
+ /* Header styles */
24
+ #header {
25
+ clear:both;
26
+ float:left;
27
+ width:100%;
28
+ }
29
+ #header {
30
+ border-bottom:1px solid #000;
31
+ }
32
+ #header p,
33
+ #header h1,
34
+ #header h2 {
35
+ padding:.4em 15px 0 15px;
36
+ margin:0;
37
+ }
38
+ #header ul {
39
+ clear:left;
40
+ float:left;
41
+ width:100%;
42
+ list-style:none;
43
+ margin:10px 0 0 0;
44
+ padding:0;
45
+ }
46
+ #header ul li {
47
+ display:inline;
48
+ list-style:none;
49
+ margin:0;
50
+ padding:0;
51
+ }
52
+ #header ul li a {
53
+ display:block;
54
+ float:left;
55
+ margin:0 0 0 1px;
56
+ padding:3px 10px;
57
+ text-align:center;
58
+ background:#eee;
59
+ color:#000;
60
+ text-decoration:none;
61
+ position:relative;
62
+ left:15px;
63
+ line-height:1.3em;
64
+ }
65
+ #header ul li a:hover {
66
+ background:#369;
67
+ color:#fff;
68
+ }
69
+ #header ul li a.active,
70
+ #header ul li a.active:hover {
71
+ color:#fff;
72
+ background:#000;
73
+ font-weight:bold;
74
+ }
75
+ #header ul li a span {
76
+ display:block;
77
+ }
78
+ /* 'widths' sub menu */
79
+ #layoutdims {
80
+ clear:both;
81
+ background:#eee;
82
+ border-top:4px solid #000;
83
+ margin:0;
84
+ padding:6px 15px !important;
85
+ text-align:right;
86
+ }
87
+ /* column container */
88
+ .colmask {
89
+ position:relative; /* This fixes the IE7 overflow hidden bug */
90
+ clear:both;
91
+ float:left;
92
+ width:100%; /* width of whole page */
93
+ overflow:hidden; /* This chops off any overhanging divs */
94
+ }
95
+ /* common column settings */
96
+ .colright,
97
+ .colmid,
98
+ .colleft {
99
+ float:left;
100
+ width:100%;
101
+ position:relative;
102
+ }
103
+ .col1,
104
+ .col2,
105
+ .col3 {
106
+ float:left;
107
+ position:relative;
108
+ padding:0 0 1em 0;
109
+ overflow:hidden;
110
+ }
111
+ /* 2 Column (right menu) settings */
112
+ .rightmenu {
113
+ background:#eee; /* right column background colour */
114
+ }
115
+ .rightmenu .colleft {
116
+ right:25%; /* right column width */
117
+ background:#fff; /* left column background colour */
118
+ }
119
+ .rightmenu .col1 {
120
+ width:71%; /* left column content width (left column width minus left and right padding) */
121
+ left:27%; /* (right column width) plus (left column left padding) */
122
+ }
123
+ .rightmenu .col2 {
124
+ width:21%; /* right column content width (right column width minus left and right padding) */
125
+ left:31%; /* (right column width) plus (left column left and right padding) plus (right column left padding) */
126
+ }
127
+ /* Footer styles */
128
+ #footer {
129
+ clear:both;
130
+ float:left;
131
+ width:100%;
132
+ border-top:1px solid #000;
133
+ }
134
+ #footer p {
135
+ padding:10px;
136
+ margin:0;
137
+ }
138
+ /* --> */
139
+ </style>
140
+ <% end %>
141
+ <% end %>
142
+
143
+ <% body do %>
144
+
145
+ <div id="header">
146
+ <p><a href="http://matthewjamestaylor.com/blog/perfect-multi-column-liquid-layouts" title="Perfect multi-column liquid layouts - iPhone compatible">&laquo; Back to the CSS article</a> by <a href="http://matthewjamestaylor.com">Matthew James Taylor</a></p>
147
+ <h1>The Perfect 'Right Menu' 2 Column Liquid Layout (Percentage widths)</h1>
148
+ <h2>No CSS hacks. SEO friendly. No Images. No JavaScript. Cross-browser &amp; iPhone compatible.</h2>
149
+ <ul>
150
+ <li><a href="http://matthewjamestaylor.com/blog/perfect-3-column.htm">3 Column <span>Holy Grail</span></a></li>
151
+ <li><a href="http://matthewjamestaylor.com/blog/perfect-3-column-blog-style.htm">3 Column <span>Blog Style</span></a></li>
152
+ <li><a href="http://matthewjamestaylor.com/blog/perfect-2-column-left-menu.htm">2 Column <span>Left Menu</span></a></li>
153
+ <li><a href="http://matthewjamestaylor.com/blog/perfect-2-column-right-menu.htm" class="active">2 Column <span>Right Menu</span></a></li>
154
+ <li><a href="http://matthewjamestaylor.com/blog/perfect-2-column-double-page.htm">2 Column <span>Double Page</span></a></li>
155
+ <li><a href="http://matthewjamestaylor.com/blog/perfect-full-page.htm">1 Column <span>Full Page</span></a></li>
156
+ <li><a href="http://matthewjamestaylor.com/blog/perfect-stacked-columns.htm">Stacked <span>columns</span></a></li>
157
+ </ul>
158
+ <p id="layoutdims">Measure columns in: <a href="http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-pixels.htm">Pixel widths</a> | <a href="http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-ems.htm">Em widths</a> | <strong>Percentage widths</strong></p>
159
+ </div>
160
+ <div class="colmask rightmenu">
161
+ <div class="colleft">
162
+ <div class="col1">
163
+ <%= render :partial => 'layouts/flashes' -%>
164
+ <% column_1 do %>
165
+ <!-- Your page content will end up in here. -->
166
+ <% end %>
167
+ </div>
168
+ <div class="col2">
169
+ <% column_2 do %>
170
+ <!-- Column 2 start -->
171
+ <h2>No CSS hacks</h2>
172
+ <p>The CSS used for this layout is 100% valid and hack free. To overcome Internet Explorer's broken box model, no horizontal padding or margins are used. Instead, this design uses percentage widths and clever relative positioning.</p>
173
+ <h2>SEO friendly</h2>
174
+ <p>The higher up content is in your page code, the more important it is considered by search engine algorithms. To make your website as optimised as possible your main page content must come before the side columns. This layout does exactly that: The the left-hand main page comes first, then the right column (see the nested div structure diagram for more info). The columns can also be configured in the opposite order if required.</p>
175
+ <h2>Full length column background colours</h2>
176
+ <p>In this layout the background colours of each column will always stretch to the length of the longest column. This feature was traditionally only available with table based layouts but now with a little CSS trickery we can do exactly the same with divs. Say goodbye to annoying short columns!</p>
177
+ <h2>No Images</h2>
178
+ <p>This layout requires no images. Many CSS website designs need images to colour in the column backgrounds but that is not necessary with this design. Why waste bandwidth and precious HTTP requests when you can do everything in pure CSS and XHTML?</p>
179
+ <h2>No JavaScript</h2>
180
+ <p>JavaScript is not required. Some website layouts rely on JavaScript hacks to resize divs and force elements into place but you won't see any of that nonsense here.</p>
181
+ <h2>Resizable text compatible</h2>
182
+ <p>This layout is fully compatible with resizable text. Resizable text is important for web accessibility. People who are vision impaired can make the text larger so it's easier for them to read. It is becoming increasingly more important to make your website resizable text compatible because people are expecting higher levels of web accessibility. Apple have made resizing the text on a website simple with the pinch gesture on their multi-touch trackpad. So far this trackpad is only available on the MacBook Air but it will soon be rolled out to all of their systems. Is your website text-resizing compatible?</p>
183
+ <h2>No Quirks Mode</h2>
184
+ <p>This liquid layout does not require the XML declaration for it to display correctly in older versions of Internet Explorer. This version works without it and is thus never in quirks mode.</p>
185
+ <h2>No IE Conditional Comments</h2>
186
+ <p>Only one stylesheet is used with this layout This means that IE conditional comments are not needed to set extra CSS rules for older versions of Internet Explorer.</p>
187
+ <h2>Browser Compatibility</h2>
188
+ <p>This right menu liquid Layout has been tested on the following browsers:</p>
189
+ <h3>iPhone &amp; iPod Touch</h3>
190
+ <ul>
191
+ <li>Safari</li>
192
+ </ul>
193
+ <h3>Mac</h3>
194
+ <ul>
195
+ <li>Safari</li>
196
+ <li>Firefox</li>
197
+ <li>Opera 9.25</li>
198
+ <li>Netscape 9.0.0.5 &amp; 7.1</li>
199
+ </ul>
200
+ <h3>Windows</h3>
201
+ <ul>
202
+ <li>Firefox 1.5, 2 &amp; 3</li>
203
+ <li>Safari</li>
204
+ <li>Opera 8.1 &amp; 9</li>
205
+ <li>Google Chrome</li>
206
+ <li>Explorer 5.5, 6 &amp; 7</li>
207
+ <li>Netscape 8</li>
208
+ </ul>
209
+ <h2>Valid XHTML strict markup</h2>
210
+ <p>The HTML in this layout validates as XHTML 1.0 strict.</p>
211
+ <h2>This layout is FREE for anyone to use</h2>
212
+ <p>That's right, you don't have to pay anything. Simply view the source of this page and save the HTML onto your computer. My only suggestion is to put the CSS into a separate file. If you are feeling generous however, link back to this page so other people can find and use this layout too.</p>
213
+ <!-- Column 2 end -->
214
+ <% end %>
215
+ </div>
216
+ </div>
217
+ </div>
218
+ <div id="footer">
219
+ <% footer do %>
220
+ <p>This page uses the <a href="http://matthewjamestaylor.com/blog/perfect-2-column-right-menu.htm">Perfect 'Right Menu' 2 Column Liquid Layout</a> by <a href="http://matthewjamestaylor.com">Matthew James Taylor</a>. View more <a href="http://matthewjamestaylor.com/blog/-website-layouts">website layouts</a> and <a href="http://matthewjamestaylor.com/blog/-web-design">web design articles</a>.</p>
221
+ <% end %>
222
+ </div>
223
+
224
+ <%= google_analytics_tracker GOOGLE_ANALYTICS_ACCOUNT if defined?(GOOGLE_ANALYTICS_ACCOUNT) -%>
225
+
226
+ <% end %>
227
+ </html>