import openstack theme into profile

This commit is contained in:
Marton Kiss 2013-08-13 10:51:02 +02:00
parent 3e879437db
commit 2523668603
106 changed files with 13104 additions and 0 deletions

View File

@ -0,0 +1,4 @@
openstack-theme
===============
Drupal theme for openstack.org like design

134
themes/openstack/README.txt Normal file
View File

@ -0,0 +1,134 @@
BUILD A THEME WITH ZEN
----------------------
The base Zen theme is designed to be easily extended by its sub-themes. You
shouldn't modify any of the CSS or PHP files in the zen/ folder; but instead you
should create a sub-theme of zen which is located in a folder outside of the
root zen/ folder. The examples below assume zen and your sub-theme will be
installed in sites/all/themes/, but any valid theme directory is acceptable
(read the sites/default/default.settings.php for more info.)
Why? To learn why you shouldn't modify any of the files in the zen/ folder,
see http://drupal.org/node/245802
*** IMPORTANT NOTE ***
*
* In Drupal 7, the theme system caches which template files and which theme
* functions should be called. This means that if you add a new theme,
* preprocess or process function to your template.php file or add a new template
* (.tpl.php) file to your sub-theme, you will need to rebuild the "theme
* registry." See http://drupal.org/node/173880#theme-registry
*
* Drupal 7 also stores a cache of the data in .info files. If you modify any
* lines in your sub-theme's .info file, you MUST refresh Drupal 7's cache by
* simply visiting the Appearance page at admin/appearance.
*
1. Setup the location for your new sub-theme.
Copy the STARTERKIT folder out of the zen/ folder and rename it to be your
new sub-theme. IMPORTANT: The name of your sub-theme must start with an
alphabetic character and can only contain lowercase letters, numbers and
underscores.
For example, copy the sites/all/themes/zen/STARTERKIT folder and rename it
as sites/all/themes/foo.
Why? Each theme should reside in its own folder. To make it easier to
upgrade Zen, sub-themes should reside in a folder separate from the base
theme.
2. Setup the basic information for your sub-theme.
In your new sub-theme folder, rename the STARTERKIT.info.txt file to include
the name of your new sub-theme and remove the ".txt" extension. Then edit
the .info file by editing the name and description field.
For example, rename the foo/STARTERKIT.info file to foo/foo.info. Edit the
foo.info file and change "name = Zen Sub-theme Starter Kit" to "name = Foo"
and "description = Read..." to "description = A Zen sub-theme".
Why? The .info file describes the basic things about your theme: its
name, description, features, template regions, CSS files, and JavaScript
files. See the Drupal 7 Theme Guide for more info:
http://drupal.org/node/171205
Then, visit your site's Appearance page at admin/appearance to refresh
Drupal 7's cache of .info file data.
3. Choose your preferred page layout method or grid system.
By default your new sub-theme is using a responsive layout. If you want a
fixed layout for your theme, delete the unneeded responsive-sidebars and
responsive-sidebars-rtl css/sass files and edit your sub-theme's .info file
and replace the reference to responsive-sidebars.css with fixed-width.css.
For example, edit foo/foo.info and change this line:
stylesheets[all][] = css/layouts/responsive-sidebars.css
to:
stylesheets[all][] = css/layouts/fixed-width.css
Why? The "stylesheets" lines in your .info file describe the media type
and path to the CSS file you want to include. The format for these lines
is: stylesheets[MEDIA][] = path/to/file.css
Alternatively, if you are more familiar with a different CSS layout method,
such as GridSetApp or 960.gs, etc., you can replace the
"css/layouts/responsive-sidebars.css" line in your .info file with a line
pointing at your choice of layout CSS file.
Then, visit your site's Appearance page at admin/appearance to refresh
Drupal 7's cache of .info file data.
4. Edit your sub-theme to use the proper function names.
Edit the template.php and theme-settings.php files in your sub-theme's
folder; replace ALL occurrences of "STARTERKIT" with the name of your
sub-theme.
For example, edit foo/template.php and foo/theme-settings.php and replace
every occurrence of "STARTERKIT" with "foo".
It is recommended to use a text editing application with search and
"replace all" functionality.
5. Set your website's default theme.
Log in as an administrator on your Drupal site, go to the Appearance page at
admin/appearance and click the "Enable and set default" link next to your
new sub-theme.
Optional steps:
6. Modify the markup in Zen core's template files.
If you decide you want to modify any of the .tpl.php template files in the
zen folder, copy them to your sub-theme's folder before making any changes.
And then rebuild the theme registry.
For example, copy zen/templates/page.tpl.php to foo/templates/page.tpl.php.
7. Modify the markup in Drupal's search form.
Copy the search-block-form.tpl.php template file from the modules/search/
folder and place it in your sub-theme's template folder. And then rebuild
the theme registry.
You can find a full list of Drupal templates that you can override in the
templates/README.txt file or http://drupal.org/node/190815
Why? In Drupal 7 theming, if you want to modify a template included by a
module, you should copy the template file from the module's directory to
your sub-theme's template directory and then rebuild the theme registry.
See the Drupal 7 Theme Guide for more info: http://drupal.org/node/173880
8. Further extend your sub-theme.
Discover further ways to extend your sub-theme by reading Zen's
documentation online at:
http://drupal.org/documentation/theme/zen
and Drupal 7's Theme Guide online at:
http://drupal.org/theme-guide

View File

@ -0,0 +1,56 @@
#
# This file is only needed for Compass/Sass integration. If you are not using
# Compass, you may safely ignore or delete this file.
#
# If you'd like to learn more about Sass and Compass, see the sass/README.txt
# file for more information.
#
# Change this to :production when ready to deploy the CSS to the live server.
environment = :development
#environment = :production
# In development, we can turn on the FireSass-compatible debug_info.
firesass = false
#firesass = true
# Location of the theme's resources.
css_dir = "css"
sass_dir = "sass"
extensions_dir = "sass-extensions"
images_dir = "images"
javascripts_dir = "js"
# Require any additional compass plugins installed on your system.
#require 'ninesixty'
#require 'zen-grids'
# Assuming this theme is in sites/*/themes/THEMENAME, you can add the partials
# included with a module by uncommenting and modifying one of the lines below:
#add_import_path "../../../default/modules/FOO"
#add_import_path "../../../all/modules/FOO"
#add_import_path "../../../../modules/FOO"
##
## You probably don't need to edit anything below this.
##
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
output_style = (environment == :development) ? :expanded : :compressed
# To enable relative paths to assets via compass helper functions. Since Drupal
# themes can be installed in multiple locations, we don't need to worry about
# the absolute path to the theme from the server root.
relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false
# Pass options to sass. For development, we turn on the FireSass-compatible
# debug_info if the firesass config variable above is true.
sass_options = (environment == :development && firesass == true) ? {:debug_info => true} : {}

View File

@ -0,0 +1,152 @@
ZEN'S STYLESHEETS
-----------------
Don't panic!
There are 22 CSS files in this sub-theme, but its not as bad as it first seems:
- The drupal7-reference.css is just a reference file and isn't used directly by
your sub-theme. See below.
- There are 7 CSS files whose names end in "-rtl.css". Those are CSS files
needed to style content written in Right-to-Left languages, such as Arabic and
Hebrew. If your website doesn't use such languages, you can safely delete all
of those CSS files.
- There are 2 example layout stylesheets in the layouts/ folder, but only one of
them is used at any time.
- If you aren't using this sub-theme while doing wireframes of your site's
functionality, you can remove wireframes.css from your sub-theme's .info file
and delete the file as well.
- One is just a print stylesheet!
That leaves just 11 CSS files. (Okay, still quite a few, but better than 22.)
Why not just one stylesheet?
- For performance reasons you should always have all of your CSS in a single
file to minimize the number of HTTP requests the user's browser needs to do.
Fortunately, Drupal has a "Aggregate and compress CSS" feature that will
automatically combine all the CSS files from its modules and themes into one
file. You can turn on that feature under "Bandwidth Optimization" on the page:
Administration > Configuration > Development > Performance
So Drupal allows us (if we want) to use more than one stylesheet file, but
still serves all the styles in one file to our users.
- When developing a site using a single stylesheet, it can become unwieldy to
scroll and find the place you need to edit. As a deadline becomes imminent,
developers often start stuffing new styles at the bottom of the stylesheet,
completely destroying any stylesheet organization.
- Instead of one monolithic stylesheet, Zen sub-themes' CSS files are organized
into several smaller stylesheets. Once you learn the organization (described
below) it becomes easier to find the right place to add new styles.
- Stylesheets are added in the order specified in your sub-theme's .info file.
The default order of the stylesheets is designed to allow CSS authors to use
the lowest specificity possible to achieve the required styling, with more
general stylesheets being added first and more specific stylesheets added
later.
- In addtion to following the normal CSS cascade, stylesheets are also organized
relative to common Drupal template files. The most commonly used Drupal
template files also have a corresponding stylesheet.
ORDER AND PURPOSE OF DEFAULT STYLESHEETS
----------------------------------------
First off, if you find you don't like this organization of stylesheets, you are
free to change it; simply edit the stylesheet declarations in your sub-theme's
.info file. This structure was crafted based on several years of experience
theming Drupal websites.
- normalize.css:
This is the place where you should set the default styling for all HTML
elements and standardize the styling across browsers. If you prefer a specific
HTML reset method, feel free to use it instead of normalize.
- layouts/responsive-sidebars.css:
Zen's default layout is based on the Zen Grids layout method. Despite the
name, it is an independent project from the Zen theme. 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. You can
learn more about Zen Grids at http://zengrids.com
The responsive-sidebars.css file is used by default, but these files are
designed to be easily replaced. If you are more familiar with a different CSS
layout method, such as GridSetApp, 960.gs, etc., you can replace the default
layout with your choice of layout CSS file.
- layouts/fixed-width.css:
This layout is based on the Zen Grids layout method, but uses a fixed pixel
width. It is not included by default in your theme's .info file, but is
provided as an option.
- tabs.css:
While most of the CSS rulesets in your sub-theme are guidelines without any
actual properties, the tabs stylesheet contains actual styling for Drupal
tabs, a common Drupal element that is often neglected by site desiners. Zen
provides some basic styling which you are free to use or to rip out and
replace.
- pages.css:
Page styling for the markup in the page.tpl.php template.
- blocks.css:
Block styling for the markup in the block.tpl.php template.
- navigation.css:
The styling for your site's menus can get quite bulky and its easier to see
all the styles if they are grouped together rather then across the
header/footer sections of pages.css and in blocks.css.
- views-styles.css:
Views styling for the markup in various views templates. You'll notice this
stylesheet isn't called "views.css" as that would override (remove) the Views
module's stylesheet.
- nodes.css:
Node styling for the markkup in the node.tpl.php template.
- comments.css:
Comment styling for the markup in the comment-wrapper.tpl.php and
comments.tpl.php templates.
- forms.css:
Form styling for the markup in various Drupal forms.
- fields.css:
Field styling for the markup produced by theme_field().
- print.css:
The print styles for all markup.
In these stylesheets, we have included all of the classes and IDs from this
theme's tpl.php files. We have also included many of the useful Drupal core
selectors to make it easier for theme developers to discover them.
STYLES FOR INTERNET EXPLORER
----------------------------
Zen allows IE-specific styles using a method first described by Paul Irish at:
http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
If you look at Zen's templates/html.tpl.php file, you will see the HTML tag that
will be used by your site. Using Microsoft's conditional comment syntax,
different HTML tags will be used for different versions of Internet Explorer.
For example, IE6 will see the HTML tag that has these classes: lt-ie7 lt-ie8
lt-ie9. If you need to write an IE6-specific rule, you can simply prefix the
selector with ".lt-ie7 " (should be read as "less than IE 7"). To write a rule
that applies to both IE6 and IE7, use ".lt-ie8 ":
.someRule { /* Styles for all browsers */ }
.lt-ie8 .someRule { /* Styles for IE6 and IE7 only. */ }
Many CSS authors prefer using IE "conditional stylesheets", which are
stylesheets added via conditional comments. If you would prefer that method, you
should check out the Conditional Stylesheets module:
http://drupal.org/project/conditional_styles
DRUPAL CORE'S STYLESHEETS
-------------------------
Many of Zen's styles are overriding Drupal's core stylesheets, so if you remove
a declaration from them, the styles may still not be what you want since
Drupal's core stylesheets are still styling the element. See the
drupal7-reference.css file for a complete list of all Drupal 7.x core styles.

View File

@ -0,0 +1,164 @@
/**
* @file
* Block Styling
*/
/* line 9, ../sass/blocks.scss */
.block {
/* Block wrapper */
margin-bottom: 1.5em;
}
/* line 12, ../sass/blocks.scss */
.block.first {
/* The first block in the region */
}
/* line 15, ../sass/blocks.scss */
.block.last {
/* The last block in the region */
}
/* line 18, ../sass/blocks.scss */
.block.odd {
/* Zebra striping for each block in the region */
}
/* line 21, ../sass/blocks.scss */
.block.even {
/* Zebra striping for each block in the region */
}
/* line 24, ../sass/blocks.scss */
.block h2.block-title {
/* Block title */
}
/* line 29, ../sass/blocks.scss */
#block-aggregator-category-1 {
/* Block for the latest news items in the first category */
}
/* line 32, ../sass/blocks.scss */
#block-aggregator-feed-1 {
/* Block for the latest news items in the first feed */
}
/* line 35, ../sass/blocks.scss */
#block-block-1 {
/* First block created with "Add block" link */
}
/* line 38, ../sass/blocks.scss */
#block-blog-recent {
/* "Recent blog posts" block */
}
/* line 41, ../sass/blocks.scss */
#block-book-navigation {
/* "Book navigation" block for the current book's table of contents */
}
/* line 44, ../sass/blocks.scss */
#block-comment-recent {
/* "Recent comments" block */
}
/* line 47, ../sass/blocks.scss */
#block-forum-active {
/* "Active forum topics" block */
}
/* line 50, ../sass/blocks.scss */
#block-forum-new {
/* "New forum topics" block */
}
/* line 53, ../sass/blocks.scss */
#block-locale-language {
/* Language switcher block */
}
/* line 56, ../sass/blocks.scss */
#block-menu-menu-NAME {
/* Custom menu block */
}
/* line 59, ../sass/blocks.scss */
#block-node-recent {
/* "Recent content" block */
}
/* line 62, ../sass/blocks.scss */
#block-node-syndicate {
/* "Syndicate" block for primary RSS feed; see also page.css's .feed-icon */
}
/* line 65, ../sass/blocks.scss */
#block-poll-recent {
/* "Most recent poll" block */
}
/* line 68, ../sass/blocks.scss */
#block-profile-author-information {
/* "Author information" block for the profile of the page's author */
}
/* line 71, ../sass/blocks.scss */
#block-search-form {
/* "Search form" block */
}
/* line 74, ../sass/blocks.scss */
#block-shortcut-shortcuts {
/* "Shortcuts" block */
}
/* line 77, ../sass/blocks.scss */
#block-statistics-popular {
/* "Popular content" block */
}
/* line 80, ../sass/blocks.scss */
#block-system-main-menu {
/* "Main menu" block */
}
/* line 83, ../sass/blocks.scss */
#block-system-management {
/* "Management" block for Drupal management menu */
}
/* line 86, ../sass/blocks.scss */
#block-system-navigation {
/* "Navigation" block for Drupal navigation menu */
}
/* line 89, ../sass/blocks.scss */
#block-system-user-menu {
/* "User menu" block for Drupal user menu */
}
/* line 92, ../sass/blocks.scss */
#block-system-help {
/* "System help" block */
}
/* line 95, ../sass/blocks.scss */
#block-system-main {
/* "Main page content" block */
}
/* line 98, ../sass/blocks.scss */
#block-system-powered-by {
/* "Powered by Drupal" block */
}
/* line 101, ../sass/blocks.scss */
#block-user-login {
/* "User login form" block */
}
/* line 104, ../sass/blocks.scss */
#block-user-new {
/* "Who's new" block for a list of the newest users */
}
/* line 107, ../sass/blocks.scss */
#block-user-online {
/* "Who's online" block for a list of the online users */
}

View File

@ -0,0 +1,119 @@
/**
* @file
* Comment Styling
*/
/* line 9, ../sass/comments.scss */
.comments {
/* Wrapper for the list of comments and its title */
margin: 1.5em 0;
}
/* line 12, ../sass/comments.scss */
.comments h2.title {
/* Heading for the list of comments */
}
/* line 15, ../sass/comments.scss */
.comments h2.comment-form {
/* Heading for the comment form */
}
/* line 19, ../sass/comments.scss */
.comment {
/* Wrapper for a single comment */
}
/* line 21, ../sass/comments.scss */
.comment.comment-preview {
/* Preview of the comment before submitting new or updated comment */
background-color: #ffffea;
/* Drupal core will use a #ffffea background. See #1110842 */
}
/* line 25, ../sass/comments.scss */
.comment.new {
/* A new comment since the user last viewed the page. */
}
/* line 28, ../sass/comments.scss */
.comment.first {
/* The first comment in the list of comments */
}
/* line 31, ../sass/comments.scss */
.comment.last {
/* The last comment in the list of comments */
}
/* line 34, ../sass/comments.scss */
.comment.odd {
/* An odd-numbered comment in the list of comments */
}
/* line 37, ../sass/comments.scss */
.comment.even {
/* An even-numbered comment in the list of comments */
}
/* line 40, ../sass/comments.scss */
.comment.comment-by-anonymous {
/* A comment created by an anonymous user */
}
/* line 43, ../sass/comments.scss */
.comment.comment-by-node-author {
/* A comment created by the node's author */
}
/* line 46, ../sass/comments.scss */
.comment.comment-by-viewer {
/* A comment created by the current user */
}
/* line 49, ../sass/comments.scss */
.comment h3.comment-title {
/* Comment title */
}
/* line 52, ../sass/comments.scss */
.comment .new {
/* "New" marker for comments that are new for the current user */
color: #c00;
}
/* line 56, ../sass/comments.scss */
.comment .user-picture {
/* The picture of the comment author */
}
/* line 59, ../sass/comments.scss */
.comment .submitted {
/* The "posted by" information */
}
/* line 62, ../sass/comments.scss */
.comment .permalink {
/* Comment's permalink wrapper */
text-transform: uppercase;
font-size: 75%;
}
/* line 67, ../sass/comments.scss */
.comment .user-signature {
/* The user's signature */
}
/* line 70, ../sass/comments.scss */
.comment ul.links {
/* Comment links. See also the ul.links declaration in the pages.css. */
}
/* line 74, ../sass/comments.scss */
.indented {
/* Nested comments are indented */
margin-left: 30px;
/* Drupal core uses a 25px left margin */
}
/* line 78, ../sass/comments.scss */
.comment-unpublished {
/* Unpublished comments */
/* background-color: #fff4f4; */
/* Drupal core uses a #fff4f4 background */
}
/* line 81, ../sass/comments.scss */
.comment-unpublished p.unpublished {
/* The word "Unpublished" displayed underneath the content. */
height: 0;
overflow: visible;
color: #d8d8d8;
font-size: 75px;
line-height: 1;
font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
font-weight: bold;
text-transform: uppercase;
text-align: center;
word-wrap: break-word;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,52 @@
/**
* @file
* Field Styling
*
* The Fences module allows site builders to pick the semeantic HTML5 element
* for each field while editing the field's settings. There's no way a theme
* can ever know which element to use for the fields on your site, so Zen
* just uses lets Drupal core or Fences decide. Since you DO NOT want 3 wrapping
* divs around every field (do you?), we highly recommend Fences.
*
* http://drupal.org/project/fences
*/
/*
* Field wrappers when the Fences module is enabled.
*/
/* line 21, ../sass/fields.scss */
.field-label {
/* The optional label for a field. */
}
/* line 24, ../sass/fields.scss */
.field-FIELDNAME {
/* Underscores in field name are replaced with dashes. */
}
/*
* If you don't use the Fences module, that's fine. Really. I think. Just use
* these selectors instead:
*/
/* line 33, ../sass/fields.scss */
.field {
/* Wrapper for any field. */
}
/*
* Field types (Core)
*/
/*
* Field types (Contrib)
*/
/* line 83, ../sass/fields.scss */
.field-type-datetime {
/* Always use "datetime" when creating new CCK date fields. "date" and "datestamp" are legacy types. */
}
/*
* Named fields
*/
/* line 105, ../sass/fields.scss */
.field-name-field-FIELDNAME {
/* Underscores in field name are replaced with dashes. */
}

View File

@ -0,0 +1,38 @@
/**
* @file
* RTL companion for the forms.css file.
*/
/*
* Drupal's default login form block
*/
/* line 13, ../sass/forms-rtl.scss */
#user-login-form {
text-align: right;
/*
* OpenID
*
* The default styling for the OpenID login link seems to assume Garland's
* styling of list items.
*/
}
/* line 24, ../sass/forms-rtl.scss */
html.js #user-login-form li.openid-link,
#user-login-form li.openid-link {
/* The "Log in using OpenID" link. */
margin-left: 0;
margin-right: -20px;
/* Un-do some of the padding on the ul list. */
}
/*
* Drupal admin tables
*
* We overrode these styles in html-elements.css, but restore them for the admin
* section of the site.
*/
/* line 38, ../sass/forms-rtl.scss */
form th {
text-align: right;
padding-left: 1em;
padding-right: 0;
}

View File

