diff --git a/examples/blueprint_plugins/parts/test-small.jpg b/examples/blueprint_plugins/images/test-small.jpg similarity index 100% rename from examples/blueprint_plugins/parts/test-small.jpg rename to examples/blueprint_plugins/images/test-small.jpg diff --git a/examples/blueprint_plugins/parts/test.jpg b/examples/blueprint_plugins/images/test.jpg similarity index 100% rename from examples/blueprint_plugins/parts/test.jpg rename to examples/blueprint_plugins/images/test.jpg diff --git a/examples/blueprint_plugins/parts/valid.png b/examples/blueprint_plugins/images/valid.png similarity index 100% rename from examples/blueprint_plugins/parts/valid.png rename to examples/blueprint_plugins/images/valid.png diff --git a/examples/blueprint_plugins/index.html b/examples/blueprint_plugins/index.html index 7c6d34a6..7e7390b5 100644 --- a/examples/blueprint_plugins/index.html +++ b/examples/blueprint_plugins/index.html @@ -27,28 +27,35 @@ Description - Fancy Type + Fancy Type - grid.sass, - typography.sass, - fancy_type.sass + grid.sass, + typography.sass, + fancy_type.sass A simple sample page, with common elements and fancy type. - Buttons + Buttons - grid.sass, + buttons.sass A simple page, showing links and buttons styled using the button plugin. - Link Icons + Link Icons - grid.sass, + link_icons.sass A simple page, showing links icons. + + RTL + + rtl.sass + + A simple page, showing a right-to-left grid layout. +

Note about the css files: @@ -60,14 +67,13 @@

For more information and help, try these resources:

- Valid HTML 4.01 Strict

+ Valid HTML 4.01 Strict

diff --git a/examples/blueprint_plugins/parts/buttons.html b/examples/blueprint_plugins/plugins/buttons.html similarity index 100% rename from examples/blueprint_plugins/parts/buttons.html rename to examples/blueprint_plugins/plugins/buttons.html diff --git a/examples/blueprint_plugins/parts/fancy_type.html b/examples/blueprint_plugins/plugins/fancy_type.html similarity index 95% rename from examples/blueprint_plugins/parts/fancy_type.html rename to examples/blueprint_plugins/plugins/fancy_type.html index 8b3083a1..c3e55462 100644 --- a/examples/blueprint_plugins/parts/fancy_type.html +++ b/examples/blueprint_plugins/plugins/fancy_type.html @@ -38,7 +38,7 @@
-

testLorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc congue ipsum vestibulum libero. Aenean vitae justo. Nam eget tellus. Etiam convallis, est eu lobortis mattis, lectus tellus tempus felis, a ultricies erat ipsum at metus.

+

testLorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc congue ipsum vestibulum libero. Aenean vitae justo. Nam eget tellus. Etiam convallis, est eu lobortis mattis, lectus tellus tempus felis, a ultricies erat ipsum at metus.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi et risus. Aliquam nisl. Nulla facilisi. Cras accumsan vestibulum ante. Vestibulum sed tortor. Praesent SMALL CAPS tempus fringilla elit. Ut elit diam, sagittis in, nonummy in, gravida non, nunc. Ut orci. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nam egestas, orci eu imperdiet malesuada, nisl purus fringilla odio, quis commodo est orci vitae justo. Aliquam placerat odio tincidunt nulla. Cras in libero. Aenean rutrum, magna non tristique posuere, erat odio eleifend nisl, non convallis est tortor blandit ligula. Nulla id augue.

Nullam mattis, odio ut tempus facilisis, metus nisl facilisis metus, auctor consectetuer felis ligula nec mauris. Vestibulum odio erat, fermentum at, commodo vitae, ultrices et, urna. Mauris vulputate, mi pulvinar sagittis condimentum, sem nulla aliquam velit, sed imperdiet mi purus eu magna. Nulla varius metus ut eros. Aenean aliquet magna eget orci. Class aptent taciti sociosqu ad litora.

Vivamus euismod. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nibh ut turpis dictum sagittis. Aliquam vel velit a elit auctor sollicitudin. Nam vel dui vel neque lacinia pretium. Quisque nunc erat, venenatis id, volutpat ut, scelerisque sed, diam. Mauris ante. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec mattis. Morbi dignissim sollicitudin libero. Nulla lorem.

