aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/sass/sass-extensions/zen-grids/templates/project
diff options
context:
space:
mode:
Diffstat (limited to '97suifangqa/sass/sass-extensions/zen-grids/templates/project')
-rw-r--r--97suifangqa/sass/sass-extensions/zen-grids/templates/project/common.scss57
-rw-r--r--97suifangqa/sass/sass-extensions/zen-grids/templates/project/example.html67
-rw-r--r--97suifangqa/sass/sass-extensions/zen-grids/templates/project/layout.scss137
-rw-r--r--97suifangqa/sass/sass-extensions/zen-grids/templates/project/manifest.rb22
-rw-r--r--97suifangqa/sass/sass-extensions/zen-grids/templates/project/styles.scss3
5 files changed, 286 insertions, 0 deletions
diff --git a/97suifangqa/sass/sass-extensions/zen-grids/templates/project/common.scss b/97suifangqa/sass/sass-extensions/zen-grids/templates/project/common.scss
new file mode 100644
index 0000000..d295958
--- /dev/null
+++ b/97suifangqa/sass/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/97suifangqa/sass/sass-extensions/zen-grids/templates/project/example.html b/97suifangqa/sass/sass-extensions/zen-grids/templates/project/example.html
new file mode 100644
index 0000000..38e798c
--- /dev/null
+++ b/97suifangqa/sass/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/97suifangqa/sass/sass-extensions/zen-grids/templates/project/layout.scss b/97suifangqa/sass/sass-extensions/zen-grids/templates/project/layout.scss
new file mode 100644
index 0000000..73a9242
--- /dev/null
+++ b/97suifangqa/sass/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/97suifangqa/sass/sass-extensions/zen-grids/templates/project/manifest.rb b/97suifangqa/sass/sass-extensions/zen-grids/templates/project/manifest.rb
new file mode 100644
index 0000000..464cf51
--- /dev/null
+++ b/97suifangqa/sass/sass-extensions/zen-grids/templates/project/manifest.rb
@@ -0,0 +1,22 @@
+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{
+Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts. 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!
+}
diff --git a/97suifangqa/sass/sass-extensions/zen-grids/templates/project/styles.scss b/97suifangqa/sass/sass-extensions/zen-grids/templates/project/styles.scss
new file mode 100644
index 0000000..8d80dc0
--- /dev/null
+++ b/97suifangqa/sass/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";