@ -0,0 +1,161 @@
/**
* @file
* Form Styling
*/
/* line 9, ../sass/forms.scss */
.form-item {
/* Wrapper for a form element (or group of form elements) and its label */
margin: 1.5em 0;
}
/* line 14, ../sass/forms.scss */
.form-item input.error,
.form-item textarea.error,
.form-item select.error {
/* Highlight the form elements that caused a form submission error */
border: 1px solid #c00;
}
/* line 18, ../sass/forms.scss */
.form-item label {
/* The label for a form element */
display: block;
font-weight: bold;
}
/* line 23, ../sass/forms.scss */
.form-item label.option {
/* The label for a radio button or checkbox */
display: inline;
font-weight: normal;
}
/* line 28, ../sass/forms.scss */
.form-item .form-required {
/* The part of the label that indicates a required field */
color: #c00;
}
/* line 32, ../sass/forms.scss */
.form-item .description {
/* The descriptive help text (separate from the label) */
font-size: 0.85em;
}
/* line 37, ../sass/forms.scss */
.form-checkboxes .form-item, .form-radios .form-item {
/* Pack groups of checkboxes and radio buttons closer together */
margin: 0;
/* Drupal core uses "0.4em 0" */
}
/* line 42, ../sass/forms.scss */
.form-submit {
/* The submit button */
}
/* line 47, ../sass/forms.scss */
.container-inline div,
.container-inline label {
/* Inline labels and form divs */
display: inline;
}
/* line 52, ../sass/forms.scss */
.tips {
/* Tips for Drupal's input formats */
}
/* line 55, ../sass/forms.scss */
a.button {
/* Buttons used by contrib modules like Media */
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
}
/*
* Password confirmation
*/
/* line 64, ../sass/forms.scss */
.password-parent,
.confirm-parent {
margin: 0;
}
/*
* Search (search-block-form.tpl.php)
*/
/* line 72, ../sass/forms.scss */
#block-search-form {
/* Wrapper for the search form */
}
/*
* Drupal's default login form block
*/
/* line 79, ../sass/forms.scss */
#user-login-form {
text-align: left;
/* LTR */
/*
* OpenID
*
* The default styling for the OpenID login link seems to assume Garland's
* styling of list items.
*/
}
/* line 89, ../sass/forms.scss */
#user-login-form ul {
/* OpenID creates a new ul above the login form's links. */
margin-bottom: 0;
/* Position OpenID's ul next to the rest of the links. */
}
/* line 94, ../sass/forms.scss */
html.js #user-login-form li.openid-link,
#user-login-form li.openid-link {
/* The "Log in using OpenID" link. */
margin-top: 1.5em;
margin-left: -20px;
/* LTR */
/* Un-do some of the padding on the ul list. */
}
/* line 99, ../sass/forms.scss */
#user-login-form li.user-link {
/* The "Cancel OpenID login" link. */
margin-top: 1.5em;
}
/* line 104, ../sass/forms.scss */
#user-login ul {
margin: 1.5em 0;
}
/*
* Drupal admin tables
*
* We overrode these styles in normalize.css, but restore them for the admin
* section of the site.
*/
/* line 116, ../sass/forms.scss */
form th {
text-align: left;
/* LTR */
padding-right: 1em;
/* LTR */
border-bottom: 3px solid #ccc;
}
/* line 122, ../sass/forms.scss */
form tbody {
border-top: 1px solid #ccc;
}
/* line 126, ../sass/forms.scss */
form tr.even {
background-color: #fff;
}
/* line 130, ../sass/forms.scss */
form table .item-list ul {
margin: 0;
}
/*
* Drupal core wrongly puts this in system.menus.css. Since we override that, add it back.
*/
/* line 149, ../sass/forms.scss */
td.menu-disabled {
background: #ccc;
}

View File

@ -0,0 +1,148 @@
/**
* @file
* RTL companion for the fixed-width.css file.
*/
/**
* @file
* Positioning for a fixed-width, desktop-centric layout.
*
* Define CSS classes to create a table-free, 3-column, 2-column, or single
* column layout depending on whether blocks are enabled in the left or right
* columns.
*
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
*/
/*
* Center the page.
*/
/* line 43, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
#page,
.region-bottom {
/* If you want to make the page a fixed width and centered in the viewport,
* this is the standards-compliant way to do that. */
margin-left: auto;
margin-right: auto;
width: 980px;
}
/*
* Apply the shared properties of grid items in a single, efficient ruleset.
*/
/* line 61, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
padding-left: 10px;
padding-right: 10px;
border: 0 !important;
word-wrap: break-word;
}
/*
* Containers for grid items and flow items.
*/
/* line 52, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:before, #header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
content: "";
display: table;
}
/* line 56, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:after,
#main:after,
#footer:after {
clear: both;
}
/*
* Navigation bar
*/
/* line 79, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
#main {
padding-top: 3em;
/* Move all the children of #main down to make room. */
position: relative;
}
/* line 83, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
#navigation {
position: absolute;
top: 0;
/* Move the navbar up inside #main's padding. */
height: 3em;
width: 960px;
}
/*
* The layout when there is only one sidebar, the left one.
*/
/* line 95, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
.sidebar-first #content {
/* Span 4 columns, starting in 2nd column from left. */
float: right;
width: 764px;
margin-right: 196px;
margin-left: -980px;
}
/* line 99, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
.sidebar-first .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: right;
width: 176px;
margin-right: 0px;
margin-left: -196px;
}
/*
* The layout when there is only one sidebar, the right one.
*/
/* line 109, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
.sidebar-second #content {
/* Span 4 columns, starting in 1st column from left. */
float: right;
width: 764px;
margin-right: 0px;
margin-left: -784px;
}
/* line 113, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
.sidebar-second .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: right;
width: 176px;
margin-right: 784px;
margin-left: -980px;
}
/*
* The layout when there are two sidebars.
*/
/* line 123, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
.two-sidebars #content {
/* Span 3 columns, starting in 2nd column from left. */
float: right;
width: 568px;
margin-right: 196px;
margin-left: -784px;
}
/* line 127, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
.two-sidebars .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: right;
width: 176px;
margin-right: 0px;
margin-left: -196px;
}
/* line 131, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass/layouts/fixed-width.scss */
.two-sidebars .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: right;
width: 176px;
margin-right: 784px;
margin-left: -980px;
}

View File

@ -0,0 +1,144 @@
/**
* @file
* Positioning for a fixed-width, desktop-centric layout.
*
* Define CSS classes to create a table-free, 3-column, 2-column, or single
* column layout depending on whether blocks are enabled in the left or right
* columns.
*
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
*/
/*
* Center the page.
*/
/* line 43, ../../sass/layouts/fixed-width.scss */
#page,
.region-bottom {
/* If you want to make the page a fixed width and centered in the viewport,
* this is the standards-compliant way to do that. */
margin-left: auto;
margin-right: auto;
width: 980px;
}
/*
* Apply the shared properties of grid items in a single, efficient ruleset.
*/
/* line 61, ../../sass/layouts/fixed-width.scss */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
padding-left: 10px;
padding-right: 10px;
border: 0 !important;
word-wrap: break-word;
}
/*
* Containers for grid items and flow items.
*/
/* line 52, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:before, #header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
content: "";
display: table;
}
/* line 56, /Applications/XAMPP/xamppfiles/htdocs/openstack-design/sites/all/themes/openstack/sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:after,
#main:after,
#footer:after {
clear: both;
}
/*
* Navigation bar
*/
/* line 79, ../../sass/layouts/fixed-width.scss */
#main {
padding-top: 3em;
/* Move all the children of #main down to make room. */
position: relative;
}
/* line 83, ../../sass/layouts/fixed-width.scss */
#navigation {
position: absolute;
top: 0;
/* Move the navbar up inside #main's padding. */
height: 3em;
width: 960px;
}
/*
* The layout when there is only one sidebar, the left one.
*/
/* line 95, ../../sass/layouts/fixed-width.scss */
.sidebar-first #content {
/* Span 4 columns, starting in 2nd column from left. */
float: left;
width: 764px;
margin-left: 196px;
margin-right: -980px;
}
/* line 99, ../../sass/layouts/fixed-width.scss */
.sidebar-first .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: left;
width: 176px;
margin-left: 0px;
margin-right: -196px;
}
/*
* The layout when there is only one sidebar, the right one.
*/
/* line 109, ../../sass/layouts/fixed-width.scss */
.sidebar-second #content {
/* Span 4 columns, starting in 1st column from left. */
float: left;
width: 764px;
margin-left: 0px;
margin-right: -784px;
}
/* line 113, ../../sass/layouts/fixed-width.scss */
.sidebar-second .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: left;
width: 176px;
margin-left: 784px;
margin-right: -980px;
}
/*
* The layout when there are two sidebars.
*/
/* line 123, ../../sass/layouts/fixed-width.scss */
.two-sidebars #content {
/* Span 3 columns, starting in 2nd column from left. */
float: left;
width: 568px;
margin-left: 196px;
margin-right: -784px;
}
/* line 127, ../../sass/layouts/fixed-width.scss */
.two-sidebars .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: left;
width: 176px;
margin-left: 0px;
margin-right: -196px;
}
/* line 131, ../../sass/layouts/fixed-width.scss */
.two-sidebars .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: left;
width: 176px;
margin-left: 784px;
margin-right: -980px;
}

View File

@ -0,0 +1,264 @@
/**
* @file
* RTL companion for the responsive-sidebars.css file.
*/
/**
* @file
* Positioning for responsive layout .
*
* Define CSS classes to create a table-free, 3-column, 2-column, or single
* column layout depending on whether blocks are enabled in the left or right
* columns.
*
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
*/
/*
* Center the page.
*/
/* line 44, ../../sass/layouts/responsive-sidebars.scss */
#page,
.region-bottom {
/* For screen sizes larger than 1200px, prevent excessively long lines of text
by setting a max-width. */
margin-left: auto;
margin-right: auto;
max-width: 960px;
}
/*
* Apply the shared properties of grid items in a single, efficient ruleset.
*/
/* line 62, ../../sass/layouts/responsive-sidebars.scss */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
}
/*
* Containers for grid items and flow items.
*/
/* line 52, ../../sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:before, #header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
content: "";
display: table;
}
/* line 56, ../../sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:after,
#main:after,
#footer:after {
clear: both;
}
/*
* Navigation bar
*/
@media all and (min-width: 480px) {
/* line 81, ../../sass/layouts/responsive-sidebars.scss */
#main {
padding-top: 3em;
/* Move all the children of #main down to make room. */
position: relative;
}
/* line 85, ../../sass/layouts/responsive-sidebars.scss */
#navigation {
position: absolute;
top: 0;
/* Move the navbar up inside #main's padding. */
height: 3em;
width: 100%;
}
}
@media all and (min-width: 480px) and (max-width: 959px) {
/*
* Use 3 grid columns for smaller screens.
*/
/*
* The layout when there is only one sidebar, the left one.
*/
/* line 104, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first #content {
/* Span 2 columns, starting in 2nd column from left. */
float: right;
width: 75%;
margin-right: 25%;
margin-left: -100%;
}
/* line 108, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: right;
width: 25%;
margin-right: 0%;
margin-left: -25%;
}
/*
* The layout when there is only one sidebar, the right one.
*/
/* line 118, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second #content {
/* Span 2 columns, starting in 1st column from left. */
float: right;
width: 75%;
margin-right: 0%;
margin-left: -75%;
}
/* line 122, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second .region-sidebar-second {
/* Span 1 column, starting in 3rd column from left. */
float: right;
width: 25%;
margin-right: 75%;
margin-left: -100%;
}
/*
* The layout when there are two sidebars.
*/
/* line 132, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars #content {
/* Span 2 columns, starting in 2nd column from left. */
float: right;
width: 50%;
margin-right: 25%;
margin-left: -75%;
}
/* line 136, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: right;
width: 25%;
margin-right: 0%;
margin-left: -25%;
}
/* line 140, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second {
/* Start a new row and span all 3 columns. */
float: right;
width: 100%;
margin-right: 0%;
margin-left: -100%;
}
/* line 145, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block {
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
}
/* line 148, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
/* Span 1 column, starting in the 1st column from left. */
float: right;
width: 25%;
margin-right: 0%;
margin-left: -25%;
clear: right;
}
/* line 152, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
/* Span 1 column, starting in the 2nd column from left. */
float: right;
width: 25%;
margin-right: 25%;
margin-left: -50%;
}
/* line 155, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block:nth-child(3n) {
/* Span 1 column, starting in the 3rd column from left. */
float: right;
width: 25%;
margin-right: 50%;
margin-left: -75%;
}
}
@media all and (min-width: 960px) {
/*
* Use 5 grid columns for larger screens.
*/
/*
* The layout when there is only one sidebar, the left one.
*/
/* line 173, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first #content {
/* Span 4 columns, starting in 2nd column from left. */
float: right;
width: 79.16667%;
margin-right: 20.83333%;
margin-left: -100%;
}
/* line 177, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: right;
width: 20.83333%;
margin-right: 0%;
margin-left: -20.83333%;
}
/*
* The layout when there is only one sidebar, the right one.
*/
/* line 187, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second #content {
/* Span 4 columns, starting in 1st column from left. */
float: right;
width: 12.5%;
margin-right: 0%;
margin-left: -12.5%;
}
/* line 191, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: right;
width: 4.16667%;
margin-right: 12.5%;
margin-left: -16.66667%;
}
/*
* The layout when there are two sidebars.
*/
/* line 201, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars #content {
/* Span 3 columns, starting in 2nd column from left. */
float: right;
width: 8.33333%;
margin-right: 4.16667%;
margin-left: -12.5%;
}
/* line 205, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: right;
width: 4.16667%;
margin-right: 0%;
margin-left: -4.16667%;
}
/* line 209, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: right;
width: 4.16667%;
margin-right: 12.5%;
margin-left: -16.66667%;
}
}

View File

@ -0,0 +1,260 @@
/**
* @file
* Positioning for responsive layout .
*
* Define CSS classes to create a table-free, 3-column, 2-column, or single
* column layout depending on whether blocks are enabled in the left or right
* columns.
*
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
*/
/*
* Center the page.
*/
/* line 44, ../../sass/layouts/responsive-sidebars.scss */
#page,
.region-bottom {
/* For screen sizes larger than 1200px, prevent excessively long lines of text
by setting a max-width. */
margin-left: auto;
margin-right: auto;
max-width: 960px;
}
/*
* Apply the shared properties of grid items in a single, efficient ruleset.
*/
/* line 62, ../../sass/layouts/responsive-sidebars.scss */
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
}
/*
* Containers for grid items and flow items.
*/
/* line 52, ../../sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:before, #header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
content: "";
display: table;
}
/* line 56, ../../sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
#header:after,
#main:after,
#footer:after {
clear: both;
}
/*
* Navigation bar
*/
@media all and (min-width: 480px) {
/* line 81, ../../sass/layouts/responsive-sidebars.scss */
#main {
padding-top: 3em;
/* Move all the children of #main down to make room. */
position: relative;
}
/* line 85, ../../sass/layouts/responsive-sidebars.scss */
#navigation {
position: absolute;
top: 0;
/* Move the navbar up inside #main's padding. */
height: 3em;
width: 100%;
}
}
@media all and (min-width: 480px) and (max-width: 959px) {
/*
* Use 3 grid columns for smaller screens.
*/
/*
* The layout when there is only one sidebar, the left one.
*/
/* line 104, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first #content {
/* Span 2 columns, starting in 2nd column from left. */
float: left;
width: 75%;
margin-left: 25%;
margin-right: -100%;
}
/* line 108, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: left;
width: 25%;
margin-left: 0%;
margin-right: -25%;
}
/*
* The layout when there is only one sidebar, the right one.
*/
/* line 118, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second #content {
/* Span 2 columns, starting in 1st column from left. */
float: left;
width: 75%;
margin-left: 0%;
margin-right: -75%;
}
/* line 122, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second .region-sidebar-second {
/* Span 1 column, starting in 3rd column from left. */
float: left;
width: 25%;
margin-left: 75%;
margin-right: -100%;
}
/*
* The layout when there are two sidebars.
*/
/* line 132, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars #content {
/* Span 2 columns, starting in 2nd column from left. */
float: left;
width: 50%;
margin-left: 25%;
margin-right: -75%;
}
/* line 136, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: left;
width: 25%;
margin-left: 0%;
margin-right: -25%;
}
/* line 140, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second {
/* Start a new row and span all 3 columns. */
float: left;
width: 100%;
margin-left: 0%;
margin-right: -100%;
}
/* line 145, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block {
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
}
/* line 148, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
/* Span 1 column, starting in the 1st column from left. */
float: left;
width: 25%;
margin-left: 0%;
margin-right: -25%;
clear: left;
}
/* line 152, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
/* Span 1 column, starting in the 2nd column from left. */
float: left;
width: 25%;
margin-left: 25%;
margin-right: -50%;
}
/* line 155, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second .block:nth-child(3n) {
/* Span 1 column, starting in the 3rd column from left. */
float: left;
width: 25%;
margin-left: 50%;
margin-right: -75%;
}
}
@media all and (min-width: 960px) {
/*
* Use 5 grid columns for larger screens.
*/
/*
* The layout when there is only one sidebar, the left one.
*/
/* line 173, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first #content {
/* Span 4 columns, starting in 2nd column from left. */
float: left;
width: 79.16667%;
margin-left: 20.83333%;
margin-right: -100%;
}
/* line 177, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-first .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: left;
width: 20.83333%;
margin-left: 0%;
margin-right: -20.83333%;
}
/*
* The layout when there is only one sidebar, the right one.
*/
/* line 187, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second #content {
/* Span 4 columns, starting in 1st column from left. */
float: left;
width: 12.5%;
margin-left: 0%;
margin-right: -12.5%;
}
/* line 191, ../../sass/layouts/responsive-sidebars.scss */
.sidebar-second .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: left;
width: 4.16667%;
margin-left: 12.5%;
margin-right: -16.66667%;
}
/*
* The layout when there are two sidebars.
*/
/* line 201, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars #content {
/* Span 3 columns, starting in 2nd column from left. */
float: left;
width: 8.33333%;
margin-left: 4.16667%;
margin-right: -12.5%;
}
/* line 205, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-first {
/* Span 1 column, starting in 1st column from left. */
float: left;
width: 4.16667%;
margin-left: 0%;
margin-right: -4.16667%;
}
/* line 209, ../../sass/layouts/responsive-sidebars.scss */
.two-sidebars .region-sidebar-second {
/* Span 1 column, starting in 5th column from left. */
float: left;
width: 4.16667%;
margin-left: 12.5%;
margin-right: -16.66667%;
}
}

View File

@ -0,0 +1,27 @@
/**
* @file
* RTL companion for the navigation.css file.
*/
/* line 9, ../sass/navigation-rtl.scss */
ul li.collapsed {
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');
}
/* line 18, ../sass/navigation-rtl.scss */
#navigation ul.links,
#navigation ul.menu {
/* Menu block links */
text-align: right;
}
/* line 21, ../sass/navigation-rtl.scss */
#navigation ul.links li,
#navigation ul.menu li {
/* A simple method to get navigation links to appear in one line. */
float: right;
padding: 0 0 0 10px;
}
/* line 28, ../sass/navigation-rtl.scss */
#secondary-menu {
float: left;
}

View File

@ -0,0 +1,94 @@
/**
* @file
* Navigation Styling
*/
/*
* Markup generated by theme_menu_tree().
*/
/* line 13, ../sass/navigation.scss */
ul li.expanded {
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');
list-style-type: circle;
}
/* line 20, ../sass/navigation.scss */
ul li.collapsed {
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC');
/* LTR */
list-style-type: disc;
}
/* line 27, ../sass/navigation.scss */
ul li.leaf {
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAD1BMVEX///+/v7+Li4sAAADAwMBFvsw8AAAAAXRSTlMAQObYZgAAAB1JREFUCFtjYAADYwMGBmYVZSDhKAwkFJWhYiAAAB2+Aa/9ugeaAAAAAElFTkSuQmCC');
list-style-type: square;
}
/*
* The active item in a Drupal menu
*/
/* line 39, ../sass/navigation.scss */
li a.active {
color: #000;
}
/*
* Navigation bar
*/
/* line 47, ../sass/navigation.scss */
#navigation {
/* overflow: hidden; */
/* Sometimes you want to prevent overlapping with main div. */
}
/* line 50, ../sass/navigation.scss */
#navigation .block {
margin-bottom: 0;
}
/* line 55, ../sass/navigation.scss */
#navigation .block-menu .block-title,
#navigation .block-menu-block .block-title {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
}
/* line 60, ../sass/navigation.scss */
#navigation ul.links,
#navigation ul.menu {
/* Menu block links */
margin: 0;
padding: 0;
text-align: left;
/* LTR */
}
/* line 65, ../sass/navigation.scss */
#navigation ul.links li,
#navigation ul.menu li {
/* A simple method to get navigation links to appear in one line. */
float: left;
/* LTR */
padding: 0 10px 0 0;
/* LTR */
list-style-type: none;
list-style-image: none;
}
/*
* Main menu and Secondary menu links
*/
/* line 84, ../sass/navigation.scss */
#secondary-menu {
float: right;
/* LTR */
}
/*
* Menu blocks
*/
/*
* "Menu block" blocks
*
* Drupal core has limited ways in which it can display its menus. To get around
* these limitations, see http://drupal.org/project/menu_block
*/

View File

@ -0,0 +1,92 @@
/**
* @file
* Node Styling
*
* Style anything that isn't in the $content variable.
*/
/* line 11, ../sass/nodes.scss */
.node {
/* Node wrapper */
}
/* line 13, ../sass/nodes.scss */
.preview .node {
/* Preview of the content before submitting new or updated content */
/* background-color: #ffffea; */
/* Drupal core uses a #ffffea background */
}
/* line 17, ../sass/nodes.scss */
.node .node-title {
/* Node title */
}
/* line 20, ../sass/nodes.scss */
.node .user-picture {
/* The picture of the node author */
}
/* line 23, ../sass/nodes.scss */
.node .submitted {
/* The "posted by" information */
}
/* line 26, ../sass/nodes.scss */
.node .content {
/* Node's content wrapper */
}
/* line 29, ../sass/nodes.scss */
.node ul.links {
/* Node links. See also the ul.links declaration in the pages.css. */
}
/* line 34, ../sass/nodes.scss */
.node-promoted {
/* A node that has been promoted to the front page */
}
/* line 37, ../sass/nodes.scss */
.node-sticky {
/* A sticky node (displayed before others in a list) */
}
/* line 40, ../sass/nodes.scss */
.node-by-viewer {
/* A node created by the current user */
}
/* line 43, ../sass/nodes.scss */
.node-teaser {
/* A node displayed as teaser */
}
/*
* All nodes are given a node-FOO class that describes the type of content that
* it is. If you create a new content type called "my-custom-type", it will
* receive a "node-my-custom-type" class.
*/
/* line 52, ../sass/nodes.scss */
.node-page {
/* Page content node */
}
/* line 55, ../sass/nodes.scss */
.node-article {
/* Article content node */
}
/* line 58, ../sass/nodes.scss */
.node-unpublished {
/* Unpublished nodes */
/* background-color: #fff4f4; */
/* Drupal core uses a #fff4f4 background */
}
/* line 61, ../sass/nodes.scss */
.node-unpublished p.unpublished {
/* The word "Unpublished" displayed underneath the content. */
height: 0;
overflow: visible;
color: #d8d8d8;
font-size: 75px;
line-height: 1;
font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
font-weight: bold;
text-transform: uppercase;
text-align: center;
word-wrap: break-word;
}

