summaryrefslogtreecommitdiff
path: root/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project
diff options
context:
space:
mode:
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project')
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_init.scss21
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_layout.scss117
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_modules.scss78
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_visually-hidden.scss51
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/example.html71
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/manifest.rb24
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/styles.scss6
7 files changed, 368 insertions, 0 deletions
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_init.scss b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_init.scss
new file mode 100644
index 000000000..66a071b4c
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_init.scss
@@ -0,0 +1,21 @@
+//
+// @file
+// This file sets up all our variables and load all the modules we need for all
+// generated CSS in this project. To use it, simply: @import "init";
+//
+
+// Legacy browser variables for Compass.
+$legacy-support-for-ie6 : false;
+$legacy-support-for-ie7 : false;
+
+// Set up Zen Grids.
+$zen-column-count : 1;
+$zen-gutter-width : 20px;
+$zen-auto-include-item-base : false;
+
+//
+// Import our modules.
+//
+@import "zen";
+@import "zen/background";
+@import "visually-hidden";
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_layout.scss b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_layout.scss
new file mode 100644
index 000000000..dfa7bf426
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_layout.scss
@@ -0,0 +1,117 @@
+/**
+ * @file
+ * Layout styles.
+ *
+ * We use example breakpoints of 444px, 666px, 777px, 999px and 1111px. The
+ * right breakpoints to use for your site depend on your content.
+ */
+
+.centered {
+ @include zen-grid-background();
+ padding: {
+ top: 1.5em;
+ bottom: 1.5em;
+ }
+ margin: {
+ left: auto;
+ right: auto;
+ }
+ max-width: 1111px;
+}
+
+/* Set the shared properties for all grid items. */
+%grid-item,
+.grid-item {
+ @include zen-grid-item-base();
+}
+
+/* Set the container for our grid items. */
+.main {
+ @include zen-grid-container();
+}
+
+/* Horizontal navigation bar */
+@media all and (min-width: 444px) {
+ $zen-column-count: 1;
+ $navbar-height: 5em;
+
+ .main {
+ padding-top: $navbar-height;
+ }
+ .grid-item__menu {
+ @include zen-grid-item(1, 1);
+ margin-top: -$navbar-height;
+ height: $navbar-height;
+ }
+}
+
+@media all and (min-width: 444px) and (max-width: 665px) {
+ $zen-column-count: 2;
+
+ .centered {
+ @include zen-grid-background();
+ }
+ .grid-item__content {
+ @include zen-grid-item(2, 1);
+ }
+ .grid-item__aside1 {
+ @include zen-clear(); // Clear left-floated elements (.grid-item__content)
+ @include zen-grid-item(1, 1);
+ }
+ .grid-item__aside2 {
+ @include zen-grid-item(1, 2);
+ }
+}
+
+@media all and (min-width: 666px) and (max-width: 776px) {
+ $zen-column-count: 3;
+
+ .centered {
+ @include zen-grid-background();
+ }
+ .grid-item__content {
+ @include zen-grid-item(2, 1);
+ }
+ .grid-item__aside1 {
+ @include zen-grid-item(1, 1, right); // Position from the right
+ }
+ .grid-item__aside2 {
+ @include zen-clear(); // Clear left-floated elements (.grid-item__content)
+ @include zen-grid-item(2, 1);
+ }
+}
+
+@media all and (min-width: 777px) and (max-width: 998px) {
+ $zen-column-count: 3;
+
+ .centered {
+ @include zen-grid-background();
+ }
+ .grid-item__content {
+ @include zen-grid-item(2, 1);
+ }
+ .grid-item__aside1 {
+ @include zen-grid-item(1, 1, right); // Position from the right
+ }
+ .grid-item__aside2 {
+ @include zen-clear(right); // Clear right-floated elements (.grid-item__aside1)
+ @include zen-grid-item(1, 1, right);
+ }
+}
+
+@media all and (min-width: 999px) {
+ $zen-column-count: 5;
+
+ .centered {
+ @include zen-grid-background();
+ }
+ .grid-item__content {
+ @include zen-grid-item(3, 2);
+ }
+ .grid-item__aside1 {
+ @include zen-grid-item(1, 1);
+ }
+ .grid-item__aside2 {
+ @include zen-grid-item(1, 5);
+ }
+}
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_modules.scss b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_modules.scss
new file mode 100644
index 000000000..19a5213dc
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_modules.scss
@@ -0,0 +1,78 @@
+/**
+ * @file
+ * Modular styles.
+ */
+
+
+html {
+ font-size: 16px;
+ line-height: 1.5em;
+}
+
+p {
+ margin: {
+ top: 1.5em;
+ bottom: 1.5em;
+ }
+}
+
+/* Skip link styling */
+.skip-link {
+ margin: 0;
+}
+.skip-link__link,
+.skip-link__link:visited {
+ display: block;
+ width: 100%;
+ padding: 2px 0 3px 0;
+ text-align: center;
+ background-color: #666;
+ color: #fff;
+}
+/* The skip-link link will be completely hidden until a user tabs to the link. */
+@media all and (min-width: 444px) {
+ .skip-link__link {
+ @include visually-focusable();
+ }
+}
+
+/* Set a consistent padding around all containers */
+.header,
+.footer {
+ @extend %grid-item;
+}
+.grid-item,
+.footer {
+ padding-top: 1.5em;
+}
+
+/* Source-order meta info */
+header {
+ h1,
+ h2 {
+ display: inline;
+ }
+ p {
+ display: inline;
+ text-transform: uppercase;
+ font-size: 0.8em;
+ color: #c00;
+ }
+}
+
+.pull-quote {
+ $font-size: 1.2em;
+
+ @include zen-float();
+ @include zen-grid-flow-item(1, 2);
+ @media all and (min-width: 999px) {
+ @include zen-grid-flow-item(1, 3);
+ }
+ margin: {
+ top: 1em*(1.5em/$font-size);
+ }
+ font-size: $font-size;
+ line-height: 1em*(1.5em/$font-size);
+ font-weight: bold;
+ font-style: italic;
+}
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_visually-hidden.scss b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_visually-hidden.scss
new file mode 100644
index 000000000..a03776778
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/_visually-hidden.scss
@@ -0,0 +1,51 @@
+//
+// @file
+// Accessibility features.
+//
+
+// As defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
+@mixin visually-hidden {
+ 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);
+}
+
+// Turns off the visually-hidden effect.
+@mixin visually-hidden-off {
+ position: static !important;
+ clip: auto;
+ height: auto;
+ width: auto;
+ overflow: auto;
+}
+
+// Makes an element visually hidden, except when it receives focus.
+@mixin visually-focusable {
+ @include visually-hidden();
+
+ &:active,
+ &:focus {
+ @include visually-hidden-off();
+ }
+}
+
+// Placeholder styles for use with @extend.
+%visually-hidden {
+ @include visually-hidden();
+}
+%visually-hidden-off {
+ @include visually-hidden-off();
+}
+%visually-focusable {
+ @extend %visually-hidden;
+
+ &:active,
+ &:focus {
+ @extend %visually-hidden-off;
+ }
+}
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/example.html b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/example.html
new file mode 100644
index 000000000..0fd31baa0
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/example.html
@@ -0,0 +1,71 @@
+<!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 class="skip-link">
+<a href="#main-menu" class="skip-link__link">Jump to main menu</a>
+</p>
+
+<div class="centered">
+
+ <header class="header">
+ <h1 class="header__title">Zen Grids: sample usage</h1>
+ </header>
+
+ <div class="main">
+
+ <article class="grid-item grid-item__content" role="main">
+ <header>
+ <h1>Main content</h1>
+ <p>Source order: 1</p>
+ </header>
+ <aside class="pull-quote">‘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 class="grid-item grid-item__menu" role="navigation" id="main-menu">
+ <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 class="grid-item grid-item__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 class="grid-item grid-item__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 class="footer">
+ <small>© 2013. The small print.</small>
+ </footer>
+
+</div>
+
+</body>
+</html>
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/manifest.rb b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/manifest.rb
new file mode 100644
index 000000000..928eb5f10
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/manifest.rb
@@ -0,0 +1,24 @@
+description "The Zen Grids system."
+
+stylesheet '_init.scss', :media => 'all'
+stylesheet '_layout.scss', :media => 'all'
+stylesheet '_modules.scss', :media => 'all'
+stylesheet '_visually-hidden.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/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/styles.scss b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/styles.scss
new file mode 100644
index 000000000..8e52c5268
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass-extensions/zen-grids/templates/project/styles.scss
@@ -0,0 +1,6 @@
+// Import the initialization partial.
+@import "init";
+
+// Aggregate all the stylesheets into one file.
+@import "layout";
+@import "modules";