diff --git a/examples/blueprint_plugins/parts/link_icons.html b/examples/blueprint_plugins/plugins/link_icons.html similarity index 100% rename from examples/blueprint_plugins/parts/link_icons.html rename to examples/blueprint_plugins/plugins/link_icons.html diff --git a/examples/blueprint_plugins/plugins/rtl.html b/examples/blueprint_plugins/plugins/rtl.html new file mode 100644 index 00000000..64f5006c --- /dev/null +++ b/examples/blueprint_plugins/plugins/rtl.html @@ -0,0 +1,84 @@ + + + + + + Blueprint Sample Page + + + + + + + + + +
+

A simple sample page

+
+

This sample page demonstrates a tiny fraction of what you get with Blueprint.

+
+ +
+
Here's a box
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.

+
+ +
+
And another box
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat laboris nisi ut aliquip.

+
+ +
+
This box is aligned with the sidebar
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.

+
+
+
+ +
+

testLorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc congue ipsum vestibulum libero. Aenean vitae justo. Nam eget tellus. Etiam convallis, est eu lobortis mattis, lectus tellus tempus felis, a ultricies erat ipsum at metus.

+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi et risus. Aliquam nisl. Nulla facilisi. Cras accumsan vestibulum ante. Vestibulum sed tortor. Praesent SMALL CAPS tempus fringilla elit. Ut elit diam, sagittis in, nonummy in, gravida non, nunc. Ut orci. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nam egestas, orci eu imperdiet malesuada, nisl purus fringilla odio, quis commodo est orci vitae justo. Aliquam placerat odio tincidunt nulla. Cras in libero. Aenean rutrum, magna non tristique posuere, erat odio eleifend nisl, non convallis est tortor blandit ligula. Nulla id augue.

+

Nullam mattis, odio ut tempus facilisis, metus nisl facilisis metus, auctor consectetuer felis ligula nec mauris. Vestibulum odio erat, fermentum at, commodo vitae, ultrices et, urna. Mauris vulputate, mi pulvinar sagittis condimentum, sem nulla aliquam velit, sed imperdiet mi purus eu magna. Nulla varius metus ut eros. Aenean aliquet magna eget orci. Class aptent taciti sociosqu ad litora.

+

Vivamus euismod. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nibh ut turpis dictum sagittis. Aliquam vel velit a elit auctor sollicitudin. Nam vel dui vel neque lacinia pretium. Quisque nunc erat, venenatis id, volutpat ut, scelerisque sed, diam. Mauris ante. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec mattis. Morbi dignissim sollicitudin libero. Nulla lorem.

+
+

Integer cursus ornare mauris. Praesent nisl arcu, imperdiet eu, ornare id, scelerisque ut, nunc. Praesent sagittis erat sed velit tempus imperdiet. Ut tristique, ante in interdum hendrerit, erat enim faucibus felis, quis rutrum mauris lorem quis sem. Vestibulum ligula nisi, mattis nec, posuere et, blandit eu, ligula. Nam suscipit placerat odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Pellentesque tortor libero, venenatis vitae, rhoncus eu, placerat ut, mi. Nulla nulla.

+
+

Maecenas vel metus quis magna pharetra fermentum. Integer sit amet tortor. Maecenas porttitor, pede sed gravida auctor, nulla augue aliquet elit, at pretium urna orci ut metus. Aliquam in dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, tellus id ornare posuere, quam nunc accumsan turpis, at convallis tellus orci et nisl. Phasellus congue neque a lorem.

+ +
+
+
This is a nested column
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

+
+
+
This is another nested column
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

+
+ +
+
+ +

A Simple Sidebar

+ +

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue.

+

Mauris a lectus. Aliquam erat volutpat. Phasellus ultrices mi a sapien. Nunc rutrum egestas lorem. Duis ac sem sagittis elit tincidunt gravida. Mauris a lectus. Aliquam erat volutpat. Phasellus ultrices mi a sapien. Nunc rutrum egestas lorem. Duis ac sem sagittis elit tincidunt gravida.

+

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue.

+ +
Incremental leading
+

Vestibulum ante ipsum primis in faucibus orci luctus vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. sed aliquet vehicula, lectus tellus.

+

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue.

+ +
+ +
+

You may pick and choose amongst these and many more features, so be bold.

+
+ +

+ Valid HTML 4.01 Strict