View File

@ -0,0 +1,36 @@
/* normalize-rtl.css - RTL language extension of normalize.scss. */
/* =============================================================================
Lists
========================================================================== */
/*
* Addresses margins set differently in IE6/7
*/
/* line 14, ../sass/normalize-rtl.scss */
dd {
margin: 0 30px 0 0;
}
/*
* Addresses paddings set differently in IE6/7
*/
/* line 25, ../sass/normalize-rtl.scss */
menu,
ol,
ul,
.item-list ul {
padding: 0 30px 0 0;
}
/* =============================================================================
Forms
========================================================================== */
/*
* 3. Corrects alignment displayed oddly in IE6/7
*/
/* =============================================================================
Tables
========================================================================== */
/* line 48, ../sass/normalize-rtl.scss */
th {
text-align: right;
}

653
themes/openstack/css/normalize.css vendored Normal file
View File

@ -0,0 +1,653 @@
/* normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
/* =============================================================================
Normalize.css is intended to be used as an alternative to CSS resets.
It is suggested that you read through the normalize.css file and customise it
to meet the design requirements of a project rather including it as a "black
box". @see http://nicolasgallagher.com/about-normalize-css/
Also: @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/
@see http://snook.ca/archives/html_and_css/no_css_reset/
========================================================================== */
/* =============================================================================
HTML5 display definitions
========================================================================== */
/*
* Corrects block display not defined in IE6/7/8/9 & FF3
*/
/* line 35, ../sass/normalize.scss */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
display: block;
}
/*
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
*/
/* line 45, ../sass/normalize.scss */
audio,
canvas,
video {
display: inline-block;
}
/*
* Prevents modern browsers from displaying 'audio' without controls
* Remove excess height in iOS5 devices
*/
/* line 58, ../sass/normalize.scss */
audio:not([controls]) {
display: none;
height: 0;
}
/*
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
* Known issue: no IE6 support
*/
/* line 68, ../sass/normalize.scss */
[hidden] {
display: none;
}
/* =============================================================================
Base
========================================================================== */
/* Instead of relying on the fonts that are available on a user's computer, you
can use web fonts which, like images, are resources downloaded to the user's
browser. Because of the bandwidth and rendering resources required, web fonts
should be used with care.
Numerous resources for web fonts can be found on Google. Here are a few
websites where you can find Open Source fonts to download:
- http://www.fontsquirrel.com/fontface
- http://www.theleagueofmoveabletype.com
In order to use these fonts, you will need to convert them into formats
suitable for web fonts. We recommend the free-to-use Font Squirrel's
Font-Face Generator:
http://www.fontsquirrel.com/fontface/generator
The following is an example @font-face declaration. This font can then be
used in any ruleset using a property like this: font-family: Example, serif;
Since we're using Sass, you'll need to declare your font faces here, then you
can add them to the font variables in the _base.scss partial.
*/
/*
@font-face {
font-family: 'Example';
src: url('../fonts/example.eot');
src: url('../fonts/example.eot?iefix') format('eot'),
url('../fonts/example.woff') format('woff'),
url('../fonts/example.ttf') format('truetype'),
url('../fonts/example.svg#webfontOkOndcij') format('svg');
font-weight: normal;
font-style: normal;
}
*/
/*
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
* http://clagnut.com/blog/348/#c790
* 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
*/
/* line 119, ../sass/normalize.scss */
html {
font-size: 100%;
/* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */
-ms-text-size-adjust: 100%;
/* 2 */
/* Establishes a vertical rhythm unit using $base-line-height. */
line-height: 1.5em;
}
/*
* Addresses font-family inconsistency between 'textarea' and other form elements.
*/
/* line 135, ../sass/normalize.scss */
html,
button,
input,
select,
textarea {
font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
}
/*
* Addresses margins handled incorrectly in IE6/7
*/
/* line 143, ../sass/normalize.scss */
body {
margin: 0;
}
/* =============================================================================
Links
========================================================================== */
/*
* The order of link states are based on Eric Meyer's article:
* http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
*/
/*
* Addresses outline displayed oddly in Chrome
*/
/* line 174, ../sass/normalize.scss */
a:focus {
outline: thin dotted;
}
/*
* Improves readability when focused and also mouse hovered in all browsers
* people.opera.com/patrickl/experiments/keyboard/test
*/
/* line 184, ../sass/normalize.scss */
a:hover,
a:active {
outline: 0;
}
/* =============================================================================
Typography
To achieve a pleasant vertical rhythm, we use Compass' Vertical Rhythm mixins
so that the line height of our base font becomes the basic unit of vertical
measurement. We use multiples of that unit to set the top and bottom margins
for our block level elements and to set the line heights of any fonts.
For more information, see http://24ways.org/2006/compose-to-a-vertical-rhythm
========================================================================== */
/*
* Addresses font sizes and margins set differently in IE6/7
* Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
*/
/* line 204, ../sass/normalize.scss */
h1 {
/* Sets the font-size and line-height while keeping a proper vertical rhythm. */
font-size: 2em;
line-height: 1.5em;
/* Sets 1 unit of vertical rhythm on the top and bottom margins. */
margin-top: 0.75em;
margin-bottom: 0.75em;
}
/* line 213, ../sass/normalize.scss */
h2 {
font-size: 1.5em;
line-height: 2em;
margin-top: 1em;
margin-bottom: 1em;
}
/* line 219, ../sass/normalize.scss */
h3 {
font-size: 1.17em;
line-height: 1.28205em;
margin-top: 1.28205em;
margin-bottom: 1.28205em;
}
/* line 225, ../sass/normalize.scss */
h4 {
font-size: 1em;
line-height: 1.5em;
margin-top: 1.5em;
margin-bottom: 1.5em;
}
/* line 231, ../sass/normalize.scss */
h5 {
font-size: 0.83em;
line-height: 1.80723em;
margin-top: 1.80723em;
margin-bottom: 1.80723em;
}
/* line 237, ../sass/normalize.scss */
h6 {
font-size: 0.75em;
line-height: 2em;
margin-top: 2em;
margin-bottom: 2em;
}
/* Thematic break */
/* line 244, ../sass/normalize.scss */
hr {
height: 1px;
border: 1px solid #666;
padding-bottom: -1px;
margin: 1.5em 0;
}
/*
* Addresses styling not present in IE7/8/9, S5, Chrome
*/
/* line 255, ../sass/normalize.scss */
abbr[title] {
border-bottom: 1px dotted;
cursor: help;
white-space: nowrap;
}
/*
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
*/
/* line 266, ../sass/normalize.scss */
b,
strong {
font-weight: bold;
}
/* line 270, ../sass/normalize.scss */
blockquote {
/* Sets 1 unit of vertical rhythm on the top and bottom margin. */
margin: 1.5em 30px;
}
/*
* Addresses styling not present in S5, Chrome
*/
/* line 279, ../sass/normalize.scss */
dfn {
font-style: italic;
}
/*
* Addresses styling not present in IE6/7/8/9
*/
/* line 287, ../sass/normalize.scss */
mark {
background: #ff0;
color: #000;
}
/*
* Addresses margins set differently in IE6/7
*/
/* line 297, ../sass/normalize.scss */
p,
pre {
/* Sets 1 unit of vertical rhythm on the top and bottom margin. */
margin: 1.5em 0;
}
/*
* Corrects font family set oddly in IE6, S4/5, Chrome
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
*/
/* line 312, ../sass/normalize.scss */
pre,
code,
kbd,
samp,
tt,
var {
font-family: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
/* The $font-monospace value ends with ", serif". */
font-size: 1em;
line-height: 1.5em;
}
/*
* Improves readability of pre-formatted text in all browsers
*/
/* line 324, ../sass/normalize.scss */
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
/*
* 1. Addresses CSS quotes not supported in IE6/7
* 2. Addresses quote property not supported in S4
*/
/* 1 */
/* line 337, ../sass/normalize.scss */
q {
quotes: none;
}
/* 2 */
/* line 344, ../sass/normalize.scss */
q:before,
q:after {
content: '';
content: none;
}
/* @todo Determine how big element affects vertical rhythm. */
/* line 350, ../sass/normalize.scss */
small {
font-size: 75%;
}
/*
* Prevents sub and sup affecting line-height in all browsers
* gist.github.com/413930
*/
/* line 360, ../sass/normalize.scss */
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
/* line 367, ../sass/normalize.scss */
sup {
top: -0.5em;
}
/* line 371, ../sass/normalize.scss */
sub {
bottom: -0.25em;
}
/* =============================================================================
Lists
========================================================================== */
/*
* Addresses margins set differently in IE6/7
*/
/* line 388, ../sass/normalize.scss */
dl,
menu,
ol,
ul,
.item-list ul {
/* Sets 1 unit of vertical rhythm on the top and bottom margin. */
margin: 1.5em 0;
}
/* line 393, ../sass/normalize.scss */
.item-list ul li {
/* Drupal override */
margin: 0;
}
/* line 397, ../sass/normalize.scss */
dd {
margin: 0 0 0 30px;
/* LTR */
}
/* line 402, ../sass/normalize.scss */
ul ul, ul ol, ol ul, ol ol, .item-list ul ul, .item-list ul ol, .item-list ol ul, .item-list ol ol {
margin: 0;
/* Turn off margins on nested lists. */
}
/*
* Addresses paddings set differently in IE6/7
*/
/* line 414, ../sass/normalize.scss */
menu,
ol,
ul,
.item-list ul {
padding: 0 0 0 30px;
/* LTR */
}
/*
* Corrects list images handled incorrectly in IE7
*/
/* line 423, ../sass/normalize.scss */
nav ul,
nav ol {
list-style: none;
list-style-image: none;
}
/* =============================================================================
Embedded content
========================================================================== */
/*
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
* 2. Improves image quality when scaled in IE7
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
*/
/* line 439, ../sass/normalize.scss */
img {
border: 0;
/* 1 */
-ms-interpolation-mode: bicubic;
/* 2 */
/* vertical-align: bottom; */
/* Suppress the space beneath the baseline */
/* Responsive images */
/* @todo Add responsive embedded video. */
max-width: 100%;
height: auto;
}
/*
* Corrects overflow displayed oddly in IE9
*/
/* line 455, ../sass/normalize.scss */
svg:not(:root) {
overflow: hidden;
}
/* =============================================================================
Figures
========================================================================== */
/*
* Addresses margin not present in IE6/7/8/9, S5, O11
*/
/* line 468, ../sass/normalize.scss */
figure {
margin: 0;
}
/* =============================================================================
Forms
========================================================================== */
/*
* Corrects margin displayed oddly in IE6/7
*/
/* line 481, ../sass/normalize.scss */
form {
margin: 0;
}
/*
* Define consistent border, margin, and padding
*/
/* line 489, ../sass/normalize.scss */
fieldset {
border-color: #c0c0c0;
margin: 0 2px;
/* Apply borders and padding that keep the vertical rhythm. */
border-top-style: solid;
border-top-width: 0.0625em;
padding-top: 0.4625em;
border-bottom-style: solid;
border-bottom-width: 0.0625em;
padding-bottom: 0.9125em;
border-left-style: solid;
border-left-width: 0.0625em;
padding-left: 0.9125em;
border-right-style: solid;
border-right-width: 0.0625em;
padding-right: 0.9125em;
}
/*
* 1. Corrects color not being inherited in IE6/7/8/9
* 2. Corrects text not wrapping in FF3
* 3. Corrects alignment displayed oddly in IE6/7
*/
/* line 505, ../sass/normalize.scss */
legend {
border: 0;
/* 1 */
padding: 0;
white-space: normal;
/* 2 */
}
/*
* 1. Corrects font size not being inherited in all browsers
* 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
* 3. Improves appearance and consistency in all browsers
*/
/* line 523, ../sass/normalize.scss */
button,
input,
select,
textarea {
font-size: 100%;
/* 1 */
margin: 0;
/* 2 */
vertical-align: baseline;
/* 3 */
}
/*
* Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
*/
/* line 537, ../sass/normalize.scss */
button,
input {
line-height: normal;
/* 1 */
}
/*
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
* 2. Corrects inability to style clickable 'input' types in iOS
* 3. Removes inner spacing in IE7 without affecting normal text inputs
* Known issue: inner spacing remains in IE6
*/
/* line 551, ../sass/normalize.scss */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
/* 1 */
-webkit-appearance: button;
/* 2 */
}
/*
* Re-set default cursor for disabled elements
*/
/* line 564, ../sass/normalize.scss */
button[disabled],
input[disabled] {
cursor: default;
}
/*
* 1. Addresses box sizing set to content-box in IE8/9
* 2. Removes excess padding in IE8/9
* 3. Removes excess padding in IE7
Known issue: excess padding remains in IE6
*/
/* line 576, ../sass/normalize.scss */
input[type="checkbox"],
input[type="radio"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
}
/*
* 1. Addresses appearance set to searchfield in S5, Chrome
* 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
*/
/* line 590, ../sass/normalize.scss */
input[type="search"] {
-webkit-appearance: textfield;
/* 1 */
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
/* 2 */
}
/*
* Removes inner padding and search cancel button in S5, Chrome on OS X
*/
/* line 600, ../sass/normalize.scss */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
/*
* Removes inner padding and border in FF3+
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
*/
/* line 610, ../sass/normalize.scss */
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/*
* 1. Removes default vertical scrollbar in IE6/7/8/9
* 2. Improves readability and alignment in all browsers
*/
/* line 620, ../sass/normalize.scss */
textarea {
overflow: auto;
/* 1 */
vertical-align: top;
/* 2 */
}
/* =============================================================================
Tables
========================================================================== */
/*
* Remove most spacing between table cells
*/
/* line 634, ../sass/normalize.scss */
table {
border-collapse: collapse;
border-spacing: 0;
/* width: 100%; */
/* Prevent cramped-looking tables */
/* Add vertical rhythm margins. */
margin-top: 1.5em;
margin-bottom: 1.5em;
}
/*
* Drupal provides table styling which is only useful for its admin section
* forms, so we override this default CSS. (We set it back in forms.css.)
*/
/* line 648, ../sass/normalize.scss */
th {
text-align: left;
/* LTR */
padding: 0;
border-bottom: none;
}
/* line 654, ../sass/normalize.scss */
tbody {
border-top: none;
}

View File

