summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnAlbin2012-04-01 16:20:14 +0800
committerJohnAlbin2012-04-01 16:20:14 +0800
commit75a73c944327a9accc016eaddd356ef289fa8bd5 (patch)
tree76d1894de07440e1bb9f0a5e93bfb98bc15cc12c
parentd01f78a36ee61c0128f65a148b4b8fc6e9e9675c (diff)
Add zen-grids plugin.7.x-3.x-sass
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/DO_NOT_MODIFY17
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/LICENSE.txt274
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/README.txt80
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/lib/zen-grids.rb3
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/stylesheets/_zen.scss3
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_background-grid.scss91
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_columns.scss (renamed from STARTERKIT/sass/_zen-columns.scss)49
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_grids.scss347
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/templates/project/common.scss57
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/templates/project/example.html67
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/templates/project/layout.scss137
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/templates/project/manifest.rb25
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/templates/project/styles.scss3
-rw-r--r--STARTERKIT/sass-extensions/zen-grids/zen-grids.gemspec35
-rw-r--r--STARTERKIT/sass/_base.scss2
15 files changed, 1176 insertions, 14 deletions
diff --git a/STARTERKIT/sass-extensions/zen-grids/DO_NOT_MODIFY b/STARTERKIT/sass-extensions/zen-grids/DO_NOT_MODIFY
new file mode 100644
index 0000000..6fea548
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/DO_NOT_MODIFY
@@ -0,0 +1,17 @@
+This is a copy of the "zen-grids" extension.
+
+It now overrides the original which was found here:
+
+/Library/Ruby/Gems/1.8/gems/zen-grids-1.0.rc.1
+
+Unpacking an extension is useful when you need to easily peruse the
+extension's source. You might find yourself tempted to change the
+stylesheets here. If you do this, you'll find it harder to take
+updates from the original author. Sometimes this seems like a good
+idea at the time, but in a few months, you'll probably regret it.
+
+In the future, if you take an update of this framework, you'll need to run
+
+ compass unpack zen-grids
+
+again or remove this unpacked extension.
diff --git a/STARTERKIT/sass-extensions/zen-grids/LICENSE.txt b/STARTERKIT/sass-extensions/zen-grids/LICENSE.txt
new file mode 100644
index 0000000..2c095c8
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/LICENSE.txt
@@ -0,0 +1,274 @@
+GNU GENERAL PUBLIC LICENSE
+
+ Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave,
+Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute
+verbatim copies of this license document, but changing it is not allowed.
+
+ Preamble
+
+The licenses for most software are designed to take away your freedom to
+share and change it. By contrast, the GNU General Public License is
+intended to guarantee your freedom to share and change free software--to
+make sure the software is free for all its users. This General Public License
+applies to most of the Free Software Foundation's software and to any other
+program whose authors commit to using it. (Some other Free Software
+Foundation software is covered by the GNU Library General Public License
+instead.) You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our
+General Public Licenses are designed to make sure that you have the
+freedom to distribute copies of free software (and charge for this service if
+you wish), that you receive source code or can get it if you want it, that you
+can change the software or use pieces of it in new free programs; and that
+you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone to
+deny you these rights or to ask you to surrender the rights. These restrictions
+translate to certain responsibilities for you if you distribute copies of the
+software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis or for
+a fee, you must give the recipients all the rights that you have. You must make
+sure that they, too, receive or can get the source code. And you must show
+them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and (2)
+offer you this license which gives you legal permission to copy, distribute
+and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain that
+everyone understands that there is no warranty for this free software. If the
+software is modified by someone else and passed on, we want its recipients
+to know that what they have is not the original, so that any problems
+introduced by others will not reflect on the original authors' reputations.
+
+Finally, any free program is threatened constantly by software patents. We
+wish to avoid the danger that redistributors of a free program will individually
+obtain patent licenses, in effect making the program proprietary. To prevent
+this, we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and modification
+follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND
+ MODIFICATION
+
+0. This License applies to any program or other work which contains a notice
+placed by the copyright holder saying it may be distributed under the terms
+of this General Public License. The "Program", below, refers to any such
+program or work, and a "work based on the Program" means either the
+Program or any derivative work under copyright law: that is to say, a work
+containing the Program or a portion of it, either verbatim or with
+modifications and/or translated into another language. (Hereinafter, translation
+is included without limitation in the term "modification".) Each licensee is
+addressed as "you".
+
+Activities other than copying, distribution and modification are not covered
+by this License; they are outside its scope. The act of running the Program is
+not restricted, and the output from the Program is covered only if its contents
+constitute a work based on the Program (independent of having been made
+by running the Program). Whether that is true depends on what the Program
+does.
+
+1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this License
+and to the absence of any warranty; and give any other recipients of the
+Program a copy of this License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and you
+may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of it,
+thus forming a work based on the Program, and copy and distribute such
+modifications or work under the terms of Section 1 above, provided that you
+also meet all of these conditions:
+
+a) You must cause the modified files to carry prominent notices stating that
+you changed the files and the date of any change.
+
+b) You must cause any work that you distribute or publish, that in whole or in
+part contains or is derived from the Program or any part thereof, to be
+licensed as a whole at no charge to all third parties under the terms of this
+License.
+
+c) If the modified program normally reads commands interactively when run,
+you must cause it, when started running for such interactive use in the most
+ordinary way, to print or display an announcement including an appropriate
+copyright notice and a notice that there is no warranty (or else, saying that
+you provide a warranty) and that users may redistribute the program under
+these conditions, and telling the user how to view a copy of this License.
+(Exception: if the Program itself is interactive but does not normally print such
+an announcement, your work based on the Program is not required to print
+an announcement.)
+
+These requirements apply to the modified work as a whole. If identifiable
+sections of that work are not derived from the Program, and can be
+reasonably considered independent and separate works in themselves, then
+this License, and its terms, do not apply to those sections when you distribute
+them as separate works. But when you distribute the same sections as part
+of a whole which is a work based on the Program, the distribution of the
+whole must be on the terms of this License, whose permissions for other
+licensees extend to the entire whole, and thus to each and every part
+regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest your rights to
+work written entirely by you; rather, the intent is to exercise the right to
+control the distribution of derivative or collective works based on the
+Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of a
+storage or distribution medium does not bring the other work under the scope
+of this License.
+
+3. You may copy and distribute the Program (or a work based on it, under
+Section 2) in object code or executable form under the terms of Sections 1
+and 2 above provided that you also do one of the following:
+
+a) Accompany it with the complete corresponding machine-readable source
+code, which must be distributed under the terms of Sections 1 and 2 above
+on a medium customarily used for software interchange; or,
+
+b) Accompany it with a written offer, valid for at least three years, to give
+any third party, for a charge no more than your cost of physically performing
+source distribution, a complete machine-readable copy of the corresponding
+source code, to be distributed under the terms of Sections 1 and 2 above on
+a medium customarily used for software interchange; or,
+
+c) Accompany it with the information you received as to the offer to distribute
+corresponding source code. (This alternative is allowed only for
+noncommercial distribution and only if you received the program in object
+code or executable form with such an offer, in accord with Subsection b
+above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source code
+means all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation and
+installation of the executable. However, as a special exception, the source
+code distributed need not include anything that is normally distributed (in
+either source or binary form) with the major components (compiler, kernel,
+and so on) of the operating system on which the executable runs, unless that
+component itself accompanies the executable.
+
+If distribution of executable or object code is made by offering access to
+copy from a designated place, then offering equivalent access to copy the
+source code from the same place counts as distribution of the source code,
+even though third parties are not compelled to copy the source along with the
+object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program except as
+expressly provided under this License. Any attempt otherwise to copy,
+modify, sublicense or distribute the Program is void, and will automatically
+terminate your rights under this License. However, parties who have received
+copies, or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+5. You are not required to accept this License, since you have not signed it.
+However, nothing else grants you permission to modify or distribute the
+Program or its derivative works. These actions are prohibited by law if you
+do not accept this License. Therefore, by modifying or distributing the
+Program (or any work based on the Program), you indicate your acceptance
+of this License to do so, and all its terms and conditions for copying,
+distributing or modifying the Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these terms and
+conditions. You may not impose any further restrictions on the recipients'
+exercise of the rights granted herein. You are not responsible for enforcing
+compliance by third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues), conditions
+are imposed on you (whether by court order, agreement or otherwise) that
+contradict the conditions of this License, they do not excuse you from the
+conditions of this License. If you cannot distribute so as to satisfy
+simultaneously your obligations under this License and any other pertinent
+obligations, then as a consequence you may not distribute the Program at all.
+For example, if a patent license would not permit royalty-free redistribution
+of the Program by all those who receive copies directly or indirectly through
+you, then the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply and
+the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents or
+other property right claims or to contest validity of any such claims; this
+section has the sole purpose of protecting the integrity of the free software
+distribution system, which is implemented by public license practices. Many
+people have made generous contributions to the wide range of software
+distributed through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing to
+distribute software through any other system and a licensee cannot impose
+that choice.
+
+This section is intended to make thoroughly clear what is believed to be a
+consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in certain
+countries either by patents or by copyrighted interfaces, the original copyright
+holder who places the Program under this License may add an explicit
+geographical distribution limitation excluding those countries, so that
+distribution is permitted only in or among countries not thus excluded. In such
+case, this License incorporates the limitation as if written in the body of this
+License.
+
+9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will be
+similar in spirit to the present version, but may differ in detail to address new
+problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies
+a version number of this License which applies to it and "any later version",
+you have the option of following the terms and conditions either of that
+version or of any later version published by the Free Software Foundation. If
+the Program does not specify a version number of this License, you may
+choose any version ever published by the Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free programs
+whose distribution conditions are different, write to the author to ask for
+permission. For software which is copyrighted by the Free Software
+Foundation, write to the Free Software Foundation; we sometimes make
+exceptions for this. Our decision will be guided by the two goals of
+preserving the free status of all derivatives of our free software and of
+promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE,
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT
+PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
+STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
+WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
+PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR
+AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR
+ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
+LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
+SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
+ARISING OUT OF THE USE OR INABILITY TO USE THE
+PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
+OR DATA BEING RENDERED INACCURATE OR LOSSES
+SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
+PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN
+IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
diff --git a/STARTERKIT/sass-extensions/zen-grids/README.txt b/STARTERKIT/sass-extensions/zen-grids/README.txt
new file mode 100644
index 0000000..0eda74a
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/README.txt
@@ -0,0 +1,80 @@
+ABOUT zen-grids
+---------------
+
+The Zen Grids system is a fluid responsive grid system that is immune to
+rounding errors and overflowing content. With an easy-to-use Sass mixin set, the
+Zen Grids system can be applied to an infinite number of layouts.
+
+
+USAGE
+-----
+
+Here's a simple example: a content column with a sidebar on each side, aligned
+to a 12 column grid.
+
+ @import "zen";
+
+ $zen-column-count: 12; // Set the total number of columns in the grid.
+ $zen-gutter-width: 40px; // Set the gutter size. A half-gutter is used on
+ // each side of each column.
+
+ .container {
+ @include zen-grid-container;
+ }
+ .sidebar1 {
+ @include zen-grid(3, 1); // 3 col. wide sidebar starting in the 1st column
+ }
+ .content {
+ @include zen-grid(6, 4); // 6 col. wide element starting in the 4th column
+ }
+ .sidebar2 {
+ @include zen-grid(3, 10); // 3 col. wide sidebar starting in the 10th column
+ }
+
+Within the .container element, the .sidebar1, .sidebar2 and .content elements
+can be in any order.
+
+Zen Grids has built-in support for the Box-sizing Polyfill which adds
+"box-sizing: border-box" support to IE7 and earlier.
+
+- Download the polyfill at https://github.com/Schepp/box-sizing-polyfill
+- Place the boxsizing.htc file in your website.
+- Set Zen Grids' $box-sizing-polyfill-path variable to the absolute path to the
+ boxsizing.htc file on your website. For example:
+ $box-sizing-polyfill-path: "/scripts/polyfills/boxsizing.htc";
+
+
+INSTALLATION
+------------
+
+Zen grids is distributed as a Ruby Gem. On your computer, simply run:
+
+ sudo gem install zen-grids
+
+If you are using Compass (and you should!) then you can add it to an existing
+project by editing the project's configuration file, config.rb, and adding this
+line:
+
+ require 'zen-grids'
+
+For Rails projects, from the project's root directory, run:
+
+ compass install zen-grids
+
+You can then start using Zen Grids in your Sass files. Just add this line to one
+of your .sass or .scss files and start creating!
+
+ @import "zen";
+
+
+REQUIREMENTS
+------------
+
+- Sass 3.1 or later
+- Compass 0.11 or later
+
+
+LICENSE
+-------
+
+Available under the GPL v2 license. See LICENSE.txt.
diff --git a/STARTERKIT/sass-extensions/zen-grids/lib/zen-grids.rb b/STARTERKIT/sass-extensions/zen-grids/lib/zen-grids.rb
new file mode 100644
index 0000000..d16a96e
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/lib/zen-grids.rb
@@ -0,0 +1,3 @@
+require 'compass'
+extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+Compass::Frameworks.register('zen-grids', :path => extension_path)
diff --git a/STARTERKIT/sass-extensions/zen-grids/stylesheets/_zen.scss b/STARTERKIT/sass-extensions/zen-grids/stylesheets/_zen.scss
new file mode 100644
index 0000000..d7f48c2
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/stylesheets/_zen.scss
@@ -0,0 +1,3 @@
+// Import the partial for Zen Grids, but not for Zen Columns.
+
+@import "zen/grids";
diff --git a/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_background-grid.scss b/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_background-grid.scss
new file mode 100644
index 0000000..76730b0
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_background-grid.scss
@@ -0,0 +1,91 @@
+@import "zen/grids";
+
+// Specify the number of columns in the grid.
+$bg-grid-column-count: $zen-column-count !default;
+
+// Specify the width of the gutters; half of the gutter will be placed on each
+// side of a grid column.
+$bg-grid-gutter-width: $zen-gutter-width !default;
+
+// Specify the column background color.
+$bg-grid-color: #ffdede !default;
+
+// Specify the width of the entire grid. Defaults to 100% for a fluid responsive
+// design, but you can change this to a pixel value if you need a fixed grid.
+$bg-grid-width: $zen-grid-width !default;
+
+// Specify the default floating direction for zen's mixins.
+$bg-float-direction: $zen-float-direction !default;
+
+
+//
+// This mixin currently requires the following markup at the top of the responsive container (e.g. body or div#page, etc.).
+// <p class="bg-grid">
+// <span class="bgcol-1">1</span><span class="bgcol-2">2</span><span class="bgcol-3">3</span><span class="bgcol-4">4</span><span class="bgcol-5">5</span><span class="bgcol-6">6</span><span class="bgcol-7">7</span><span class="bgcol-8">8</span><span class="bgcol-9">9</span><span class="bgcol-10">10</span><span class="bgcol-11">11</span><span class="bgcol-12">12</span><span class="bgcol-13">13</span><span class="bgcol-14">14</span><span class="bgcol-15">15</span><span class="bgcol-16">16</span><span class="bgcol-17">17</span><span class="bgcol-18">18</span><span class="bgcol-19">19</span><span class="bgcol-20">20</span><span class="bgcol-21">21</span><span class="bgcol-22">22</span><span class="bgcol-23">23</span><span class="bgcol-24">24</span><span class="bgcol-25">25</span><span class="bgcol-26">26</span><span class="bgcol-27">27</span><span class="bgcol-28">28</span><span class="bgcol-29">29</span><span class="bgcol-30">30</span>
+// <span class="bgcolrev-1">1</span><span class="bgcolrev-2">2</span><span class="bgcolrev-3">3</span><span class="bgcolrev-4">4</span><span class="bgcolrev-5">5</span><span class="bgcolrev-6">6</span><span class="bgcolrev-7">7</span><span class="bgcolrev-8">8</span><span class="bgcolrev-9">9</span><span class="bgcolrev-10">10</span><span class="bgcolrev-11">11</span><span class="bgcolrev-12">12</span><span class="bgcolrev-13">13</span><span class="bgcolrev-14">14</span><span class="bgcolrev-15">15</span><span class="bgcolrev-16">16</span><span class="bgcolrev-17">17</span><span class="bgcolrev-18">18</span><span class="bgcolrev-19">19</span><span class="bgcolrev-20">20</span><span class="bgcolrev-21">21</span><span class="bgcolrev-22">22</span><span class="bgcolrev-23">23</span><span class="bgcolrev-24">24</span><span class="bgcolrev-25">25</span><span class="bgcolrev-26">26</span><span class="bgcolrev-27">27</span><span class="bgcolrev-28">28</span><span class="bgcolrev-29">29</span><span class="bgcolrev-30">30</span>
+// </p>
+//
+@mixin -experimental-bg-grid(
+ $column-count: $bg-grid-column-count,
+ $gutter-width: $bg-grid-gutter-width,
+ $grid-color: $bg-grid-color,
+ $grid-width: $bg-grid-width,
+ $flow-direction: $bg-float-direction
+) {
+
+ // Internal variables.
+ $dir: $flow-direction;
+ @if $zen-reverse-all-floats {
+ $dir: zen-direction-flip($dir);
+ }
+ $rev: zen-direction-flip($dir);
+
+ $font-size: 16px;
+ $line-height: 24px;
+ $color-bg: #fff;
+
+ @include zen-grid-container;
+ position: absolute;
+ position: fixed;
+ z-index: -1;
+ margin: 0 auto;
+ width: $grid-width;
+ height: 100%;
+ font-size: $font-size;
+ line-height: $line-height;
+ font-weight: bold;
+ font-family: sans-serif;
+ background-color: $color-bg;
+
+ span {
+ @include zen-grid-item-base;
+ padding: 0;
+ text-align: center;
+ color: $color-bg;
+ @include text-shadow(darken($grid-color, 75%) 0 0 4px);
+ }
+ @for $i from 1 through $column-count {
+ .bgcol-#{$i} {
+ @include zen-grid-item(1, $i, $column-count: $column-count, $gutter-width: $gutter-width, $float-direction: $dir, $auto-include-item-base: false);
+ height: 100%;
+ margin-bottom: -($line-height);
+ background-color: $grid-color;
+ border: {
+ left: zen-half-gutter($gutter-width) solid $color-bg;
+ right: zen-half-gutter($gutter-width) solid $color-bg;
+ }
+ }
+ .bgcolrev-#{$i} {
+ @if $i == 1 {
+ @include zen-clear();
+ }
+ @include zen-grid-item(1, $i, $column-count: $column-count, $gutter-width: $gutter-width, $float-direction: $rev, $auto-include-item-base: false);
+ }
+ }
+ @for $i from ($column-count + 1) through 30 {
+ .bgcol-#{$i},
+ .bgcolrev-#{$i} {
+ display: none;
+ }
+ }
+}
diff --git a/STARTERKIT/sass/_zen-columns.scss b/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_columns.scss
index 822bd66..e03afb4 100644
--- a/STARTERKIT/sass/_zen-columns.scss
+++ b/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_columns.scss
@@ -2,12 +2,13 @@
// Mixins for Zen Columns layout method.
//
+$zen-columns-box-sizing: content-box !default;
$legacy-support-for-ie6: true !default;
//
-// This mixin should be applied to a container so that the children elements
-// become columns arranged with the Zen Columns layout method.
+// This mixin should be applied to a container so that the children items become
+// columns arranged with the Zen Columns layout method.
//
// The mixin has the following required parameters:
// - $selectors: A list of selectors for all the columns inside the container.
@@ -19,6 +20,9 @@ $legacy-support-for-ie6: true !default;
// is for the second column. etc.
//
// The mixin has the following optional parameters:
+// - $box-sizing: The type of CSS3 box model each column should use. Can be set
+// to content-box or border-box. Defaults to content-box, but border-box is
+// way cooler. IE 6 and 7 don't support border-box.
// - $leading-direction: The direction the columns should float. Can be set to
// "left" or "right". An extremely advanced option allows you to specify a
// a list of directions, one direction for each column.
@@ -35,8 +39,8 @@ $legacy-support-for-ie6: true !default;
// In addition to standard columns, the mixin supports one horizontal navbar
// that will appear (with a fixed height) above all the other columns. The
// parameters for this optional navbar are:
-// - $navbar-selector: The selector for the navbar. It should be a child element
-// of the container just as a normal column is.
+// - $navbar-selector: The selector for the navbar. It should be a child item of
+// the container just as a normal column is.
// - $navbar-height: The fixed height of the navbar. Required if the
// $navbar-selector is used.
// - $navbar-width: The width of the navbar. Defaults to 100% of the container
@@ -51,6 +55,7 @@ $legacy-support-for-ie6: true !default;
//
@mixin zen-columns (
// Information about the columns.
+ $box-sizing: $zen-columns-box-sizing,
$selectors: ('.sidebar1', '.content', '.sidebar2'),
$widths: (),
$leading-direction: (),
@@ -115,6 +120,10 @@ $legacy-support-for-ie6: true !default;
@if length($navbar-padding) >= 3 {
$navbar-padding-y: nth($navbar-padding, 1) + nth($navbar-padding, 3);
}
+ // We only keep track of the padding for content-box layouts.
+ @if $box-sizing == border-box {
+ $navbar-padding-x: 0;
+ }
// Determine the distance of the navbar's right edge from the container's left edge.
$navbar-reset: -$navbar-leading-gutter - $navbar-width - $navbar-padding-x;
// The columns need to know the true height of the navbar box.
@@ -162,6 +171,10 @@ $legacy-support-for-ie6: true !default;
$padding-x: 2 * nth($padding-values, 2);
}
}
+ // We only keep track of the padding for content-box layouts.
+ @if $box-sizing == border-box {
+ $padding-x: 0;
+ }
// If the column is floating from the left, determine the distance from the
// container's left edge to the column's left edge ($left-fill) and to the
// column's right edge ($left-reset).
@@ -189,15 +202,11 @@ $legacy-support-for-ie6: true !default;
width: $width;
margin: $margin;
padding: $padding-values;
- border: 0 !important;
}
}
// Apply rules to the container.
position: relative;
- @if $legacy-support-for-ie6 {
- _zoom: 1; // Otherwise with a liquid layout, sidebars disappear when resizing the windows in IE6.
- }
// Apply rules to the navbar.
@if $navbar-selector {
@@ -210,15 +219,29 @@ $legacy-support-for-ie6: true !default;
}
}
- // Prevent overflowing content from breaking the layout.
+ // Apply rules to navbar and columns.
#{$container-children} {
+ // Specify the border-box properties.
+ @if $box-sizing == border-box {
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ }
+ // Prevent borders since they'll break the layout with content-box.
+ @if $box-sizing == content-box {
+ border: 0 !important;
+ }
+ // Prevent overflowing content from breaking the layout.
overflow: visible;
word-wrap: break-word; // A very nice CSS3 property.
- @if $legacy-support-for-ie6 {
- _display: inline; // display inline or double your floated margin! [1]
- _overflow: hidden; // in IE6, overflow auto is broken [2] and so is overflow visible [3]
- _overflow-y: visible;
+ @if $legacy-support-for-ie6 and $box-sizing == content-box {
+ .ie6 & {
+ display: inline; // display inline or double your floated margin! [1]
+ overflow: hidden; // in IE6, overflow auto is broken [2] and so is overflow visible [3]
+ overflow-y: visible;
+ }
}
}
}
diff --git a/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_grids.scss b/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_grids.scss
new file mode 100644
index 0000000..93716f1
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_grids.scss
@@ -0,0 +1,347 @@
+//
+// Mixins for the Zen Grids system.
+//
+
+
+// Specify the number of columns in the grid.
+$zen-column-count: 12 !default;
+
+// Specify the width of the gutters; half of the gutter will be placed on each
+// side of a grid column.
+$zen-gutter-width: 20px !default;
+
+// You can generate more efficient CSS if you manually apply the
+// zen-grid-item-base mixin to all grid items from within a single ruleset.
+$zen-auto-include-item-base: true !default;
+$zen-auto-include-flow-item-base: true !default;
+
+// Specify the width of the entire grid. Defaults to 100% for a fluid responsive
+// design, but you can change this to a pixel value if you need a fixed grid.
+$zen-grid-width: 100% !default;
+
+// The box-sizing polyfill for IE6/7 requires an absolute path to the
+// boxsizing.htc file. See https://github.com/Schepp/box-sizing-polyfill
+$box-sizing-polyfill-path: "" !default;
+
+// Specify the CSS3 box-sizing method. The default, "border-box", is compatible
+// with all modern browsers, including IE 8 and later. Use "content-box" for
+// wider compatibility (Note: you'll also need to set $legacy-support-for-ie7
+// and $legacy-support-for-ie6 to true.)
+$zen-box-sizing: border-box !default;
+
+// Turn off IE6/7 support since we're defaulting to box-sizing: border-box.
+$legacy-support-for-ie7: false !default;
+$legacy-support-for-ie6: false !default;
+
+// Specify the method to add IE legacy support; can be hack or class. Setting
+// this to class will result in generated CSS rules using html/body classes
+// specified in $default-legacy-ie*-class variables, like those used in HTML5
+// Boilerplate.
+$default-legacy-ie-approach: hack !default;
+
+// The html/body classes to use when $default-legacy-ie-approach equals class.
+$default-legacy-ie6-class: lt-ie7;
+$default-legacy-ie7-class: lt-ie8;
+
+// Specify the default floating direction for zen's mixins.
+$zen-float-direction: left !default;
+
+// This is a helper variable for RTL layouts.
+$zen-reverse-all-floats: false !default;
+
+
+//
+// Zen Grids requires the clearfix mixin.
+//
+@import "compass/utilities/general/clearfix";
+
+
+//
+// Apply this to the grid container element.
+//
+@mixin zen-grid-container () {
+ position: relative;
+ @include clearfix;
+}
+
+//
+// Apply this to any grid item that is also a grid container element for a
+// nested grid.
+//
+@mixin zen-nested-container () {
+ @include zen-grid-container;
+ padding: {
+ left: 0;
+ right: 0;
+ }
+}
+
+//
+// Apply this to each grid item. Set the $column-span to the number of columns
+// that the grid item spans. And set the $column-position to the column number
+// the grid item starts on.
+//
+// For grid items that are floated right, the $column-position is counted
+// from the right instead of from the left.
+//
+@mixin zen-grid-item (
+ $column-span,
+ $column-position,
+ $float-direction: $zen-float-direction,
+ $column-count: $zen-column-count,
+ $gutter-width: $zen-gutter-width,
+ $grid-width: $zen-grid-width,
+ $box-sizing: $zen-box-sizing,
+ $reverse-all-floats: $zen-reverse-all-floats,
+ $auto-include-item-base: $zen-auto-include-item-base
+) {
+
+ // Calculate the unit width.
+ $unit-width: $grid-width / $column-count;
+
+ @if unit($unit-width) == "px" and floor($unit-width) != ceil($unit-width) {
+ @warn "You may experience rounding errors as the grid width, #{$grid-width}, does not divide evenly into #{$column-count} columns.";
+ }
+
+ // Determine the float direction and its reverse.
+ $dir: $float-direction;
+ @if $reverse-all-floats {
+ $dir: zen-direction-flip($dir);
+ }
+ $rev: zen-direction-flip($dir);
+
+ float: $dir;
+ $width: $column-span * $unit-width;
+ @if $box-sizing == content-box {
+ @if not comparable($width, $gutter-width) {
+ $units-gutter: unit($gutter-width);
+ $units-grid: unit($grid-width);
+ @warn "The layout cannot be calculated correctly; when using box-sizing: content-box, the units of the gutter (#{$units-gutter} did not match the units of the grid width (#{$units-grid}).";
+ }
+ $width: $width - $gutter-width;
+ }
+ width: $width;
+ margin: {
+ #{$dir}: ($column-position - 1) * $unit-width;
+ #{$rev}: (1 - $column-position - $column-span) * $unit-width;
+ }
+
+ // Auto-apply the unit base mixin.
+ @if $auto-include-item-base {
+ @include zen-grid-item-base($gutter-width, $box-sizing);
+ }
+}
+
+//
+// Apply this mixin to each content box in the layout to prevent overflowing
+// content from breaking the layout.
+//
+// The mixin has the following optional parameters, but its better to use the
+// $zen-gutter-width and $zen-box-sizing variables instead:
+// - $gutter-width: Half of this value is applied as padding to the left and
+// right sides of the item.
+// - $box-sizing: The type of CSS3 box model each box should use. Can be set to
+// content-box or border-box. Defaults to content-box, but border-box is way
+// cooler. IE 6 and 7 don't support border-box.
+@mixin zen-grid-item-base (
+ $gutter-width: $zen-gutter-width,
+ $box-sizing: $zen-box-sizing,
+ $flow-direction: $zen-float-direction,
+ $reverse-all-flows: $zen-reverse-all-floats
+) {
+
+ $dir: $flow-direction;
+ @if $reverse-all-flows {
+ $dir: zen-direction-flip($dir);
+ }
+ $rev: zen-direction-flip($dir);
+
+ padding: {
+ left: zen-half-gutter($gutter-width, $dir);
+ right: zen-half-gutter($gutter-width, $rev);
+ }
+ // Specify the border-box properties.
+ @if $box-sizing == border-box {
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ }
+ // Prevent borders since they'll break the layout with content-box.
+ @if $box-sizing == content-box {
+ border: 0 !important;
+ }
+ // Prevent overflowing content from breaking the layout.
+ overflow: visible;
+ word-wrap: break-word; // A very nice CSS3 property.
+
+ @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) and $box-sizing == border-box and $box-sizing-polyfill-path == "" {
+ @warn "IE legacy support is on, but $box-sizing is set to #{$box-sizing} and the $box-sizing-polyfill-path is empty.";
+ }
+ @else {
+ @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
+ @if $box-sizing-polyfill-path {
+ @if $default-legacy-ie-approach == hack {
+ *behavior: url($box-sizing-polyfill-path);
+ }
+ @else {
+ #{$default-legacy-ie7-class} & {
+ behavior: url($box-sizing-polyfill-path);
+ }
+ }
+ }
+ @if $legacy-support-for-ie6 {
+ @if $default-legacy-ie-approach == hack {
+ _display: inline; // display inline or double your floated margin! [1]
+ _overflow: hidden; // in IE6, overflow auto is broken [2] and so is overflow visible [3]
+ _overflow-y: visible;
+ }
+ @else {
+ #{$default-legacy-ie6-class} & {
+ display: inline; // display inline or double your floated margin! [1]
+ overflow: hidden; // in IE6, overflow auto is broken [2] and so is overflow visible [3]
+ overflow-y: visible;
+ }
+ }
+ // 1. http://www.positioniseverything.net/explorer/doubled-margin.html
+ // 2. http://browservulsel.blogspot.com/2005/04/ie-overflow-auto-scrollbar-overlap.html
+ // 3. http://www.howtocreate.co.uk/wrongWithIE/?chapter=overflow%3Avisible%3B
+ }
+ }
+ }
+}
+
+//
+// Apply this to content boxes that need to be cleared below other content boxes.
+//
+@mixin zen-clear (
+ $float-direction: $zen-float-direction,
+ $reverse-all-floats: $zen-reverse-all-floats
+) {
+ // Determine the float direction.
+ $dir: $float-direction;
+ @if $reverse-all-floats {
+ $dir: zen-direction-flip($dir);
+ }
+ clear: $dir;
+}
+
+//
+// Apply this to an HTML item that is in the normal flow of a document to help
+// align it to the grid. Set the $column-span to the number of columns that the
+// HTML element should span. For responsive layouts with a percentage-based grid
+// width, set the $parent-column-count to the number of columns that the parent
+// element spans; fixed-unit layouts using px, em, etc. do not need to specify
+// this.
+//
+// Unlike the zen-grid-item() mixin, this mixin does not float the HTML item; it
+// also does not have a half-gutter on each side. By default, it has no gutter
+// in the "alpha position" (the left side) and a full gutter in the "omega
+// position" (the right side.) You can turn on or off the alpha and omega
+// gutters by setting the $alpha-gutter and $omega-gutter parameters to true or
+// false.
+//
+// Note: when the $flow-direction is set to right (for RTL languages), the alpha
+// position is on the right and the omega position is on the left.
+//
+@mixin zen-grid-flow-item (
+ $column-span,
+ $parent-column-count: false,
+ $alpha-gutter: false,
+ $omega-gutter: true,
+ $flow-direction: $zen-float-direction,
+ $column-count: $zen-column-count,
+ $gutter-width: $zen-gutter-width,
+ $grid-width: $zen-grid-width,
+ $box-sizing: $zen-box-sizing,
+ $reverse-all-flows: $zen-reverse-all-floats,
+ $auto-include-flow-item-base: $zen-auto-include-flow-item-base
+) {
+
+ $columns: $column-count;
+ @if unit($grid-width) == "%" {
+ @if $parent-column-count == false {
+ @warn "For responsive layouts with a percentage-based grid width, you must set the $column-count to the number of columns that the parent element spans.";
+ }
+ @else {
+ $columns: $parent-column-count;
+ }
+ }
+
+ $dir: $flow-direction;
+ @if $reverse-all-flows {
+ $dir: zen-direction-flip($dir);
+ }
+ $rev: zen-direction-flip($dir);
+
+ // Ensure the HTML item either has a full gutter or no gutter on each side.
+ @if $alpha-gutter {
+ margin-#{$dir}: zen-half-gutter($gutter-width, $rev);
+ }
+ @else {
+ margin-#{$dir}: -(zen-half-gutter($gutter-width, $dir));
+ }
+ @if $omega-gutter {
+ margin-#{$rev}: zen-half-gutter($gutter-width, $dir);
+ }
+ @else {
+ margin-#{$rev}: -(zen-half-gutter($gutter-width, $rev));
+ }
+
+ // Calculate the unit width.
+ $unit-width: $grid-width / $columns;
+ $width: $column-span * $unit-width;
+ @if $box-sizing == content-box {
+ @if not comparable($width, $gutter-width) {
+ $units-gutter: unit($gutter-width);
+ $units-grid: unit($grid-width);
+ @warn "The layout cannot be calculated correctly; when using box-sizing: content-box, the units of the gutter (#{$units-gutter} did not match the units of the grid width (#{$units-grid}).";
+ }
+ $width: $width - $gutter-width;
+ }
+ width: $width;
+
+ // Auto-apply the unit base mixin.
+ @if $auto-include-flow-item-base {
+ @include zen-grid-item-base($gutter-width, $box-sizing);
+ }
+}
+
+
+//
+// Helper functions for the Zen mixins.
+//
+
+// Returns a half gutter width.
+@function zen-half-gutter(
+ $gutter-width: $zen-gutter-width,
+ $gutter-side: $zen-float-direction,
+ $flow-direction: $zen-float-direction
+) {
+ $half-gutter: $gutter-width / 2;
+ // Special handling in case gutter has an odd number of pixels.
+ @if unit($gutter-width) == "px" {
+ @if $gutter-side == $flow-direction {
+ @return floor($half-gutter);
+ }
+ @else {
+ @return ceil($half-gutter);
+ }
+ }
+ @return $half-gutter;
+}
+
+// Returns the opposite direction, given "left" or "right".
+@function zen-direction-flip($dir) {
+ @if $dir == left {
+ @return right;
+ }
+ @else if $dir == right {
+ @return left;
+ }
+ @else if $dir == none or $dir == both {
+ @return $dir;
+ }
+ @warn "Invalid direction passed to zen-direction-flip().";
+ @return both;
+}
diff --git a/STARTERKIT/sass-extensions/zen-grids/templates/project/common.scss b/STARTERKIT/sass-extensions/zen-grids/templates/project/common.scss
new file mode 100644
index 0000000..d295958
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/templates/project/common.scss
@@ -0,0 +1,57 @@
+// Ideally, variables should be initialized in a partial. We're setting it here
+// to make the mixin usage more transparent.
+$gutter-width: 10px;
+
+
+// Skip link styling
+#skip-link {
+ margin: 0;
+
+ a,
+ a:visited {
+ display: block;
+ width: 100%;
+ padding: 2px 0 3px 0;
+ text-align: center;
+ background-color: #666;
+ color: #fff;
+ }
+}
+
+// Set a consistent padding around all containers
+#header,
+#content,
+#main-menu,
+#aside1,
+#aside2,
+#footer {
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ padding: $gutter-width;
+}
+
+// Alternate border styling
+#header,
+#main-menu,
+#aside2 {
+ border: 1px solid #ccc;
+}
+#content,
+#aside1,
+#footer {
+ border: 1px solid #09f;
+}
+
+// Source-order meta info
+header h1,
+header h2 {
+ display: inline;
+}
+header p {
+ display: inline;
+ text-transform: uppercase;
+ font-size: 0.8em;
+ color: #c00;
+}
diff --git a/STARTERKIT/sass-extensions/zen-grids/templates/project/example.html b/STARTERKIT/sass-extensions/zen-grids/templates/project/example.html
new file mode 100644
index 0000000..38e798c
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/templates/project/example.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Zen Grids: sample usage</title>
+ <link rel="stylesheet" href="stylesheets/styles.css" media="all">
+</head>
+<body>
+
+<p id="skip-link">
+<a href="#main-menu">Jump to main menu</a>
+</p>
+
+<header id="header">
+ <h1>Zen Grids: sample usage</h1>
+</header>
+
+<div id="main">
+
+ <article id="content" role="main">
+ <header>
+ <h1>Main content</h1>
+ <p>Source order: 1</p>
+ </header>
+ <aside>‘There’s no such thing!’</aside>
+ <p>Alice did not quite know what to say to this: so she helped herself to some tea and bread-and-butter, and then turned to the Dormouse, and repeated her question. ‘Why did they live at the bottom of a well?’</p>
+ <p>The Dormouse again took a minute or two to think about it, and then said, ‘It was a treacle-well.’</p>
+ <p>‘There’s no such thing!’ Alice was beginning very angrily, but the Hatter and the March Hare went ‘Sh! sh!’ and the Dormouse sulkily remarked, ‘If you can’t be civil, you’d better finish the story for yourself.’</p>
+ <p>‘No, please go on!’ Alice said very humbly; ‘I won’t interrupt again. I dare say there may be ONE.’</p>
+ </article>
+
+ <nav id="main-menu" role="navigation">
+ <header>
+ <h2>Menu</h2>
+ <p>Source order: 2</p>
+ </header>
+ <a href="#">Alice</a> ★
+ <a href="#">Mad Hatter</a> ★
+ <a href="#">The Queen</a> ★
+ <a href="#">Tom Petty</a>
+ </nav>
+
+ <aside id="aside1">
+ <header>
+ <h2>Aside</h2>
+ <p>Source order: 3</p>
+ </header>
+ <p>‘Have some wine,’ the March Hare said in an encouraging tone.</p>
+ </aside>
+
+ <aside id="aside2">
+ <header>
+ <h2>Aside</h2>
+ <p>Source order: 4</p>
+ </header>
+ <p>‘Please would you tell me,’ said Alice, a little timidly, for she was not quite sure whether it was good manners for her to speak first, ‘why your cat grins like that?’</p>
+ <p>‘It’s a Cheshire cat,’ said the Duchess, ‘and that’s why. Pig!’</p>
+ </aside>
+
+</div>
+
+<footer id="footer">
+ <small>© 2012. The small print.</small>
+</footer>
+
+</body>
+</html>
diff --git a/STARTERKIT/sass-extensions/zen-grids/templates/project/layout.scss b/STARTERKIT/sass-extensions/zen-grids/templates/project/layout.scss
new file mode 100644
index 0000000..73a9242
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/templates/project/layout.scss
@@ -0,0 +1,137 @@
+// Ideally, variables should be initialized in a partial. We're setting
+// variables here to make the mixin usage more transparent.
+$legacy-support-for-ie6: false;
+$legacy-support-for-ie7: false;
+
+// Import Zen Grids.
+@import "zen";
+
+$zen-column-count: 12;
+$zen-gutter-width: 20px;
+
+
+//
+// Skip link styling
+//
+@media all and (min-width: 480px) {
+ #skip-link a {
+ position: absolute !important;
+ height: 1px;
+ width: 1px;
+ overflow: hidden;
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+ clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax.
+ }
+ clip: rect(1px, 1px, 1px, 1px);
+
+ &:active,
+ &:focus {
+ position: static !important;
+ clip: auto;
+ height: auto;
+ width: auto;
+ overflow: auto;
+ }
+ }
+}
+
+#header,
+#main,
+#footer {
+ margin: {
+ left: auto;
+ right: auto;
+ }
+ max-width: 1100px;
+}
+
+#main {
+ @include zen-grid-container();
+}
+
+#content aside {
+ font-weight: bold;
+ font-style: italic;
+ font-size: 1.2em;
+ @include zen-grid-flow-item(1, 3);
+ float: left;
+ margin: {
+ top: (1em/1.2);
+ bottom: (1em/1.2);
+ }
+}
+
+//
+// Horizontal navigation bar
+@media all and (min-width: 480px) {
+ $zen-column-count: 1;
+ $navbar-height: 4em;
+
+ #main {
+ padding-top: $navbar-height;
+ }
+ #main-menu {
+ @include zen-grid-item(1, 1);
+ margin-top: -$navbar-height;
+ height: $navbar-height;
+ }
+}
+
+@media all and (min-width: 480px) and (max-width: 639px) {
+ $zen-column-count: 2;
+
+ #content {
+ @include zen-grid-item(2, 1);
+ }
+ #aside1 {
+ @include zen-clear(); // Clear left-floated elements (#content)
+ @include zen-grid-item(1, 1);
+ }
+ #aside2 {
+ @include zen-grid-item(1, 2);
+ }
+}
+
+@media all and (min-width: 640px) and (max-width: 799px) {
+ $zen-column-count: 3;
+
+ #content {
+ @include zen-grid-item(2, 1);
+ }
+ #aside1 {
+ @include zen-grid-item(1, 1, right); // Position from the right
+ }
+ #aside2 {
+ @include zen-clear(); // Clear left-floated elements (#content)
+ @include zen-grid-item(2, 1);
+ }
+}
+
+@media all and (min-width: 800px) and (max-width: 959px) {
+ $zen-column-count: 3;
+
+ #content {
+ @include zen-grid-item(2, 1);
+ }
+ #aside1 {
+ @include zen-grid-item(1, 1, right); // Position from the right
+ }
+ #aside2 {
+ @include zen-clear(right); // Clear right-floated elements (#aside1)
+ @include zen-grid-item(1, 1, right);
+ }
+}
+
+@media all and (min-width: 960px) {
+ $zen-column-count: 5;
+
+ #content {
+ @include zen-grid-item(3, 2);
+ }
+ #aside1 {
+ @include zen-grid-item(1, 1);
+ }
+ #aside2 {
+ @include zen-grid-item(1, 5);
+ }
+}
diff --git a/STARTERKIT/sass-extensions/zen-grids/templates/project/manifest.rb b/STARTERKIT/sass-extensions/zen-grids/templates/project/manifest.rb
new file mode 100644
index 0000000..081d564
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/templates/project/manifest.rb
@@ -0,0 +1,25 @@
+description "The Zen Grids system."
+
+stylesheet 'common.scss', :media => 'all'
+stylesheet 'layout.scss', :media => 'all'
+stylesheet 'styles.scss', :media => 'all'
+
+html 'example.html'
+
+help %Q{
+The Zen Grids system is an easy-to-use responsive grid system. It's immune to
+browser rounding errors and its source order is mostly independent from display
+order. To learn more, visit:
+
+ http://zengrids.com
+}
+
+welcome_message %Q{
+You rock! The Zen Grids system is now installed on your computer. Go check out
+how to use the system at:
+
+ http://zengrids.com
+
+It's easy! And (bonus!) you'll find pre-made responsive layouts you can
+customize and start using on your website today.
+}
diff --git a/STARTERKIT/sass-extensions/zen-grids/templates/project/styles.scss b/STARTERKIT/sass-extensions/zen-grids/templates/project/styles.scss
new file mode 100644
index 0000000..8d80dc0
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/templates/project/styles.scss
@@ -0,0 +1,3 @@
+// Aggregate all the stylesheets into one file.
+@import "common.scss";
+@import "layout.scss";
diff --git a/STARTERKIT/sass-extensions/zen-grids/zen-grids.gemspec b/STARTERKIT/sass-extensions/zen-grids/zen-grids.gemspec
new file mode 100644
index 0000000..a4efd0c
--- /dev/null
+++ b/STARTERKIT/sass-extensions/zen-grids/zen-grids.gemspec
@@ -0,0 +1,35 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = 'zen-grids'
+
+ s.summary = %q{A Compass plugin for Zen Grids, a fluid responsive grid system}
+ s.description = %q{The Zen Grids system is a fluid responsive grid system that is immune to rounding errors and overflowing content. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts.}
+
+ s.homepage = 'http://zengrids.com'
+ s.rubyforge_project =
+
+ s.version = '1.0.rc.1'
+ s.date = '2012-02-18'
+
+ s.authors = ['John Albin Wilkins']
+ s.email = 'virtually.johnalbin@gmail.com'
+
+ s.add_runtime_dependency('sass', ">= 3.1")
+
+ s.files = %w[
+ LICENSE.txt
+ README.txt
+ lib/zen-grids.rb
+ stylesheets/_zen.scss
+ stylesheets/zen/_background-grid.scss
+ stylesheets/zen/_columns.scss
+ stylesheets/zen/_grids.scss
+ templates/project/example.html
+ templates/project/manifest.rb
+ templates/project/common.scss
+ templates/project/layout.scss
+ templates/project/styles.scss
+ zen-grids.gemspec
+ ]
+end
diff --git a/STARTERKIT/sass/_base.scss b/STARTERKIT/sass/_base.scss
index b7f3b0c..17fe0e5 100644
--- a/STARTERKIT/sass/_base.scss
+++ b/STARTERKIT/sass/_base.scss
@@ -45,6 +45,6 @@ $legacy-support-for-ie7: true;
@import "compass/support"; // Add Compass' IE and vendor prefix support variables.
@import "compass/utilities/general/clearfix"; // Better than Drupal's clearfix.
-@import "zen-columns";
+@import "zen"; // Add the Zen Grids responsive layout mixins.
@import "custom"; // Import our custom mixins last.