+
+ + + \ No newline at end of file diff --git a/examples/blueprint_plugins/src/rtl_screen.sass b/examples/blueprint_plugins/src/rtl_screen.sass new file mode 100644 index 00000000..5cf5459b --- /dev/null +++ b/examples/blueprint_plugins/src/rtl_screen.sass @@ -0,0 +1,13 @@ +@import blueprint.sass +@import blueprint/modules/fancy_type.sass +@import blueprint/modules/scaffolding.sass +@import blueprint/modules/rtl.sass +@import compass/reset.sass + + ++blueprint ++rtl-typography ++fancy-type +// Remove the scaffolding when you're ready to start doing visual design. +// Or leave it in if you're happy with how blueprint looks out-of-the-box ++blueprint-scaffolding diff --git a/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass b/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass new file mode 100644 index 00000000..5850da3f --- /dev/null +++ b/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass @@ -0,0 +1,134 @@ +@import grid.sass +@import compass/utilities/general/float.sass + +// Main layout grid, override these constants to build your grid and container sizes. +!blueprint_grid_columns ||= 24 +!blueprint_grid_width ||= 30px +!blueprint_grid_margin ||= 10px + +!blueprint_grid_outer_width = !blueprint_grid_width + !blueprint_grid_margin +!blueprint_container_size = !blueprint_grid_outer_width * !blueprint_grid_columns - !blueprint_grid_margin + +=blueprint-grid + // A container should group all your columns + .container + +container + // Use these classes (or mixins) to set the width of a column. + @for !n from 1 to !blueprint_grid_columns + 1 + .span-#{!n} + +span(!n) + div + &.span-#{!n} + +column(!n, !n == !blueprint_grid_columns) + // The last column in a row needs this class (or mixin) or it will end up on the next row. + div.last + +last + // Add these to a column to append empty cols. + @for !n from 1 to !blueprint_grid_columns + .append-#{!n} + +append(!n) + // Add these to a column to prepend empty cols. + @for !n from 1 to !blueprint_grid_columns + .prepend-#{!n} + +prepend(!n) + // Use these classes on an element to push it into the + // next column, or to pull it into the previous column. + @for !n from 1 to !blueprint_grid_columns + 1 + .pull-#{!n} + +pull(!n) + @for !n from 1 to !blueprint_grid_columns + 1 + .push-#{!n} + +push(!n) + +// Columns +// Note: If you use this mixin without the class and want to support ie6 +// you must set text-align left on your container element in an IE stylesheet. +=container + :width = !blueprint_container_size + :margin 0 auto + :direction rtl + +clearfix + +// The last column in a row needs this mixin or it will end up on the next row. +// TODO add this to span mixin when we have optional arguments +=last + :margin-left 0 + +=span(!n) + :width = !blueprint_grid_width * !n + (!blueprint_grid_margin * (!n - 1)) + +// Use this mixins to set the width of n columns. +=column(!n, !last = false) + +float-right + +span(!n) + @if !last + +last + @else + :margin-left = !blueprint_grid_margin + * html & + :overflow-x hidden + +// Mixin to a column to append n empty cols. +=append(!n) + :padding-left = (!blueprint_grid_outer_width) * !n + +// Mixin to a column to prepend n empty cols. +=prepend(!n) + :padding-right = (!blueprint_grid_outer_width) * !n + +// mixin to a column to move it n columns to the left +=pull(!n, !last = false) + :position relative + @if !last + :margin-right = (-!blueprint_grid_outer_width * !n) + !blueprint_grid_margin + @else + :margin-right = -!blueprint_grid_outer_width * !n + +// mixin to a column to push it n columns to the right +=push(!n) + +float-right + :position relative + :margin + :top 0 + :left = -!blueprint_grid_outer_width * !n + :bottom 1.5em + :right = !blueprint_grid_outer_width * !n + +// Border on left hand side of a column. +=border + :padding-left = !blueprint_grid_margin / 2 - 1 + :margin-left = !blueprint_grid_margin / 2 + :border-left 1px solid #eee + +// Border with more whitespace, spans one column. +=colborder + :padding-left= !blueprint_grid_width - 0.5 * !blueprint_grid_margin - 1 + :margin-left= !blueprint_grid_width - 0.5 * !blueprint_grid_margin + :border-left 1px solid #eee + +=rtl-typography(!body_selector = "body") + html #{!body_selector} + :font-family Arial, sans-serif + @if !body_selector != "body" + +rtl-typography-defaults + @if !body_selector == "body" + body + +rtl-typography-defaults + +=rtl-typography-defaults + h1, h2, h3, h4, h5, h6 + :font-family Arial, sans-serif + + pre, code, tt + :font-family monospace + + p img + :float right + :margin 1.5em 0 1.5em 1.5em + + dd, ul, ol + :margin-left 0 + :margin-right 1.5em + + td, th + :text-align right