@ -0,0 +1,363 @@
/** COLORS **/
/** MIXINS **/
/** BASIC STLYES **/
/* line 77, ../sass/openstack.scss */
a {
color: #bc1518;
text-decoration: none;
}
/* line 18, ../../../../../../../../../../Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
a:visited {
color: #bc1518;
}
/* line 21, ../../../../../../../../../../Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
a:focus {
color: black;
}
/* line 24, ../../../../../../../../../../Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
a:hover {
color: black;
}
/* line 27, ../../../../../../../../../../Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
a:active {
color: black;
}
/* line 80, ../sass/openstack.scss */
a:hover {
text-decoration: underline;
}
/* line 85, ../sass/openstack.scss */
p {
margin: 0 0 1.5em;
}
/* line 89, ../sass/openstack.scss */
h1 {
font-size: 24px;
color: #264d69;
font-weight: normal;
}
/* line 93, ../sass/openstack.scss */
h2 {
font-size: 18px;
color: #264d69;
font-weight: normal;
}
/* line 97, ../sass/openstack.scss */
h3 {
font-size: 16px;
color: #bc1518;
font-weight: normal;
}
/* line 101, ../sass/openstack.scss */
.block {
margin: 0px;
}
/** LAYOUT **/
/* line 109, ../sass/openstack.scss */
body {
border-top: 3px solid #255e6e;
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
font-size: 13px;
color: #535353;
font-weight: normal;
background: #fff;
line-height: 1.5;
}
/* line 115, ../sass/openstack.scss */
body #message_bar {
background: #e3eded;
border-bottom: 1px solid white;
padding: 10px;
font-family: 'PT Sans', serif;
text-shadow: white 0px 1px 1px;
-webkit-box-shadow: #cccccc 1px 1px 1px;
-moz-box-shadow: #cccccc 1px 1px 1px;
box-shadow: #cccccc 1px 1px 1px;
font-size: 1.3em;
color: #264d69;
font-weight: normal;
}
/* line 123, ../sass/openstack.scss */
body #message_bar .block {
margin: 0px auto;
padding: 0px;
max-width: 960px;
}
/* line 127, ../sass/openstack.scss */
body #message_bar .block p {
margin: 0px 0px 0px 0px;
padding: 0px;
display: -moz-inline-stack;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
zoom: 1;
*display: inline;
}
/* line 131, ../sass/openstack.scss */
body #message_bar .block p a {
padding: 5px 15px;
text-decoration: none;
font-family: "PT Sans", serif;
border: 1px solid #e2e2e2;
border-color: #e2e2e2 #bababa #a0a0a0 #bababa;
cursor: pointer;
line-height: 1;
display: -moz-inline-stack;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
zoom: 1;
*display: inline;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(50%, #f3f3f3), color-stop(100%, #ebebeb));
background-image: -webkit-linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
background-image: -moz-linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
background-image: -o-linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
background-image: linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
text-shadow: white 0px 1px 1px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
font-size: 13px;
color: black;
font-weight: normal;
-webkit-transition: color 1s ease-out;
-moz-transition: color 1s ease-out;
-o-transition: color 1s ease-out;
transition: color 1s ease-out;
margin: 0px 10px;
}
/* line 52, ../sass/openstack.scss */
body #message_bar .block p a:hover, body #message_bar .block p a:active {
-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
-moz-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
border-color: #636363 #ababab #ababab #ababab;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #bebebe), color-stop(100%, #eeeeee));
background-image: -webkit-linear-gradient(#bebebe, #eeeeee);
background-image: -moz-linear-gradient(#bebebe, #eeeeee);
background-image: -o-linear-gradient(#bebebe, #eeeeee);
background-image: linear-gradient(#bebebe, #eeeeee);
-webkit-transition: none;
}
/* line 138, ../sass/openstack.scss */
body #page {
position: relative;
}
/* line 140, ../sass/openstack.scss */
body #page #header {
margin-top: 20px;
height: 70px;
}
/* line 143, ../sass/openstack.scss */
body #page #header .logoHolder {
padding-top: 16px;
display: -moz-inline-stack;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
zoom: 1;
*display: inline;
}
/* line 147, ../sass/openstack.scss */
body #page #header .region-header {
background: url("../images/header-line.gif") left bottom repeat-x;
display: -moz-inline-stack;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
zoom: 1;
*display: inline;
padding-top: 30px;
right: 0px;
position: absolute;
width: 100%;
max-width: 75%;
min-width: 25%;
}
/* line 156, ../sass/openstack.scss */
body #page #header .region-header .block-commons-utility-links {
position: absolute;
top: 0px;
right: 0px;
}
/* line 162, ../sass/openstack.scss */
body #page #header .region-header .block-commons-utility-links .commons-utility-links li a {
font-size: 12px;
color: black;
font-weight: normal;
padding: 0;
}
/* line 165, ../sass/openstack.scss */
body #page #header .region-header .block-commons-utility-links .commons-utility-links li a:hover, body #page #header .region-header .block-commons-utility-links .commons-utility-links li a.active {
font-size: 12px;
color: #bc1518;
font-weight: normal;
border: none;
padding: 0;
}
/* line 174, ../sass/openstack.scss */
body #page #header .region-header ul {
padding: 0;
margin: 0;
}
/* line 177, ../sass/openstack.scss */
body #page #header .region-header ul li {
list-style: none;
display: -moz-inline-stack;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
zoom: 1;
*display: inline;
margin-right: 20px;
}
/* line 181, ../sass/openstack.scss */
body #page #header .region-header ul li a {
display: block;
padding: 5px 0;
text-decoration: none;
font-size: 14px;
color: black;
font-weight: normal;
}
/* line 186, ../sass/openstack.scss */
body #page #header .region-header ul li a.active {
border-bottom: 3px solid #bc1518;
padding: 4px 0px 1px 0px;
font-size: 14px;
color: #bc1518;
font-weight: normal;
}
/* line 203, ../sass/openstack.scss */
body #page #main aside .sidebar ul {
padding: 0px;
margin: 0px;
padding-right: 20px;
}
/* line 207, ../sass/openstack.scss */
body #page #main aside .sidebar ul li {
list-style: none;
margin-bottom: 5px;
padding: 0;
}
/* line 211, ../sass/openstack.scss */
body #page #main aside .sidebar ul li a {
display: block;
padding: 10px 20px;
text-decoration: none;
font-size: 12px;
color: black;
font-weight: normal;
background: #e3eded;
text-align: right;
}
/* line 218, ../sass/openstack.scss */
body #page #main aside .sidebar ul li a:hover {
background: #c4e0e9;
-webkit-transition: background-color 0.5s ease-out;
-moz-transition: background-color 0.5s ease-out;
-o-transition: background-color 0.5s ease-out;
transition: background-color 0.5s ease-out;
}
/* line 228, ../sass/openstack.scss */
body #page #footer {
margin: 40px 0;
padding: 20px 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
overflow: hidden;
}
/* line 234, ../sass/openstack.scss */
body #page #footer .block {
float: left;
width: 16%;
}
/* line 237, ../sass/openstack.scss */
body #page #footer .block .block-title {
font-size: 15px;
color: #bc1518;
font-weight: normal;
margin-bottom: 20px;
}
/* line 241, ../sass/openstack.scss */
body #page #footer .block ul {
padding: 0;
margin: 0px;
}
/* line 244, ../sass/openstack.scss */
body #page #footer .block ul li {
list-style: none;
}
/* line 249, ../sass/openstack.scss */
body #page #footer #block-block-6 {
width: 36%;
}
/* line 251, ../sass/openstack.scss */
body #page #footer #block-block-6 textarea {
width: 90%;
height: 80px;
margin-bottom: 10px;
}
/* line 261, ../sass/openstack.scss */
button, input[type="button"], input[type="reset"], input[type="submit"] {
padding: 5px 15px;
text-decoration: none;
font-family: "PT Sans", serif;
border: 1px solid #e2e2e2;
border-color: #e2e2e2 #bababa #a0a0a0 #bababa;
cursor: pointer;
line-height: 1;
display: -moz-inline-stack;
display: inline-block;
vertical-align: middle;
*vertical-align: auto;
zoom: 1;
*display: inline;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(50%, #f3f3f3), color-stop(100%, #ebebeb));
background-image: -webkit-linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
background-image: -moz-linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
background-image: -o-linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
background-image: linear-gradient(#ffffff, #f3f3f3 50%, #ebebeb);
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
text-shadow: white 0px 1px 1px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
font-size: 13px;
color: black;
font-weight: normal;
-webkit-transition: color 1s ease-out;
-moz-transition: color 1s ease-out;
-o-transition: color 1s ease-out;
transition: color 1s ease-out;
}
/* line 52, ../sass/openstack.scss */
button:hover, button:active, input[type="button"]:hover, input[type="button"]:active, input[type="reset"]:hover, input[type="reset"]:active, input[type="submit"]:hover, input[type="submit"]:active {
-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
-moz-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
border-color: #636363 #ababab #ababab #ababab;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #bebebe), color-stop(100%, #eeeeee));
background-image: -webkit-linear-gradient(#bebebe, #eeeeee);
background-image: -moz-linear-gradient(#bebebe, #eeeeee);
background-image: -o-linear-gradient(#bebebe, #eeeeee);
background-image: linear-gradient(#bebebe, #eeeeee);
-webkit-transition: none;
}

View File

@ -0,0 +1,29 @@
/**
* @file
* RTL companion for the pages.css file.
*/
/*
* Header
*/
/* line 13, ../sass/pages-rtl.scss */
#logo {
/* Wrapping link for logo */
float: right;
}
/*
* Content
*/
/* line 21, ../sass/pages-rtl.scss */
ul.inline li {
/* List of links */
display: inline-block;
/* Bug in Safari causes display: inline to fail. */
padding: 0 0 0 1em;
}
/* line 25, ../sass/pages-rtl.scss */
span.field-label {
/* The inline field label used by the Fences.module */
padding: 0 0 0 1em;
}

View File

@ -0,0 +1,267 @@
/**
* @file
* Page Styling
*
* Style the markup found in page.tpl.php. Also includes some styling of
* miscellaneous Drupal elements that appear in the $content variable, such as
* ul.links, .pager, .more-link, etc.
*/
/*
* Body
*/
/* line 17, ../sass/pages.scss */
body {
margin: 0;
padding: 0;
}
/*
* The skip-link link will be completely hidden until a user tabs to the link.
* See the element-focusable rule in system.base.css.
*/
/* line 30, ../sass/pages.scss */
#skip-link {
margin: 0;
}
/* line 34, ../sass/pages.scss */
#skip-link a,
#skip-link a:visited {
display: block;
width: 100%;
padding: 2px 0 3px 0;
text-align: center;
background-color: #666;
color: #fff;
}
/*
* Header
*/
/* line 51, ../sass/pages.scss */
#logo {
/* Wrapping link for logo */
float: left;
/* LTR */
margin: 0;
padding: 0;
}
/* line 56, ../sass/pages.scss */
#logo img {
vertical-align: bottom;
}
/* line 61, ../sass/pages.scss */
#name-and-slogan {
/* Wrapper for website name and slogan */
float: left;
}
/* line 65, ../sass/pages.scss */
#site-name {
/* The name of the website */
margin: 0;
font-size: 2em;
line-height: 1.5em;
}
/* line 71, ../sass/pages.scss */
#site-name a:link,
#site-name a:visited {
color: #000;
text-decoration: none;
}
/* line 77, ../sass/pages.scss */
#site-name a:hover,
#site-name a:focus {
text-decoration: underline;
}
/* line 82, ../sass/pages.scss */
#site-slogan {
/* The slogan (or tagline) of a website */
margin: 0;
font-size: 1em;
}
/* line 87, ../sass/pages.scss */
.region-header {
/* Wrapper for any blocks placed in the header region */
clear: both;
/* Clear the logo */
}
/*
* Main (container for everything else)
*/
/*
* Content
*/
/* line 108, ../sass/pages.scss */
.breadcrumb {
/* The path to the current page in the form of a list of links */
}
/* line 109, ../sass/pages.scss */
.breadcrumb ol {
margin: 0;
padding: 0;
}
/* line 113, ../sass/pages.scss */
.breadcrumb li {
display: inline;
list-style-type: none;
margin: 0;
padding: 0;
}
/* line 126, ../sass/pages.scss */
h1.title,
h2.node-title,
h2.block-title,
h2.title,
h2.comment-form,
h3.title {
/* Comment title */
margin: 0;
}
/* line 130, ../sass/pages.scss */
tr.even {
/* Some tables have rows marked even or odd. */
/* background-color: #eee; */
/* Drupal core uses a #eee background */
}
/* line 134, ../sass/pages.scss */
tr.odd {
/* background-color: #eee; */
/* Drupal core uses a #eee background */
}
/* line 138, ../sass/pages.scss */
div.messages {
/* Important messages (status, warning, and error) for the user. See also the declarations in messages.css. */
margin: 1.5em 0;
/* Drupal core uses "6px 0" margin */
}
/* line 141, ../sass/pages.scss */
div.messages ul {
margin-top: 0;
margin-bottom: 0;
}
/* line 147, ../sass/pages.scss */
div.status {
/* Normal priority messages */
}
/* line 151, ../sass/pages.scss */
div.warning,
tr.warning {
/* Medium priority messages */
/* border: 1px solid #f0c020; */
/* Drupal core uses: 1px solid #f0c020 */
}
/* line 156, ../sass/pages.scss */
div.error,
tr.error {
/* High priority messages. See also the .error declaration below. */
}
/* line 159, ../sass/pages.scss */
.error {
/* Errors that are separate from div.messages status messages. */
/* color: #e55; */
/* Drupal core uses a #e55 background */
}
/* line 163, ../sass/pages.scss */
.warning {
/* Warnings that are separate from div.messages status messages. */
/* color: #e09010; */
/* Drupal core uses a #e09010 background */
}
/* line 167, ../sass/pages.scss */
.tabs {
/* See also the tabs.css file. */
}
/* line 170, ../sass/pages.scss */
.region-help {
/* Help text on a page */
}
/* line 173, ../sass/pages.scss */
.more-help-link {
/* Link to more help */
}
/* line 176, ../sass/pages.scss */
.region-content {
/* Wrapper for the actual page content */
}
/* line 179, ../sass/pages.scss */
ul.inline {
/* List of links generated by theme_links() */
display: inline;
padding: 0;
}
/* line 183, ../sass/pages.scss */
ul.inline li {
display: inline;
list-style-type: none;
padding: 0 1em 0 0;
/* LTR */
}
/* line 189, ../sass/pages.scss */
span.field-label {
/* The inline field label used by the Fences module */
padding: 0 1em 0 0;
/* LTR */
}
/* line 193, ../sass/pages.scss */
.item-list .pager {
/* A list of page numbers when more than 1 page of content is available */
padding: 0;
}
/* line 196, ../sass/pages.scss */
.item-list .pager li {
/* Each page number in the pager list */
padding: 0 0.5em;
}
/* line 201, ../sass/pages.scss */
.feed-icon {
/* The link to the RSS or Atom feed for the current list of content */
}
/* line 204, ../sass/pages.scss */
.more-link {
/* Aggregator, blog, and forum more link */
}
/*
* First sidebar (on left in LTR languages, on right in RTL)
*
* Remember to NOT add padding or margin to your .region-sidebar-first
* (see the layout.css file.)
*/
/*
* Second sidebar (on right in LTR languages, on left in RTL)
*
* Remember to NOT add padding or margin to your .region-sidebar-second
* (see the layout.css file.)
*/
/*
* Footer
*/
/*
* Page bottom
*/
/* line 238, ../sass/pages.scss */
.region-bottom {
/* Wrapper for any blocks placed in the page bottom region */
}

View File

@ -0,0 +1,80 @@
/**
* @file
* Print styling
*
* We provide some sane print styling for Drupal using Zen's layout method.
*/
@media print {
/* line 14, ../sass/print.scss */
a:link,
a:visited {
/* underline all links */
text-decoration: underline !important;
}
/* line 17, ../sass/print.scss */
#site-name a:link, #site-name
a:visited {
/* Don't underline header */
text-decoration: none !important;
}
/* line 23, ../sass/print.scss */
#content a[href]:after {
/* Add visible URL after links. */
content: " (" attr(href) ")";
font-weight: normal;
font-size: 16px;
}
/* line 30, ../sass/print.scss */
#content a[href^="javascript:"]:after,
#content a[href^="#"]:after {
/* Only display useful links. */
content: "";
}
/* line 34, ../sass/print.scss */
#content abbr[title]:after {
/* Add visible title after abbreviations. */
content: " (" attr(title) ")";
}
/* line 39, ../sass/print.scss */
#content {
/* Un-float the content */
float: none !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
/* line 49, ../sass/print.scss */
body,
#page,
#main,
#content {
/* Turn off any background colors or images */
color: #000;
background-color: transparent !important;
background-image: none !important;
}
/* line 68, ../sass/print.scss */
#skip-link,
#toolbar,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer,
.breadcrumb,
.tabs,
.action-links,
.links,
.book-navigation,
.forum-topic-navigation,
.pager,
.feed-icons {
/* Hide sidebars and nav elements */
visibility: hidden;
display: none;
}
}
/* End @media print */

View File

@ -0,0 +1,14 @@
/**
* @file
* RTL companion for the tabs.css file.
*/
/* line 11, ../sass/tabs-rtl.scss */
ul.primary li,
ul.secondary li {
float: right;
}
/* line 17, ../sass/tabs-rtl.scss */
ul.primary li {
margin: 0.5em 3px 0 0;
}

View File

@ -0,0 +1,142 @@
/**
* @file
* Tabs Styling
*
* Adds styles for the primary and secondary tabs.
*
* Compare this with default CSS found in the system module's stylesheet (a copy
* of which is in drupal7-reference.css.)
*/
/*
* Basic positioning styles shared by primary and secondary tabs.
*/
/* line 24, ../sass/tabs.scss */
ul.primary,
ul.secondary {
overflow: hidden;
border-bottom: 1px solid #bbbbbb;
list-style: none;
margin: 1em 0 1.5em;
padding: 0 2px;
white-space: nowrap;
}
/* line 32, ../sass/tabs.scss */
ul.primary li,
ul.secondary li {
float: left;
/* LTR */
margin: 0.5em 3px 0;
}
/* line 37, ../sass/tabs.scss */
ul.primary a,
ul.secondary a {
border: 1px solid #e9e9e9;
border-right: 0;
border-bottom: 0;
display: block;
line-height: 1.5em;
text-decoration: none;
}
/*
* Primary tabs
*/
/* line 52, ../sass/tabs.scss */
ul.primary li {
-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
border-top-right-radius: 4px;
text-shadow: 1px 1px 0 white;
border: 1px solid #bbbbbb;
border-bottom: 0;
margin: 0.5em 0 0 3px;
/* LTR */
}
/* line 59, ../sass/tabs.scss */
ul.primary li.active {
border-bottom: 1px solid white;
margin-bottom: -1px;
/* Overlap the ul's border. */
}
/* line 65, ../sass/tabs.scss */
ul.primary a:link,
ul.primary a:visited {
-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
border-top-right-radius: 4px;
-webkit-transition: background-color 0.3s;
-moz-transition: background-color 0.3s;
-o-transition: background-color 0.3s;
transition: background-color 0.3s;
color: #333;
background-color: #dedede;
letter-spacing: 1px;
padding: 0 1em;
text-align: center;
}
/* line 75, ../sass/tabs.scss */
ul.primary a:hover,
ul.primary a:focus {
background-color: #e9e9e9;
border-color: #f2f2f2;
}
/* line 79, ../sass/tabs.scss */
ul.primary a.active {
background-color: transparent;
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE9E9E9', endColorstr='#00E9E9E9');
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e9e9e9), color-stop(100%, rgba(233, 233, 233, 0)));
background-image: -webkit-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
background-image: -moz-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
background-image: -o-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
background-image: linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
border-color: #fff;
}
/*
* Secondary tabs
*/
/* line 91, ../sass/tabs.scss */
ul.secondary {
font-size: .9em;
margin-top: -1.5em;
/* Collapse bottom margin of ul.primary. */
padding-bottom: .5em;
}
/* line 97, ../sass/tabs.scss */
ul.secondary a:link,
ul.secondary a:visited {
-webkit-border-radius: 0.75em;
-moz-border-radius: 0.75em;
-ms-border-radius: 0.75em;
-o-border-radius: 0.75em;
border-radius: 0.75em;
-webkit-transition: background-color 0.3s;
-moz-transition: background-color 0.3s;
-o-transition: background-color 0.3s;
transition: background-color 0.3s;
text-shadow: 1px 1px 0 white;
background-color: #f2f2f2;
color: #666;
padding: 0 .5em;
}
/* line 106, ../sass/tabs.scss */
ul.secondary a:hover,
ul.secondary a:focus {
background-color: #dedede;
border-color: #999;
color: #333;
}
/* line 112, ../sass/tabs.scss */
ul.secondary a.active,
ul.secondary a:active {
text-shadow: 1px 1px 0 #333333;
background-color: #666;
border-color: #000;
color: #fff;
}

View File

@ -0,0 +1,55 @@
/**
* @file
* Views Styling
*/
/*
* Views' admin tabs
*
* The views admin tabs use the same classes as the secondary tabs. We prevent
* some of our tab styling from bleeding into (and breaking) the Views admin
* pages. If your sub-theme isn't used for admin pages, you can remove this
* entire section.
*/
/* line 18, ../sass/views-styles.scss */
.views-displays .secondary li {
float: none;
margin: 0 6px 0;
}
/* line 24, ../sass/views-styles.scss */
.views-displays .secondary a:link,
.views-displays .secondary a:visited {
text-shadow: none;
padding: 2px 7px 3px;
}
/* line 29, ../sass/views-styles.scss */
.views-displays .secondary .open > a {
-webkit-border-radius: 7px 7px 0 0;
-moz-border-radius: 7px 7px 0 0;
-ms-border-radius: 7px 7px 0 0;
-o-border-radius: 7px 7px 0 0;
border-radius: 7px 7px 0 0;
}
/* line 31, ../sass/views-styles.scss */
.views-displays .secondary .open > a:hover {
color: #333;
}
/* line 36, ../sass/views-styles.scss */
.views-displays .secondary .action-list li {
margin: 0;
}
/* line 38, ../sass/views-styles.scss */
.views-displays .secondary .action-list li:first-child {
-webkit-border-radius: 0 7px 0 0;
-moz-border-radius: 0 7px 0 0;
-ms-border-radius: 0 7px 0 0;
-o-border-radius: 0 7px 0 0;
border-radius: 0 7px 0 0;
}
/* line 41, ../sass/views-styles.scss */
.views-displays .secondary .action-list li:last-child {
-webkit-border-radius: 0 0 7px 7px;
-moz-border-radius: 0 0 7px 7px;
-ms-border-radius: 0 0 7px 7px;
-o-border-radius: 0 0 7px 7px;
border-radius: 0 0 7px 7px;
}

View File

@ -0,0 +1,17 @@
/**
* @file
* Wireframes Styling
*
* Add wireframes to the basic layout elements.
*/
/* line 19, ../sass/wireframes.scss */
.with-wireframes #header,
.with-wireframes #main,
.with-wireframes #content,
.with-wireframes #navigation,
.with-wireframes .region-sidebar-first,
.with-wireframes .region-sidebar-second,
.with-wireframes #footer,
.with-wireframes .region-bottom {
outline: 1px solid #ccc;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

View File

@ -0,0 +1,14 @@
Your theme can add JavaScript files in two ways:
1. To add a JavaScript file to all pages on your website, edit your sub-theme's
.info file and add a line like this one:
scripts[] = js/my-jquery-script.js
2. To add a JavaScript file depending on a certain condition, you can add it
using some PHP code in a preprocess function:
drupal_add_js(drupal_get_path('theme', 'THEME_NAME') . '/js/my-jquery-script.js', array('group' => JS_THEME));
For the full documentation of drupal_add_js(), see:
http://api.drupal.org/api/function/drupal_add_js

View File

@ -0,0 +1,19 @@
/**
* @file
* A JavaScript file for the theme.
*
* In order for this JavaScript to be loaded on pages, see the instructions in
* the README.txt next to this file.
*/
// JavaScript should be made compatible with libraries other than jQuery by
// wrapping it with an "anonymous closure". See:
// - http://drupal.org/node/1446420
// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
(function ($, Drupal, window, document, undefined) {
// Place your code here.
})(jQuery, Drupal, this, this.document);

BIN
themes/openstack/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -0,0 +1,160 @@
; Drupal's .info files allow themers to easily specify some of the static
; properties of your theme. Properties such as its name, stylesheets,
; javascripts, and block regions.
;
; Drupal 7 stores a cache of the data in this .info files. If you modify any
; lines in this file, you MUST refresh Drupal 7's cache by simply visiting the
; Appearance page at admin/appearance.
; The name, description and screenshot used for this theme on the Appearance
; page at admin/appearance.
screenshot = screenshot.png
name = Openstack Community
description = Openstack Community
; This theme is compatible with Drupal 7 core. And it is a sub-theme of Zen.
core = 7.x
base theme = zen
; This section controls the CSS files for your theme. There are 3 different
; things you can do with a "stylesheets" line:
; - Add a new stylesheet for your theme.
; - Override a module's stylesheet. If the stylesheet you are adding uses the
; same filename as a stylesheet from a Drupal core or contrib module, your CSS
; file will be used instead of the module's file.
; - Remove a module's stylesheet. If you specify the name of a Drupal core or
; contrib module's stylesheets, Drupal will remove that stylesheet if you do
; NOT include a file with that name with your theme.
;
; stylesheets[MEDIA][] = FILE
;
; The "FILE" is the name of the stylesheet to add/override/remove.
; The "MEDIA" in the first set of brackets is a media type or a media query.
; Typical CSS media types include "all", "screen", "print", and "handheld". A
; typical media query is "screen and (max-width: 320px)".
;
; CSS2.1 media types: http://www.w3.org/TR/CSS21/media.html#media-types
; CSS3 media queries: http://www.w3.org/TR/css3-mediaqueries/
; First we remove the system's menu styling since Zen has its own.
stylesheets[all][] = system.menus.css
; Then we add our own stylesheets.
stylesheets[all][] = css/normalize.css
stylesheets[all][] = css/wireframes.css
stylesheets[all][] = css/layouts/responsive-sidebars.css
stylesheets[all][] = css/page-backgrounds.css
stylesheets[all][] = css/tabs.css
stylesheets[all][] = css/pages.css
stylesheets[all][] = css/blocks.css
stylesheets[all][] = css/navigation.css
stylesheets[all][] = css/views-styles.css
stylesheets[all][] = css/nodes.css
stylesheets[all][] = css/comments.css
stylesheets[all][] = css/forms.css
stylesheets[all][] = css/fields.css
stylesheets[all][] = css/print.css
stylesheets[all][] = css/openstack.css
; Built-in conditional stylesheet support has been removed from Zen 7.x-5.x.
; Instead, Zen now adds conditional-comment-included classes to the html
; element, such as .lt-ie9, .lt-ie8, .lt-ie7. More information on this
; technique can be found at:
; http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
;
; If you still wish to use conditional stylesheets, you must install the
; conditional stylesheets module: http://drupal.org/project/conditional_styles
;stylesheets-conditional[lte IE 8][all][] = css/ie8.css
; Optionally add some JavaScripts to your theme.
;scripts[] = js/script.js
; This section lists the regions defined in Zen's default page.tpl.php and
; maintenance-page.tpl.php files. The name in brackets is the machine name of
; the region. The text after the equals sign is a descriptive text used on the
; admin/structure/blocks page.
;
; In the page.tpl, the contents of the region are output with a
; $page['MACHINE-NAME'] variable and, in the maintenance-page.tpl, the region is
; output with a $MACHINE-NAME variable. For example, with this line in the .info
; file:
; regions[header_top] = Header top
; You'll use this variable in page.tpl.php:
; <?php print render($page['header_top']); ?>
; And you'll use this variable in maintenance-page.tpl.php:
; <?php print $header_top; ?>
regions[message_bar] = Message Bar
regions[header] = Header
regions[navigation] = Navigation bar
regions[highlighted] = Highlighted
regions[help] = Help
regions[content] = Content
regions[sidebar_first] = First sidebar
regions[sidebar_second] = Second sidebar
regions[footer] = Footer
regions[bottom] = Page bottom
; The page_top and page_bottom regions are hidden, which means they will not
; show up on the blocks administration page. But they are required in order for
; the html.tpl.php to work properly, so do not delete them.
regions[page_top] = Page top
regions[page_bottom] = Page bottom
; Various page elements output by the theme can be toggled on and off. The
; "features" control which of these check boxes display on the
; admin/appearance config page. This is useful for suppressing check boxes
; for elements not used by your sub-theme. To suppress a check box, omit the
; entry for it below. See the Drupal 7 Theme Guide for more info:
; http://drupal.org/node/171205#features
features[] = logo
features[] = name
features[] = slogan
features[] = node_user_picture
features[] = comment_user_picture
features[] = favicon
features[] = main_menu
features[] = secondary_menu
; Set the default values of settings on the theme-settings.php form.
settings[zen_breadcrumb] = yes
settings[zen_breadcrumb_separator] = ' '
settings[zen_breadcrumb_home] = 1
settings[zen_breadcrumb_trailing] = 1
settings[zen_breadcrumb_title] = 0
settings[zen_skip_link_anchor] = main-menu
settings[zen_skip_link_text] = Jump to navigation
settings[zen_html5_respond_meta][] = respond
settings[zen_html5_respond_meta][] = html5
settings[zen_html5_respond_meta][] = meta
settings[zen_rebuild_registry] = 1
settings[zen_wireframes] = 0
; To make this sub-theme an admin theme with shortcut links next to titles,
; uncomment the line below.
;settings[shortcut_module_link] = 1
; To add a Panels layout (which can also be used by Display Suite), uncomment
; the line below and see the documentation at: http://drupal.org/node/495654
;plugins[panels][layouts] = layouts

View File

@ -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.2
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.

View File

@ -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

View File

@ -0,0 +1,84 @@
ABOUT zen-grids
---------------
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.
USAGE
-----
Here's a simple example: a content column with a sidebar on each side, aligned
to a 12 column grid.
@import "zen";
$zen-gutter-width: 40px; // Set the gutter size. A half-gutter is used on
// each side of each column.
.container {
@include zen-grid-container; // Define the container for your grid items.
}
$zen-column-count: 12; // Set the number of grid columns to use in this media
// query. You'll likely want a different grid for
// different screen sizes.
@media all and (min-width: 50em) {
.sidebar1 {
@include zen-grid-item(3, 1); // Span 3 columns starting in 1st column
}
.content {
@include zen-grid-item(6, 4); // Span 6 columns starting in 4th column
}
.sidebar2 {
@include zen-grid-item(3, 10); // Span 3 columns starting in 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'
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.

View File

@ -0,0 +1,3 @@
require 'compass'
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
Compass::Frameworks.register('zen-grids', :path => extension_path)

View File

@ -0,0 +1,3 @@
// Import the partial for Zen Grids.
@import "zen/grids";

View File

@ -0,0 +1,80 @@
@import "zen/grids";
// Specify the column background color.
$bg-grid-color: #ffdede !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: $zen-column-count,
$gutter-width: $zen-gutter-width,
$grid-color: $bg-grid-color,
$grid-width: $zen-grid-width,
$flow-direction: $zen-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-left: auto;
margin-right: 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);
display: block; // Override display: none applied for grids with different column numbers.
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);
display: block; // Override display: none applied for grids with different column numbers.
}
}
@for $i from ($column-count + 1) through 30 {
.bgcol-#{$i},
.bgcolrev-#{$i} {
display: none;
}
}
}

View File

@ -0,0 +1,355 @@
//
// Mixins for the Zen Grids system.
//
// Specify the number of columns in the grid.
$zen-column-count: 1 !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 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;
//
// Apply this to the grid container element.
//
@mixin zen-grid-container () {
@if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
*position: relative; // @TODO: This is a pre-IE8 line of code; don't remember why its needed.
}
// We use the "micro clearfix", instead of Compass' clearfix or pie-clearfix.
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
@if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
*zoom: 1;
}
}
//
// Apply this to any grid item that is also a grid container element for a
// nested grid. It must be applied after the zen-grid-item() mixin.
//
@mixin zen-nested-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: zen-unit-width($column-count, $grid-width);
// 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);
}
}
//
// Applies a standard set of properites to all grid items in the layout.
//
// See the note about the $zen-auto-include-item-base and
// $zen-auto-include-flow-item-base variables for when to use this mixin.
//
// 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);
}
padding: {
left: zen-half-gutter($gutter-width, left, $dir);
right: zen-half-gutter($gutter-width, right, $dir);
}
// 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 being hidden beneath other grid items.
word-wrap: break-word; // A very nice CSS3 property.
@if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
@if $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.";
}
@if $box-sizing-polyfill-path != "" {
*behavior: url($box-sizing-polyfill-path);
}
@if $legacy-support-for-ie6 {
_display: inline; // Display inline or double your floated margin! [1]
_overflow: hidden; // Prevent overflowing content from breaking the layout.
_overflow-y: visible; // In IE6, overflow visible is broken [2]
// 1. http://www.positioniseverything.net/explorer/doubled-margin.html
// 2. 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 flow items that need to be floated.
//
@mixin zen-float (
$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);
}
float: $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);
// Calculate the item's width.
$width: zen-grid-item-width($column-span, $columns, $grid-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);
}
// Ensure the HTML item either has a full gutter or no gutter on each side.
padding-#{$dir}: 0;
@if $alpha-gutter {
margin-#{$dir}: $gutter-width;
}
$offset: ($columns - $column-span) * $gutter-width / $columns;
padding-#{$rev}: $offset;
@if $omega-gutter {
margin-#{$rev}: $gutter-width - $offset;
}
@else {
margin-#{$rev}: -($offset);
}
}
//
// 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;
}
// Calculates the unit width of a column.
@function zen-unit-width (
$column-count: $zen-column-count,
$grid-width: $zen-grid-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.";
}
@return $unit-width;
}
// Calculates the width of a grid item that spans the specified number of columns.
@function zen-grid-item-width (
$column-span,
$column-count: $zen-column-count,
$grid-width: $zen-grid-width
) {
@return $column-span * zen-unit-width($column-count, $grid-width);
}
// 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;
}

View File

@ -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;
}

View File

@ -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>Theres 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>Theres 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 cant be civil, youd better finish the story for yourself.</p>
<p>No, please go on! Alice said very humbly; I wont 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>Its a Cheshire cat, said the Duchess, and thats why. Pig!</p>
</aside>
</div>
<footer id="footer">
<small>© 2012. The small print.</small>
</footer>
</body>
</html>

View File

@ -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);
}
}

View File

@ -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!
}

View File

@ -0,0 +1,3 @@
// Aggregate all the stylesheets into one file.
@import "common.scss";
@import "layout.scss";

View File

@ -0,0 +1,16 @@
UNIT TESTS FOR ZEN GRIDS
------------------------
To run the unit tests for Zen Grids:
1. Create a "tests" Compass project using the unit-tests pattern:
compass create tests -r zen-grids --using=zen-grids/unit-tests
2. From inside the "tests" project, compare the compiled stylesheets to the
previous unit test results in the test-results directory:
diff -r test-results/ stylesheets/
If the unit tests were successful, the above command should report no
differences.

View File

@ -0,0 +1,37 @@
description "Unit tests for the Zen Grids system."
stylesheet 'sass/function-zen-direction-flip.scss', :media => 'all', :to => 'function-zen-direction-flip.scss'
stylesheet 'sass/function-zen-grid-item-width.scss', :media => 'all', :to => 'function-zen-grid-item-width.scss'
stylesheet 'sass/function-zen-half-gutter.scss', :media => 'all', :to => 'function-zen-half-gutter.scss'
stylesheet 'sass/function-zen-unit-width.scss', :media => 'all', :to => 'function-zen-unit-width.scss'
stylesheet 'sass/zen-clear.scss', :media => 'all', :to => 'zen-clear.scss'
stylesheet 'sass/zen-float.scss', :media => 'all', :to => 'zen-float.scss'
stylesheet 'sass/zen-grid-container.scss', :media => 'all', :to => 'zen-grid-container.scss'
stylesheet 'sass/zen-grid-flow-item.scss', :media => 'all', :to => 'zen-grid-flow-item.scss'
stylesheet 'sass/zen-grid-item-base.scss', :media => 'all', :to => 'zen-grid-item-base.scss'
stylesheet 'sass/zen-grid-item.scss', :media => 'all', :to => 'zen-grid-item.scss'
stylesheet 'sass/zen-nested-container.scss', :media => 'all', :to => 'zen-nested-container.scss'
file 'test-results/function-zen-direction-flip.css'
file 'test-results/function-zen-grid-item-width.css'
file 'test-results/function-zen-half-gutter.css'
file 'test-results/function-zen-unit-width.css'
file 'test-results/zen-clear.css'
file 'test-results/zen-float.css'
file 'test-results/zen-grid-container.css'
file 'test-results/zen-grid-flow-item.css'
file 'test-results/zen-grid-item-base.css'
file 'test-results/zen-grid-item.css'
file 'test-results/zen-nested-container.css'
file 'README.txt'
help %Q{
To run the unit tests, simply run "compass compile" and compare the generated
CSS to those in the results directory.
diff -r results css
}
welcome_message %Q{
You rock! The unit tests for the Zen Grids system are now installed.
}

View File

@ -0,0 +1,23 @@
/**
* @file
* Test zen-direction-flip()
*/
@import "zen";
#test-zen-direction-flip {
/* Test zen-direction-flip(left) */
float: zen-direction-flip(left);
/* Test zen-direction-flip(right) */
float: zen-direction-flip(right);
/* Test zen-direction-flip(both) */
float: zen-direction-flip(both);
/* Test zen-direction-flip(none) */
float: zen-direction-flip(none);
/* Test zen-direction-flip(invalid) */
float: zen-direction-flip(invalid);
}

View File

@ -0,0 +1,32 @@
/**
* @file
* Test zen-grid-item-width()
*/
@import "zen";
#test-zen-grid-item-width {
/* Test zen-grid-item-width(1) with default $zen-column-count: 1 */
width: zen-grid-item-width(1);
/* Test zen-grid-item-width(2) with $zen-column-count: 5 */
$zen-column-count: 5;
width: zen-grid-item-width(2);
$zen-column-count: 1;
/* Test zen-grid-item-width(2, 5) */
width: zen-grid-item-width(2, 5);
/* Test zen-grid-item-width(1) with $zen-grid-width: 100px */
$zen-grid-width: 100px;
width: zen-grid-item-width(1);
$zen-grid-width: 100%;
/* Test zen-grid-item-width(2, 5) with $zen-grid-width: 100px */
$zen-grid-width: 100px;
width: zen-grid-item-width(2, 5);
$zen-grid-width: 100%;
/* Test zen-grid-item-width(2, 5, 100px) */
width: zen-grid-item-width(2, 5, 100px);
}

View File

@ -0,0 +1,37 @@
/**
* @file
* Test zen-half-gutter()
*/
@import "zen";
#test-zen-half-gutter {
/* Test zen-half-gutter() with default $zen-gutter-width: 20px */
padding-left: zen-half-gutter();
/* Test zen-half-gutter() with $zen-gutter-width: 30px */
$zen-gutter-width: 30px;
padding-left: zen-half-gutter();
/* Test zen-half-gutter(10em) */
padding-left: zen-half-gutter(10em);
/* Test zen-half-gutter(11em) */
padding-left: zen-half-gutter(11em);
/* Test zen-half-gutter(10px) */
padding-left: zen-half-gutter(10px);
/* Test zen-half-gutter(11px) */
padding-left: zen-half-gutter(11px);
/* Test zen-half-gutter(11px, right) */
padding-left: zen-half-gutter(11px, right);
/* Test zen-half-gutter(11px) with $zen-float-direction: right */
$zen-float-direction: right;
padding-left: zen-half-gutter(11px);
/* Test zen-half-gutter(11px, left) with $zen-float-direction: right */
padding-left: zen-half-gutter(11px, left);
}

View File

@ -0,0 +1,32 @@
/**
* @file
* Test zen-unit-width()
*/
@import "zen";
#test-zen-unit-width {
/* Test zen-unit-width() with default $zen-column-count: 1 */
width: zen-unit-width();
/* Test zen-unit-width() with $zen-column-count: 5 */
$zen-column-count: 5;
width: zen-unit-width();
$zen-column-count: 1;
/* Test zen-unit-width(5) */
width: zen-unit-width(5);
/* Test zen-unit-width() with $zen-grid-width: 100px */
$zen-grid-width: 100px;
width: zen-unit-width();
$zen-grid-width: 100%;
/* Test zen-unit-width(5) with $zen-grid-width: 100px */
$zen-grid-width: 100px;
width: zen-unit-width(5);
$zen-grid-width: 100%;
/* Test zen-unit-width(5, 100px) */
width: zen-unit-width(5, 100px);
}

View File

@ -0,0 +1,26 @@
/**
* @file
* Test zen-clear()
*/
@import "zen";
#test-zen-clear {
/* Test zen-clear() */
@include zen-clear();
/* Test zen-clear() with $zen-float-direction: right */
$zen-float-direction: right;
@include zen-clear();
$zen-float-direction: left;
/* Test zen-clear(left) */
@include zen-clear(left);
/* Test zen-clear(left, $reverse-all-floats: TRUE) */
@include zen-clear(left, $reverse-all-floats: TRUE);
/* Test zen-clear(left) with: $zen-reverse-all-floats: TRUE; */
$zen-reverse-all-floats: TRUE;
@include zen-clear(left);
}

View File

@ -0,0 +1,26 @@
/**
* @file
* Test zen-float()
*/
@import "zen";
#test-zen-float {
/* Test zen-float() */
@include zen-float();
/* Test zen-float() with $zen-float-direction: right */
$zen-float-direction: right;
@include zen-float();
$zen-float-direction: left;
/* Test zen-float(left) */
@include zen-float(left);
/* Test zen-float(left, $reverse-all-floats: TRUE) */
@include zen-float(left, $reverse-all-floats: TRUE);
/* Test zen-float(left) with: $zen-reverse-all-floats: TRUE; */
$zen-reverse-all-floats: TRUE;
@include zen-float(left);
}

View File

@ -0,0 +1,27 @@
/**
* @file
* Test zen-grid-container()
*/
@import "zen";
#test-zen-grid-container {
/* Test zen-grid-container() */
@include zen-grid-container();
}
#test-zen-grid-container-2 {
/* Test zen-grid-container() with $legacy-support-for-ie7: true */
$legacy-support-for-ie7: true;
@include zen-grid-container();
$legacy-support-for-ie7: false;
}
#test-zen-grid-container-3 {
/* Test zen-grid-container() with $legacy-support-for-ie6: true */
$legacy-support-for-ie6: true;
$legacy-support-for-ie7: true;
@include zen-grid-container();
$legacy-support-for-ie6: false;
$legacy-support-for-ie7: false;
}

View File

@ -0,0 +1,60 @@
/**
* @file
* Test zen-grid-flow-item()
*/
@import "zen";
#test-zen-grid-flow-item {
/* Test zen-grid-flow-item(1) without setting $column-count */
@include zen-grid-flow-item(1);
/* Test zen-grid-flow-item(1, 4) with 12 column grid and 20px gutter */
@include zen-grid-flow-item(1, 4);
/* Test zen-grid-flow-item(1, 4) with 15px gutter */
$zen-gutter-width: 15px;
@include zen-grid-flow-item(1, 4);
$zen-gutter-width: 20px;
/* Test zen-grid-flow-item(1, 4) with 15px gutter and $zen-float-direction: right */
$zen-gutter-width: 15px;
$zen-float-direction: right;
@include zen-grid-flow-item(1, 4);
$zen-gutter-width: 20px;
$zen-float-direction: left;
/* Test zen-grid-flow-item(1, 4) with 15px gutter and $alpha-gutter: true */
$zen-gutter-width: 15px;
@include zen-grid-flow-item(1, 4, $alpha-gutter: true);
$zen-gutter-width: 20px;
/* Test zen-grid-flow-item(1, 4) with 15px gutter and $omega-gutter: false */
$zen-gutter-width: 15px;
@include zen-grid-flow-item(1, 4, $omega-gutter: false);
$zen-gutter-width: 20px;
/* Test zen-grid-flow-item(3, 4) with 20px gutter and $alpha-gutter: true */
@include zen-grid-flow-item(3, 4, $alpha-gutter: true);
/* Test zen-grid-flow-item(3, 4) with 20px gutter and $omega-gutter: false */
@include zen-grid-flow-item(3, 4, $omega-gutter: false);
/* Test zen-grid-flow-item(1, 4) with 15px gutter, $zen-float-direction: right and $alpha-gutter: true */
$zen-gutter-width: 15px;
$zen-float-direction: right;
@include zen-grid-flow-item(1, 4, $alpha-gutter: true);
$zen-gutter-width: 20px;
$zen-float-direction: left;
/* Test zen-grid-flow-item(1, 4) with $zen-box-sizing: content-box and 10% gutter */
$zen-gutter-width: 10%;
$zen-box-sizing: content-box;
@include zen-grid-flow-item(1, 4);
$zen-gutter-width: 20px;
$zen-box-sizing: border-box;
/* Test zen-grid-flow-item(1, 4) with $zen-auto-include-flow-item-base: false */
$zen-auto-include-flow-item-base: false;
@include zen-grid-flow-item(1, 4);
}

View File

@ -0,0 +1,54 @@
/**
* @file
* Test zen-grid-item-base()
*/
@import "zen";
#test-zen-grid-item-base {
/* Test zen-grid-item-base() */
@include zen-grid-item-base();
/* Test zen-grid-item-base() with $zen-box-sizing: content-box */
$zen-box-sizing: content-box;
@include zen-grid-item-base();
$zen-box-sizing: border-box;
/* Test zen-grid-item-base() with $legacy-support-for-ie7: true */
$legacy-support-for-ie7: true;
@include zen-grid-item-base();
$legacy-support-for-ie7: false;
/* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie7: true */
$box-sizing-polyfill-path: "/boxsizing.htc";
$legacy-support-for-ie7: true;
@include zen-grid-item-base();
$box-sizing-polyfill-path: "";
$legacy-support-for-ie7: false;
/* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie6: true */
$box-sizing-polyfill-path: "/boxsizing.htc";
$legacy-support-for-ie6: true;
@include zen-grid-item-base();
$box-sizing-polyfill-path: "";
$legacy-support-for-ie6: false;
/* Test zen-grid-item-base() with $zen-gutter-width: 15px */
$zen-gutter-width: 15px;
@include zen-grid-item-base();
$zen-gutter-width: 20px;
/* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-float-direction: right */
$zen-gutter-width: 15px;
$zen-float-direction: right;
@include zen-grid-item-base();
$zen-gutter-width: 20px;
$zen-float-direction: left;
/* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-reverse-all-floats: true */
$zen-gutter-width: 15px;
$zen-reverse-all-floats: true;
@include zen-grid-item-base();
$zen-gutter-width: 20px;
$zen-reverse-all-floats: false;
}

View File

@ -0,0 +1,57 @@
/**
* @file
* Test zen-grid-item()
*/
@import "zen";
#test-zen-grid-item {
/* Test zen-grid-item(6, 4) with 12 column grid and 20px gutter */
$zen-column-count: 12;
@include zen-grid-item(6, 4);
/* Test zen-grid-item(3, 3) with box-sizing: content-box, 5 column grid and 10% gutter */
$zen-column-count: 5;
$zen-gutter-width: 10%;
$zen-box-sizing: content-box;
@include zen-grid-item(3, 3);
$zen-box-sizing: border-box;
/* Turn off $zen-auto-include-item-base */
$zen-auto-include-item-base: false;
/* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter */
$zen-column-count: 5;
$zen-gutter-width: 40px;
@include zen-grid-item(3, 3);
/* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter */
$zen-column-count: 5;
$zen-gutter-width: 40px;
@include zen-grid-item(3, 3, right);
/* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
$zen-column-count: 5;
$zen-gutter-width: 40px;
$zen-reverse-all-floats: true;
@include zen-grid-item(3, 3);
$zen-reverse-all-floats: false;
/* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
$zen-column-count: 5;
$zen-gutter-width: 40px;
$zen-reverse-all-floats: true;
@include zen-grid-item(3, 3, right);
$zen-reverse-all-floats: false;
/* Test zen-grid-item(3, 2.5) with 5 column grid and 40px gutter */
$zen-column-count: 5;
$zen-gutter-width: 40px;
@include zen-grid-item(3, 2.5);
/* Test zen-grid-item(3, 3) with $zen-grid-width: 1000px, 5 column grid and 40px gutter */
$zen-grid-width: 1000px;
$zen-column-count: 5;
$zen-gutter-width: 40px;
@include zen-grid-item(3, 3);
}

View File

@ -0,0 +1,27 @@
/**
* @file
* Test zen-nested-container()
*/
@import "zen";
#test-zen-nested-container {
/* Test zen-nested-container() */
@include zen-nested-container();
}
#test-zen-nested-container-2 {
/* Test zen-nested-container() with $legacy-support-for-ie7: true */
$legacy-support-for-ie7: true;
@include zen-nested-container();
$legacy-support-for-ie7: false;
}
#test-zen-nested-container-3 {
/* Test zen-nested-container() with $legacy-support-for-ie6: true */
$legacy-support-for-ie6: true;
$legacy-support-for-ie7: true;
@include zen-nested-container();
$legacy-support-for-ie6: false;
$legacy-support-for-ie7: false;
}

View File

@ -0,0 +1,17 @@
/**
* @file
* Test zen-direction-flip()
*/
/* line 8, ../sass/function-zen-direction-flip.scss */
#test-zen-direction-flip {
/* Test zen-direction-flip(left) */
float: right;
/* Test zen-direction-flip(right) */
float: left;
/* Test zen-direction-flip(both) */
float: both;
/* Test zen-direction-flip(none) */
float: none;
/* Test zen-direction-flip(invalid) */
float: both;
}

View File

@ -0,0 +1,19 @@
/**
* @file
* Test zen-grid-item-width()
*/
/* line 8, ../sass/function-zen-grid-item-width.scss */
#test-zen-grid-item-width {
/* Test zen-grid-item-width(1) with default $zen-column-count: 1 */
width: 100%;
/* Test zen-grid-item-width(2) with $zen-column-count: 5 */
width: 40%;
/* Test zen-grid-item-width(2, 5) */
width: 40%;
/* Test zen-grid-item-width(1) with $zen-grid-width: 100px */
width: 100px;
/* Test zen-grid-item-width(2, 5) with $zen-grid-width: 100px */
width: 40px;
/* Test zen-grid-item-width(2, 5, 100px) */
width: 40px;
}

View File

@ -0,0 +1,25 @@
/**
* @file
* Test zen-half-gutter()
*/
/* line 8, ../sass/function-zen-half-gutter.scss */
#test-zen-half-gutter {
/* Test zen-half-gutter() with default $zen-gutter-width: 20px */
padding-left: 10px;
/* Test zen-half-gutter() with $zen-gutter-width: 30px */
padding-left: 15px;
/* Test zen-half-gutter(10em) */
padding-left: 5em;
/* Test zen-half-gutter(11em) */
padding-left: 5.5em;
/* Test zen-half-gutter(10px) */
padding-left: 5px;
/* Test zen-half-gutter(11px) */
padding-left: 5px;
/* Test zen-half-gutter(11px, right) */
padding-left: 6px;
/* Test zen-half-gutter(11px) with $zen-float-direction: right */
padding-left: 5px;
/* Test zen-half-gutter(11px, left) with $zen-float-direction: right */
padding-left: 6px;
}

View File

@ -0,0 +1,19 @@
/**
* @file
* Test zen-unit-width()
*/
/* line 8, ../sass/function-zen-unit-width.scss */
#test-zen-unit-width {
/* Test zen-unit-width() with default $zen-column-count: 1 */
width: 100%;
/* Test zen-unit-width() with $zen-column-count: 5 */
width: 20%;
/* Test zen-unit-width(5) */
width: 20%;
/* Test zen-unit-width() with $zen-grid-width: 100px */
width: 100px;
/* Test zen-unit-width(5) with $zen-grid-width: 100px */
width: 20px;
/* Test zen-unit-width(5, 100px) */
width: 20px;
}

View File

@ -0,0 +1,17 @@
/**
* @file
* Test zen-clear()
*/
/* line 8, ../sass/zen-clear.scss */
#test-zen-clear {
/* Test zen-clear() */
clear: left;
/* Test zen-clear() with $zen-float-direction: right */
clear: right;
/* Test zen-clear(left) */
clear: left;
/* Test zen-clear(left, $reverse-all-floats: TRUE) */
clear: right;
/* Test zen-clear(left) with: $zen-reverse-all-floats: TRUE; */
clear: right;
}

View File

@ -0,0 +1,17 @@
/**
* @file
* Test zen-float()
*/
/* line 8, ../sass/zen-float.scss */
#test-zen-float {
/* Test zen-float() */
float: left;
/* Test zen-float() with $zen-float-direction: right */
float: right;
/* Test zen-float(left) */
float: left;
/* Test zen-float(left, $reverse-all-floats: TRUE) */
float: right;
/* Test zen-float(left) with: $zen-reverse-all-floats: TRUE; */
float: right;
}

View File

@ -0,0 +1,49 @@
/**
* @file
* Test zen-grid-container()
*/
/* line 8, ../sass/zen-grid-container.scss */
#test-zen-grid-container {
/* Test zen-grid-container() */
}
/* line 52, /Library/Ruby/Gems/1.8/gems/zen-grids-1.2/stylesheets/zen/_grids.scss */
#test-zen-grid-container:before, #test-zen-grid-container:after {
content: "";
display: table;
}
/* line 56, /Library/Ruby/Gems/1.8/gems/zen-grids-1.2/stylesheets/zen/_grids.scss */
#test-zen-grid-container:after {
clear: both;
}
/* line 13, ../sass/zen-grid-container.scss */
#test-zen-grid-container-2 {
/* Test zen-grid-container() with $legacy-support-for-ie7: true */
*position: relative;
*zoom: 1;
}
/* line 52, /Library/Ruby/Gems/1.8/gems/zen-grids-1.2/stylesheets/zen/_grids.scss */
#test-zen-grid-container-2:before, #test-zen-grid-container-2:after {
content: "";
display: table;
}
/* line 56, /Library/Ruby/Gems/1.8/gems/zen-grids-1.2/stylesheets/zen/_grids.scss */
#test-zen-grid-container-2:after {
clear: both;
}
/* line 20, ../sass/zen-grid-container.scss */
#test-zen-grid-container-3 {
/* Test zen-grid-container() with $legacy-support-for-ie6: true */
*position: relative;
*zoom: 1;
}
/* line 52, /Library/Ruby/Gems/1.8/gems/zen-grids-1.2/stylesheets/zen/_grids.scss */
#test-zen-grid-container-3:before, #test-zen-grid-container-3:after {
content: "";
display: table;
}
/* line 56, /Library/Ruby/Gems/1.8/gems/zen-grids-1.2/stylesheets/zen/_grids.scss */
#test-zen-grid-container-3:after {
clear: both;
}

View File

@ -0,0 +1,132 @@
/**
* @file
* Test zen-grid-flow-item()
*/
/* line 8, ../sass/zen-grid-flow-item.scss */
#test-zen-grid-flow-item {
/* Test zen-grid-flow-item(1) without setting $column-count */
width: 100%;
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-left: 0;
padding-right: 0px;
margin-right: 20px;
/* Test zen-grid-flow-item(1, 4) with 12 column grid and 20px gutter */
width: 25%;
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-left: 0;
padding-right: 15px;
margin-right: 5px;
/* Test zen-grid-flow-item(1, 4) with 15px gutter */
width: 25%;
padding-left: 7px;
padding-right: 8px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-left: 0;
padding-right: 11.25px;
margin-right: 3.75px;
/* Test zen-grid-flow-item(1, 4) with 15px gutter and $zen-float-direction: right */
width: 25%;
padding-left: 8px;
padding-right: 7px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-right: 0;
padding-left: 11.25px;
margin-left: 3.75px;
/* Test zen-grid-flow-item(1, 4) with 15px gutter and $alpha-gutter: true */
width: 25%;
padding-left: 7px;
padding-right: 8px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-left: 0;
margin-left: 15px;
padding-right: 11.25px;
margin-right: 3.75px;
/* Test zen-grid-flow-item(1, 4) with 15px gutter and $omega-gutter: false */
width: 25%;
padding-left: 7px;
padding-right: 8px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-left: 0;
padding-right: 11.25px;
margin-right: -11.25px;
/* Test zen-grid-flow-item(3, 4) with 20px gutter and $alpha-gutter: true */
width: 75%;
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-left: 0;
margin-left: 20px;
padding-right: 5px;
margin-right: 15px;
/* Test zen-grid-flow-item(3, 4) with 20px gutter and $omega-gutter: false */
width: 75%;
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-left: 0;
padding-right: 5px;
margin-right: -5px;
/* Test zen-grid-flow-item(1, 4) with 15px gutter, $zen-float-direction: right and $alpha-gutter: true */
width: 25%;
padding-left: 8px;
padding-right: 7px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
padding-right: 0;
margin-right: 15px;
padding-left: 11.25px;
margin-left: 3.75px;
/* Test zen-grid-flow-item(1, 4) with $zen-box-sizing: content-box and 10% gutter */
width: 15%;
padding-left: 5%;
padding-right: 5%;
border: 0 !important;
word-wrap: break-word;
padding-left: 0;
padding-right: 7.5%;
margin-right: 2.5%;
/* Test zen-grid-flow-item(1, 4) with $zen-auto-include-flow-item-base: false */
width: 25%;
padding-left: 0;
padding-right: 15px;
margin-right: 5px;
}

View File

@ -0,0 +1,73 @@
/**
* @file
* Test zen-grid-item-base()
*/
/* line 8, ../sass/zen-grid-item-base.scss */
#test-zen-grid-item-base {
/* Test zen-grid-item-base() */
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
/* Test zen-grid-item-base() with $zen-box-sizing: content-box */
padding-left: 10px;
padding-right: 10px;
border: 0 !important;
word-wrap: break-word;
/* Test zen-grid-item-base() with $legacy-support-for-ie7: true */
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
/* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie7: true */
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
*behavior: url("/boxsizing.htc");
/* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie6: true */
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
*behavior: url("/boxsizing.htc");
_display: inline;
_overflow: hidden;
_overflow-y: visible;
/* Test zen-grid-item-base() with $zen-gutter-width: 15px */
padding-left: 7px;
padding-right: 8px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
/* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-float-direction: right */
padding-left: 8px;
padding-right: 7px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
/* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-reverse-all-floats: true */
padding-left: 8px;
padding-right: 7px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
}

View File

@ -0,0 +1,59 @@
/**
* @file
* Test zen-grid-item()
*/
/* line 8, ../sass/zen-grid-item.scss */
#test-zen-grid-item {
/* Test zen-grid-item(6, 4) with 12 column grid and 20px gutter */
float: left;
width: 50%;
margin-left: 25%;
margin-right: -75%;
padding-left: 10px;
padding-right: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
/* Test zen-grid-item(3, 3) with box-sizing: content-box, 5 column grid and 10% gutter */
float: left;
width: 50%;
margin-left: 40%;
margin-right: -100%;
padding-left: 5%;
padding-right: 5%;
border: 0 !important;
word-wrap: break-word;
/* Turn off $zen-auto-include-item-base */
/* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter */
float: left;
width: 60%;
margin-left: 40%;
margin-right: -100%;
/* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter */
float: right;
width: 60%;
margin-right: 40%;
margin-left: -100%;
/* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
float: right;
width: 60%;
margin-right: 40%;
margin-left: -100%;
/* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
float: left;
width: 60%;
margin-left: 40%;
margin-right: -100%;
/* Test zen-grid-item(3, 2.5) with 5 column grid and 40px gutter */
float: left;
width: 60%;
margin-left: 30%;
margin-right: -90%;
/* Test zen-grid-item(3, 3) with $zen-grid-width: 1000px, 5 column grid and 40px gutter */
float: left;
width: 600px;
margin-left: 400px;
margin-right: -1000px;
}

View File

@ -0,0 +1,24 @@
/**
* @file
* Test zen-nested-container()
*/
/* line 8, ../sass/zen-nested-container.scss */
#test-zen-nested-container {
/* Test zen-nested-container() */
padding-left: 0;
padding-right: 0;
}
/* line 13, ../sass/zen-nested-container.scss */
#test-zen-nested-container-2 {
/* Test zen-nested-container() with $legacy-support-for-ie7: true */
padding-left: 0;
padding-right: 0;
}
/* line 20, ../sass/zen-nested-container.scss */
#test-zen-nested-container-3 {
/* Test zen-nested-container() with $legacy-support-for-ie6: true */
padding-left: 0;
padding-right: 0;
}

View File

@ -0,0 +1,58 @@
# -*- 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{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.}
s.homepage = 'http://zengrids.com'
s.rubyforge_project =
s.version = '1.2'
s.date = '2012-05-04'
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/_grids.scss
templates/project/example.html
templates/project/manifest.rb
templates/project/common.scss
templates/project/layout.scss
templates/project/styles.scss
templates/unit-tests/manifest.rb
templates/unit-tests/README.txt
templates/unit-tests/sass/function-zen-direction-flip.scss
templates/unit-tests/sass/function-zen-grid-item-width.scss
templates/unit-tests/sass/function-zen-half-gutter.scss
templates/unit-tests/sass/function-zen-unit-width.scss
templates/unit-tests/sass/zen-clear.scss
templates/unit-tests/sass/zen-float.scss
templates/unit-tests/sass/zen-grid-container.scss
templates/unit-tests/sass/zen-grid-flow-item.scss
templates/unit-tests/sass/zen-grid-item-base.scss
templates/unit-tests/sass/zen-grid-item.scss
templates/unit-tests/sass/zen-nested-container.scss
templates/unit-tests/test-results/function-zen-direction-flip.css
templates/unit-tests/test-results/function-zen-grid-item-width.css
templates/unit-tests/test-results/function-zen-half-gutter.css
templates/unit-tests/test-results/function-zen-unit-width.css
templates/unit-tests/test-results/zen-clear.css
templates/unit-tests/test-results/zen-float.css
templates/unit-tests/test-results/zen-grid-container.css
templates/unit-tests/test-results/zen-grid-flow-item.css
templates/unit-tests/test-results/zen-grid-item-base.css
templates/unit-tests/test-results/zen-grid-item.css
templates/unit-tests/test-results/zen-nested-container.css
zen-grids.gemspec
]
end

View File

@ -0,0 +1,58 @@
ABOUT SASS AND COMPASS
----------------------
This directory includes Sass versions of Zen's CSS files. (If you are wondering
how these Sass files are organized, read the css/README.txt file.)
Sass is a language that is just normal CSS plus some extra features, like
variables, nested rules, math, mixins, etc. If your stylesheets are written in
Sass, helper applications can convert them to standard CSS so that you can
include the CSS in the normal ways with your theme.
To learn more about Sass, visit: http://sass-lang.com
Compass is a helper library for Sass. It includes libraries of shared mixins, a
package manager to add additional extension libraries, and an executable that
can easily convert Sass files into CSS.
To learn more about Compass, visit: http://compass-style.org
DEVELOPING WITH SASS AND COMPASS
--------------------------------
To automatically generate the CSS versions of the scss while you are doing theme
development, you'll need to tell Compass to "watch" the sass directory so that
any time a .scss file is changed it will automatically place a generated CSS
file into your sub-theme's css directory:
compass watch <path to your sub-theme's directory>
If you are already in the root of your sub-theme's directory, you can simply
type: compass watch
While using generated CSS with Firebug, the line numbers it reports will be
wrong since it will be showing the generated CSS file's line numbers and not the
line numbers of the source Sass files. To correct this problem, you can install
the FireSass plug-in into Firefox and then edit your sub-theme's config.rb file
to set: firesass = true
https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug/
MOVING YOUR CSS TO PRODUCTION
-----------------------------
Once you have finished your sub-theme development and are ready to move your CSS
files to your production server, you'll need to tell sass to update all your CSS
files and to compress them (to improve performance). Note: the Compass command
will only generate CSS for .scss files that have recently changed; in order to
force it to regenerate all the CSS files, you can use the Compass' clean command
to delete all the generated CSS files.
- Delete all CSS files by running: compass clean
- Edit the config.rb file in your theme's directory and uncomment this line by
deleting the "#" from the beginnning:
#environment = :production
- Regenerate all the CSS files by running: compass compile
And don't forget to turn on Drupal's CSS aggregation. :-)

View File

@ -0,0 +1,100 @@
//
// "base" partial
//
// To make it easier to use all variables and mixins in any Sass file in this
// theme, each .scss file has a @import "base" declaration. And this _base.scss
// file is in charge of importing all the other partials needed for the theme.
//
// This base partial is organized in this way:
// - First we set any shared Sass variables.
// - Next we import Compass plug-ins (Sass mixin libraries).
// - Last we import a _custom.scss partial that includes our custom mixins.
//
//
// Legacy IE support
//
// These variables are used by many mixins to add additional CSS to support
// specific versions of IE or specific vendor prefixes.
//
// To turn on support for IE6 or IE7, set those variables to true.
//
// Zen does not require special handling for IE8 or later. But Compass uses that
// variable for a couple edge cases. We include it for completeness sake. See
// the documentation at http://compass-style.org/reference/compass/support/
$legacy-support-for-ie6: false;
$legacy-support-for-ie7: false;
$legacy-support-for-ie8: true;
//
// Font faces, stacks and sizes.
//
// Compass' vertical_rhythm extension is a powerful tool to set up a vertical
// rhythm for your entire page. You can see some of its mixins and functions in
// use in the normalize.scss file.
// @see http://compass-style.org/reference/compass/typography/vertical_rhythm/
$base-font-size: 16px; // The font size set on the root html element.
$base-line-height: 24px; // This line-height determines the basic unit of vertical rhythm.
$h1-font-size: 2 * $base-font-size;
$h2-font-size: 1.5 * $base-font-size;
$h3-font-size: 1.17 * $base-font-size;
$h4-font-size: 1 * $base-font-size;
$h5-font-size: 0.83 * $base-font-size;
$h6-font-size: 0.75 * $base-font-size;
// The following font family declarations are based on the Microsoft core web
// fonts which are common fonts available on most computer systems. The DejaVu
// and Nimbus Sans fonts are commonly available on Linux systems where the MS
// fonts are less common. Tahoma and Helvetica are also widely available.
//
// A user's web browser will look at the comma-separated list and will
// attempt to use each font in turn until it finds one that is available
// on the user's computer. The final "generic" font (sans-serif, serif or
// monospace) hints at what type of font to use if the web browser doesn't
// find any of the fonts in the list.
// First, let's create some font stacks.
$times-new-roman: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
$times: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
$georgia: Georgia, "Times New Roman", "DejaVu Serif", serif;
$verdana: Verdana, Tahoma, "DejaVu Sans", sans-serif;
$tahoma: Tahoma, Verdana, "DejaVu Sans", sans-serif;
$helvetica: Helvetica, Arial, "Nimbus Sans L", sans-serif;
$arial: Arial, Helvetica, "Nimbus Sans L", sans-serif;
// For an explanation of why "sans-serif" is at the end of this list, see
// http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
$courier: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
// Now create some variables for the font stacks we want to use on this site.
$base-font-family: $verdana; // The font family set on the html element.
$font-body: $verdana;
$font-monospace: $courier;
//
// Colors, etc.
//
// The amount lists, blockquotes and comments are indented.
$indent-amount: 30px;
//
// Partials to be shared with all .scss files.
//
@import "compass/support"; // Add Compass' IE and vendor prefix support variables.
@import "compass/utilities/general/clearfix"; // Better than Drupal's clearfix.
@import "compass/utilities/sprites"; // See http://compass-style.org/help/tutorials/spriting/
@import "compass/css3"; // Use one CSS3 mixin instead of multiple vendor prefixes.
@import "compass/typography/vertical_rhythm"; // Helps set up a vertical rhythm.
@import "zen"; // Add the Zen Grids responsive layout mixins.
@import "custom"; // Import our custom mixins last.

View File

@ -0,0 +1,59 @@
//
// Custom sass mixins
//
// To use a mixin in this file, add this line to the top of your .scss file:
// @import "base";
// Then to use a mixin for a particular rule, add this inside the ruleset's
// curly brackets:
// @include mix-in-name;
// element-invisible as defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
@mixin element-invisible {
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 element-invisible effect.
@mixin element-invisible-off {
position: static !important;
clip: auto;
height: auto;
width: auto;
overflow: auto;
}
@mixin element-focusable {
@include element-invisible;
&:active,
&:focus {
@include element-invisible-off;
}
}
// The word "Unpublished" displayed underneath unpublished nodes and comments.
@mixin unpublished-div {
height: 0;
overflow: visible;
color: #d8d8d8;
font-size: 75px;
line-height: 1;
font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
font-weight: bold;
text-transform: uppercase;
text-align: center;
word-wrap: break-word; // A very nice CSS3 property
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
.lt-ie8 &>* {
position: relative; // Otherwise these elements will appear below the "Unpublished" text.
}
}
}

View File

@ -0,0 +1,108 @@
/**
* @file
* Block Styling
*/
@import "base";
.block { /* Block wrapper */
margin-bottom: 1.5em;
&.first { /* The first block in the region */
}
&.last { /* The last block in the region */
}
&.odd { /* Zebra striping for each block in the region */
}
&.even { /* Zebra striping for each block in the region */
}
h2.block-title { /* Block title */
}
}
#block-aggregator-category-1 { /* Block for the latest news items in the first category */
}
#block-aggregator-feed-1 { /* Block for the latest news items in the first feed */
}
#block-block-1 { /* First block created with "Add block" link */
}
#block-blog-recent { /* "Recent blog posts" block */
}
#block-book-navigation { /* "Book navigation" block for the current book's table of contents */
}
#block-comment-recent { /* "Recent comments" block */
}
#block-forum-active { /* "Active forum topics" block */
}
#block-forum-new { /* "New forum topics" block */
}
#block-locale-language { /* Language switcher block */
}
#block-menu-menu-NAME { /* Custom menu block */
}
#block-node-recent { /* "Recent content" block */
}
#block-node-syndicate { /* "Syndicate" block for primary RSS feed; see also page.css's .feed-icon */
}
#block-poll-recent { /* "Most recent poll" block */
}
#block-profile-author-information { /* "Author information" block for the profile of the page's author */
}
#block-search-form { /* "Search form" block */
}
#block-shortcut-shortcuts { /* "Shortcuts" block */
}
#block-statistics-popular { /* "Popular content" block */
}
#block-system-main-menu { /* "Main menu" block */
}
#block-system-management { /* "Management" block for Drupal management menu */
}
#block-system-navigation { /* "Navigation" block for Drupal navigation menu */
}
#block-system-user-menu { /* "User menu" block for Drupal user menu */
}
#block-system-help { /* "System help" block */
}
#block-system-main { /* "Main page content" block */
}
#block-system-powered-by { /* "Powered by Drupal" block */
}
#block-user-login { /* "User login form" block */
}
#block-user-new { /* "Who's new" block for a list of the newest users */
}
#block-user-online { /* "Who's online" block for a list of the online users */
}

View File

@ -0,0 +1,84 @@
/**
* @file
* Comment Styling
*/
@import "base";
.comments { /* Wrapper for the list of comments and its title */
margin: 1.5em 0;
h2.title { /* Heading for the list of comments */
}
h2.comment-form { /* Heading for the comment form */
}
}
.comment { /* Wrapper for a single comment */
&.comment-preview { /* Preview of the comment before submitting new or updated comment */
background-color: #ffffea; /* Drupal core will use a #ffffea background. See #1110842 */
}
&.new { /* A new comment since the user last viewed the page. */
}
&.first { /* The first comment in the list of comments */
}
&.last { /* The last comment in the list of comments */
}
&.odd { /* An odd-numbered comment in the list of comments */
}
&.even { /* An even-numbered comment in the list of comments */
}
&.comment-by-anonymous { /* A comment created by an anonymous user */
}
&.comment-by-node-author { /* A comment created by the node's author */
}
&.comment-by-viewer { /* A comment created by the current user */
}
h3.comment-title { /* Comment title */
}
.new { /* "New" marker for comments that are new for the current user */
color: #c00;
}
.user-picture { /* The picture of the comment author */
}
.submitted { /* The "posted by" information */
}
.permalink { /* Comment's permalink wrapper */
text-transform: uppercase;
font-size: 75%;
}
.user-signature { /* The user's signature */
}
ul.links { /* Comment links. See also the ul.links declaration in the pages.css. */
}
}
.indented { /* Nested comments are indented */
margin-left: $indent-amount; /* Drupal core uses a 25px left margin */
}
.comment-unpublished { /* Unpublished comments */
/* background-color: #fff4f4; */ /* Drupal core uses a #fff4f4 background */
p.unpublished { /* The word "Unpublished" displayed underneath the content. */
@include unpublished-div;
}
}

View File

@ -0,0 +1,106 @@
/**
* @file
* Field Styling
*
* The Fences module allows site builders to pick the semeantic HTML5 element
* for each field while editing the field's settings. There's no way a theme
* can ever know which element to use for the fields on your site, so Zen
* just uses lets Drupal core or Fences decide. Since you DO NOT want 3 wrapping
* divs around every field (do you?), we highly recommend Fences.
*
* http://drupal.org/project/fences
*/
@import "base";
/*
* Field wrappers when the Fences module is enabled.
*/
.field-label { /* The optional label for a field. */
}
.field-FIELDNAME { /* Underscores in field name are replaced with dashes. */
}
/*
* If you don't use the Fences module, that's fine. Really. I think. Just use
* these selectors instead:
*/
.field { /* Wrapper for any field. */
}
/*
* Field types (Core)
*/
.field-type-text {
}
.field-type-text-long {
}
.field-type-text-with-summary {
}
.field-type-image {
}
.field-type-file {
}
.field-type-taxonomy-term-reference {
}
.field-type-number-integer {
}
.field-type-number-decimal {
}
.field-type-number-float {
}
.field-type-list-text {
}
.field-type-list-boolean {
}
.field-type-list-integer {
}
.field-type-list-float {
}
/*
* Field types (Contrib)
*/
.field-type-datetime { /* Always use "datetime" when creating new CCK date fields. "date" and "datestamp" are legacy types. */
}
.field-type-node-reference {
}
.field-type-user-reference {
}
/*
* Named fields
*/
.field-name-body {
}
.field-name-field-image {
}
.field-name-field-tags {
}
.field-name-field-FIELDNAME { /* Underscores in field name are replaced with dashes. */
}

View File

@ -0,0 +1,43 @@
/**
* @file
* RTL companion for the forms.css file.
*/
@import "base";
/*
* Drupal's default login form block
*/
#user-login-form {
text-align: right;
/*
* OpenID
*
* The default styling for the OpenID login link seems to assume Garland's
* styling of list items.
*/
html.js & li.openid-link,
li.openid-link { /* The "Log in using OpenID" link. */
margin-left: 0;
margin-right: -20px; /* Un-do some of the padding on the ul list. */
}
}
/*
* Drupal admin tables
*
* We overrode these styles in html-elements.css, but restore them for the admin
* section of the site.
*/
form {
th {
text-align: right;
padding-left: 1em;
padding-right: 0;
}
}

View File

@ -0,0 +1,151 @@
/**
* @file
* Form Styling
*/
@import "base";
.form-item { /* Wrapper for a form element (or group of form elements) and its label */
margin: 1.5em 0;
input.error,
textarea.error,
select.error { /* Highlight the form elements that caused a form submission error */
border: 1px solid #c00;
}
label { /* The label for a form element */
display: block;
font-weight: bold;
}
label.option { /* The label for a radio button or checkbox */
display: inline;
font-weight: normal;
}
.form-required { /* The part of the label that indicates a required field */
color: #c00;
}
.description { /* The descriptive help text (separate from the label) */
font-size: 0.85em;
}
.form-checkboxes & ,
.form-radios & { /* Pack groups of checkboxes and radio buttons closer together */
margin: 0; /* Drupal core uses "0.4em 0" */
}
}
.form-submit { /* The submit button */
}
.container-inline {
div,
label { /* Inline labels and form divs */
display: inline;
}
}
.tips { /* Tips for Drupal's input formats */
}
a.button { /* Buttons used by contrib modules like Media */
@include appearance(button);
}
/*
* Password confirmation
*/
.password-parent,
.confirm-parent {
margin: 0;
}
/*
* Search (search-block-form.tpl.php)
*/
#block-search-form { /* Wrapper for the search form */
}
/*
* Drupal's default login form block
*/
#user-login-form {
text-align: left; /* LTR */
/*
* OpenID
*
* The default styling for the OpenID login link seems to assume Garland's
* styling of list items.
*/
ul { /* OpenID creates a new ul above the login form's links. */
margin-bottom: 0; /* Position OpenID's ul next to the rest of the links. */
}
html.js & li.openid-link,
li.openid-link { /* The "Log in using OpenID" link. */
margin-top: 1.5em;
margin-left: -20px; /* LTR */ /* Un-do some of the padding on the ul list. */
}
li.user-link { /* The "Cancel OpenID login" link. */
margin-top: 1.5em;
}
}
#user-login ul {
margin: 1.5em 0;
}
/*
* Drupal admin tables
*
* We overrode these styles in normalize.css, but restore them for the admin
* section of the site.
*/
form {
th {
text-align: left; /* LTR */
padding-right: 1em; /* LTR */
border-bottom: 3px solid #ccc;
}
tbody {
border-top: 1px solid #ccc;
}
tr.even {
background-color: #fff;
}
table .item-list ul {
margin: 0;
}
}
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
.lt-ie8 tr.even,
.lt-ie8 tr.odd {
th,
td {
border-bottom: 1px solid #ccc; /* IE doesn't display borders on table rows */
}
}
}
/*
* Drupal core wrongly puts this in system.menus.css. Since we override that, add it back.
*/
td.menu-disabled {
background: #ccc;
}

View File

@ -0,0 +1,11 @@
/**
* @file
* RTL companion for the fixed-width.css file.
*/
// First we tell Zen grids to reverse the direction of all floats.
$zen-reverse-all-floats: true;
// Then we import the LTR layout and the directions are automatically reversed.
@import "fixed-width";

View File

@ -0,0 +1,134 @@
/**
* @file
* Positioning for a fixed-width, desktop-centric layout.
*
* Define CSS classes to create a table-free, 3-column, 2-column, or single
* column layout depending on whether blocks are enabled in the left or right
* columns.
*
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
*/
@import "base";
// We are going to create a 980px wide, 5 column grid with 20px gutters between
// columns (applied as 10px of left/right padding on each column).
$zen-column-count: 5;
$zen-gutter-width: 20px;
$zen-grid-width: 980px;
// IE6-7 don't support box-sizing: border-box. We can fix this in 1 of 2 ways:
// - (Preferred) Install the box-sizing polyfill and set the variable below to
// the absolute path URL to the boxsizing.htc file.
// @see https://github.com/Schepp/box-sizing-polyfill
// $box-sizing-polyfill-path: "/path/to/boxsizing.htc";
// - Use the same CSS unit for grid width and gutter width (use px for both or
// use % for both, etc.) and set the box-sizing variable to content-box.
$zen-box-sizing: content-box;
// 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: false;
// $zen-auto-include-flow-item-base: false;
/*
* Center the page.
*/
#page,
.region-bottom {
/* If you want to make the page a fixed width and centered in the viewport,
* this is the standards-compliant way to do that. */
margin-left: auto;
margin-right: auto;
width: $zen-grid-width;
}
/*
* Apply the shared properties of grid items in a single, efficient ruleset.
*/
// See the note about $zen-auto-include-item-base above.
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
@include zen-grid-item-base();
}
/*
* Containers for grid items and flow items.
*/
#header,
#main,
#footer {
@include zen-grid-container();
}
/*
* Navigation bar
*/
#main {
padding-top: 3em; /* Move all the children of #main down to make room. */
position: relative;
}
#navigation {
position: absolute;
top: 0; /* Move the navbar up inside #main's padding. */
height: 3em;
width: $zen-grid-width - $zen-gutter-width;
}
/*
* The layout when there is only one sidebar, the left one.
*/
.sidebar-first {
#content { /* Span 4 columns, starting in 2nd column from left. */
@include zen-grid-item(4, 2);
}
.region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
@include zen-grid-item(1, 1);
}
}
/*
* The layout when there is only one sidebar, the right one.
*/
.sidebar-second {
#content { /* Span 4 columns, starting in 1st column from left. */
@include zen-grid-item(4, 1);
}
.region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
@include zen-grid-item(1, 5);
}
}
/*
* The layout when there are two sidebars.
*/
.two-sidebars {
#content { /* Span 3 columns, starting in 2nd column from left. */
@include zen-grid-item(3, 2);
}
.region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
@include zen-grid-item(1, 1);
}
.region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
@include zen-grid-item(1, 5);
}
}

View File

@ -0,0 +1,11 @@
/**
* @file
* RTL companion for the responsive-sidebars.css file.
*/
// First we tell Zen grids to reverse the direction of all floats.
$zen-reverse-all-floats: true;
// Then we import the LTR layout and the directions are automatically reversed.
@import "responsive-sidebars";

View File

@ -0,0 +1,213 @@
/**
* @file
* Positioning for responsive layout .
*
* Define CSS classes to create a table-free, 3-column, 2-column, or single
* column layout depending on whether blocks are enabled in the left or right
* columns.
*
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
*/
@import "base";
// We are going to create a 980px wide, 5 column grid with 20px gutters between
// columns (applied as 10px of left/right padding on each column).
$zen-column-count: 24;
$zen-gutter-width: 20px;
// IE6-7 don't support box-sizing: border-box. We can fix this in 1 of 3 ways:
// - Drop support for IE 6/7. :-) In the _base.scss, set $legacy-support-for-ie6
// and $legacy-support-for-ie7 to false.
// - (Preferred) Install the box-sizing polyfill and set the variable below to
// the absolute path URL to the boxsizing.htc file.
// @see https://github.com/Schepp/box-sizing-polyfill
// $box-sizing-polyfill-path: "/path/to/boxsizing.htc";
// - Use the same CSS unit for grid width and gutter width (use px for both or
// use % for both, etc.) and set the box-sizing variable to content-box.
// $zen-box-sizing: content-box;
// 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: false;
// $zen-auto-include-flow-item-base: false;
/*
* Center the page.
*/
#page,
.region-bottom {
/* For screen sizes larger than 1200px, prevent excessively long lines of text
by setting a max-width. */
margin-left: auto;
margin-right: auto;
max-width: 960px;
}
/*
* Apply the shared properties of grid items in a single, efficient ruleset.
*/
// See the note about $zen-auto-include-item-base above.
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
@include zen-grid-item-base();
}
/*
* Containers for grid items and flow items.
*/
#header,
#main,
#footer {
@include zen-grid-container();
}
/*
* Navigation bar
*/
@media all and (min-width: 480px) {
#main {
padding-top: 3em; /* Move all the children of #main down to make room. */
position: relative;
}
#navigation {
position: absolute;
top: 0; /* Move the navbar up inside #main's padding. */
height: 3em;
width: $zen-grid-width;
}
}
@media all and (min-width: 480px) and (max-width: 959px) {
/*
* Use 3 grid columns for smaller screens.
*/
$zen-column-count: 4;
/*
* The layout when there is only one sidebar, the left one.
*/
.sidebar-first {
#content { /* Span 2 columns, starting in 2nd column from left. */
@include zen-grid-item(3, 2);
}
.region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
@include zen-grid-item(1, 1);
}
}
/*
* The layout when there is only one sidebar, the right one.
*/
.sidebar-second {
#content { /* Span 2 columns, starting in 1st column from left. */
@include zen-grid-item(3, 1);
}
.region-sidebar-second { /* Span 1 column, starting in 3rd column from left. */
@include zen-grid-item(1, 4);
}
}
/*
* The layout when there are two sidebars.
*/
.two-sidebars {
#content { /* Span 2 columns, starting in 2nd column from left. */
@include zen-grid-item(2, 2);
}
.region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
@include zen-grid-item(1, 1);
}
.region-sidebar-second { /* Start a new row and span all 3 columns. */
@include zen-grid-item(4, 1);
//@include zen-nested-container(); // Since we're making every block in this region be a grid item.
//@include zen-clear();
.block {
@include zen-grid-item-base();
}
.block:nth-child(3n+1) { /* Span 1 column, starting in the 1st column from left. */
@include zen-grid-item(1, 1);
@include zen-clear();
}
.block:nth-child(3n+2) { /* Span 1 column, starting in the 2nd column from left. */
@include zen-grid-item(1, 2);
}
.block:nth-child(3n) { /* Span 1 column, starting in the 3rd column from left. */
@include zen-grid-item(1, 3);
}
}
}
}
@media all and (min-width: 960px) {
/*
* Use 5 grid columns for larger screens.
*/
$zen-column-count: 24;
/*
* The layout when there is only one sidebar, the left one.
*/
.sidebar-first {
#content { /* Span 4 columns, starting in 2nd column from left. */
@include zen-grid-item(19, 6);
}
.region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
@include zen-grid-item(5, 1);
}
}
/*
* The layout when there is only one sidebar, the right one.
*/
.sidebar-second {
#content { /* Span 4 columns, starting in 1st column from left. */
@include zen-grid-item(3, 1);
}
.region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
@include zen-grid-item(1, 4);
}
}
/*
* The layout when there are two sidebars.
*/
.two-sidebars {
#content { /* Span 3 columns, starting in 2nd column from left. */
@include zen-grid-item(2, 2);
}
.region-sidebar-first { /* Span 1 column, starting in 1st column from left. */
@include zen-grid-item(1, 1);
}
.region-sidebar-second { /* Span 1 column, starting in 5th column from left. */
@include zen-grid-item(1, 4);
}
}
}

View File

@ -0,0 +1,30 @@
/**
* @file
* RTL companion for the navigation.css file.
*/
@import "base";
ul li.collapsed {
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*list-style-image: url(../images/menu-collapsed-rtl.png);
}
list-style-image: inline-image("menu-collapsed-rtl.png");
}
#navigation {
ul.links, /* Main menu and secondary menu links */
ul.menu { /* Menu block links */
text-align: right;
li { /* A simple method to get navigation links to appear in one line. */
float: right;
padding: 0 0 0 10px;
}
}
}
#secondary-menu {
float: left;
}

View File

@ -0,0 +1,103 @@
/**
* @file
* Navigation Styling
*/
@import "base";
/*
* Markup generated by theme_menu_tree().
*/
ul li.expanded {
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*list-style-image: url(../images/menu-expanded.png);
}
list-style-image: inline-image("menu-expanded.png");
list-style-type: circle;
}
ul li.collapsed {
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*list-style-image: url(../images/menu-collapsed.png); /* LTR */
}
list-style-image: inline-image("menu-collapsed.png"); /* LTR */
list-style-type: disc;
}
ul li.leaf {
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*list-style-image: url(../images/menu-leaf.png);
}
list-style-image: inline-image("menu-leaf.png");
list-style-type: square;
}
/*
* The active item in a Drupal menu
*/
li a.active {
color: #000;
}
/*
* Navigation bar
*/
#navigation {
/* overflow: hidden; */ /* Sometimes you want to prevent overlapping with main div. */
.block {
margin-bottom: 0;
}
.block-menu .block-title,
.block-menu-block .block-title {
@include element-invisible();
}
ul.links, /* Main menu and secondary menu links */
ul.menu { /* Menu block links */
margin: 0;
padding: 0;
text-align: left; /* LTR */
li { /* A simple method to get navigation links to appear in one line. */
float: left; /* LTR */
padding: 0 10px 0 0; /* LTR */
list-style-type: none;
list-style-image: none;
}
}
}
.region-navigation {
}
/*
* Main menu and Secondary menu links
*/
#main-menu {
}
#secondary-menu {
float: right; /* LTR */
}
/*
* Menu blocks
*/
.block-menu {
}
/*
* "Menu block" blocks
*
* Drupal core has limited ways in which it can display its menus. To get around
* these limitations, see http://drupal.org/project/menu_block
*/
.block-menu-block {
}

View File

@ -0,0 +1,64 @@
/**
* @file
* Node Styling
*
* Style anything that isn't in the $content variable.
*/
@import "base";
.node { /* Node wrapper */
.preview & { /* Preview of the content before submitting new or updated content */
/* background-color: #ffffea; */ /* Drupal core uses a #ffffea background */
}
.node-title { /* Node title */
}
.user-picture { /* The picture of the node author */
}
.submitted { /* The "posted by" information */
}
.content { /* Node's content wrapper */
}
ul.links { /* Node links. See also the ul.links declaration in the pages.css. */
}
}
.node-promoted { /* A node that has been promoted to the front page */
}
.node-sticky { /* A sticky node (displayed before others in a list) */
}
.node-by-viewer { /* A node created by the current user */
}
.node-teaser { /* A node displayed as teaser */
}
/*
* All nodes are given a node-FOO class that describes the type of content that
* it is. If you create a new content type called "my-custom-type", it will
* receive a "node-my-custom-type" class.
*/
.node-page { /* Page content node */
}
.node-article { /* Article content node */
}
.node-unpublished { /* Unpublished nodes */
/* background-color: #fff4f4; */ /* Drupal core uses a #fff4f4 background */
p.unpublished { /* The word "Unpublished" displayed underneath the content. */
@include unpublished-div;
}
}

View File

@ -0,0 +1,50 @@
/* normalize-rtl.css - RTL language extension of normalize.scss. */
@import "base";
/* =============================================================================
Lists
========================================================================== */
/*
* Addresses margins set differently in IE6/7
*/
dd {
margin: 0 $indent-amount 0 0;
}
/*
* Addresses paddings set differently in IE6/7
*/
menu,
ol,
ul,
.item-list ul /* Drupal override */ {
padding: 0 $indent-amount 0 0;
}
/* =============================================================================
Forms
========================================================================== */
/*
* 3. Corrects alignment displayed oddly in IE6/7
*/
legend {
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*margin-left: 0;
*margin-right: -7px; /* 3 */
}
}
/* =============================================================================
Tables
========================================================================== */
th {
text-align: right;
}

656
themes/openstack/sass/normalize.scss vendored Normal file
View File

@ -0,0 +1,656 @@
/* normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
/* =============================================================================
Normalize.css is intended to be used as an alternative to CSS resets.
It is suggested that you read through the normalize.css file and customise it
to meet the design requirements of a project rather including it as a "black
box". @see http://nicolasgallagher.com/about-normalize-css/
Also: @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/
@see http://snook.ca/archives/html_and_css/no_css_reset/
========================================================================== */
@import "base";
/* =============================================================================
HTML5 display definitions
========================================================================== */
/*
* Corrects block display not defined in IE6/7/8/9 & FF3
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
display: block;
}
/*
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
*/
audio,
canvas,
video {
display: inline-block;
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*display: inline;
*zoom: 1;
}
}
/*
* Prevents modern browsers from displaying 'audio' without controls
* Remove excess height in iOS5 devices
*/
audio:not([controls]) {
display: none;
height: 0;
}
/*
* Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
* Known issue: no IE6 support
*/
[hidden] {
display: none;
}
/* =============================================================================
Base
========================================================================== */
/* Instead of relying on the fonts that are available on a user's computer, you
can use web fonts which, like images, are resources downloaded to the user's
browser. Because of the bandwidth and rendering resources required, web fonts
should be used with care.
Numerous resources for web fonts can be found on Google. Here are a few
websites where you can find Open Source fonts to download:
- http://www.fontsquirrel.com/fontface
- http://www.theleagueofmoveabletype.com
In order to use these fonts, you will need to convert them into formats
suitable for web fonts. We recommend the free-to-use Font Squirrel's
Font-Face Generator:
http://www.fontsquirrel.com/fontface/generator
The following is an example @font-face declaration. This font can then be
used in any ruleset using a property like this: font-family: Example, serif;
Since we're using Sass, you'll need to declare your font faces here, then you
can add them to the font variables in the _base.scss partial.
*/
/*
@font-face {
font-family: 'Example';
src: url('../fonts/example.eot');
src: url('../fonts/example.eot?iefix') format('eot'),
url('../fonts/example.woff') format('woff'),
url('../fonts/example.ttf') format('truetype'),
url('../fonts/example.svg#webfontOkOndcij') format('svg');
font-weight: normal;
font-style: normal;
}
*/
/*
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
* http://clagnut.com/blog/348/#c790
* 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
*/
html {
font-size: 100% * ($base-font-size / 16px); /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
/* Establishes a vertical rhythm unit using $base-line-height. */
@include adjust-leading-to(1);
}
/*
* Addresses font-family inconsistency between 'textarea' and other form elements.
*/
html,
button,
input,
select,
textarea {
font-family: $base-font-family;
}
/*
* Addresses margins handled incorrectly in IE6/7
*/
body {
margin: 0;
}
/* =============================================================================
Links
========================================================================== */
/*
* The order of link states are based on Eric Meyer's article:
* http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
*/
a:link {
}
a:visited {
}
a:hover,
a:focus {
}
a:active {
}
/*
* Addresses outline displayed oddly in Chrome
*/
a:focus {
outline: thin dotted;
}
/*
* Improves readability when focused and also mouse hovered in all browsers
* people.opera.com/patrickl/experiments/keyboard/test
*/
a:hover,
a:active {
outline: 0;
}
/* =============================================================================
Typography
To achieve a pleasant vertical rhythm, we use Compass' Vertical Rhythm mixins
so that the line height of our base font becomes the basic unit of vertical
measurement. We use multiples of that unit to set the top and bottom margins
for our block level elements and to set the line heights of any fonts.
For more information, see http://24ways.org/2006/compose-to-a-vertical-rhythm
========================================================================== */
/*
* Addresses font sizes and margins set differently in IE6/7
* Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
*/
h1 {
/* Sets the font-size and line-height while keeping a proper vertical rhythm. */
@include adjust-font-size-to( $h1-font-size );
/* Sets 1 unit of vertical rhythm on the top and bottom margins. */
@include leader(1, $h1-font-size);
@include trailer(1, $h1-font-size);
}
h2 {
@include adjust-font-size-to( $h2-font-size );
@include leader(1, $h2-font-size);
@include trailer(1, $h2-font-size);
}
h3 {
@include adjust-font-size-to( $h3-font-size );
@include leader(1, $h3-font-size);
@include trailer(1, $h3-font-size);
}
h4 {
@include adjust-font-size-to( $h4-font-size );
@include leader(1, $h4-font-size);
@include trailer(1, $h4-font-size);
}
h5 {
@include adjust-font-size-to( $h5-font-size );
@include leader(1, $h5-font-size);
@include trailer(1, $h5-font-size);
}
h6 {
@include adjust-font-size-to( $h6-font-size );
@include leader(1, $h6-font-size);
@include trailer(1, $h6-font-size);
}
/* Thematic break */
hr {
height: 1px;
border: 1px solid #666;
padding-bottom: -1px;
margin: rhythm(1) 0;
}
/*
* Addresses styling not present in IE7/8/9, S5, Chrome
*/
abbr[title] {
border-bottom: 1px dotted;
cursor: help;
white-space: nowrap;
}
/*
* Addresses style set to 'bolder' in FF3+, S4/5, Chrome
*/
b,
strong {
font-weight: bold;
}
blockquote {
/* Sets 1 unit of vertical rhythm on the top and bottom margin. */
margin: rhythm(1) $indent-amount;
}
/*
* Addresses styling not present in S5, Chrome
*/
dfn {
font-style: italic;
}
/*
* Addresses styling not present in IE6/7/8/9
*/
mark {
background: #ff0;
color: #000;
}
/*
* Addresses margins set differently in IE6/7
*/
p,
pre {
/* Sets 1 unit of vertical rhythm on the top and bottom margin. */
margin: rhythm(1) 0;
}
/*
* Corrects font family set oddly in IE6, S4/5, Chrome
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
*/
pre,
code,
kbd,
samp,
tt,
var {
font-family: $font-monospace; /* The $font-monospace value ends with ", serif". */
@if $legacy-support-for-ie6 {
_font-family: 'courier new', monospace;
}
@include adjust-font-size-to( 1 * $base-font-size );
}
/*
* Improves readability of pre-formatted text in all browsers
*/
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
/*
* 1. Addresses CSS quotes not supported in IE6/7
* 2. Addresses quote property not supported in S4
*/
/* 1 */
q {
quotes: none;
}
/* 2 */
q:before,
q:after {
content: '';
content: none;
}
/* @todo Determine how big element affects vertical rhythm. */
small {
font-size: 75%;
}
/*
* Prevents sub and sup affecting line-height in all browsers
* gist.github.com/413930
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* =============================================================================
Lists
========================================================================== */
/*
* Addresses margins set differently in IE6/7
*/
dl,
menu,
ol,
ul,
.item-list ul /* Drupal override */ {
/* Sets 1 unit of vertical rhythm on the top and bottom margin. */
margin: rhythm(1) 0;
}
.item-list ul li { /* Drupal override */
margin: 0;
}
dd {
margin: 0 0 0 $indent-amount; /* LTR */
}
ul, ol, .item-list ul, .item-list ol {
ul, ol {
margin: 0; /* Turn off margins on nested lists. */
}
}
/*
* Addresses paddings set differently in IE6/7
*/
menu,
ol,
ul,
.item-list ul /* Drupal override */ {
padding: 0 0 0 $indent-amount; /* LTR */
}
/*
* Corrects list images handled incorrectly in IE7
*/
nav ul,
nav ol {
list-style: none;
list-style-image: none;
}
/* =============================================================================
Embedded content
========================================================================== */
/*
* 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
* 2. Improves image quality when scaled in IE7
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
*/
img {
border: 0; /* 1 */
-ms-interpolation-mode: bicubic; /* 2 */
/* vertical-align: bottom; */ /* Suppress the space beneath the baseline */
/* Responsive images */
/* @todo Add responsive embedded video. */
max-width: 100%;
height: auto;
}
/*
* Corrects overflow displayed oddly in IE9
*/
svg:not(:root) {
overflow: hidden;
}
/* =============================================================================
Figures
========================================================================== */
/*
* Addresses margin not present in IE6/7/8/9, S5, O11
*/
figure {
margin: 0;
}
/* =============================================================================
Forms
========================================================================== */
/*
* Corrects margin displayed oddly in IE6/7
*/
form {
margin: 0;
}
/*
* Define consistent border, margin, and padding
*/
fieldset {
border-color: #c0c0c0;
margin: 0 2px;
/* Apply borders and padding that keep the vertical rhythm. */
@include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35);
@include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
@include apply-side-rhythm-border(left, $width: 1px, $lines: 0.65);
@include apply-side-rhythm-border(right, $width: 1px, $lines: 0.65);
}
/*
* 1. Corrects color not being inherited in IE6/7/8/9
* 2. Corrects text not wrapping in FF3
* 3. Corrects alignment displayed oddly in IE6/7
*/
legend {
border: 0; /* 1 */
padding: 0;
white-space: normal; /* 2 */
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*margin-left: -7px; /* 3 */ /* LTR */
}
}
/*
* 1. Corrects font size not being inherited in all browsers
* 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
* 3. Improves appearance and consistency in all browsers
*/
button,
input,
select,
textarea {
font-size: 100%; /* 1 */
margin: 0; /* 2 */
vertical-align: baseline; /* 3 */
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*vertical-align: middle; /* 3 */
}
}
/*
* Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
*/
button,
input {
line-height: normal; /* 1 */
}
/*
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
* 2. Corrects inability to style clickable 'input' types in iOS
* 3. Removes inner spacing in IE7 without affecting normal text inputs
* Known issue: inner spacing remains in IE6
*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer; /* 1 */
-webkit-appearance: button; /* 2 */
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*overflow: visible; /* 3 */
}
}
/*
* Re-set default cursor for disabled elements
*/
button[disabled],
input[disabled] {
cursor: default;
}
/*
* 1. Addresses box sizing set to content-box in IE8/9
* 2. Removes excess padding in IE8/9
* 3. Removes excess padding in IE7
Known issue: excess padding remains in IE6
*/
input[type="checkbox"],
input[type="radio"] {
@include box-sizing(border-box); /* 1 */
padding: 0; /* 2 */
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
*height: 13px; /* 3 */
*width: 13px; /* 3 */
}
}
/*
* 1. Addresses appearance set to searchfield in S5, Chrome
* 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
@include box-sizing(content-box); /* 2 */
}
/*
* Removes inner padding and search cancel button in S5, Chrome on OS X
*/
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
/*
* Removes inner padding and border in FF3+
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/*
* 1. Removes default vertical scrollbar in IE6/7/8/9
* 2. Improves readability and alignment in all browsers
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* =============================================================================
Tables
========================================================================== */
/*
* Remove most spacing between table cells
*/
table {
border-collapse: collapse;
border-spacing: 0;
/* width: 100%; */ /* Prevent cramped-looking tables */
/* Add vertical rhythm margins. */
@include leader(1);
@include trailer(1);
}
/*
* Drupal provides table styling which is only useful for its admin section
* forms, so we override this default CSS. (We set it back in forms.css.)
*/
th {
text-align: left; /* LTR */
padding: 0;
border-bottom: none;
}
tbody {
border-top: none;
}

View File

@ -0,0 +1,263 @@
@import "compass/css3";
@import "compass/layout.scss";
@import "compass/typography";
@import "compass/utilities";
@import "base";
/** COLORS **/
$basicColor: #535353;
$blue0: #F2F6F7;
$blue1: #E3EDED;
$blue2: #c4e0e9;
$blue3: #254C7C;
$blue4: #264D69;
$red: #BC1518;
$green: #D5EFD4;
/** MIXINS **/
@mixin font($size, $color, $weight){
font-size: $size;
color: $color;
font-weight: $weight;
}
@mixin button($padding, $radius){
@include inline-block;
padding: $padding;
@include border-radius($radius);
cursor: pointer;
}
@mixin buttonGrey{
padding: 5px 15px;
text-decoration: none;
font-family: "PT Sans", serif;
border: 1px solid #e2e2e2;
border-color: #e2e2e2 #bababa #a0a0a0 #bababa;
cursor: pointer;
line-height: 1;
@include inline-block;
@include background-image(linear-gradient(white, #F3F3F3 50%, #EBEBEB));
@include box-shadow(rgba(0,0,0, 0.2) 0px 1px 2px);
@include text-shadow(rgba(255,255,255, 1) 0px 1px 1px);
@include border-radius(3px);
@include font(13px, #000, normal);
@include transition (color 1s ease-out);
&:hover, &:active{
@include box-shadow(rgba(0,0,0, 0) 0px 0px 0px);
border-color: #636363 #ababab #ababab #ababab;
@include background-image(linear-gradient(#bebebe, #eeeeee));
-webkit-transition: none;
}
}
@mixin buttonBlue{
background: #CEE1E8;
color: #325C6B;
padding: 4px 15px;
margin-right: 5px;
font-size: 120%;
@include border-radius(5px);
@include inline-block;
cursor: pointer;
&:hover, &:active{
background: #A9D6E7;
text-decoration: none;
}
}
/** BASIC STLYES **/
a{
@include link-colors($red, #000, #000, $red, #000);
text-decoration: none;
&:hover{
text-decoration: underline;
}
}
p{
margin: 0 0 1.5em;
}
h1{
@include font(24px, $blue4, normal);
}
h2{
@include font(18px, $blue4, normal);
}
h3{
@include font(16px, $red, normal);
}
.block{
margin: 0px;
}
/** LAYOUT **/
body{
border-top: 3px solid #255e6e;
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
@include font(13px, $basicColor, normal);
background: #fff;
line-height: 1.5;
#message_bar{
background: $blue1;
border-bottom: 1px solid white;
padding: 10px;
font-family: 'PT Sans', serif;
@include text-shadow(rgba(255,255,255, 1) 0px 1px 1px);
@include box-shadow(rgba(#CCCCCC, 1) 1px 1px 1px);
@include font(1.3em, $blue4, normal);
.block{
margin: 0px auto;
padding: 0px;
max-width: 960px;
p{
margin: 0px 0px 0px 0px;
padding: 0px;
@include inline-block;
a{
@include buttonGrey;
margin: 0px 10px;
}
}
}
}
#page{
position: relative;
#header{
margin-top: 20px;
height: 70px;
.logoHolder{
padding-top: 16px;
@include inline-block;
}
.region-header{
background: url("../images/header-line.gif") left bottom repeat-x;
@include inline-block;
padding-top: 30px;
right: 0px;
position: absolute;
width: 100%;
max-width: 75%;
min-width: 25%;
.block-commons-utility-links{
position: absolute;
top: 0px;
right: 0px;
.commons-utility-links{
li{
a{
@include font(12px, #000, normal);
padding: 0;
&:hover, &.active{
@include font(12px, $red, normal);
border: none;
padding: 0;
}
}
}
}
}
ul{
padding: 0;
margin: 0;
li{
list-style: none;
@include inline-block;
margin-right: 20px;
a{
display: block;
padding: 5px 0;
text-decoration: none;
@include font(14px, black, normal);
&.active{
border-bottom: 3px solid $red;
padding: 4px 0px 1px 0px;
@include font(14px, $red, normal);
}
}
}
}
}
}
#main{
#content{
}
aside{
.sidebar{
ul{
padding: 0px;
margin: 0px;
padding-right: 20px;
li{
list-style: none;
margin-bottom: 5px;
padding: 0;
a{
display: block;
padding: 10px 20px;
text-decoration: none;
@include font(12px, black, normal);
background: $blue1;
text-align: right;
&:hover{
background: $blue2;
@include transition (background-color 0.5s ease-out);
}
}
}
}
}
}
}
#footer{
margin: 40px 0;
padding: 20px 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
@include clearfix;
.block{
float: left;
width: 16%;
.block-title{
@include font(15px, $red, normal);
margin-bottom: 20px;
}
ul{
padding: 0;
margin: 0px;
li{
list-style: none;
}
}
}
#block-block-6{
width: 36%;
textarea{
width: 90%;
height: 80px;
margin-bottom: 10px;
}
}
}
}
}
button, input[type="button"], input[type="reset"], input[type="submit"]{
@include buttonGrey;
}

View File

@ -0,0 +1,27 @@
/**
* @file
* RTL companion for the pages.css file.
*/
@import "base";
/*
* Header
*/
#logo { /* Wrapping link for logo */
float: right;
}
/*
* Content
*/
ul.inline li { /* List of links */
display: inline-block; /* Bug in Safari causes display: inline to fail. */
padding: 0 0 0 1em;
}
span.field-label { /* The inline field label used by the Fences.module */
padding: 0 0 0 1em;
}

View File

@ -0,0 +1,239 @@
/**
* @file
* Page Styling
*
* Style the markup found in page.tpl.php. Also includes some styling of
* miscellaneous Drupal elements that appear in the $content variable, such as
* ul.links, .pager, .more-link, etc.
*/
@import "base";
/*
* Body
*/
body {
margin: 0;
padding: 0;
}
#page {
}
/*
* The skip-link link will be completely hidden until a user tabs to the link.
* See the element-focusable rule in system.base.css.
*/
#skip-link {
margin: 0;
a,
a:visited {
display: block;
width: 100%;
padding: 2px 0 3px 0;
text-align: center;
background-color: #666;
color: #fff;
}
}
/*
* Header
*/
#header {
}
#logo { /* Wrapping link for logo */
float: left; /* LTR */
margin: 0;
padding: 0;
img {
vertical-align: bottom;
}
}
#name-and-slogan { /* Wrapper for website name and slogan */
float: left;
}
#site-name { /* The name of the website */
margin: 0;
font-size: 2em;
line-height: 1.5em;
a:link,
a:visited {
color: #000;
text-decoration: none;
}
a:hover,
a:focus {
text-decoration: underline;
}
}
#site-slogan { /* The slogan (or tagline) of a website */
margin: 0;
font-size: 1em;
}
.region-header { /* Wrapper for any blocks placed in the header region */
clear: both; /* Clear the logo */
}
/*
* Main (container for everything else)
*/
#main {
}
/*
* Content
*/
#content {
}
.region-highlighted {
}
.breadcrumb { /* The path to the current page in the form of a list of links */
ol {
margin: 0;
padding: 0;
}
li {
display: inline;
list-style-type: none;
margin: 0;
padding: 0;
}
}
h1.title, /* The title of the page */
h2.node-title, /* Title of a piece of content when it is given in a list of content */
h2.block-title, /* Block title */
h2.title, /* Comment section heading */
h2.comment-form, /* Comment form heading */
h3.title { /* Comment title */
margin: 0;
}
tr.even { /* Some tables have rows marked even or odd. */
/* background-color: #eee; */ /* Drupal core uses a #eee background */
}
tr.odd {
/* background-color: #eee; */ /* Drupal core uses a #eee background */
}
div.messages { /* Important messages (status, warning, and error) for the user. See also the declarations in messages.css. */
margin: 1.5em 0; /* Drupal core uses "6px 0" margin */
ul {
margin-top: 0;
margin-bottom: 0;
}
}
div.status { /* Normal priority messages */
}
div.warning,
tr.warning { /* Medium priority messages */
/* border: 1px solid #f0c020; */ /* Drupal core uses: 1px solid #f0c020 */
}
div.error,
tr.error { /* High priority messages. See also the .error declaration below. */
}
.error { /* Errors that are separate from div.messages status messages. */
/* color: #e55; */ /* Drupal core uses a #e55 background */
}
.warning { /* Warnings that are separate from div.messages status messages. */
/* color: #e09010; */ /* Drupal core uses a #e09010 background */
}
.tabs { /* See also the tabs.css file. */
}
.region-help { /* Help text on a page */
}
.more-help-link { /* Link to more help */
}
.region-content { /* Wrapper for the actual page content */
}
ul.inline { /* List of links generated by theme_links() */
display: inline;
padding: 0;
li {
display: inline;
list-style-type: none;
padding: 0 1em 0 0; /* LTR */
}
}
span.field-label { /* The inline field label used by the Fences module */
padding: 0 1em 0 0; /* LTR */
}
.item-list .pager { /* A list of page numbers when more than 1 page of content is available */
padding: 0;
li { /* Each page number in the pager list */
padding: 0 0.5em;
}
}
.feed-icon { /* The link to the RSS or Atom feed for the current list of content */
}
.more-link { /* Aggregator, blog, and forum more link */
}
/*
* First sidebar (on left in LTR languages, on right in RTL)
*
* Remember to NOT add padding or margin to your .region-sidebar-first
* (see the layout.css file.)
*/
.region-sidebar-first {
}
/*
* Second sidebar (on right in LTR languages, on left in RTL)
*
* Remember to NOT add padding or margin to your .region-sidebar-second
* (see the layout.css file.)
*/
.region-sidebar-second {
}
/*
* Footer
*/
#footer {
}
/*
* Page bottom
*/
.region-bottom { /* Wrapper for any blocks placed in the page bottom region */
}

View File

@ -0,0 +1,73 @@
/**
* @file
* Print styling
*
* We provide some sane print styling for Drupal using Zen's layout method.
*/
@import "base";
@media print {
a:link,
a:visited { /* underline all links */
text-decoration: underline !important;
#site-name & { /* Don't underline header */
text-decoration: none !important;
}
}
#content {
a[href]:after { /* Add visible URL after links. */
content: " (" attr(href) ")";
font-weight: normal;
font-size: $base-font-size;
}
a[href^="javascript:"]:after,
a[href^="#"]:after { /* Only display useful links. */
content: "";
}
abbr[title]:after { /* Add visible title after abbreviations. */
content: " (" attr(title) ")";
}
}
#content { /* Un-float the content */
float: none !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}
body,
#page,
#main,
#content { /* Turn off any background colors or images */
color: #000;
background-color: transparent !important;
background-image: none !important;
}
#skip-link,
#toolbar,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer,
.breadcrumb,
.tabs,
.action-links,
.links,
.book-navigation,
.forum-topic-navigation,
.pager,
.feed-icons { /* Hide sidebars and nav elements */
visibility: hidden;
display: none;
}
} /* End @media print */

View File

@ -0,0 +1,20 @@
/**
* @file
* RTL companion for the tabs.css file.
*/
@import "base";
ul.primary,
ul.secondary {
li {
float: right;
}
}
ul.primary {
li {
margin: 0.5em 3px 0 0;
}
}

View File

@ -0,0 +1,118 @@
/**
* @file
* Tabs Styling
*
* Adds styles for the primary and secondary tabs.
*
* Compare this with default CSS found in the system module's stylesheet (a copy
* of which is in drupal7-reference.css.)
*/
@import "base";
// Some variables to make altering the styling easier.
$tabs-container-bg: #fff;
$tabs-border: #bbb;
/*
* Basic positioning styles shared by primary and secondary tabs.
*/
ul.primary,
ul.secondary {
@include clearfix;
border-bottom: 1px solid $tabs-border;
list-style: none;
margin: 1em 0 1.5em;
padding: 0 2px;
white-space: nowrap;
li {
float: left; /* LTR */
margin: 0.5em 3px 0;
}
a {
border: 1px solid #e9e9e9;
border-right: 0;
border-bottom: 0;
display: block;
line-height: 1.5em;
text-decoration: none;
}
}
/*
* Primary tabs
*/
ul.primary {
li {
@include border-top-radius(4px);
@include single-text-shadow(#fff, 1px, 1px, 0);
border: 1px solid $tabs-border;
border-bottom: 0;
margin: 0.5em 0 0 3px; /* LTR */
}
li.active {
border-bottom: 1px solid $tabs-container-bg;
margin-bottom: -1px; /* Overlap the ul's border. */
}
a:link,
a:visited {
@include border-top-radius(4px);
@include transition(background-color 0.3s);
color: #333;
background-color: #dedede;
letter-spacing: 1px;
padding: 0 1em;
text-align: center;
}
a:hover,
a:focus {
background-color: #e9e9e9;
border-color: #f2f2f2;
}
a.active {
background-color: transparent;
@include filter-gradient(rgba(#e9e9e9, 1), rgba(#e9e9e9, 0));
@include background-image(linear-gradient(rgba(#e9e9e9, 1), rgba(#e9e9e9, 0)));
border-color: #fff;
}
}
/*
* Secondary tabs
*/
ul.secondary {
font-size: .9em;
margin-top: -1.5em; /* Collapse bottom margin of ul.primary. */
padding-bottom: .5em;
a:link,
a:visited {
@include border-radius(.75em);
@include transition(background-color 0.3s);
@include single-text-shadow(#fff, 1px, 1px, 0);
background-color: #f2f2f2;
color: #666;
padding: 0 .5em;
}
a:hover,
a:focus {
background-color: #dedede;
border-color: #999;
color: #333;
}
a.active,
a:active {
@include single-text-shadow(#333, 1px, 1px, 0);
background-color: #666;
border-color: #000;
color: #fff;
}
}

View File

@ -0,0 +1,45 @@
/**
* @file
* Views Styling
*/
@import "base";
/*
* Views' admin tabs
*
* The views admin tabs use the same classes as the secondary tabs. We prevent
* some of our tab styling from bleeding into (and breaking) the Views admin
* pages. If your sub-theme isn't used for admin pages, you can remove this
* entire section.
*/
.views-displays .secondary {
li {
float: none;
margin: 0 6px 0;
}
a:link,
a:visited {
@include single-text-shadow(none);
padding: 2px 7px 3px;
}
.open > a {
@include border-radius(7px 7px 0 0);
&:hover {
color: #333;
}
}
.action-list li {
margin: 0;
&:first-child {
@include border-radius(0 7px 0 0);
}
&:last-child {
@include border-radius(0 0 7px 7px);
}
}
}

View File

@ -0,0 +1,28 @@
/**
* @file
* Wireframes Styling
*
* Add wireframes to the basic layout elements.
*/
@import "base";
.with-wireframes {
#header,
#main,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer,
.region-bottom {
outline: 1px solid #ccc;
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
.lt-ie8 & {
border: 1px solid #ccc; /* IE6/7 do not support the outline property. */
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More