Openstack theme
Replace Drupal Commons by Openstack theme. Change-Id: Ifc18969c3e089aa1ff11a3d98daac1442b444bef
@ -455,6 +455,10 @@ projects[leaflet_more_maps][subdir] = "contrib"
|
||||
|
||||
; Contributed themes.
|
||||
|
||||
projects[zen][type] = "theme"
|
||||
projects[zen][subdir] = "contrib"
|
||||
projects[zen][version] = "5.4"
|
||||
|
||||
projects[adaptivetheme][type] = "theme"
|
||||
projects[adaptivetheme][subdir] = "contrib"
|
||||
projects[adaptivetheme][download][type] = "git"
|
||||
|
@ -38,7 +38,7 @@ function groups_requirements($phase) {
|
||||
*/
|
||||
function groups_install() {
|
||||
// Enable the Origins theme and set it as the default.
|
||||
theme_enable(array('adaptivetheme', 'commons_origins', 'adaptivetheme_admin'));
|
||||
theme_enable(array('adaptivetheme', 'commons_origins', 'adaptivetheme_admin', 'openstack'));
|
||||
|
||||
// The Bartik theme is automatically enabled during installation. Disable it.
|
||||
db_update('system')
|
||||
@ -48,7 +48,7 @@ function groups_install() {
|
||||
->execute();
|
||||
|
||||
// Set the default and administration themes.
|
||||
variable_set('theme_default', 'commons_origins');
|
||||
variable_set('theme_default', 'openstack');
|
||||
// Set a default administrative theme:
|
||||
variable_set('admin_theme', 'adaptivetheme_admin');
|
||||
variable_set('node_admin_theme', FALSE);
|
||||
@ -59,23 +59,10 @@ function groups_install() {
|
||||
// Set a default user avatar.
|
||||
/*commons_set_default_avatar();*/
|
||||
|
||||
// Place site blocks in the menu_bar and header regions.
|
||||
$menu_block = array(
|
||||
'module' => 'system',
|
||||
'delta' => 'main-menu',
|
||||
'theme' => 'commons_origins',
|
||||
'visibility' => 0,
|
||||
'region' => 'menu_bar',
|
||||
'status' => 1,
|
||||
'pages' => '',
|
||||
'title' => '<none>',
|
||||
);
|
||||
drupal_write_record('block', $menu_block);
|
||||
|
||||
$search_block = array(
|
||||
'module' => 'search',
|
||||
'delta' => 'form',
|
||||
'theme' => 'commons_origins',
|
||||
'theme' => 'openstack',
|
||||
'visibility' => 0,
|
||||
'region' => 'header',
|
||||
'status' => 1,
|
||||
|
131
themes/openstack/README.txt
Normal file
@ -0,0 +1,131 @@
|
||||
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 https://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 https://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:
|
||||
https://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" and
|
||||
"responsive-rtl" css/sass files and edit your sub-theme's styles.css
|
||||
or styles.scss file and replace the reference to "responsive" with
|
||||
"fixed".
|
||||
|
||||
For example, edit foo/sass/styles.scss and change this line:
|
||||
@import "layouts/responsive";
|
||||
to:
|
||||
@import "layouts/fixed";
|
||||
|
||||
Alternatively, if you are more familiar with a different CSS layout method,
|
||||
such as GridSetApp or 960.gs, etc., you can replace the
|
||||
"layouts/responsive" line in your styles.scss 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 theme cache.
|
||||
|
||||
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 https://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: https://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:
|
||||
https://drupal.org/documentation/theme/zen
|
||||
and Drupal 7's Theme Guide online at:
|
||||
https://drupal.org/theme-guide
|
56
themes/openstack/config.rb
Normal 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} : {}
|
154
themes/openstack/css/README.txt
Normal file
@ -0,0 +1,154 @@
|
||||
ZEN'S STYLESHEETS
|
||||
-----------------
|
||||
|
||||
Don't panic!
|
||||
|
||||
There are 11 CSS files in this sub-theme, but it's not as bad as it first seems:
|
||||
- There are 5 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 inside the "layouts" folder,
|
||||
"responsive.css" and "fixed.css", but only one of them is used at any time.
|
||||
- One is just a print stylesheet!
|
||||
|
||||
That leaves just 4 CSS files!
|
||||
- styles.css
|
||||
- normalize.css
|
||||
- layouts/responsive.css
|
||||
- components/misc.css
|
||||
|
||||
Now go look in the styles.css file. That file simply includes (via @import) the
|
||||
other files. It also shows how the files in your sub-theme can be categorized
|
||||
with the SMACSS technique. http://smacss.com
|
||||
|
||||
|
||||
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 the styles.css 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.
|
||||
|
||||
|
||||
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 @import declarations in your sub-theme's
|
||||
styles.css file. This structure was crafted based on several years of experience
|
||||
theming Drupal websites.
|
||||
|
||||
- styles.css:
|
||||
This is the only CSS file listed in your sub-theme's .info file. Its purpose
|
||||
is to @include all the other stylesheets in your sub-theme. When CSS
|
||||
aggregation is off, this file will be loaded by web browsers first before they
|
||||
begin to load the @include'd stylesheets; this results in a delay to load all
|
||||
the stylesheets, a serious front-end performance problem. However, it does
|
||||
make it easy to debug your website during development. To remove this
|
||||
performance problem, turn on Drupal's CSS aggregation after development is
|
||||
completed. See the note above about "Bandwidth Optimization".
|
||||
|
||||
- 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; just make sure
|
||||
you set all the styles for all HTML elements after you reset them. In SMACSS,
|
||||
this file contains all the "base rules". http://smacss.com/book/type-base
|
||||
|
||||
- layouts/responsive.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.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.
|
||||
|
||||
In SMACSS, this file contains the "layout rules".
|
||||
http://smacss.com/book/type-layout
|
||||
|
||||
- layouts/fixed.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.
|
||||
|
||||
In SMACSS, this file contains the "layout rules".
|
||||
http://smacss.com/book/type-layout
|
||||
|
||||
- components/misc.css:
|
||||
This file contains some common component styles needed for Drupal, such as:
|
||||
- Tabs: contains actual styling for Drupal tabs, a common Drupal element that
|
||||
is often neglected by site designers. Zen provides some basic styling which
|
||||
you are free to use or to rip out and replace.
|
||||
- Various page elements: page styling for the markup in page.tpl.php.
|
||||
- Blocks: styling for the markup in block.tpl.php.
|
||||
- Menus: styling for your site's menus.
|
||||
- Comments: styling for the markup in comment-wrapper.tpl.php and
|
||||
comments.tpl.php.
|
||||
- forms: styling for the markup in various Drupal forms.
|
||||
- fields: styling for the markup produced by theme_field().
|
||||
|
||||
In SMACSS, this file contains "module rules". You can add additional files
|
||||
if you'd like to further refine your stylesheet organization. Just add them
|
||||
to the styles.css file. http://smacss.com/book/type-layout
|
||||
|
||||
- print.css:
|
||||
The print styles for all markup.
|
||||
|
||||
In SMACSS, this file contains a media query state that overrides modular
|
||||
styles. This means it most closely related to "module rules".
|
||||
http://smacss.com/book/type-module
|
||||
|
||||
In these stylesheets, we have included just the classes and IDs needed to apply
|
||||
a minimum amount of styling. To learn many more useful Drupal core selectors,
|
||||
check Zen's online documentation: https://drupal.org/node/1707736
|
||||
|
||||
|
||||
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:
|
||||
https://drupal.org/project/conditional_styles
|
||||
|
||||
|
||||
DRUPAL CORE'S STYLESHEETS
|
||||
-------------------------
|
||||
|
||||
Note: 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.
|
142
themes/openstack/css/components/misc-rtl.css
Normal file
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the modular-styles.css file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Branding header.
|
||||
*/
|
||||
|
||||
/* Wrapping link for logo. */
|
||||
.header__logo {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* The secondary menu (login, etc.) */
|
||||
.header__secondary-menu {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation bar.
|
||||
*/
|
||||
|
||||
/* Main menu and secondary menu links and menu block links. */
|
||||
#navigation .links,
|
||||
#navigation .menu {
|
||||
text-align: right;
|
||||
}
|
||||
#navigation .links li,
|
||||
#navigation .menu li {
|
||||
/* A simple method to get navigation links to appear in one line. */
|
||||
float: right;
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Messages.
|
||||
*/
|
||||
.messages,
|
||||
.messages--status,
|
||||
.messages--warning,
|
||||
.messages--error {
|
||||
padding: 10px 50px 10px 10px;
|
||||
background-position: 99% 8px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tabs.
|
||||
*/
|
||||
.tabs-primary__tab,
|
||||
.tabs-secondary__tab,
|
||||
.tabs-secondary__tab.is-active {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inline styles.
|
||||
*/
|
||||
|
||||
/* List of links */
|
||||
.inline li {
|
||||
/* Bug in Safari causes display: inline to fail. */
|
||||
display: inline-block;
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/* The inline field label used by the Fences.module */
|
||||
span.field-label {
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/**
|
||||
* "More" links.
|
||||
*/
|
||||
.more-link {
|
||||
text-align: left;
|
||||
}
|
||||
.more-help-link {
|
||||
text-align: left;
|
||||
}
|
||||
.more-help-link a {
|
||||
background-position: 100% 50%;
|
||||
padding: 1px 20px 1px 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menus.
|
||||
*/
|
||||
.menu__item.is-collapsed {
|
||||
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');
|
||||
*list-style-image: url('../../images/menu-collapsed-rtl.png');
|
||||
}
|
||||
|
||||
/**
|
||||
* Comments.
|
||||
*/
|
||||
|
||||
/* Nested comments are indented. */
|
||||
.indented {
|
||||
margin-left: 0;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms.
|
||||
*/
|
||||
|
||||
/* Drupal's default login form block */
|
||||
#user-login-form {
|
||||
text-align: right;
|
||||
}
|
||||
html.js #user-login-form li.openid-link,
|
||||
#user-login-form li.openid-link {
|
||||
/* Un-do some of the padding on the ul list. */
|
||||
margin-left: 0;
|
||||
margin-right: -20px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Drupal admin tables.
|
||||
*/
|
||||
form th {
|
||||
text-align: right;
|
||||
padding-left: 1em;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collapsible fieldsets.
|
||||
*
|
||||
* @see collapse.js
|
||||
*/
|
||||
html.js .collapsible .fieldset-legend {
|
||||
background-position: 98% 75%;
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
html.js .collapsed .fieldset-legend {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');
|
||||
*background-image: url('../../images/menu-collapsed-rtl.png');
|
||||
background-position: 98% 50%;
|
||||
}
|
758
themes/openstack/css/components/misc.css
Normal file
@ -0,0 +1,758 @@
|
||||
/**
|
||||
* @file
|
||||
* SMACSS Modules
|
||||
*
|
||||
* Adds modular sets of styles.
|
||||
*
|
||||
* Additional useful selectors can be found in Zen's online documentation.
|
||||
* https://drupal.org/node/1707736
|
||||
*/
|
||||
|
||||
/**
|
||||
* Wireframes.
|
||||
*/
|
||||
.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;
|
||||
}
|
||||
.lt-ie8 .with-wireframes #header,
|
||||
.lt-ie8 .with-wireframes #main,
|
||||
.lt-ie8 .with-wireframes #content,
|
||||
.lt-ie8 .with-wireframes #navigation,
|
||||
.lt-ie8 .with-wireframes .region-sidebar-first,
|
||||
.lt-ie8 .with-wireframes .region-sidebar-second,
|
||||
.lt-ie8 .with-wireframes #footer,
|
||||
.lt-ie8 .with-wireframes .region-bottom {
|
||||
/* IE6/7 do not support the outline property. */
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Accessibility features.
|
||||
*/
|
||||
|
||||
/* element-invisible as defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
|
||||
.element-invisible,
|
||||
.element-focusable,
|
||||
#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);
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
}
|
||||
|
||||
/* Turns off the element-invisible effect. */
|
||||
.element-focusable:active,
|
||||
.element-focusable:focus {
|
||||
position: static !important;
|
||||
clip: auto;
|
||||
height: auto;
|
||||
width: auto;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
* The skip-link link will be completely hidden until a user tabs to the link.
|
||||
*/
|
||||
#skip-link {
|
||||
margin: 0;
|
||||
}
|
||||
#skip-link a,
|
||||
#skip-link a:visited {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 2px 0 3px 0;
|
||||
text-align: center;
|
||||
background-color: #666;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/**
|
||||
* Branding header.
|
||||
*/
|
||||
|
||||
/* Wrapping link for logo. */
|
||||
.header__logo {
|
||||
float: left; /* LTR */
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Logo image. */
|
||||
.header__logo-image {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
/* Wrapper for website name and slogan. */
|
||||
.header__name-and-slogan {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* The name of the website. */
|
||||
.header__site-name {
|
||||
margin: 0;
|
||||
font-size: 2em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
/* The link around the name of the website. */
|
||||
.header__site-link:link,
|
||||
.header__site-link:visited {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
.header__site-link:hover,
|
||||
.header__site-link:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* The slogan (or tagline) of a website. */
|
||||
.header__site-slogan {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* The secondary menu (login, etc.) */
|
||||
.header__secondary-menu {
|
||||
float: right; /* LTR */
|
||||
}
|
||||
|
||||
/* Wrapper for any blocks placed in the header region. */
|
||||
.header__region {
|
||||
/* Clear the logo. */
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation bar.
|
||||
*/
|
||||
#navigation {
|
||||
/* Sometimes you want to prevent overlapping with main div. */
|
||||
/* overflow: hidden; */
|
||||
}
|
||||
#navigation .block {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Main menu and secondary menu links and menu block links. */
|
||||
#navigation .links,
|
||||
#navigation .menu {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: left; /* LTR */
|
||||
}
|
||||
#navigation .links li,
|
||||
#navigation .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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Breadcrumb navigation.
|
||||
*/
|
||||
.breadcrumb ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.breadcrumb li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Titles.
|
||||
*/
|
||||
.page__title, /* The title of the page. */
|
||||
.node__title, /* Title of a piece of content when it is given in a list of content. */
|
||||
.block__title, /* Block title. */
|
||||
.comments__title, /* Comment section heading. */
|
||||
.comments__form-title, /* Comment form heading. */
|
||||
.comment__title { /* Comment title. */
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Messages.
|
||||
*/
|
||||
.messages,
|
||||
.messages--status,
|
||||
.messages--warning,
|
||||
.messages--error {
|
||||
margin: 1.5em 0;
|
||||
padding: 10px 10px 10px 50px; /* LTR */
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAD6UlEQVR42s2WX0xbVRzH3YwmC4k+GF/0ZS/S267/bmnX9nL7bwstZlnbjTDYyoC5GCbB0ZW5pdJCe6swbLFA6bpWIGuRMWVjKGP+21QW3SZBSAjGh4XEaTZTH82Cm/3ztS2xs7mw4KLRk3xyzj33/H6fe5Pz7zEA/yr/vUDukj9FH6drqTaqT8EoPs/UV+nX6TD1BlUh9AqLHlmgPKLcRHmoCOWmElK/FOKTYpS8UwLJkASiUyLI3pKhlClN0g46qj+qL/pbArlbrlO1q25JeiSgR2iYJ8ywXLSg/qP6LNl2ro8+Q4MMkKCd9K2t3q3KdQnkXXIF5aISkgEJzONm1F2qW52pDJN1MI2bUBIuAdVOJWSMTPNQgX6/vkjVpvpREpag6oMqWCYta1IzbsHh9ga0RJtzY8URMdRO9U/KSuWmNQUqh2pY3CtG+fvlqJyofMAFNrZAE+7e/RWR4X4cD9tgOGsA2U2CdtMDqwqyMyIzQ5KKqAKmcyaYxkzYd3YvjGNGFtXRPRj58DT+LOemRrFnrBLyITmUDmUyO/NYgu2d26ukHVJo3tXAMGpAs+cQmh0NeClan30uwN7TgnQ6nRd4r3thOGOAJqYB2UVC79AfZAnKHGUxQa8A2tNaNLW/jKvXv8Dyb8s4yryKA4O10A3roIvpUB+swTdz1/LJZ27PQBvT5lBH1RD4BChzlQ2wBNtc22aE/ULQgzRCl4P5BPcT93GMOYz9wb2QhCRgAq35d8u/L2PXe7tADVGgBlcQ+AXQtmlvsP/gzbJZvp8PMkJCFBYh8m0knyiVSsHe0YIGZz1+/uVOvt8z7QGvnwf+ST5EIRHIUyR4fh50rbp5lsDcYR4ReAXgBrng9q/Qfa0bfy035r7Ot2dvz4IX4IEIEAXwvDzscOw4zxJUd1YfEXlE4Aa4BQHMlwzSSBeI7iXvoTxWDqKPYCFsFaKmr+YVliB0JfS89DVpiuhlB9k/tSOZTuYFvq98yI7L0/MAsVWcGp0bfW61hbahwltxSeARsIKyWKesSKQSWIwvYkvvllwfx88pgOvhwthu/AzAxlVX8vz385tLbaVxwpcLZtEw0QDjsBGctzksiE4CimZFfHp++oWHbnbuUfdB0komMgHsRN1r0MWBsEmYODF5onY92/UTwcvBxuzXcN1ccHycVSn2FaPYWwzCQUDWKIt7z3utAJ5c74Hz+OLSomynY+cVfiM/xW3JiDyZpB3FuZrj4oCwE+Ad4qWMjPHjpTtL0mzMoxyZz9yM39Q7Y85Ok930icqm+k59TL2wm9l90dZv8y/8sPAigGf/iUN/Q4anM2zOsdLe+L+4VfwBVVjDs2rTYx0AAAAASUVORK5CYII=');
|
||||
*background-image: url('../../images/message-24-ok.png');
|
||||
background-position: 8px 8px; /* LTR */
|
||||
background-repeat: no-repeat;
|
||||
border: 1px solid #be7;
|
||||
}
|
||||
.messages--warning {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACuElEQVRIiWP4//8/Ay0xSYqntTpnT252zqeJBf0Njhsykrz/pyd6/e9vcNpGVQv6q2wlm0qc/r0+IPD/3UG+/61l9v9mdrjIUc2C7hqHUzc3S///eZwBjO9tF/vfWe1wjioWTKixVm8otPn38wQT3IKfxxn/t5Va/utpsNSg2ILWcttrNzdJgQ3+dpQRjEHs+9tE/zeXWt+gyILOamuTqlxrsOtPLub+7+emBsSq/88v5wL7oqHQ9H9nmbkF2RbUF1rev7lJEuziuU3i/90ddcB4UZsoJC62ifyvK7R4QJYFrcUGrmUZ5v9hYb9hosh/bzcDMN42VRgeF9W5hv8bi/XdSbagKtfs2c1NEvCIPbaQ/7+/pwkYn17Ki0hR24T/l2eZPCfJgsZ83dCiNOP/yCnn7iau/8G+5mD8aBsHSoqqyNL9X5erHUm0BcVpRm9ubhZHMoTh/4eDzP/DA23+RwTZ/P96hAlF7t5Wof8FyfpvibKgNk8noyDZ4D9quofg1Bjr/1kJlhjiIF+Upmn/r83RzCJoQXaC3qcbm8SwGMLwvybP/H8jMGlik7u7VeB/Zqz2J7wWVGdr1uTG62J1PQgfWST1/+hiCaxyIF8UJqv9r8hQrcVpQVqkzrcbG0WwGvB2H/P/lnx5MAaxsam5vYn3f2KY+jesFpSlqfZnxWjidP2OGWL/g/0swBjExu4Lhv958Ur/i5KU+lEsCA1lYI4JUv95bZ0gTo2Pt3P+z0myBmMQG5e6mxu4/kf4Kf8EmQm3oCRNebKrvSawIGPBqRG9sMOp5hjjfwdrlf/58bKT4RaUpWvtcLZV/39iscD/H0AFP46jYwYiMeP/44u4/9tbKQODSXUH3II9G7v18hI0n8YGKv+IDVT6joxj/BVx4mgcOCde/SnITPRUJAHEGlTCEkQV19TAAN8FC67hZdFXAAAAAElFTkSuQmCC');
|
||||
*background-image: url('../../images/message-24-warning.png');
|
||||
border-color: #ed5;
|
||||
}
|
||||
.messages--error {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACpElEQVR42rWWTUgbQRiGQ0Tx4MWDeFM8eBA9iKAoggiCoCiiIiL4L3oQV1CJB0UEf6iRYFpK7UniTw9VSqL2kvQsVDBpSZrtRo35czVNW3oprRf17exSl4yzu1ikAy9h59vvedhkMrMGAGoxknAk2w8MJ/WosXThiZkZt9jdLeglPjn5ATc3mhJNuNjbK0QbG3ExMICL/n6IfX0gcxB7ekDAELu6IHZ2IlJbi1hLS1BLogmPtbUhMTv7oMSamzUlqnByMxLT0/8STQkDj9TV4ZLj5OysrODl8jIu5Gs68dFR7JG6dWkJ0fFx+TpSX89IDMnwcHU1yKec12Yz3rlc4HkeLwjkXJpPip3U3+7vIx6P4ymph4eG5PlwTQ0lMdytlmBxMWKtrXLeT0zA5XTibvj9fjxfXETkb/3N/Dz2dneVuiTZtliU/rPSUsQ5ziuxZYG03IIlJdKKUPJjdRUAKMmzuTnskB/VYbdTtd9HR4g2NCi9Z2VliDY1BSnBaUEBzsrLqXyzWCiQ9HU5HA4afniIUFWV0hOqqMBpURErOM7NxWlhIZOvCwvA7S3Uxq+DA5AnZ3pO8vJYQSArC8c5Oeqx2Rj4udeLQH6+6v2B7GxW8DkjA0JmJpONwUHY7XZGIAgCzCYTeJUewmIFfqMRfEoKlQ2yJbza2oLWcLvdeDI2hk/3+iQWKzAYkJzNjg5srq9TwJ9OJ76YTNScx+ORJT66X1/grKyEbW2NgfPp6XKd/JMZySrHaQsSU1Oe+0/w3WpVgyu5HBlR6lc+H8gioevDwz6JrWwV5+3txyoSFk5DcOX1MnCyJ4Vwfb1zt1UY9SR8aioDpuppaVpwZbPTl+hHF04dOKzk8XBF8DgJC3/woU/W/EciOtELOWi8DDwp//215Q+p7kiKh2lQSAAAAABJRU5ErkJggg==');
|
||||
*background-image: url('../../images/message-24-error.png');
|
||||
border-color: #ed541d;
|
||||
}
|
||||
.messages__list {
|
||||
margin: 0;
|
||||
}
|
||||
.messages__item {
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
/* Core/module installation error messages. */
|
||||
.messages--error p.error {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* System status report. */
|
||||
.ok,
|
||||
.messages--status {
|
||||
background-color: #f8fff0;
|
||||
color: #234600;
|
||||
}
|
||||
.warning,
|
||||
.messages--warning {
|
||||
background-color: #fffce5;
|
||||
color: #840;
|
||||
}
|
||||
.error,
|
||||
.messages--error {
|
||||
background-color: #fef5f1;
|
||||
color: #8c2e0b;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tabs.
|
||||
*/
|
||||
|
||||
/* Basic positioning styles shared by primary and secondary tabs. */
|
||||
.tabs-primary,
|
||||
.tabs-secondary {
|
||||
overflow: hidden;
|
||||
*zoom: 1;
|
||||
background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(100%, #bbbbbb), color-stop(100%, transparent));
|
||||
background-image: -webkit-linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
|
||||
background-image: -moz-linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
|
||||
background-image: -o-linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
|
||||
background-image: linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
|
||||
/* IE 9 and earlier don't understand gradients. */
|
||||
list-style: none;
|
||||
border-bottom: 1px solid #bbbbbb \0/ie;
|
||||
margin: 1.5em 0;
|
||||
padding: 0 2px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tabs-primary__tab,
|
||||
.tabs-secondary__tab,
|
||||
.tabs-secondary__tab.is-active {
|
||||
float: left; /* LTR */
|
||||
margin: 0 3px;
|
||||
}
|
||||
a.tabs-primary__tab-link,
|
||||
a.tabs-secondary__tab-link {
|
||||
border: 1px solid #e9e9e9;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
display: block;
|
||||
line-height: 1.5em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Primary tabs. */
|
||||
.tabs-primary__tab,
|
||||
.tabs-primary__tab.is-active {
|
||||
-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-color: transparent;
|
||||
/* IE 9 and earlier don't understand gradients. */
|
||||
border-bottom: 0 \0/ie;
|
||||
}
|
||||
.is-active.tabs-primary__tab {
|
||||
border-bottom-color: white;
|
||||
}
|
||||
a.tabs-primary__tab-link,
|
||||
a.tabs-primary__tab-link.is-active {
|
||||
-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;
|
||||
}
|
||||
a.tabs-primary__tab-link:hover,
|
||||
a.tabs-primary__tab-link:focus {
|
||||
background-color: #e9e9e9;
|
||||
border-color: #f2f2f2;
|
||||
}
|
||||
a.tabs-primary__tab-link:active,
|
||||
a.tabs-primary__tab-link.is-active {
|
||||
background-color: transparent;
|
||||
*zoom: 1;
|
||||
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. */
|
||||
.tabs-secondary {
|
||||
font-size: .9em;
|
||||
/* Collapse bottom margin of ul.primary. */
|
||||
margin-top: -1.5em;
|
||||
}
|
||||
.tabs-secondary__tab,
|
||||
.tabs-secondary__tab.is-active {
|
||||
margin: 0.75em 3px;
|
||||
}
|
||||
a.tabs-secondary__tab-link,
|
||||
a.tabs-secondary__tab-link.is-active {
|
||||
-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;
|
||||
}
|
||||
a.tabs-secondary__tab-link:hover,
|
||||
a.tabs-secondary__tab-link:focus {
|
||||
background-color: #dedede;
|
||||
border-color: #999;
|
||||
color: #333;
|
||||
}
|
||||
a.tabs-secondary__tab-link:active,
|
||||
a.tabs-secondary__tab-link.is-active {
|
||||
text-shadow: 1px 1px 0 #333333;
|
||||
background-color: #666;
|
||||
border-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inline styles.
|
||||
*/
|
||||
|
||||
/* List of links generated by theme_links(). */
|
||||
.inline {
|
||||
display: inline;
|
||||
padding: 0;
|
||||
}
|
||||
.inline li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding: 0 1em 0 0; /* LTR */
|
||||
}
|
||||
|
||||
/* The inline field label used by the Fences module. */
|
||||
span.field-label {
|
||||
padding: 0 1em 0 0; /* LTR */
|
||||
}
|
||||
|
||||
/**
|
||||
* "More" links.
|
||||
*/
|
||||
.more-link {
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
.more-help-link {
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
.more-help-link a {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA7UlEQVR42qWTPQqDQBCFcwSPkCNITpAj5AjeIm1uYpkyR7Cy2Mot7OwsBAsRwUKwmOwLGRle3EIy8PyBfZ/z3J2TiPylz8VWWZZpUB40BonRKyizaxkA88MYYiqCEgv4MTvnZJom0VqWRbz3FlJZgLYtqmEY1Lg9r+sKsIXcLSC3AC019H0vqLquLeC5AfiHYSGkcdAJimKIBQiJ4+CO92OAtm0FNc8zOjkMwE5Q63FAtbeg6zpAYvG8BWR7i5qmQYwY4MIHqYhE2DOPQWcGJBQF2XU72ZzyUeZ5GCNt5/hybJgYdAXsq5sOEE/jG6dC5IOqCXTmAAAAAElFTkSuQmCC');
|
||||
*background-image: url('../../images/help.png');
|
||||
background-position: 0 50%; /* LTR */
|
||||
background-repeat: no-repeat;
|
||||
padding: 1px 0 1px 20px; /* LTR */
|
||||
}
|
||||
|
||||
/**
|
||||
* Pager.
|
||||
*/
|
||||
|
||||
/* A list of page numbers when more than 1 page of content is available. */
|
||||
.pager {
|
||||
clear: both;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pager-item, /* A list item containing a page number in the list of pages. */
|
||||
.pager-first, /* The first page's list item. */
|
||||
.pager-previous, /* The previous page's list item. */
|
||||
.pager-next, /* The next page's list item. */
|
||||
.pager-last, /* The last page's list item. */
|
||||
.pager-ellipsis, /* A concatenation of several list items using an ellipsis. */
|
||||
.pager-current { /* The current page's list item. */
|
||||
display: inline;
|
||||
padding: 0 0.5em;
|
||||
list-style-type: none;
|
||||
background-image: none;
|
||||
}
|
||||
.pager-current {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Blocks.
|
||||
*/
|
||||
|
||||
/* Block wrapper. */
|
||||
.block {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menus.
|
||||
*/
|
||||
.menu__item.is-leaf {
|
||||
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAD1BMVEX///+/v7+Li4sAAADAwMBFvsw8AAAAAXRSTlMAQObYZgAAAB1JREFUCFtjYAADYwMGBmYVZSDhKAwkFJWhYiAAAB2+Aa/9ugeaAAAAAElFTkSuQmCC');
|
||||
*list-style-image: url('../../images/menu-leaf.png');
|
||||
list-style-type: square;
|
||||
}
|
||||
.menu__item.is-expanded {
|
||||
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');
|
||||
*list-style-image: url('../../images/menu-expanded.png');
|
||||
list-style-type: circle;
|
||||
}
|
||||
.menu__item.is-collapsed {
|
||||
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC'); /* LTR */
|
||||
*list-style-image: url('../../images/menu-collapsed.png'); /* LTR */
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
/* The active item in a Drupal menu. */
|
||||
.menu a.active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marker.
|
||||
*/
|
||||
|
||||
/* The "new" or "updated" marker. */
|
||||
.new,
|
||||
.update {
|
||||
color: #c00;
|
||||
/* Remove background highlighting from <mark> in normalize. */
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unpublished note.
|
||||
*/
|
||||
|
||||
/* The word "Unpublished" displayed underneath the content. */
|
||||
.unpublished {
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
/* Remove background highlighting from <mark> in normalize. */
|
||||
background-color: transparent;
|
||||
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;
|
||||
/* A very nice CSS3 property. */
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.lt-ie8 .node-unpublished > *,
|
||||
.lt-ie8 .comment-unpublished > * {
|
||||
/* Otherwise these elements will appear below the "Unpublished" text. */
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comments.
|
||||
*/
|
||||
|
||||
/* Wrapper for the list of comments and its title. */
|
||||
.comments {
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
/* Preview of the comment before submitting new or updated comment. */
|
||||
.comment-preview {
|
||||
/* Drupal core will use a #ffffea background. See #1110842. */
|
||||
background-color: #ffffea;
|
||||
}
|
||||
|
||||
/* Wrapper for a single comment. */
|
||||
.comment {
|
||||
/* Comment's permalink wrapper. */
|
||||
}
|
||||
.comment .permalink {
|
||||
text-transform: uppercase;
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
/* Nested comments are indented. */
|
||||
.indented {
|
||||
/* Drupal core uses a 25px left margin. */
|
||||
margin-left: 30px; /* LTR */
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms.
|
||||
*/
|
||||
|
||||
/* Wrapper for a form element (or group of form elements) and its label. */
|
||||
.form-item {
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
/* Pack groups of checkboxes and radio buttons closer together. */
|
||||
.form-checkboxes .form-item,
|
||||
.form-radios .form-item {
|
||||
/* Drupal core uses "0.4em 0". */
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Form items in a table. */
|
||||
tr.odd .form-item,
|
||||
tr.even .form-item {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Highlight the form elements that caused a form submission error. */
|
||||
.form-item input.error,
|
||||
.form-item textarea.error,
|
||||
.form-item select.error {
|
||||
border: 1px solid #c00;
|
||||
}
|
||||
|
||||
/* The descriptive help text (separate from the label). */
|
||||
.form-item .description {
|
||||
font-size: 0.85em;
|
||||
}
|
||||
.form-type-radio .description,
|
||||
.form-type-checkbox .description {
|
||||
margin-left: 2.4em;
|
||||
}
|
||||
|
||||
/* The part of the label that indicates a required field. */
|
||||
.form-required {
|
||||
color: #c00;
|
||||
}
|
||||
|
||||
/* Labels for radios and checkboxes. */
|
||||
label.option {
|
||||
display: inline;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Buttons used by contrib modules like Media. */
|
||||
a.button {
|
||||
-webkit-appearance: button;
|
||||
-moz-appearance: button;
|
||||
appearance: button;
|
||||
}
|
||||
|
||||
/* Password confirmation. */
|
||||
.password-parent,
|
||||
.confirm-parent {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* OpenID creates a new ul above the login form's links. */
|
||||
.openid-links {
|
||||
/* Position OpenID's ul next to the rest of the links. */
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* The "Log in using OpenID" and "Cancel OpenID login" links. */
|
||||
.openid-link,
|
||||
.user-link {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
html.js #user-login-form li.openid-link,
|
||||
#user-login-form li.openid-link {
|
||||
/* Un-do some of the padding on the ul list. */
|
||||
margin-left: -20px; /* LTR */
|
||||
}
|
||||
#user-login ul {
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Drupal admin tables.
|
||||
*/
|
||||
form th {
|
||||
text-align: left; /* LTR */
|
||||
padding-right: 1em; /* LTR */
|
||||
border-bottom: 3px solid #ccc;
|
||||
}
|
||||
form tbody {
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
form table ul {
|
||||
margin: 0;
|
||||
}
|
||||
tr.even,
|
||||
tr.odd {
|
||||
background-color: #eee;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding: 0.1em 0.6em;
|
||||
}
|
||||
tr.even {
|
||||
background-color: #fff;
|
||||
}
|
||||
.lt-ie8 tr.even th,
|
||||
.lt-ie8 tr.even td,
|
||||
.lt-ie8 tr.odd th,
|
||||
.lt-ie8 tr.odd td {
|
||||
/* IE doesn't display borders on table rows. */
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
/* Markup generated by theme_tablesort_indicator(). */
|
||||
td.active {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
/* Center checkboxes inside table cell. */
|
||||
td.checkbox,
|
||||
th.checkbox {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Drupal core wrongly puts this in system.menus.css. Since we override that, add it back. */
|
||||
td.menu-disabled {
|
||||
background: #ccc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Autocomplete.
|
||||
*
|
||||
* @see autocomplete.js
|
||||
*/
|
||||
|
||||
/* Suggestion list. */
|
||||
#autocomplete .selected {
|
||||
background: #0072b9;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collapsible fieldsets.
|
||||
*
|
||||
* @see collapse.js
|
||||
*/
|
||||
html.js .collapsible .fieldset-legend {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');
|
||||
*background-image: url('../../images/menu-expanded.png');
|
||||
background-position: 5px 65%; /* LTR */
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 15px; /* LTR */
|
||||
}
|
||||
html.js .collapsed .fieldset-legend {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC'); /* LTR */
|
||||
*background-image: url('../../images/menu-collapsed.png'); /* LTR */
|
||||
background-position: 5px 50%; /* LTR */
|
||||
}
|
||||
.fieldset-legend .summary {
|
||||
color: #999;
|
||||
font-size: 0.9em;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
/**
|
||||
* TableDrag behavior.
|
||||
*
|
||||
* @see tabledrag.js
|
||||
*/
|
||||
tr.drag {
|
||||
background-color: #fffff0;
|
||||
}
|
||||
tr.drag-previous {
|
||||
background-color: #ffd;
|
||||
}
|
||||
.tabledrag-toggle-weight {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/**
|
||||
* TableSelect behavior.
|
||||
*
|
||||
* @see tableselect.js
|
||||
*/
|
||||
tr.selected td {
|
||||
background: #ffc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Progress bar.
|
||||
*
|
||||
* @see progress.js
|
||||
*/
|
||||
.progress {
|
||||
font-weight: bold;
|
||||
}
|
||||
.progress .bar {
|
||||
background: #ccc;
|
||||
border-color: #666;
|
||||
margin: 0 0.2em;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-ms-border-radius: 3px;
|
||||
-o-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.progress .filled {
|
||||
background-color: #0072b9;
|
||||
background-image: url('../../images/progress.gif');
|
||||
}
|
200
themes/openstack/css/custom.css
Normal file
@ -0,0 +1,200 @@
|
||||
/**
|
||||
* @file
|
||||
* Common scss rules
|
||||
*
|
||||
*/
|
||||
/** COLORS **/
|
||||
/** BASIC STLYES **/
|
||||
/* line 34, ../sass/custom.scss */
|
||||
body {
|
||||
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
color: #535353;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* line 39, ../sass/custom.scss */
|
||||
a {
|
||||
color: #bc1518;
|
||||
text-decoration: none;
|
||||
}
|
||||
/* line 18, ../../../../../../../../usr/lib/ruby/gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
|
||||
a:visited {
|
||||
color: #bc1518;
|
||||
}
|
||||
/* line 21, ../../../../../../../../usr/lib/ruby/gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
|
||||
a:focus {
|
||||
color: black;
|
||||
}
|
||||
/* line 24, ../../../../../../../../usr/lib/ruby/gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
|
||||
a:hover {
|
||||
color: black;
|
||||
}
|
||||
/* line 27, ../../../../../../../../usr/lib/ruby/gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss */
|
||||
a:active {
|
||||
color: black;
|
||||
}
|
||||
/* line 42, ../sass/custom.scss */
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* line 47, ../sass/custom.scss */
|
||||
p {
|
||||
margin: 0 0 1.5em;
|
||||
}
|
||||
|
||||
/* line 51, ../sass/custom.scss */
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
color: #264d69;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* line 55, ../sass/custom.scss */
|
||||
h2 {
|
||||
font-size: 18px;
|
||||
color: #264d69;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* line 59, ../sass/custom.scss */
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
color: #bc1518;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* line 63, ../sass/custom.scss */
|
||||
.block {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
/* line 67, ../sass/custom.scss */
|
||||
.blueline {
|
||||
background: url('../images/header-line.gif?1371823728') repeat-x scroll 0 bottom rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* line 71, ../sass/custom.scss */
|
||||
#logo {
|
||||
line-height: 24px;
|
||||
verical-align: baseline;
|
||||
}
|
||||
/* line 74, ../sass/custom.scss */
|
||||
#logo img {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
/** PRIMARY MENU **/
|
||||
/* line 81, ../sass/custom.scss */
|
||||
#navigation {
|
||||
height: auto;
|
||||
line-height: 24px;
|
||||
}
|
||||
/* line 84, ../sass/custom.scss */
|
||||
#navigation * {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
/* line 88, ../sass/custom.scss */
|
||||
#navigation nav {
|
||||
margin-left: 30px;
|
||||
}
|
||||
/* line 91, ../sass/custom.scss */
|
||||
#navigation .links li {
|
||||
padding: 0;
|
||||
}
|
||||
/* line 94, ../sass/custom.scss */
|
||||
#navigation li {
|
||||
vertical-align: baseline;
|
||||
margin-right: 20px;
|
||||
}
|
||||
/* line 97, ../sass/custom.scss */
|
||||
#navigation li a {
|
||||
display: block;
|
||||
color: #353535;
|
||||
padding: 20px 0 5px;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
/* line 106, ../sass/custom.scss */
|
||||
#navigation li.active a {
|
||||
border-bottom: 3px solid #CF2F19;
|
||||
color: #CF2F19;
|
||||
}
|
||||
|
||||
/** UTILITY LINKS **/
|
||||
/* line 116, ../sass/custom.scss */
|
||||
.block-commons-utility-links ul {
|
||||
float: right;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
/* line 121, ../sass/custom.scss */
|
||||
.block-commons-utility-links ul li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
display: inline-block;
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
/* line 127, ../sass/custom.scss */
|
||||
.block-commons-utility-links ul li a {
|
||||
color: #1F7A95;
|
||||
}
|
||||
|
||||
/** BLOCK SEARCH FORM **/
|
||||
/* line 136, ../sass/custom.scss */
|
||||
#header #block-search-form {
|
||||
float: right;
|
||||
}
|
||||
/* line 138, ../sass/custom.scss */
|
||||
#header #block-search-form .form-type-textfield {
|
||||
border: 1px solid #c5e2ea;
|
||||
display: inline-block;
|
||||
}
|
||||
/* line 141, ../sass/custom.scss */
|
||||
#header #block-search-form .form-type-textfield input {
|
||||
border: none;
|
||||
outline: none;
|
||||
font-size: 16px;
|
||||
}
|
||||
/* line 147, ../sass/custom.scss */
|
||||
#header #block-search-form .form-submit {
|
||||
background: #CF2F19;
|
||||
color: #ffffff;
|
||||
border: none;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
/** FOOTER **/
|
||||
/* line 158, ../sass/custom.scss */
|
||||
#footer hr {
|
||||
height: 1px;
|
||||
background: none repeat scroll 0 0 #DDDDDD;
|
||||
border: medium none;
|
||||
clear: both;
|
||||
color: #DDDDDD;
|
||||
float: none;
|
||||
height: 0.1em;
|
||||
margin: 0 0 1.45em;
|
||||
width: 100%;
|
||||
}
|
||||
/* line 169, ../sass/custom.scss */
|
||||
#footer .span-8, #footer .span-4 {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
/* line 173, ../sass/custom.scss */
|
||||
#footer .span-8 {
|
||||
width: 310px;
|
||||
}
|
||||
/* line 176, ../sass/custom.scss */
|
||||
#footer .span-4 {
|
||||
width: 150px;
|
||||
}
|
||||
/* line 179, ../sass/custom.scss */
|
||||
#footer .span-4.last {
|
||||
margin-right: 0px;
|
||||
}
|
72
themes/openstack/css/layouts/fixed-rtl.css
Normal file
@ -0,0 +1,72 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the layout-fixed-width.css file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 2nd column from right. */
|
||||
.sidebar-first #content {
|
||||
float: right;
|
||||
width: 764px;
|
||||
margin-right: 196px;
|
||||
margin-left: -980px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from right. */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: right;
|
||||
width: 176px;
|
||||
margin-right: 0px;
|
||||
margin-left: -196px;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 1st column from right. */
|
||||
.sidebar-second #content {
|
||||
float: right;
|
||||
width: 764px;
|
||||
margin-right: 0px;
|
||||
margin-left: -784px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from right. */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: right;
|
||||
width: 176px;
|
||||
margin-right: 784px;
|
||||
margin-left: -980px;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
|
||||
/* Span 3 columns, starting in 2nd column from right. */
|
||||
.two-sidebars #content {
|
||||
float: right;
|
||||
width: 568px;
|
||||
margin-right: 196px;
|
||||
margin-left: -784px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from right. */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: right;
|
||||
width: 176px;
|
||||
margin-right: 0px;
|
||||
margin-left: -196px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from right. */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: right;
|
||||
width: 176px;
|
||||
margin-right: 784px;
|
||||
margin-left: -980px;
|
||||
}
|
145
themes/openstack/css/layouts/fixed.css
Normal file
@ -0,0 +1,145 @@
|
||||
/**
|
||||
* @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.
|
||||
*
|
||||
* If you want to make the page a fixed width and centered in the viewport,
|
||||
* this is the standards-compliant way to do that.
|
||||
*/
|
||||
#page,
|
||||
.region-bottom {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 980px;
|
||||
}
|
||||
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
#header,
|
||||
#content,
|
||||
#navigation,
|
||||
.region-sidebar-first,
|
||||
.region-sidebar-second,
|
||||
#footer {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
border-left: 0 !important;
|
||||
border-right: 0 !important;
|
||||
word-wrap: break-word;
|
||||
*behavior: url("/path/to/boxsizing.htc");
|
||||
_display: inline;
|
||||
_overflow: hidden;
|
||||
_overflow-y: visible;
|
||||
}
|
||||
|
||||
/* Containers for grid items and flow items. */
|
||||
#header,
|
||||
#main,
|
||||
#footer {
|
||||
*position: relative;
|
||||
*zoom: 1;
|
||||
}
|
||||
#header:before,
|
||||
#header:after,
|
||||
#main:before,
|
||||
#main:after,
|
||||
#footer:before,
|
||||
#footer:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
#header:after,
|
||||
#main:after,
|
||||
#footer:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Navigation bar */
|
||||
#main {
|
||||
/* Move all the children of #main down to make room. */
|
||||
padding-top: 3em;
|
||||
position: relative;
|
||||
}
|
||||
#navigation {
|
||||
/* Move the navbar up inside #main's padding. */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 3em;
|
||||
width: 960px;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 2nd column from left. */
|
||||
.sidebar-first #content {
|
||||
float: left;
|
||||
width: 764px;
|
||||
margin-left: 196px;
|
||||
margin-right: -980px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: left;
|
||||
width: 176px;
|
||||
margin-left: 0px;
|
||||
margin-right: -196px;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 1st column from left. */
|
||||
.sidebar-second #content {
|
||||
float: left;
|
||||
width: 764px;
|
||||
margin-left: 0px;
|
||||
margin-right: -784px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: left;
|
||||
width: 176px;
|
||||
margin-left: 784px;
|
||||
margin-right: -980px;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
|
||||
/* Span 3 columns, starting in 2nd column from left. */
|
||||
.two-sidebars #content {
|
||||
float: left;
|
||||
width: 568px;
|
||||
margin-left: 196px;
|
||||
margin-right: -784px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: left;
|
||||
width: 176px;
|
||||
margin-left: 0px;
|
||||
margin-right: -196px;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: left;
|
||||
width: 176px;
|
||||
margin-left: 784px;
|
||||
margin-right: -980px;
|
||||
}
|
195
themes/openstack/css/layouts/responsive-rtl.css
Normal file
@ -0,0 +1,195 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the layout-responsive.css file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Use 3 grid columns for smaller screens.
|
||||
*/
|
||||
@media all and (min-width: 480px) and (max-width: 959px) {
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
|
||||
/* Span 2 columns, starting in 2nd column from right. */
|
||||
.sidebar-first #content {
|
||||
float: right;
|
||||
width: 66.66667%;
|
||||
margin-right: 33.33333%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from right. */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 0%;
|
||||
margin-left: -33.33333%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
|
||||
/* Span 2 columns, starting in 1st column from right. */
|
||||
.sidebar-second #content {
|
||||
float: right;
|
||||
width: 66.66667%;
|
||||
margin-right: 0%;
|
||||
margin-left: -66.66667%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 3rd column from right. */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 66.66667%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
|
||||
/* Span 2 columns, starting in 2nd column from right. */
|
||||
.two-sidebars #content {
|
||||
float: right;
|
||||
width: 66.66667%;
|
||||
margin-right: 33.33333%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from right. */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 0%;
|
||||
margin-left: -33.33333%;
|
||||
}
|
||||
|
||||
/* Start a new row and span all 3 columns. */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: right;
|
||||
width: 100%;
|
||||
margin-right: 0%;
|
||||
margin-left: -100%;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
clear: right;
|
||||
}
|
||||
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
.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;
|
||||
*behavior: url("/path/to/boxsizing.htc");
|
||||
_display: inline;
|
||||
_overflow: hidden;
|
||||
_overflow-y: visible;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in the 1st column from right. */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 0%;
|
||||
margin-left: -33.33333%;
|
||||
clear: right;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in the 2nd column from right. */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 33.33333%;
|
||||
margin-left: -66.66667%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in the 3rd column from right. */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n) {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 66.66667%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Use 5 grid columns for larger screens.
|
||||
*/
|
||||
@media all and (min-width: 960px) {
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 2nd column from right. */
|
||||
.sidebar-first #content {
|
||||
float: right;
|
||||
width: 80%;
|
||||
margin-right: 20%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from right. */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 0%;
|
||||
margin-left: -20%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 1st column from right. */
|
||||
.sidebar-second #content {
|
||||
float: right;
|
||||
width: 80%;
|
||||
margin-right: 0%;
|
||||
margin-left: -80%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from right. */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 80%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
|
||||
/* Span 3 columns, starting in 2nd column from right. */
|
||||
.two-sidebars #content {
|
||||
float: right;
|
||||
width: 60%;
|
||||
margin-right: 20%;
|
||||
margin-left: -80%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from right. */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 0%;
|
||||
margin-left: -20%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from right. */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 80%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
}
|
271
themes/openstack/css/layouts/responsive.css
Normal file
@ -0,0 +1,271 @@
|
||||
/**
|
||||
* @file
|
||||
* Positioning for a responsive layout.
|
||||
*
|
||||
* Define CSS classes to create a fluid grid layout with optional sidebars
|
||||
* depending on whether blocks are placed in the left or right sidebars.
|
||||
*
|
||||
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
|
||||
*/
|
||||
|
||||
/**
|
||||
* Center the page.
|
||||
*
|
||||
* For screen sizes larger than 1200px, prevent excessively long lines of text
|
||||
* by setting a max-width.
|
||||
*/
|
||||
#page,
|
||||
.region-bottom {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
#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;
|
||||
*behavior: url("/path/to/boxsizing.htc");
|
||||
_display: inline;
|
||||
_overflow: hidden;
|
||||
_overflow-y: visible;
|
||||
}
|
||||
|
||||
/* Containers for grid items and flow items. */
|
||||
#header,
|
||||
#main,
|
||||
#footer {
|
||||
*position: relative;
|
||||
*zoom: 1;
|
||||
}
|
||||
#header:before,
|
||||
#header:after,
|
||||
#main:before,
|
||||
#main:after,
|
||||
#footer:before,
|
||||
#footer:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
#header:after,
|
||||
#main:after,
|
||||
#footer:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Navigation bar */
|
||||
@media all and (min-width: 480px) {
|
||||
#main {
|
||||
/* Move all the children of #main down to make room. */
|
||||
padding-top: 3em;
|
||||
position: relative;
|
||||
}
|
||||
#navigation {
|
||||
/* Move the navbar up inside #main's padding. */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 3em;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Use 3 grid columns for smaller screens.
|
||||
*/
|
||||
@media all and (min-width: 480px) and (max-width: 959px) {
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
|
||||
/* Span 2 columns, starting in 2nd column from left. */
|
||||
.sidebar-first #content {
|
||||
float: left;
|
||||
width: 66.66667%;
|
||||
margin-left: 33.33333%;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: left;
|
||||
width: 33.33333%;
|
||||
margin-left: 0%;
|
||||
margin-right: -33.33333%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
|
||||
/* Span 2 columns, starting in 1st column from left. */
|
||||
.sidebar-second #content {
|
||||
float: left;
|
||||
width: 66.66667%;
|
||||
margin-left: 0%;
|
||||
margin-right: -66.66667%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 3rd column from left. */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: left;
|
||||
width: 33.33333%;
|
||||
margin-left: 66.66667%;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
|
||||
/* Span 2 columns, starting in 2nd column from left. */
|
||||
.two-sidebars #content {
|
||||
float: left;
|
||||
width: 66.66667%;
|
||||
margin-left: 33.33333%;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: left;
|
||||
width: 33.33333%;
|
||||
margin-left: 0%;
|
||||
margin-right: -33.33333%;
|
||||
}
|
||||
|
||||
/* Start a new row and span all 3 columns. */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: left;
|
||||
width: 100%;
|
||||
margin-left: 0%;
|
||||
margin-right: -100%;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
clear: left;
|
||||
}
|
||||
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
.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;
|
||||
*behavior: url("/path/to/boxsizing.htc");
|
||||
_display: inline;
|
||||
_overflow: hidden;
|
||||
_overflow-y: visible;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in the 1st column from left. */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
|
||||
float: left;
|
||||
width: 33.33333%;
|
||||
margin-left: 0%;
|
||||
margin-right: -33.33333%;
|
||||
clear: left;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in the 2nd column from left. */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
|
||||
float: left;
|
||||
width: 33.33333%;
|
||||
margin-left: 33.33333%;
|
||||
margin-right: -66.66667%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in the 3rd column from left. */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n) {
|
||||
float: left;
|
||||
width: 33.33333%;
|
||||
margin-left: 66.66667%;
|
||||
margin-right: -100%;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Use 5 grid columns for larger screens.
|
||||
*/
|
||||
@media all and (min-width: 960px) {
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 2nd column from left. */
|
||||
.sidebar-first #content {
|
||||
float: left;
|
||||
width: 80%;
|
||||
margin-left: 20%;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: left;
|
||||
width: 20%;
|
||||
margin-left: 0%;
|
||||
margin-right: -20%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
|
||||
/* Span 4 columns, starting in 1st column from left. */
|
||||
.sidebar-second #content {
|
||||
float: left;
|
||||
width: 80%;
|
||||
margin-left: 0%;
|
||||
margin-right: -80%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: left;
|
||||
width: 20%;
|
||||
margin-left: 80%;
|
||||
margin-right: -100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
|
||||
/* Span 3 columns, starting in 2nd column from left. */
|
||||
.two-sidebars #content {
|
||||
float: left;
|
||||
width: 60%;
|
||||
margin-left: 20%;
|
||||
margin-right: -80%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: left;
|
||||
width: 20%;
|
||||
margin-left: 0%;
|
||||
margin-right: -20%;
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: left;
|
||||
width: 20%;
|
||||
margin-left: 80%;
|
||||
margin-right: -100%;
|
||||
}
|
||||
}
|
27
themes/openstack/css/normalize-rtl.css
Normal file
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @file
|
||||
* Normalize-rtl.scss is the RTL language extension of normalize.scss
|
||||
*/
|
||||
|
||||
/**
|
||||
* Lists
|
||||
*/
|
||||
dd {
|
||||
margin: 0 30px 0 0;
|
||||
}
|
||||
|
||||
/* Address paddings set differently in IE 6/7. */
|
||||
menu,
|
||||
ol,
|
||||
ul {
|
||||
padding: 0 30px 0 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms
|
||||
*/
|
||||
legend {
|
||||
/* Correct alignment displayed oddly in IE 6/7. */
|
||||
*margin-left: 0;
|
||||
*margin-right: -7px;
|
||||
}
|
555
themes/openstack/css/normalize.css
vendored
Normal file
@ -0,0 +1,555 @@
|
||||
/**
|
||||
* @file
|
||||
* Normalize.css is intended to be used as an alternative to CSS resets.
|
||||
*
|
||||
* This file is a slight fork of these original sources:
|
||||
* - normalize.css v2.1.2 | MIT License | git.io/normalize
|
||||
* - normalize.scss v2.1.2 | MIT/GPLv2 License | bit.ly/normalize-with-compass
|
||||
*
|
||||
* It's suggested that you read the normalize.scss file and customise it to meet
|
||||
* your needs, rather then including the file in your project and overriding the
|
||||
* defaults later in your CSS.
|
||||
* @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
|
||||
*/
|
||||
|
||||
/* Correct `block` display not defined in IE 8/9. */
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Correct `inline-block` display not defined in IE 8/9. */
|
||||
audio,
|
||||
canvas,
|
||||
video {
|
||||
display: inline-block;
|
||||
*display: inline;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* Address styling not present in IE 8/9. */
|
||||
[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;
|
||||
*/
|
||||
|
||||
/*
|
||||
@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. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
* 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
||||
* `em` units.
|
||||
*/
|
||||
html {
|
||||
font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; /* 1 */
|
||||
|
||||
/* Delete all but one of the following font-size declarations: */
|
||||
|
||||
/* Use a 12px base font size. 16px x 75% = 12px */
|
||||
font-size: 75%; /* 3 */
|
||||
/* Use a 14px base font size. 16px x .875 = 14px */
|
||||
font-size: 87.5%; /* 3 */
|
||||
/* Use a 16px base font size. */
|
||||
font-size: 100%; /* 3 */
|
||||
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
|
||||
/* Establish a vertical rhythm. */
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
/* Address `font-family` inconsistency between `textarea` and other form elements. */
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
/**
|
||||
* The following font family declarations are available on most computers.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* font-family: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
|
||||
* font-family: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
|
||||
* font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
|
||||
*
|
||||
* font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
|
||||
* font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
|
||||
* font-family: Helvetica, Arial, "Nimbus Sans L", sans-serif;
|
||||
* font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
|
||||
*
|
||||
* font-family: "Courier New", "DejaVu Sans Mono", monospace;
|
||||
*/
|
||||
font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
|
||||
}
|
||||
|
||||
/* Remove default margin. */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 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 {
|
||||
}
|
||||
|
||||
/* Address `outline` inconsistency between Chrome and other browsers. */
|
||||
a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
|
||||
/* Improve readability when focused and also mouse hovered in all browsers. */
|
||||
a:active,
|
||||
a:hover {
|
||||
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
|
||||
*/
|
||||
|
||||
/* Set 1 unit of vertical rhythm on the top and bottom margin. */
|
||||
p,
|
||||
pre {
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
blockquote {
|
||||
/* Also indent the quote on both sides. */
|
||||
margin: 1.5em 30px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
h1 {
|
||||
/* Set the font-size and line-height while keeping a proper vertical rhythm. */
|
||||
font-size: 2em;
|
||||
line-height: 1.5em; /* 3rem / 2em = 1.5em */
|
||||
/* Set 1 unit of vertical rhythm on the top and bottom margins. */
|
||||
margin-top: 0.75em; /* 1.5rem / 2em = .75em */
|
||||
margin-bottom: 0.75em;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.5em;
|
||||
line-height: 2em; /* 3rem / 1.5em = 2em */
|
||||
margin-top: 1em; /* 1.5rem / 1.5em = 1em */
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.17em;
|
||||
line-height: 1.28205em; /* 1.5rem / 1.17em = 1.28205em */
|
||||
margin-top: 1.28205em;
|
||||
margin-bottom: 1.28205em;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1em;
|
||||
line-height: 1.5em; /* 1.5rem / 1em = 1.5em */
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
h5 {
|
||||
font-size: 0.83em;
|
||||
line-height: 1.80723em; /* 1.5rem / 0.83em = 1.80723em */
|
||||
margin-top: 1.80723em;
|
||||
margin-bottom: 1.80723em;
|
||||
}
|
||||
h6 {
|
||||
font-size: 0.67em;
|
||||
line-height: 2.23881em; /* 1.5rem / 0.67em = 2.23881em */
|
||||
margin-top: 2.23881em;
|
||||
margin-bottom: 2.23881em;
|
||||
}
|
||||
|
||||
/* Address styling not present in IE 8/9, Safari 5, and Chrome. */
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Address styling not present in Safari 5 and Chrome. */
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Address differences between Firefox and other browsers. */
|
||||
hr {
|
||||
-webkit-box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
border: 1px solid #666;
|
||||
padding-bottom: -1px;
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
/* Address styling not present in IE 8/9. */
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Correct font family set oddly in Safari 5 and Chrome. */
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp,
|
||||
tt,
|
||||
var {
|
||||
font-family: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
|
||||
_font-family: 'courier new', monospace;
|
||||
font-size: 1em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
/* Improve readability of pre-formatted text in all browsers. */
|
||||
pre {
|
||||
white-space: pre;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* Set consistent quote types. */
|
||||
q {
|
||||
quotes: "\201C" "\201D" "\2018" "\2019";
|
||||
}
|
||||
|
||||
/* Address inconsistent and variable font size in all browsers. */
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists
|
||||
*/
|
||||
dl,
|
||||
menu,
|
||||
ol,
|
||||
ul {
|
||||
/* Address margins set differently in IE 6/7. */
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
ol ol,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ul ul {
|
||||
/* Turn off margins on nested lists. */
|
||||
margin: 0;
|
||||
}
|
||||
dd {
|
||||
margin: 0 0 0 30px; /* LTR */
|
||||
}
|
||||
|
||||
/* Address paddings set differently in IE 6/7. */
|
||||
menu,
|
||||
ol,
|
||||
ul {
|
||||
padding: 0 0 0 30px; /* LTR */
|
||||
}
|
||||
|
||||
/* Correct list images handled incorrectly in IE 7. */
|
||||
nav ul,
|
||||
nav ol {
|
||||
list-style: none;
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Embedded content and figures
|
||||
*
|
||||
* @todo Look into adding responsive embedded video.
|
||||
*/
|
||||
img {
|
||||
/* Remove border when inside `a` element in IE 8/9. */
|
||||
border: 0;
|
||||
/* Improve image quality when scaled in IE 7. */
|
||||
-ms-interpolation-mode: bicubic;
|
||||
|
||||
/* Suppress the space beneath the baseline */
|
||||
/* vertical-align: bottom; */
|
||||
|
||||
/* Responsive images */
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
/* Correct IE 8 not scaling image height when resized. */
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* Correct overflow displayed oddly in IE 9. */
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Address margin not present in IE 8/9 and Safari 5. */
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms
|
||||
*/
|
||||
|
||||
/* Correct margin displayed oddly in IE 6/7. */
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Define consistent border, margin, and padding. */
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.5em 0.625em 1em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
* 3. Correct alignment displayed oddly in IE 6/7.
|
||||
*/
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
*margin-left: -7px; /* 3 */ /* LTR */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct font family not being inherited in all browsers.
|
||||
* 2. Correct font size not being inherited in all browsers.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
||||
* 4. Improve appearance and consistency with IE 6/7.
|
||||
* 5. Keep form elements constrained in their containers.
|
||||
*/
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
vertical-align: baseline; /* 4 */
|
||||
*vertical-align: middle; /* 4 */
|
||||
max-width: 100%; /* 5 */
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; /* 5 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
button,
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
||||
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
||||
*/
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
|
||||
* Known issue: inner spacing remains in IE 6.
|
||||
*/
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
*overflow: visible; /* 4 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9.
|
||||
* 2. Remove excess padding in IE 8/9.
|
||||
* 3. Remove excess padding in IE 7.
|
||||
* Known issue: excess padding remains in IE 6.
|
||||
*/
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
*height: 13px; /* 3 */
|
||||
*width: 13px; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-webkit-box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
||||
* on OS X.
|
||||
*/
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/* Remove inner padding and border in Firefox 4+. */
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove default vertical scrollbar in IE 8/9.
|
||||
* 2. Improve readability and alignment in all browsers.
|
||||
*/
|
||||
textarea {
|
||||
overflow: auto; /* 1 */
|
||||
vertical-align: top; /* 2 */
|
||||
}
|
||||
|
||||
/* Drupal-style form labels. */
|
||||
label {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tables
|
||||
*/
|
||||
table {
|
||||
/* Remove most spacing between table cells. */
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
/* Prevent cramped-looking tables */
|
||||
/* width: 100%; */
|
||||
/* Add vertical rhythm margins. */
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 1.5em;
|
||||
}
|
58
themes/openstack/css/page-layouts.css
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* Layout of inner page elements.
|
||||
*
|
||||
*/
|
||||
/* line 17, ../sass/page-layouts.scss */
|
||||
#header #logo {
|
||||
/*background: #00ff00;*/
|
||||
}
|
||||
/* line 20, ../sass/page-layouts.scss */
|
||||
#header #navigation {
|
||||
/*background: #e0e0e0;*/
|
||||
/*position: static;
|
||||
width: auto;
|
||||
height: 56px;*/
|
||||
}
|
||||
|
||||
/* line 46, ../sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
|
||||
#branding:before, #branding:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
/* line 50, ../sass-extensions/zen-grids/stylesheets/zen/_grids.scss */
|
||||
#branding:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* line 32, ../sass/page-layouts.scss */
|
||||
#logo {
|
||||
float: left;
|
||||
width: 196px;
|
||||
margin-left: 0px;
|
||||
margin-right: -196px;
|
||||
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 36, ../sass/page-layouts.scss */
|
||||
#navigation {
|
||||
float: left;
|
||||
width: 784px;
|
||||
margin-left: 196px;
|
||||
margin-right: -980px;
|
||||
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;
|
||||
position: static;
|
||||
}
|
80
themes/openstack/css/print.css
Normal file
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @file
|
||||
* Print styling
|
||||
*
|
||||
* We provide some sane print styling for Drupal using Zen's layout method.
|
||||
*/
|
||||
|
||||
/**
|
||||
* By importing this CSS file as media "all", we allow this print file to be
|
||||
* aggregated with other stylesheets, for improved front-end performance.
|
||||
*/
|
||||
@media print {
|
||||
|
||||
/* Underline all links. */
|
||||
a:link,
|
||||
a:visited {
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
/* Don't underline header. */
|
||||
a:link.header__site-link,
|
||||
a:visited.header__site-link {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
/* Add visible URL after links. */
|
||||
#content a[href]:after {
|
||||
content: " (" attr(href) ")";
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Only display useful links. */
|
||||
#content a[href^="javascript:"]:after,
|
||||
#content a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
/* Add visible title after abbreviations. */
|
||||
#content abbr[title]:after {
|
||||
content: " (" attr(title) ")";
|
||||
}
|
||||
|
||||
/* Un-float the content. */
|
||||
#content {
|
||||
float: none !important;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* Turn off any background colors or images. */
|
||||
body,
|
||||
#page,
|
||||
#main,
|
||||
#content {
|
||||
color: #000;
|
||||
background-color: transparent !important;
|
||||
background-image: none !important;
|
||||
}
|
||||
|
||||
/* Hide sidebars and nav elements. */
|
||||
#skip-link,
|
||||
#toolbar,
|
||||
#navigation,
|
||||
.region-sidebar-first,
|
||||
.region-sidebar-second,
|
||||
#footer,
|
||||
.breadcrumb,
|
||||
.tabs,
|
||||
.action-links,
|
||||
.links,
|
||||
.book-navigation,
|
||||
.forum-topic-navigation,
|
||||
.pager,
|
||||
.feed-icons {
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
}
|
||||
}
|
397
themes/openstack/css/styles-rtl.css
Normal file
@ -0,0 +1,397 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the styles.scss file.
|
||||
*/
|
||||
/* Import Sass mixins, variables, Compass modules, etc. */
|
||||
/* HTML element (SMACSS base) rules */
|
||||
/**
|
||||
* @file
|
||||
* Normalize-rtl.scss is the RTL language extension of normalize.scss
|
||||
*/
|
||||
/**
|
||||
* Lists
|
||||
*/
|
||||
/* line 9, ../sass/_normalize-rtl.scss */
|
||||
dd {
|
||||
margin: 0 30px 0 0;
|
||||
}
|
||||
|
||||
/* Address paddings set differently in IE 6/7. */
|
||||
/* line 16, ../sass/_normalize-rtl.scss */
|
||||
menu,
|
||||
ol,
|
||||
ul {
|
||||
padding: 0 30px 0 0;
|
||||
}
|
||||
|
||||
/* Layout rules */
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the layout-responsive.css file.
|
||||
*/
|
||||
/**
|
||||
* @file
|
||||
* Positioning for a responsive layout.
|
||||
*
|
||||
* Define CSS classes to create a fluid grid layout with optional sidebars
|
||||
* depending on whether blocks are placed in the left or right sidebars.
|
||||
*
|
||||
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
|
||||
*/
|
||||
/**
|
||||
* Use 3 grid columns for smaller screens.
|
||||
*/
|
||||
@media all and (min-width: 480px) and (max-width: 959px) {
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
/* line 86, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-first {
|
||||
/* Span 2 columns, starting in 2nd column from left. */
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
}
|
||||
/* line 88, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-first #content {
|
||||
float: right;
|
||||
width: 66.66667%;
|
||||
margin-right: 33.33333%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
/* line 93, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 0%;
|
||||
margin-left: -33.33333%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
/* line 101, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-second {
|
||||
/* Span 2 columns, starting in 1st column from left. */
|
||||
/* Span 1 column, starting in 3rd column from left. */
|
||||
}
|
||||
/* line 103, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-second #content {
|
||||
float: right;
|
||||
width: 66.66667%;
|
||||
margin-right: 0%;
|
||||
margin-left: -66.66667%;
|
||||
}
|
||||
/* line 108, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 66.66667%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
/* line 116, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars {
|
||||
/* Span 2 columns, starting in 2nd column from left. */
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
/* Start a new row and span all 3 columns. */
|
||||
}
|
||||
/* line 118, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars #content {
|
||||
float: right;
|
||||
width: 66.66667%;
|
||||
margin-right: 33.33333%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
/* line 123, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 0%;
|
||||
margin-left: -33.33333%;
|
||||
}
|
||||
/* line 128, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: right;
|
||||
width: 100%;
|
||||
margin-right: 0%;
|
||||
margin-left: -100%;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
clear: right;
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
/* Span 1 column, starting in the 1st column from left. */
|
||||
/* Span 1 column, starting in the 2nd column from left. */
|
||||
/* Span 1 column, starting in the 3rd column from left. */
|
||||
}
|
||||
/* line 134, ../sass/layouts/_responsive.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 138, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 0%;
|
||||
margin-left: -33.33333%;
|
||||
clear: right;
|
||||
}
|
||||
/* line 143, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 33.33333%;
|
||||
margin-left: -66.66667%;
|
||||
}
|
||||
/* line 147, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars .region-sidebar-second .block:nth-child(3n) {
|
||||
float: right;
|
||||
width: 33.33333%;
|
||||
margin-right: 66.66667%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Use 5 grid columns for larger screens.
|
||||
*/
|
||||
@media all and (min-width: 960px) {
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
/* line 164, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-first {
|
||||
/* Span 4 columns, starting in 2nd column from left. */
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
}
|
||||
/* line 166, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-first #content {
|
||||
float: right;
|
||||
width: 80%;
|
||||
margin-right: 20%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
/* line 171, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-first .region-sidebar-first {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 0%;
|
||||
margin-left: -20%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
/* line 179, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-second {
|
||||
/* Span 4 columns, starting in 1st column from left. */
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
}
|
||||
/* line 181, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-second #content {
|
||||
float: right;
|
||||
width: 80%;
|
||||
margin-right: 0%;
|
||||
margin-left: -80%;
|
||||
}
|
||||
/* line 186, ../sass/layouts/_responsive.scss */
|
||||
.sidebar-second .region-sidebar-second {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 80%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
/* line 194, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars {
|
||||
/* Span 3 columns, starting in 2nd column from left. */
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
}
|
||||
/* line 196, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars #content {
|
||||
float: right;
|
||||
width: 60%;
|
||||
margin-right: 20%;
|
||||
margin-left: -80%;
|
||||
}
|
||||
/* line 201, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars .region-sidebar-first {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 0%;
|
||||
margin-left: -20%;
|
||||
}
|
||||
/* line 206, ../sass/layouts/_responsive.scss */
|
||||
.two-sidebars .region-sidebar-second {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-right: 80%;
|
||||
margin-left: -100%;
|
||||
}
|
||||
}
|
||||
/* Component (SMACSS module) rules */
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the modular-styles.css file.
|
||||
*/
|
||||
/**
|
||||
* Branding header.
|
||||
*/
|
||||
/* Wrapping link for logo. */
|
||||
/* line 11, ../sass/components/_misc-rtl.scss */
|
||||
.header__logo {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* The secondary menu (login, etc.) */
|
||||
/* line 16, ../sass/components/_misc-rtl.scss */
|
||||
.header__secondary-menu {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation bar.
|
||||
*/
|
||||
/* Main menu and secondary menu links and menu block links. */
|
||||
/* line 27, ../sass/components/_misc-rtl.scss */
|
||||
#navigation .links,
|
||||
#navigation .menu {
|
||||
text-align: right;
|
||||
}
|
||||
/* line 30, ../sass/components/_misc-rtl.scss */
|
||||
#navigation .links li,
|
||||
#navigation .menu li {
|
||||
/* A simple method to get navigation links to appear in one line. */
|
||||
float: right;
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Messages.
|
||||
*/
|
||||
/* line 41, ../sass/components/_misc-rtl.scss */
|
||||
.messages, .messages--status, .messages--warning, .messages--error {
|
||||
padding: 10px 50px 10px 10px;
|
||||
background-position: 99% 8px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tabs.
|
||||
*/
|
||||
/* line 58, ../sass/components/_misc-rtl.scss */
|
||||
.tabs-primary__tab, .tabs-primary__tab.is-active, .tabs-secondary__tab,
|
||||
.tabs-secondary__tab.is-active {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inline styles.
|
||||
*/
|
||||
/* List of links */
|
||||
/* line 77, ../sass/components/_misc-rtl.scss */
|
||||
.inline li {
|
||||
/* Bug in Safari causes display: inline to fail. */
|
||||
display: inline-block;
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/* The inline field label used by the Fences.module */
|
||||
/* line 84, ../sass/components/_misc-rtl.scss */
|
||||
span.field-label {
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/**
|
||||
* "More" links.
|
||||
*/
|
||||
/* line 91, ../sass/components/_misc-rtl.scss */
|
||||
.more-link {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* line 94, ../sass/components/_misc-rtl.scss */
|
||||
.more-help-link {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* line 97, ../sass/components/_misc-rtl.scss */
|
||||
.more-help-link a {
|
||||
background-position: 100% 50%;
|
||||
padding: 1px 20px 1px 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menus.
|
||||
*/
|
||||
/* line 105, ../sass/components/_misc-rtl.scss */
|
||||
.menu__item.is-collapsed {
|
||||
list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');
|
||||
}
|
||||
|
||||
/**
|
||||
* Comments.
|
||||
*/
|
||||
/* Nested comments are indented. */
|
||||
/* line 117, ../sass/components/_misc-rtl.scss */
|
||||
.indented {
|
||||
margin-left: 0;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms.
|
||||
*/
|
||||
/* Drupal's default login form block */
|
||||
/* line 127, ../sass/components/_misc-rtl.scss */
|
||||
#user-login-form {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* line 132, ../sass/components/_misc-rtl.scss */
|
||||
html.js #user-login-form li.openid-link,
|
||||
#user-login-form li.openid-link {
|
||||
/* Un-do some of the padding on the ul list. */
|
||||
margin-left: 0;
|
||||
margin-right: -20px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Drupal admin tables.
|
||||
*/
|
||||
/* line 142, ../sass/components/_misc-rtl.scss */
|
||||
form th {
|
||||
text-align: right;
|
||||
padding-left: 1em;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collapsible fieldsets.
|
||||
*
|
||||
* @see collapse.js
|
||||
*/
|
||||
/* line 155, ../sass/components/_misc-rtl.scss */
|
||||
html.js .collapsible .fieldset-legend {
|
||||
background-position: 98% 75%;
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
/* line 160, ../sass/components/_misc-rtl.scss */
|
||||
html.js .collapsed .fieldset-legend {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');
|
||||
background-position: 98% 50%;
|
||||
}
|
||||
|
||||
/* SMACSS theme rules */
|
||||
/* @import "theme-A-rtl"; */
|
||||
/* @import "theme-B-rtl"; */
|
1795
themes/openstack/css/styles.css
Normal file
BIN
themes/openstack/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
themes/openstack/images-source/screenshot.psd
Normal file
BIN
themes/openstack/images/header-line.gif
Normal file
After Width: | Height: | Size: 48 B |
BIN
themes/openstack/images/help.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
themes/openstack/images/menu-collapsed-rtl.png
Normal file
After Width: | Height: | Size: 107 B |
BIN
themes/openstack/images/menu-collapsed.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
themes/openstack/images/menu-expanded.png
Normal file
After Width: | Height: | Size: 106 B |
BIN
themes/openstack/images/menu-leaf.png
Normal file
After Width: | Height: | Size: 126 B |
BIN
themes/openstack/images/message-24-error.png
Normal file
After Width: | Height: | Size: 733 B |
BIN
themes/openstack/images/message-24-ok.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
themes/openstack/images/message-24-warning.png
Normal file
After Width: | Height: | Size: 753 B |
BIN
themes/openstack/images/progress.gif
Normal file
After Width: | Height: | Size: 5.7 KiB |
14
themes/openstack/js/README.txt
Normal 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
|
26
themes/openstack/js/script.js
Normal file
@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @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:
|
||||
// - https://drupal.org/node/1446420
|
||||
// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
|
||||
(function ($, Drupal, window, document, undefined) {
|
||||
|
||||
|
||||
// To understand behaviors, see https://drupal.org/node/756722#behaviors
|
||||
Drupal.behaviors.my_custom_behavior = {
|
||||
attach: function(context, settings) {
|
||||
|
||||
// Place your code here.
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
})(jQuery, Drupal, this, this.document);
|
BIN
themes/openstack/logo.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
150
themes/openstack/openstack.info
Normal file
@ -0,0 +1,150 @@
|
||||
; 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
|
||||
description = Openstack theme based on openstack.org
|
||||
|
||||
|
||||
|
||||
; 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 and message styling since Zen has its own.
|
||||
stylesheets[all][] = system.menus.css
|
||||
stylesheets[all][] = system.messages.css
|
||||
stylesheets[all][] = system.theme.css
|
||||
|
||||
; Then we add our own stylesheet.
|
||||
stylesheets[all][] = css/styles.css
|
||||
stylesheets[all][] = css/page-layouts.css
|
||||
stylesheets[all][] = css/custom.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: https://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[header] = Header
|
||||
regions[toolbar] = Toolbar
|
||||
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:
|
||||
; https://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] = 0
|
||||
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: https://drupal.org/node/495654
|
||||
;plugins[panels][layouts] = panels-layouts
|
17
themes/openstack/sass-extensions/zen-grids/DO_NOT_MODIFY
Normal 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.4
|
||||
|
||||
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.
|
274
themes/openstack/sass-extensions/zen-grids/LICENSE.txt
Normal 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
|
88
themes/openstack/sass-extensions/zen-grids/README.txt
Normal file
@ -0,0 +1,88 @@
|
||||
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.
|
||||
|
||||
More information can be found at http://zengrids.com
|
||||
|
||||
|
||||
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.2 or later
|
||||
|
||||
For the zen/background module only:
|
||||
- Compass 0.12 or later
|
||||
|
||||
|
||||
LICENSE
|
||||
-------
|
||||
|
||||
Available under the GPL v2 license. See LICENSE.txt.
|
@ -0,0 +1,3 @@
|
||||
require 'compass'
|
||||
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
||||
Compass::Frameworks.register('zen-grids', :path => extension_path)
|
@ -0,0 +1,3 @@
|
||||
// Import the partial for Zen Grids.
|
||||
|
||||
@import "zen/grids";
|
@ -0,0 +1,155 @@
|
||||
@import "grids";
|
||||
@import "compass/css3/images";
|
||||
|
||||
|
||||
// Specify the color of the background grid.
|
||||
$zen-grid-color : #ffdede !default;
|
||||
|
||||
// Specify which set of numbers to display with the background grid. Can be set
|
||||
// to: both, top, or none.
|
||||
$zen-grid-numbers : both !default;
|
||||
|
||||
// Create an image set of 25 numbers for the grid using data URIs. Users who are
|
||||
// crazy enough to use a 26-column grid or larger are free to extend this set.
|
||||
$zen-grid-number-images : () !default;
|
||||
|
||||
// If the set is empty, add our default set of 25.
|
||||
@if length($zen-grid-number-images) == 0 {
|
||||
// The number 1.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARVJREFUeNpi/P//PwMMMDIyMpALYOawEKEWpIYPiAWg7M9A/B6If4LMwaaYkGHiQKwFxJpAzA3E94H4LBA/BOJfWJ0Kw0iAFYhFgFgHiIOBuPHGjRtvf//+/X/WrFmHgHxPqIsxzGHC4TJ+IDYCYu+EhIQ4oGG5ysrKQiCJX79+cQApXqilDMR6mROI5Z8+fVotJibGS0rk4HLhd1AYSUtLd8rLyy/78uXLb0oN/AjE54D44LNnz27euXPnHaUGglz0BoifAvEHaniZbDBq4BA0EJR8vjAxMf2FCbCxsf2AljhYEzsjgfIQlKe1gVgPiCWAGGTwbWylDcwcQgayQIssASj9D5qLMMpDYg0kucSmeqQABBgAsyJrV7MArsMAAAAASUVORK5CYII='));
|
||||
// The number 2.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAdBJREFUeNqslL9LQlEUx3367AdamdCQaVjQ0uAQBS+hxbVBhEcESoOG/0SDS9HakDYGEU0huLa1GW4tGtkkURBlQRn4LPseOBdej0u+ygsffByvH98995zj6Ha7DqIfizyKkCmKYv1eBaPAB4ZpP3gDz/zZ+Y1wAEyBeTAH/OATPIBrUAP3oG0VOiRHVli2nslkTmu12pNhGF2iUqncxePxI3yngwDv7SkcAstYeSEy02w229FodB97NN77TeiU5NYDJlOp1KII5HK5y2QyWaZnr9frxvMSv6HH+mOZkPI3EgwGfSJQr9db5g2hUGiMZW47wg/QUlXVMAd1XQ+I50aj8cI3bUhrx5JD+ucI2ADb4DASiZyZ80j5pTzLcigTOlkaBqtgp1gs3ghZqVS6QmyTTm73lkXpTIBEOp0umm9Y07QDxFdkF/KTcBAsgC3k61UI8/n8BWJJrlOnXaEo7BQJhKxarTYR2+OiDnM1OOwWtkbFS0cUwlgsdo74MdgFa2AauOwIqW8ThUKhLOsUIpvNnmBPlIdGz06h1fH7/a6/jDDZtKEjz/ClzFrfAuudpw1d0C03wo/jS2HpOM9Da3tRd1CnPNodX/+a2H0XfgkwAIVYVeQ1/9a6AAAAAElFTkSuQmCC'));
|
||||
// The number 3.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAe5JREFUeNqslM1LAkEYxnX7lL62CAmTwENkhyKwDkZg185dgvDQwS7RUQkvkRfzKNQfIF5CukjRJelk4EWwDmVUEJinaNlSMLPWnhdmYFvWGqiFH44z8z7zzjPvjKXZbFqI//hIx8rFrFarfkwCNiCDPtABNFADKngFH6KC1BgEE2ASOEE3E1DALbgCZfBuFLSYbJmC51wu1046nb5pNBpNTrFYVEKh0DHGV8AoW/xXQTsFJJPJC72YHq/Xu485Xrb4N0HJxFvybsjtdtt5Rzwev04kEvf8v9/v97CFbcbgdhPBT/AmSZLGOxRFaRgyoa22scP7VbACih6PZ5cdzAjoSqVS03xCoVB4wM8zLWxaOwYPaZEBMAXWI5HIud6/TCZTQv82mBX18MfP5/M5Y7HYAprDlLlIhpTdPNgEe+AQHOVyuSeeJZUT+taAQyRDuhnufD6/heANsBwOh8ey2ewTn+BwOPrZCXcYg80EycMeTdNa2lGpVN5ZNWgiglQitWq1Wtd3yrLcydvlclll1VAX8ZAehCUYf9rqpgQCgQPMWQS9IlePtuyiCxGNRs9UVa1zoVKpVA0GgycYWwVjrLiFnq9OFjADxlkm5NcLuAOX4NHstWklyEVlBvfvjb2HL8xri8iW//Ri/7vglwADAMZnRpCsTg8QAAAAAElFTkSuQmCC'));
|
||||
// The number 4.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAW5JREFUeNqslDFLw0AYhpOaSFuiDjqViiUKVhACDpJCQycX/TVChCz+Evf8ALtlCGZyCW6uOiR4QusgSgtmiO/BBZJ4l1qSg4dwd19e7vvuvU9K01SiNDGojpyJybLMi9kEu2AHqGwtAZ/gA/ysI6iAPjgHx6DD1pfgGTwCUhaUKlLeBheO49wnSZLmwfotGPJSblWUZAscmKY55Ox1ciUoDJGgwmrXm0wmg3UuRiTYpWK2bY80TVN93yd1BWm6/fF4fEgnQRDM6ggW0iWELKbT6byOYCFdz/OIwJ9d3sW0BOn2LMvS6cR13TeBpfaZ4f96p+TDI3ATRdF32X8ZcRx/IeYa6P/x4YbIY7kfZZEXeYL0rS7wFIUdg+0tWWxxj/OW98AZOM0ag2EYgzAMr7IAVVXv8PHAA5jnU1Y4B6Cd5Am8sJvU2+32ZSnmHbyy2JUnLOzTGwcjcMLqVtltVgnyemJlP5Sa7tiNC/4KMAAbxb+98QKR2gAAAABJRU5ErkJggg=='));
|
||||
// The number 5.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAc5JREFUeNqslM9KAlEUxp0xzSTNDHMoCiIKKRChXbgIAldKEK5y4Up9A5dufAMRRB8gwnW7lkV/EBcR0WzaBMEQFRNFlkNO34E7MU23msyBHzNz58x373fOPdeh67qDGMRFOkOccQEMg3EwBlyW7xp4AHega/2ZJ0gCM2AFLIARy/cOkMEJuAZvX5ZpsRwEyUajsa9pms4jn89vI2bVOhnpiJwVkt2JcDg82U8eeZZpEqd5IJPJHDebzVtmj3J3BBReDsU/LoAEn1keSazXl2AikQghd0mw2Wq10vF4nAo2DTx9CWaz2XnjORaLSYVCYR2Pc8BnR5BsdURR/NgO1Wr1rFKpnBvvkUiEChYCXjtFobx0U6nUHu4XxgSlUmnZCJAkycfEXHYE3dQh7XY7HY1Gp2igXC63e72e1Y2T55BnmQI9ZgG/3+/Fu5OTGltVfqFelWX5xhgIBAJuc4CiKI+4PbG+dvzWeqNgLZfL7XzXevV6/QAxG9RRVi2eIFmbBVvFYnEXK703hFRVfa3Vaoe0k8Aiy/cnQcEQEwTBWhjauEvsxAmyicjmJTgFVyw9uh1BYwf4KYXsVBFYu6nsPOyaxX6y/K8TW3QM+HoXYACXiuXQRCn2XAAAAABJRU5ErkJggg=='));
|
||||
// The number 6.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAcZJREFUeNqslLFLw0AUxpPWKNZag6igqYKgCA61dhScHbV0URwcCo7+DV1K5y6FTlIcdQl0dhKkdBAHsaJ1MBQdJEZNKmnQ+B3cQZte2wx98OPIu5ePe+/dO8F1XYEwDCM6I332yd4EkOkaBA74BB/AJhq8n3g2ChbAGlgBs9T3A57BDXgBTfDXdUxPygGwCPbT6fR5tVp9dRzHZRQKhWvsHYMNevIOLZ4gCdpOJpOn7ULtlMvlO8QcgnmvYICTbogEplKpTeYolUpPmUzmln3H4/ElLFO0DII3PV79IuFwOMQchmG0stlsXZIklRCNRs/gfqc1HSgogTFFUSaZIxaLyZqm7SDd3UqlsgVB0kwLtLh3x1PDZXCCZrz1qqGqqg+IOfJbwy5DDev5fP6efScSCQXLnLfLvVLuMlJDXdcdTmmCfgRJ/r+8KfBjPEFyErvRaHwPGl2/o0c692WaZpM5ZFnuuG+WZdm0y46fLg+clGKxeIWYPTDjZ/TYLB9gli9qtZrOhNAcO5fLXdIrs+qdFKIjMjFRFL3TQq7GOv1xmnbUBI+AjKHmfcL6CbL6Ruh7OE5CaH0NSotXPmHYL3ZAGLL9CzAANR4i5o9tHM8AAAAASUVORK5CYII='));
|
||||
// The number 7.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAbBJREFUeNqslL1Kw1AUx5O2ih8BsWoRAw6SgAHJKvQFunWqQ18gs5Oj4DP4DuLomqWTjhVEKYVapDRBrdXUqtU2avyfelNCbGwTvfDj9N5L/j1f9/CO43C0eJ7n/rIGOgGCk2ABzIEJ73fgDbTAI7DHEYwDEWyCdTDtEfwAFrgAp6DpF+z/GGy+FwmkNU07sG3b8WMYxhPut8GaP2QiFiFXFMqMLxU/lT2LQl4FW2AX7IPDUqnUIg/r9foz9jtAHtdDytMNOAZH4EQUxY4sy1QgrlKp3MNQ2N1hDiYCIuuBa/BCBcrn8yvuBTy9hSHR12Efjsoh5WpRVdWBYLFYNFmlIwlSxecVRUm5B4VC4QrmgfVjKEG6E0BSkqQkHVSrVatWq1Eq2izXoQSnSCybzcqCIPRbpFwuN1m4HfZqQglS/lKZTEZyD0zTtNiz6/4WVtCaBUvI37J7oOv6Jcwd85Abt7HdP9qgxrYsq0cNTRb7PaAOc2TU06PzRC6XE938NRqNNvOOmvozyMGg8RXzTByFvVsqyDk4Y20Tah76Z2KcNXKLtcx7FMF/ndiRBb8EGABjzN026ymFhAAAAABJRU5ErkJggg=='));
|
||||
// The number 8.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAahJREFUeNqslLFOwlAUhi0IGpGUoEMTjYnGmLgYEhhN4+qkzpo48Qg8gimMTMDI5hO4GJ3UgUkXOhgGJCYYI5bYRKBD/Y85JeXmokW8ycdtzz39ezn/7VFc152hoSjKzLSDtJQfBCNABQkwz7EBsJjBJIJRsAp2wCYLh4ANHsE9eBJFv7XoxxPlEQZr4DiXy120Wi3bcRyXsCyrbxjGNa1xTjiIYAzo2Wz23BMSoTXk7IFFUTAkqS3VazmVSq17gWq12igWi6Z3r+v6NiYNLIgPywQVMY6/OlIrVVXn2LRQEME+6DabzVcvkEgkov6Eer3+jOkN9KRnR1LDXWCYpvku1q9Wq71g7YxzYkFMWQJHpVLpbpwp5XL5FjmHnPurKfRWLZPJDE0hQ/ympNPpDUwrIC4+PCsRDHPBhye90+k4/gRN0+J8ZCJBTHF9TDxkO6TdfNq23fcCyWRyZCftdvuDP0MniMvUDPYLhcLlOFMqlcoNcg5kpsgEaddkyEk+n78Sv2VyH2unYIubyNTdpgEeuNv0/LWeph92+dqdpMH+e8f+k+CXAAMABxE8L2GVSOsAAAAASUVORK5CYII='));
|
||||
// The number 9.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaVJREFUeNqslEFLAkEUx910N8tclk5FEEQUGB3qC0gXbx70WBie9CP4FfTq3Q/QTYPFU/UFOiQh5EEI1iAsWLZ0Q1tq+7+YCVtG19KBH8O+2f0xs/PeC7iuGyDmMcgTmrBOayrQwBKQwABY4AU44z4SDQVsgD2wA1aZkERtcAsewLtwm54jB8EmOCkUCnqr1TIdx3GJTqfTL5VKl1jLgC3vhr49AuEKOMrlcmdc5AXSC7yTZDv/JVwQHHcZrMXj8RgPVKtVo1wu3/HnVCp1yHaoej8WCWWSqqoa5gHDMGzTNH8uIRKJLLKTKNMIKSZHo9GwT5ZIDF/hTEOUNh+UDr1eb8ADmqYpswhJ9Nztdp8w71Igm81uTysUHfmNkjafz5/rut4even/Cimx6RaD6XT6WpZlnWg0Gpa3Jhi+Qqrb9Xq9nkESH4NkpVKJjb5g2/YQU19UeqJ/SPk2aDabj4lEYl/0D2u12g2me/A6TS2HWBWcFovFK8uyhn+pZYnLJEnydhtqEAes21BVfPp1m0lCLtUYykhKje2H47rNTB177qX3JcAAagDd/y1YjuwAAAAASUVORK5CYII='));
|
||||
// The number 10.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAdZJREFUeNrclD9IAlEcxzW7tLiyrCXrgoiGaInIIQKhwc0xkCYDcXYVDRqaGp2dXASpKYgGlxBbcmvJqCPKSCE4PbMyr7q+D35P5Lj+EC714MO73+/33vfen9/7WSxdblYTXx8YJli8TtjJ1w908Ahq1L9+JsjEJsEimAU2IINrMEI+F3gH9+ASnIM70DIKjYMlsOHxeFK1Wu1F0zQ9GAzuw7cVCoX2isWiwnyMQqFQhm8XsXUwRT9vr3ICrIFttHy1Wm3xiYFAIO/z+bLcNhIOhzOYtwoGmVgPMeT1ej0YsBmNRldEURT433Rdt0F0mtupVEpOJBJn3Pb7/QvoJCByQXYe9VwuVxAEYQdbPDLekiRJA/wbR9FSFEXjttvtHqLV2bmgTgd8DHLpdPrUKOh0OoVvMsXGL7iXnOyGymCM0uDXrafbif1PBFVV1b4I6x38TLBUKj112i6Xq33rjUajyTr+9Hq/rR5W61smk7lCfs4wOxKJzHXGkWYn6G7Ag9kK2daeOx0Oh0PJZrP5eDx+IMtylfsrlcpjLBY7TCaT7K1fgCezasMKxDKYpzL1TBXFWG3YPJVi7CHc8i2bla9R9jiAQCtWTeohm9ekeqjSuD/SPgQYANoDxDJkiCZZAAAAAElFTkSuQmCC'));
|
||||
// The number 11.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWxJREFUeNrslE1LhEAYx9eXlcK2jQgTRDwYRC90iL5EdOwQdBBP3foEnTr2DcQP0KE+RUHHgm5GRoTpqfcVLMXd/hNjjKJshz3soQd+jPMf53FmfObfao04uAZdBNNghj73wCvIQadG/wKDpoTkxXmwDJaADO7BNfgECxX9EjyAtJqoDebAKtgGh57nPWdZNnAc5wL9PWCxuuu65+hv0hX/BM8k7IJ1sGXbtoVJ+6ZpzpKBJEnINjcsy9ph9TRNJ+gRtNntFTEJjDAMDxRF6bBLz/NcCIJgV1VVedhPYVeYkLPQNO3IMIzjOI6zYkAQhFzX9RPop6w+LOE7uAJnURTd+L7/8rsNUSQHHkJ/ZPWm8iiCfPmJTARvpdriuD6a+C91yI+6sP8TjmFCsUYj5RPzPJ8XgiRJxBRI/WU1eo/OabQvcqdXwBpQqWXdgjswBRYresltmuxLpg5C2j69RR/UBLoVveSH4x/fAgwA+s1/zoQYuDcAAAAASUVORK5CYII='));
|
||||
// The number 12.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmJJREFUeNrMlM+LUlEUx5/Oe9KkjVOUyZhKM22mQhdRDC5atJidmOZOBXHhxj+goIW6khauDP+AUHctWiS4CYJQw2hoaOGURGU6QY3OkGXjr9f30rnOwxxGokUXPtx7z333vHvu+d4jCP+4qabYRLAAFmn8jdCQbR7I4DvYpX5wmEPm4Cy4CFaBFnwAH8FJsAJOgRH4At6CKvgMekpHEjgNLoNbIF6tVnf6/b6cTqdLmMdCodBD2FrMxqhUKtsul+sB1rxgafJwzNk6uB0MBh8pNyaTydd2u/0xnytpt9s9h8NxH/vWwDEeokD3Ym00GncNBsMJ5Z9kWVYHAoHzfB6NRjdrtdqPbDa7ptPpJJ/Pd7VYLD6h8H+q6bsuuyuTyXTParXmOp1OX+nUYrFo+Zg5U66ZzWY93TW7NoE73AMvwdNms7mFTa1x1lSqkSiKA6UTr9e7xMf1en2PMt1XhswmX0GDpHCQdlHseTyePE3P2Gw2k9vttvD1TCbzAt02OR2f8NCmVquH6N6DV6AZi8VW+Fo+n39TKpU2MPwE9mdyiJBlksRxSGfV6XQuMzu750QiwZKxBVok9nHIRzUm6oV4PL7ODblcbqNcLj/D8B0lVZjphKPRaI7pNJVK3TAajVrK9G4kEilRmJLyYEc6HAwGGgj7gt/vt3EbnG3SY7gCrgEjmJv5hBD2MhMxtxUKhet4KT5wJxwO34TpHBWPP+6QyadDmf39yCVpX6/Xa/62fDHVXwI2CmNIGRSoysxPfN+lavOcNDycVr60VPe0VKa6ivcuTYmIvZSdyfL1/7ZfAgwAPr/v4RS2v5YAAAAASUVORK5CYII='));
|
||||
// The number 13.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAl9JREFUeNrUlM+LUlEUx98z3zRTNiMVkTq4C4xkFpWCFBqu20ghRYrt+gsUkZK0hbh00WqEcGPgzhhatIgUJTAEaTEaTRA4ziym/DGazficZ98b58arnJBo04UP991z7j0ev/fcIwj/eIhTbHNATzD/AHwFC+AEkIBCti7YBePDArJgy+AiOAeOgC3QBifJN08BmO09WActMPo1kAFcBndtNlum2+3uy7I88fl8L0wm05N8Pv+OrTmNRqMdCoXWsP8WMKmTE8lwEzzCKHU6nRE/6PV6X6fT6Q11MDUOh+Mxzjkoc0FDLDqdThs23A+Hw1d0Op2kTt9qtS7x71QqVc9kMh/42u/3X8J0hjT+HowJvFssFt9IkpQMBAKvfro1UVQ0Go3C1+12W4YcP/SaTCYiac1iCVpmAzugDIbZbHYBGVzjB7Ra7Z7dbn9Kf+k0OJrL5Va4v1arfcT0GezxDAW6oW3QBF/UGSLgEFMD1OPxuAGyXPd4PGbmKxQKm6urq+t05kAd8K+Gy+VaTiaTV3nmMwUcj8fHMFnA+Wg0ug2d16rV6ifut1gsZiq547MGnK9UKrfxV++BG5FIxFwqlXa432g0LtINSzMFxC1qFEU5dF+/3x+RfsrMGvZ6PVm91uv1c/y71Wqx99wH+7xs/tw9RPGgXC5vud1uppMQi8VW1H7Ub53e+3DaeSb+A/XTQqE/g+1hIpF4yd83o9lsDoLB4HP47gAzFfdv3cZA7/ICCc1a1AbV51nqQDrSq0e+t2CTd5tp7esUWKJbk+nggH5AT3sEehld8svCfzO+CTAAQZUW1CtBkesAAAAASUVORK5CYII='));
|
||||
// The number 14.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgdJREFUeNrMlLtPIlEUxmFYdxlh1zeaABkT3Oj6IrFiC4FQammMsTGUNBZ0JBsLS/8FSgvspYKCBBsbNLEwYsSYjcBsIj7QiUZGmP2OuWMmehWMW+xNfrkz95755p7HPSbTPx5mzton8A10sucbcAk00A06QBuzVUEVnIMaT5AE+sEo+AFs4ATsgQbwgmEgMvs7sA+2gWwUoj/2gnEwB1bz+fy5qqpaPB7fwvsCmI/FYpu0ZgTrK2BEFxLYTG5MgdlwOLwEsWWPx0PumWq1mhWTEwz5fL4RTohEQwgeXdQXpVKp9MvhcHzlfGQHXYFAYLBZUgRDLH47nc41SZISiqKouoGmaRTnL9FodMJut7dlMhm5FUHK1C7Ilsvlw0KhcKEbNBoNC2Xd7/dL9J7NZs9aEaQTVUAJXBkN6vX6Y8KCwaAky/JtMpmstCL46qATRiKR7+RuOp3mufsZtOuJEVqp/lAo1EdzIpEoc7bpErhZpTxl+c2BcqEaNaVSqenne8VicdHlch0w4Yrw0bvLqkB8l8tms1lrsnfHEtvcZYvF8uB2u9fxqFDwvV7vYC6Xm9X34e4GplNwzROkvyiCINSf7pUo3rDLfwwcVqt15tk3f1gDqfK6DWVqDEyCASpDcAR22Cl6wE/WiURet+G1LxvrhTbWsqqsH96zwPcYeuKLfvj/j78CDACe8KXB21214gAAAABJRU5ErkJggg=='));
|
||||
// The number 15.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAi5JREFUeNqslE1rGlEUhp2ZjDFKrLGkKK2LIgUhG03iIqm4aMFVoVC7KS4sUhT/QJduXHWpuOvKjYI/QRCCEJIqGtpa2kWyaNNQoV8m1qZ1yEzfG84Ng5mkE/DAw9yPmXfOOffcI1qmbDMGa1bgIgTwh9bngDzxrgIOwXcwNhJkYrfAMrgDJPCT9twkqrdj8AG8AgfgRC/kBavgaTgcLg8Gg7+KomiJRKJRKBR22NiIdDpdwTfr/GcihbUI7oKH+Xz+Wb1ef+JwOKynMSmK3ev1uq+SQybqjEaj4Uaj8fx/H8Dj7Vqt9o3CY7nbAn2eQyamgqNms9mWZflFMpncMOkME/xNeRyTzqmgBr6CTdCsVCpvLlOJxWKLSMMD8Kjdbj+ORCIrWL4JbFzQQn/4AvbB6DJBRODn42Aw6MlkMvcxvA3m9YIXmiAIqiRJZ+VQKpXeFovFd3weCARu0KHaLyrsc4LxeJzV2Q7l7TiXyy3xfY/HM09isilBTdPEVqt1LxQKMU8sKKuOqqqTkUk8WtGMoF7A6XTaMZcMTlw1Jcis1+sd8rHL5bLq9/r9/hCPX3SvTeXwBAV/wE9Xf8rMut3uHh6fwdBIUKFCPTObzfajXC53fD7fMJVKrfv9/gW2PhqNxtVqtZPNZl9i+p4LChOCrEGsgSW67Ex8F3wEC9SB3HQILEzm3WvwidqcJhi0r+vgGpUB73dHYJZ65Bw5wi7DgPbHdOOmb+K0Bf8JMABAPsyYlTRVAQAAAABJRU5ErkJggg=='));
|
||||
// The number 16.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAiZJREFUeNrUlE9IG0EUxmPXtdpC3P5RUhtSpBU8RQiUQj2UHILHXgs95BAwwUsOOQa8padACSS5mEvwFKQFaS4lhxIQJAQaRcSDbsVspC0tMUZjcLdt+r3wRraLaIReHPix896++Wbmzcyz2f5z6zvHNwDugWG2D0ET9AMF3AYSMPjfATgFHasg9QeBC3jAE/bvgF2egHwjPGkbfAEVUAUn4I95VQ/BNJiNRCIfDcPoELDTYD4QCCyVy+Wvwk+k0+lVigdTvPJuo62Mg1fgTTab3TAPgu+9z+crmH1m8vn8JmJegwdCcAg8TSQSy+cNwL8PmUxmR9job0ej0TVh12q1I8TMgUckdoOT+zMcDudkWX6bTCY3rKdkt9tl0W80GnosFlMRu0w4nc5FGs857Qr+AvuA8vG5UqloVkGXy3VL9N1ut6Jp2gxW97JUKj2HIKWsBXQhaGPjB/guSZJ+0T3zer1jDoejewAej2cklUq9QPc+p+5MsOeGQ1OR7y1hQ5Rux6g45SsLUg7r9bphcct82a8ueFnrSbBarZ5cEtIRT6+/F8Fms3m2RUVRBsz/Wq3WKZ+y0augkcvldv1+/2MyxFe0YrG4xW/5yLrl3zQTLmvbIvitUCishEKhd6qqHphWpsfj8U/BYHAB5iZXpH+qjcQF4hmY5HvV5mqzB+6ACXCXY4/BNlgHmihhfRfUQtlU82j2m1wPh3gh9AAajG67Nu2vAAMABvAJLzvmvhMAAAAASUVORK5CYII='));
|
||||
// The number 17.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAglJREFUeNrUlE1LQkEUhm/qtQ/tu6ggxMIgbKUkkYJrF0I7wZUt+g39AVetWwVu2rjwF4gglBAhLQQXSghhEmX0gYVlddPbe+LcmG6JGW0aeJg75555Z+acmSNJf9x62tjNYIQhnyYwAVnnp4A7cANe2gmS2CxwgwVgBE+gnxFbAxTBITgHql5oBiyDdY/Hs1ur1Z4VRVHD4fA+9d/h9Xq34e/iE0gG4eiTwAfWotHoRiqVClssFlpEajab5nYxw78+dH2alontNBjy+/2edDq9qZ9kNBpfZFne4TiNxWKxlUgk4uDfdMxX0BJ3SIP7TCZzhIlbcN4TBWGro8uCDMXK5/NNkL1eryvZbPYMn4+cuA9BWuUKHNCkeDye1+8Q3SVl02azyQ6Hg7Iv5XK5C3TXpK0lxCTMo0nkQKs/fBMuitNAKBRa1AyFQoEWueVsS3rBTu392tjt9nHNUC6X6f7VREFDF4K0wzGn0zmlGRKJxDHv8Ok3grTDUZfLRXdVqlarD5VK5ZJfymtXgqqqkl9/MBict1qt78+vVCqJx1W7Emy1WiQyFAgE5jRbsViscoYfRd8fCeI19FL2xfglk8kTLgqNToLKFyeDgWLU43a7pzVbPp8/5YQ8dypfFPRVsMSJaPDRFL6jg5zVAleZCzGG7coX3bVhrn8Kx0nlBcyc1U918P+0NwEGAAJMv5rEne+7AAAAAElFTkSuQmCC'));
|
||||
// The number 18.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAihJREFUeNrUlDGPElEQx5c791yRkw16itFYGCxOY4FIjMEQw2cwIYQCGwoqKhIKC4PxiAUFHYkVDRhLC0uj5GgwErVgC91G1GCMwHoQdTe6/ucy77K34sElNr7kx2Nm9s2bNzPvSdI/Hp4ZuhWgMmT/CraAwjqFvzPBmDH/5pCcnQaXwDmwDHTwDqyBEPCDJTABb8BLtptuRyfBZXAzGo3Wx+PxD8uy7Ewm8wi624VC4XG/35+QjiB7uVx+AlsanOHNd6I8BW6AOxibo9HIFAuTyeRmKpV6JmQ32Wz2AdZdBz6JQyeOxOPxKD64VSwWYz6fTxa72ba9HIlE1oRcr9f1arWqCRnr1jEFgVc4/EWJb7Vaz2VZvocjPt2rijjqrlz5/f6DmGT2tf1jg8+gDVqNRuP1rjbweGxd1ydCVlV1xWnv9XofMH0B32cFcBFsOHNEOYTuoaZpI3f+Op3OJ9jugmvgsIhw3liqVCrnQ6GQ6jaEw+HjtVqNCnJM9OdchyiKJxaLnRAyFcRZFBTsLHfJKskH9nu1hsOh5ZSDweAqt4y86JH3NRaK0DCMnagCgYDstA0Ggy2+htZCDtE2P9vt9sdEIkFXU8rn8+tOe7fbpbv+nh+QPxzSLt+cCkVRhqVSqev1eo10On0FOdtuj+l0ajabzRe5XO4+RE04dL82FMVVcAEcYudv93htKLpXbKfGtmc9X0d5kcwRG3PeQ4P/29J/MX4LMABVRPc2xeNx/wAAAABJRU5ErkJggg=='));
|
||||
// The number 19.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgVJREFUeNrMlDFoGlEYxzV6SQ6DmnQpFEJCEkjWQsmQOZsObhUKbgWHICKIW8AhOAhFkE4OcXCIg1pySyAZsqSUQBQlwUEIagRLU+uJh4mmsf8n3wv2uIYDM/TBj7vv+97737vvfe8zGF54GDV80+AVsJEtgw6YAXYg0ro70Kb4QEuQvc+CRfAWrJK/AqpgHqyBBZorU6wIbkBfvas3YAt8DAQCR4PBYMiA/RnsBoNBqVwut7i/Xq93I5HICWIfwDIwczEzOd6DvWQyWeKLSDDjdrtPx33jQPQYcxy089FgOXkXi8W+aC1A7DCRSFS4nU6nq9Fo9Irb2PVPzNkBS0xsihJ66/P5DgRB+BSPx0vqU7JarQJ/r9VqSqvVejoEi8XCDmuO0jYSfAAN8BVc5PP5ulrQZrMJOqrFyAUNdEI/wHeTydSfpA7NeibJsvz0i3a7fXpSwYdGoyFzw+PxrDw3eUqHYM/v959JklThjmw2W5tEcDRcLtc5qkBiFAqFtio8JHQJiplMZhs15wYO1OTGeFBRlHs8uvzq6cnhEDv65XQ6NXOYy+XyeFxTA/lL8Df7IH6ppxJshsPhoiiKHa/Xu4VCHp1ys9lUUqnUt1AotA/zkguOdxsTNYhNsE5XskcdhRX7a+o27FY8/qvbGJ/phQJdS5lyJFI/5HWo2Q////FHgAEA1kIAAe0AP5kAAAAASUVORK5CYII='));
|
||||
// The number 20.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnJJREFUeNrUlM+LUlEUx31m2S/DkRZqmpUVDU0UEhgDLjIwi1mKEhEtzNA/QBducicuRYg2LkRaRG2UaBbhuBahRUZpZJRGCoU6qfNDK/ue4dx4DOW4aNOFD+8+v+d9vffcc65C8Y+HJJvvAVqG5t9BH/TAOlCCQ6zvAxMwZH3I8b8NyeAouABOgYNgE3wCb0GTY06zrgM/wRfwDtTAZzAiMxU4Dm7F4/GVXq+3OR6PJ0Qul6tZLJYEtNsg5Pf7n1Sr1Y7Qy+VyC789hnaDF7SLDOfA9UQi8VwEyiED6A/cbnf+TzoRCAQeIeYy0Ii8HHM6nQsimTabbSWZTL6hudVqnfP5fAsej2de6JlMpi50GktLS5QqM6VKybnR6PV6jQioVCpr8pODqcZsNh8Q70jLqNPpjMW70WikRdH3ajL8QQcgSdJEbuL1ei1iXiqVulqtVrVDtVD+JAr6Bl6bTKYYnkeAPhqNnjUYDPspst1uDwuFQgt/OD9LHZLhKnjBx34OLIZCIasISKfTr6jOtu9gmiHlogsoR+pUKnUJ+dzKV71e78ZisRIX8UxDyU/a3km73b4YDAYvCjESiSxzYXdmNVXyKvXgDAr7qhCy2Ww1n8+/57Ya9fv90RSfiUDFWz2B1VxzOBxU7YpWq7WGg6GWMoG9dIKNRmMgd9DpdLvFfDAYbNBDtB6d7J1isfjhb50A/aHL5VreoVOucC1uVfjdWq32dYrhfXAPu3gq7+VmszkIh8PPoN0UvSzxzXGeS+Yw51Q+1vlG+ch9L24biUuOtJd8M40kNpDfc8pthmP+kBpALYujbzf4PlzluP9g/BJgABvhUfuxyjKwAAAAAElFTkSuQmCC'));
|
||||
// The number 21.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAk1JREFUeNrMlM+LUlEUx53X0yztl1RYo0lCAzOBULaYXLgMQswkiTQDUXDjP9BOXQmz1o3LQINqYRvBTYsIlCQGZmWN/YIwImacKXNq3vzoe+BcuSPlm0WLDnx49917+N5z7j33GAz/2KbG/lVwFBwHh8Au+AHW+Ls15kPj76APfpG/LGgC02AOXAA2sAO+gmXQASssRD6zwALeg1fgI9iUIyWxO6lU6kmn01nVNG2XaLfbn0Oh0AOs3QN+cAvk4bNC6+Vy+Tn+r/NGIzODq7CSEJLp9/ubXq/3IXwWEonEU3nDYrH4EvO3wSlxZgYO/Uw8Hr8idshms0vdbndYqVTmrVarMRqNemq1WtBut1smXYoind8Rh8MxCpvEZEe32212Op2PXC7X48FgoOkJboOhqqp7HCORyFkx7vV6dCHv8P2AzVb/JihSppJ4HQgEFvCdoQvyeDzT4XD4nHBE6m0SBM5JKQvBDfAWfOPS8OVyOb9wqtfrb5rN5iKGn8Dp/QhSvQ05UlMymZwNBoNuWqDzKhQKzygDLuCd/QiKi6F05vL5/DUxWa1WF1ut1gtO16z39BSpsE+SWKlUuiFKA4e/lslkmvysjGMBTIzwIEXn8/nmY7HYJbEIsSXeyMubf9ETFREeFoVNRSwWG42GH6/hLrifTqdvYsrBkeoKkm3ZbLYDOhlRnQ4URdkeHbzJ9JM7jia3Lzrs8+AyPQpuXbJtcLehmz4GLgI7P4hludtMSZdCoie41xn/ENk616nKncXCJbQu90PDf2+/BRgAl2Xhjy3s2ZYAAAAASUVORK5CYII='));
|
||||
// The number 22.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAh1JREFUeNrMlL9LW1EUx1+SF3+QtOoLHdQkaFsdHEIoL/gM6JDVIQhBGhIKJiUghf4BdciiOAUcmnQsiHQqwazdskWyiZCURjqE0oLUtLS14Etrv6ecWy7ifXbo0AsfcnO/9553z497NO0fD5c018FNMAqGwQX4Bj7xr3aN3pcNDoBJMAdmgAF+ghPwBrwFbnBXobfBB3AujJKx+/l8/mW73T61bfuCaDab75PJ5C60R+Cxg54CE+KCQ2ABoyw2yvR6vfNoNLpPqPR4PP4UNiyyRW74wHg2mzVFMIvF4mEmk2nQ3O/3e6HNEiod8xjf0Kdz/G4Eg8FRcaDT6ZzJmQuHwz75/2U9FAqN8MW8dMMf4EzXdVvelEqlJsS82+1+gd530D9zpn/bIMsR8ABsgueRSOSVHCfTNPewvqHSKf6UB86HJuI4BZbBVrVaPRaba7Xaa6ytc9BV+kPyXK5rmtwCK7lcripn0LKsZ1hf4g+q9EW+1J8xCO6RW4jHV3GgXC4fYC0D7gDTQZ9kTzW5sLO0QWxutVo9rO1w0c6DNQd9iqtFE4VtUXGSC+JAIpGoY52SsQ2exGKxXQd9laoLeDR+lyuVSqVx1Usg0ul0vVQqHan0QqHwAjbi1DSE333DMDyqluR2u/uBQMD1t+2LXJ7mpNzm1iSP7+CU54ZCp25DCXrnkoyOcb/zXjpg8yGNjV2l00v5KNrX/z1+CTAAejWU4TBFD08AAAAASUVORK5CYII='));
|
||||
// The number 23.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAArdJREFUeNrUlF1oklEYx9W5r9rERYXYmpX2gfTFGojRMLwoCroKZhBCQYayu4ZejMCQhngTiNVdiAwqpBtX9EEybwxGw1gNlvbFyGwXlpjKalra/4nnxJvMrrrphd/7nnP+5zzvOc/Hkcn+8SOXtDuAmqH2d1AGRbACOlnrBe2gDr6yXuL5vw2SgQGwH2wHPWzkA3gF8mAD2AH6QRcbKIDXYAHkQJWMKcFWYPf7/dPFYnGlVqs1iFgsltHpdAFoo/SlvtCIdDpd8Hg896CfApvEBvvA8UAg8Fg6WboI+o1wOLywmk6YzeZrmGOmnSvwUoEtVqt1t3Dm4ODgdDAYfEltvV7fZ7PZdhqNxvVCJy0SibwVfbvdfgCfjaBbyf7r1Wg0vWLC/Pz8sjRyBoOhRy6XN0S/UCjUpHqj0aCjtgEFGfxBAZAuoGdkZEQn2qlU6v3ExMRDDpaGIh6NRvcKfW5ubhGfz+Ab9ekoR8AYuAJujo+PPxf+yWazFYxdBCfAeZ/P90Tqv3g8nsW4FwwJH34Bz8AjMEt/crlcevF3+Iq0j6CyWiJbLJZ+BPQQb6xTjNP56YhnQqHQbFOEL9POwAVwFdwBd2dmZvLS9MLYWaBVsME15HuTyXTQ6XQOib8gxx5wcqvgxzEsHgUn4ZKBZDKZF/O0Wi1lSjdVkIITmxy9C4l9VEyanJxMT01NvUOTItpVr9cVreq3XC5XObh1MrYWbMNujg0PD1P5yZaWlpaxizdcZqS3l0qlP1JFrVZ3iHYulyty3VO5/iqZc4lEYrFVJUC/5fV6n7bSHQ7Hbcw5zGkl20xOz2Qyn/5i8Dq41FzrlFJut/s+tNN8ubRRhq8D+8AeDr2yyUV0RdHxs+xrcRvVOeVIe8HBq8rZgIrvOopUs/NrvLDCurgvZVwZRdZrsv/i+SnAALSEnerTo5c3AAAAAElFTkSuQmCC'));
|
||||
// The number 24.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAApBJREFUeNqslE9oknEYx/X1D6Vmf122TSFXxryUwQrr0GFsktQQBgl2S+gUIYg0BPFiFw8SHUKiBV12CzEk6CINOiUviyQwNoKUShjZFkrLd86+jzy/YTI97Qcf3vf3e573eZ+/P0m1z0vb864BBnAEmHi/BTbAJtgGB8BRYAY60AZN1qHntjBIwhHgBGfBKf4ZGVoDH8FPMAouAgc4CFqgxvJPrN9dJ8BNj8fzpFAofFUUpUNUq9VGNBp9DdltcBkEl5aWZCEnZFn+hvM7YLw31EnwgAz0KgsWFhZeQX4PPOzXKRaL5OF9cJqMSZyXk6FQaMpqtRrpMJvNVmw225tGo6HQfn5+fgqPc16v97zQGbQkzp/Z4XBYxGGlUmnWajXFZDKRTAUjh6gYgUDgDO2Rlh/DDHYrpdfrt3rOO7FYzC425XKZqqifmZkZJ69LpdLGsLb5A74g+c/BewqfPEaubgil5eXl9enpaQuFS+mo1+vKMA+pv6hS78BbUE0kEg6RK4TeTCaTq8FgcIzDXR9gh5yTJD5ocXO27Hb7sXA4fEFoplKpD/TT2dnZUQo3k8nslb/DwMK9uRv6BLiby+U+i5agnsTZY7fb/XKvdhLk83lq6ls0HMJDGqXJubm5az6fj6ZFRd5EIpEij19nWKu0220tj6tO4vhpUpwI77pQWlxcXFtZWSFD1p2dHcMwgxqNhurQAN1iUWNf9fv9LwaFlE6nS9B5Bh6Bp/F4XO6blAS4Aoxa9lDtcrnMgzwwGAy/uQsop2NGo3Fit7yS1OYu+U4tqOaC0GBfovHqrRQv6tNVIPNHI6zr5Hvgv9tGzR/pwXEuv67PoMLX0i/wl+VCV+q/D/f7wlZJ+23wnwADAHUlUxtyWY3RAAAAAElFTkSuQmCC'));
|
||||
// The number 25.
|
||||
$zen-grid-number-images : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAsVJREFUeNrMlF9IU3EUx3fvbrNcW8ucjP6NXMlKZkGBIfOhF6MRBiFbMCoIGdqDL409CK4HH8Zg9KIkPgSC5YsgzYIwMCGkGLJIJrJBE8tqPlRbJZpbbX2PnB9choseeujC597f75xzz+/3O+f8jkbzjx9JNdYBE0Pjn+A7yIES2MPsKPNRAF/BZ5CXVM4Og1PgGNgNNsF78AZsABvrdpU5JF0SxMAHEijgCLgaCoWe5XK5zUKhUCKi0WjKarVGoPMPDw/PCnk5Pp9vDDYttJiMlwEcD4fD1/x+/zm9Xq8TS7tcroapqakbGJ4wm82Wv42jFdycm5vLiBUdDsd0JBJZFHOPxzM7Pj6+LOZut/sl/nkEHoJ7oBPUA63M8TNYLBaDWCGRSKyrV7TZbIZSqSRts5lfYJ3jmAdFmYWbkiSV1JbYhVWMY7FYVq1va2szY6cXwWWcrMPpdJ6G+ADYSfpasgG3wB0w1tvbOy+Ot7KysgbZ/YmJiXSlpIyOjs7D5gqoU7iGXoGPwEHZ6u7utondjIyMvCadoih5IRscHEwUi0W5p6enkeZ2u70OHzOoVrgws0APqgYGBs4injTWpNPpbF9f33PSt7e3P8V3kUO0EQwGG8UCHP9qKnqFZTQ52tzc3NLV1XVGGAYCgSf4vKNCj8fjHU1NTftJ3t/fH6cdliVIC2SZC5tqzI7CPi+0iEtycnJyibNXpXZgNBqrMdduk/EtIzpePXZzobW1la6fJpPJrCMxdOUOUlFT4hYWFrLiT5PJpFN7Wl1dpTu/xuHbSnfnzMzMcqUsQv/A6/VOV9LTtYTNJbCPHB4CvlQq9ekPDu+C2zjF42Qy+UXI6d4PDQ29gO46aKBLQtVfA05yydRyTMu7CR3/LdjLHaeGk0DHTIN5Tt4PiR0YuQ9Sa5Ir9LtvlByVncQJy7E+z33zP39+CzAA8EmJ9NTdgeQAAAAASUVORK5CYII='));
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Add a grid to an element's background.
|
||||
// @see http://zengrids.com/help/#zen-grid-background
|
||||
//
|
||||
@mixin zen-grid-background(
|
||||
$column-count : $zen-column-count,
|
||||
$gutter-width : $zen-gutter-width,
|
||||
$grid-width : $zen-grid-width,
|
||||
$grid-color : $zen-grid-color,
|
||||
$grid-numbers : $zen-grid-numbers,
|
||||
$reverse-all-floats : $zen-reverse-all-floats
|
||||
) {
|
||||
|
||||
// The CSS3 Gradient syntax doesn't allow for calc() to be used in color
|
||||
// stops, so we can't express the columns as 20% + 10px. Instead we are going
|
||||
// to divide all our columns in half and into 2 groups: one group for the left
|
||||
// halves of the columns and one group for the right halves. Then we'll use
|
||||
// background position to shift the left halves over to the right by a half
|
||||
// gutter width and shift the right halves over to the left by a half gutter
|
||||
// width and just let the two sets of gradients overlap in the middle. Easy.
|
||||
|
||||
$bg-images : ();
|
||||
$left-half-gradient : ();
|
||||
$right-half-gradient : ();
|
||||
|
||||
// Calculate half of the unit width.
|
||||
$half-unit-width : zen-unit-width(2 * $column-count, $grid-width);
|
||||
|
||||
// Determine the float direction.
|
||||
$dir : left;
|
||||
@if $reverse-all-floats {
|
||||
$dir : zen-direction-flip($dir);
|
||||
}
|
||||
|
||||
@for $count from 1 through $column-count {
|
||||
// First add the grid numbers to the background images list.
|
||||
$position: (2 * $count - 1) * $half-unit-width;
|
||||
$reverse-count: $column-count + 1 - $count;
|
||||
|
||||
@if $dir == left {
|
||||
@if $grid-numbers == both or $grid-numbers == top {
|
||||
$bg-images : append($bg-images, nth($zen-grid-number-images, $count) $position top no-repeat, comma);
|
||||
}
|
||||
@if $grid-numbers == both {
|
||||
$bg-images : append($bg-images, nth($zen-grid-number-images, $reverse-count) $position bottom no-repeat, comma);
|
||||
}
|
||||
}
|
||||
@else {
|
||||
@if $grid-numbers == both {
|
||||
$bg-images : append($bg-images, nth($zen-grid-number-images, $count) $position bottom no-repeat, comma);
|
||||
}
|
||||
@if $grid-numbers == both or $grid-numbers == top {
|
||||
$bg-images : append($bg-images, nth($zen-grid-number-images, $reverse-count) $position top no-repeat, comma);
|
||||
}
|
||||
}
|
||||
|
||||
// Next, build the color stops for the left halves of the column gradients.
|
||||
@if $count > 1 {
|
||||
$stop: (2 * $count - 2) * $half-unit-width;
|
||||
$left-half-gradient: append($left-half-gradient, transparent $stop, comma);
|
||||
$left-half-gradient: append($left-half-gradient, $grid-color $stop, comma);
|
||||
}
|
||||
|
||||
$stop: (2 * $count - 1) * $half-unit-width;
|
||||
$left-half-gradient: append($left-half-gradient, $grid-color $stop, comma);
|
||||
$left-half-gradient: append($left-half-gradient, transparent $stop, comma);
|
||||
|
||||
// Next, build the color stops for the right halves of the column gradients.
|
||||
$right-half-gradient: append($right-half-gradient, transparent $stop, comma);
|
||||
$right-half-gradient: append($right-half-gradient, $grid-color $stop, comma);
|
||||
|
||||
@if $count < $column-count {
|
||||
$stop: (2 * $count) * $half-unit-width;
|
||||
$right-half-gradient: append($right-half-gradient, $grid-color $stop, comma);
|
||||
$right-half-gradient: append($right-half-gradient, transparent $stop, comma);
|
||||
}
|
||||
}
|
||||
|
||||
// Last, add the gradient halves to the background images list.
|
||||
$bg-images : append($bg-images, linear-gradient(left, $left-half-gradient) zen-half-gutter($gutter-width) top no-repeat, comma);
|
||||
$bg-images : append($bg-images, linear-gradient(left, $right-half-gradient) (-(zen-half-gutter($gutter-width))) top no-repeat, comma);
|
||||
|
||||
// Apply the full list of background images.
|
||||
@include background($bg-images);
|
||||
}
|
@ -0,0 +1,364 @@
|
||||
//
|
||||
// Mixins for the Zen Grids system.
|
||||
//
|
||||
|
||||
|
||||
// Specify the number of columns in the grid. @see http://zengrids.com/help/#zen-column-count
|
||||
$zen-column-count : 1 !default;
|
||||
|
||||
// Specify the width of the gutters (as padding). @see http://zengrids.com/help/#zen-gutter-width
|
||||
$zen-gutter-width : 20px !default;
|
||||
|
||||
// @see http://zengrids.com/help/#zen-auto-include-item-base
|
||||
$zen-auto-include-item-base : true !default;
|
||||
$zen-auto-include-flow-item-base : true !default;
|
||||
|
||||
// Specify the width of the entire grid. @see http://zengrids.com/help/#zen-grid-width
|
||||
$zen-grid-width : 100% !default;
|
||||
|
||||
// The box-sizing polyfill for IE6/7 requires an absolute path. @see http://zengrids.com/help/#box-sizing-polyfill-path
|
||||
$box-sizing-polyfill-path : "" !default;
|
||||
|
||||
// Specify the CSS3 box-sizing method. @see http://zengrids.com/help/#zen-box-sizing
|
||||
$zen-box-sizing : border-box !default;
|
||||
|
||||
// @see http://zengrids.com/help/#legacy-support-for-ie7
|
||||
$legacy-support-for-ie7 : false !default;
|
||||
$legacy-support-for-ie6 : false !default;
|
||||
|
||||
// Specify the default floating direction for zen's mixins. @see http://zengrids.com/help/#zen-float-direction
|
||||
$zen-float-direction : left !default;
|
||||
|
||||
// Reverse the floating direction in all zen's mixins. @see http://zengrids.com/help/#zen-reverse-all-floats
|
||||
$zen-reverse-all-floats : false !default;
|
||||
|
||||
|
||||
//
|
||||
// Apply this to the grid container element.
|
||||
// @see http://zengrids.com/help/#zen-grid-container
|
||||
//
|
||||
@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. @see http://zengrids.com/help/#zen-nested-container
|
||||
//
|
||||
@mixin zen-nested-container {
|
||||
padding: {
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Apply this to each grid item. @see http://zengrids.com/help/#zen-grid-item
|
||||
//
|
||||
@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);
|
||||
|
||||
// Calculate the item's width.
|
||||
$width: zen-grid-item-width($column-span, $column-count, $gutter-width, $grid-width, $box-sizing);
|
||||
|
||||
// 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: $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 http://zengrids.com/help/#zen-grid-item-base
|
||||
//
|
||||
@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 left/right borders since they'll break the layout with content-box.
|
||||
@if $box-sizing == content-box {
|
||||
border: {
|
||||
left: 0 !important;
|
||||
right: 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 grid items that need to be cleared below other grid items.
|
||||
// @see http://zengrids.com/help/#zen-clear
|
||||
//
|
||||
@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.
|
||||
// @see http://zengrids.com/help/#zen-float
|
||||
//
|
||||
@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. @see http://zengrids.com/help/#zen-float
|
||||
//
|
||||
@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 $parent-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);
|
||||
|
||||
// Auto-apply the unit base mixin.
|
||||
@if $auto-include-flow-item-base {
|
||||
@include zen-grid-item-base($gutter-width, $box-sizing);
|
||||
}
|
||||
|
||||
// Calculate the item's width.
|
||||
$width: zen-grid-item-width($column-span, $columns, $gutter-width, $grid-width, $box-sizing);
|
||||
|
||||
@if unit($grid-width) == "%" {
|
||||
// Our percentage $width is off if the parent has $gutter-width padding.
|
||||
// Calculate an adjusted gutter to fix the width.
|
||||
$adjusted-gutter: ($columns - $column-span) * $gutter-width / $columns;
|
||||
|
||||
width: $width;
|
||||
|
||||
// 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;
|
||||
}
|
||||
padding-#{$rev}: $adjusted-gutter;
|
||||
@if $omega-gutter {
|
||||
margin-#{$rev}: $gutter-width - $adjusted-gutter;
|
||||
}
|
||||
@else {
|
||||
margin-#{$rev}: -($adjusted-gutter);
|
||||
}
|
||||
}
|
||||
@else {
|
||||
@if $alpha-gutter and $omega-gutter {
|
||||
width: $width;
|
||||
@if $gutter-width != 0 {
|
||||
margin: {
|
||||
#{$dir}: zen-half-gutter($gutter-width, left, $dir);
|
||||
#{$rev}: zen-half-gutter($gutter-width, right, $dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
@else if not $alpha-gutter and not $omega-gutter {
|
||||
width: if($box-sizing == border-box, ($width - $gutter-width), $width);
|
||||
@if $gutter-width != 0 {
|
||||
padding: {
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@else {
|
||||
width: $width;
|
||||
@if $omega-gutter {
|
||||
padding-#{$dir}: 0;
|
||||
padding-#{$rev}: $gutter-width;
|
||||
}
|
||||
@else {
|
||||
padding-#{$dir}: $gutter-width;
|
||||
padding-#{$rev}: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Helper functions for the Zen mixins.
|
||||
//
|
||||
|
||||
// Returns a half gutter width. @see http://zengrids.com/help/#zen-half-gutter
|
||||
@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. @see http://zengrids.com/help/#zen-unit-width
|
||||
@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.
|
||||
// @see http://zengrids.com/help/#zen-grid-item-width
|
||||
@function zen-grid-item-width(
|
||||
$column-span,
|
||||
$column-count : $zen-column-count,
|
||||
$gutter-width : $zen-gutter-width,
|
||||
$grid-width : $zen-grid-width,
|
||||
$box-sizing : $zen-box-sizing
|
||||
) {
|
||||
$width: $column-span * zen-unit-width($column-count, $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;
|
||||
}
|
||||
@return $width;
|
||||
}
|
||||
|
||||
// Returns the opposite direction, given "left" or "right".
|
||||
// @see http://zengrids.com/help/#zen-direction-flip
|
||||
@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;
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
//
|
||||
// @file
|
||||
// This file sets up all our variables and load all the modules we need for all
|
||||
// generated CSS in this project. To use it, simply: @import "init";
|
||||
//
|
||||
|
||||
// Legacy browser variables for Compass.
|
||||
$legacy-support-for-ie6 : false;
|
||||
$legacy-support-for-ie7 : false;
|
||||
|
||||
// Set up Zen Grids.
|
||||
$zen-column-count : 1;
|
||||
$zen-gutter-width : 20px;
|
||||
$zen-auto-include-item-base : false;
|
||||
|
||||
//
|
||||
// Import our modules.
|
||||
//
|
||||
@import "zen";
|
||||
@import "zen/background";
|
||||
@import "visually-hidden";
|
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @file
|
||||
* Layout styles.
|
||||
*
|
||||
* We use example breakpoints of 444px, 666px, 777px, 999px and 1111px. The
|
||||
* right breakpoints to use for your site depend on your content.
|
||||
*/
|
||||
|
||||
.centered {
|
||||
@include zen-grid-background();
|
||||
padding: {
|
||||
top: 1.5em;
|
||||
bottom: 1.5em;
|
||||
}
|
||||
margin: {
|
||||
left: auto;
|
||||
right: auto;
|
||||
}
|
||||
max-width: 1111px;
|
||||
}
|
||||
|
||||
/* Set the shared properties for all grid items. */
|
||||
%grid-item,
|
||||
.grid-item {
|
||||
@include zen-grid-item-base();
|
||||
}
|
||||
|
||||
/* Set the container for our grid items. */
|
||||
.main {
|
||||
@include zen-grid-container();
|
||||
}
|
||||
|
||||
/* Horizontal navigation bar */
|
||||
@media all and (min-width: 444px) {
|
||||
$zen-column-count: 1;
|
||||
$navbar-height: 5em;
|
||||
|
||||
.main {
|
||||
padding-top: $navbar-height;
|
||||
}
|
||||
.grid-item__menu {
|
||||
@include zen-grid-item(1, 1);
|
||||
margin-top: -$navbar-height;
|
||||
height: $navbar-height;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 444px) and (max-width: 665px) {
|
||||
$zen-column-count: 2;
|
||||
|
||||
.centered {
|
||||
@include zen-grid-background();
|
||||
}
|
||||
.grid-item__content {
|
||||
@include zen-grid-item(2, 1);
|
||||
}
|
||||
.grid-item__aside1 {
|
||||
@include zen-clear(); // Clear left-floated elements (.grid-item__content)
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
.grid-item__aside2 {
|
||||
@include zen-grid-item(1, 2);
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 666px) and (max-width: 776px) {
|
||||
$zen-column-count: 3;
|
||||
|
||||
.centered {
|
||||
@include zen-grid-background();
|
||||
}
|
||||
.grid-item__content {
|
||||
@include zen-grid-item(2, 1);
|
||||
}
|
||||
.grid-item__aside1 {
|
||||
@include zen-grid-item(1, 1, right); // Position from the right
|
||||
}
|
||||
.grid-item__aside2 {
|
||||
@include zen-clear(); // Clear left-floated elements (.grid-item__content)
|
||||
@include zen-grid-item(2, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 777px) and (max-width: 998px) {
|
||||
$zen-column-count: 3;
|
||||
|
||||
.centered {
|
||||
@include zen-grid-background();
|
||||
}
|
||||
.grid-item__content {
|
||||
@include zen-grid-item(2, 1);
|
||||
}
|
||||
.grid-item__aside1 {
|
||||
@include zen-grid-item(1, 1, right); // Position from the right
|
||||
}
|
||||
.grid-item__aside2 {
|
||||
@include zen-clear(right); // Clear right-floated elements (.grid-item__aside1)
|
||||
@include zen-grid-item(1, 1, right);
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 999px) {
|
||||
$zen-column-count: 5;
|
||||
|
||||
.centered {
|
||||
@include zen-grid-background();
|
||||
}
|
||||
.grid-item__content {
|
||||
@include zen-grid-item(3, 2);
|
||||
}
|
||||
.grid-item__aside1 {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
.grid-item__aside2 {
|
||||
@include zen-grid-item(1, 5);
|
||||
}
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @file
|
||||
* Modular styles.
|
||||
*/
|
||||
|
||||
|
||||
html {
|
||||
font-size: 16px;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: {
|
||||
top: 1.5em;
|
||||
bottom: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
/* Skip link styling */
|
||||
.skip-link {
|
||||
margin: 0;
|
||||
}
|
||||
.skip-link__link,
|
||||
.skip-link__link:visited {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 2px 0 3px 0;
|
||||
text-align: center;
|
||||
background-color: #666;
|
||||
color: #fff;
|
||||
}
|
||||
/* The skip-link link will be completely hidden until a user tabs to the link. */
|
||||
@media all and (min-width: 444px) {
|
||||
.skip-link__link {
|
||||
@include visually-focusable();
|
||||
}
|
||||
}
|
||||
|
||||
/* Set a consistent padding around all containers */
|
||||
.header,
|
||||
.footer {
|
||||
@extend %grid-item;
|
||||
}
|
||||
.grid-item,
|
||||
.footer {
|
||||
padding-top: 1.5em;
|
||||
}
|
||||
|
||||
/* Source-order meta info */
|
||||
header {
|
||||
h1,
|
||||
h2 {
|
||||
display: inline;
|
||||
}
|
||||
p {
|
||||
display: inline;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.8em;
|
||||
color: #c00;
|
||||
}
|
||||
}
|
||||
|
||||
.pull-quote {
|
||||
$font-size: 1.2em;
|
||||
|
||||
@include zen-float();
|
||||
@include zen-grid-flow-item(1, 2);
|
||||
@media all and (min-width: 999px) {
|
||||
@include zen-grid-flow-item(1, 3);
|
||||
}
|
||||
margin: {
|
||||
top: 1em*(1.5em/$font-size);
|
||||
}
|
||||
font-size: $font-size;
|
||||
line-height: 1em*(1.5em/$font-size);
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
//
|
||||
// @file
|
||||
// Accessibility features.
|
||||
//
|
||||
|
||||
// As defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
||||
@mixin visually-hidden {
|
||||
position: absolute !important;
|
||||
height: 1px;
|
||||
width: 1px;
|
||||
overflow: hidden;
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax.
|
||||
}
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
}
|
||||
|
||||
// Turns off the visually-hidden effect.
|
||||
@mixin visually-hidden-off {
|
||||
position: static !important;
|
||||
clip: auto;
|
||||
height: auto;
|
||||
width: auto;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
// Makes an element visually hidden, except when it receives focus.
|
||||
@mixin visually-focusable {
|
||||
@include visually-hidden();
|
||||
|
||||
&:active,
|
||||
&:focus {
|
||||
@include visually-hidden-off();
|
||||
}
|
||||
}
|
||||
|
||||
// Placeholder styles for use with @extend.
|
||||
%visually-hidden {
|
||||
@include visually-hidden();
|
||||
}
|
||||
%visually-hidden-off {
|
||||
@include visually-hidden-off();
|
||||
}
|
||||
%visually-focusable {
|
||||
@extend %visually-hidden;
|
||||
|
||||
&:active,
|
||||
&:focus {
|
||||
@extend %visually-hidden-off;
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Zen Grids: sample usage</title>
|
||||
<link rel="stylesheet" href="stylesheets/styles.css" media="all">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p class="skip-link">
|
||||
<a href="#main-menu" class="skip-link__link">Jump to main menu</a>
|
||||
</p>
|
||||
|
||||
<div class="centered">
|
||||
|
||||
<header class="header">
|
||||
<h1 class="header__title">Zen Grids: sample usage</h1>
|
||||
</header>
|
||||
|
||||
<div class="main">
|
||||
|
||||
<article class="grid-item grid-item__content" role="main">
|
||||
<header>
|
||||
<h1>Main content</h1>
|
||||
<p>Source order: 1</p>
|
||||
</header>
|
||||
<aside class="pull-quote">‘There’s no such thing!’</aside>
|
||||
<p>Alice did not quite know what to say to this: so she helped herself to some tea and bread-and-butter, and then turned to the Dormouse, and repeated her question. ‘Why did they live at the bottom of a well?’</p>
|
||||
<p>The Dormouse again took a minute or two to think about it, and then said, ‘It was a treacle-well.’</p>
|
||||
<p>‘There’s no such thing!’ Alice was beginning very angrily, but the Hatter and the March Hare went ‘Sh! sh!’ and the Dormouse sulkily remarked, ‘If you can’t be civil, you’d better finish the story for yourself.’</p>
|
||||
<p>‘No, please go on!’ Alice said very humbly; ‘I won’t interrupt again. I dare say there may be ONE.’</p>
|
||||
</article>
|
||||
|
||||
<nav class="grid-item grid-item__menu" role="navigation" id="main-menu">
|
||||
<header>
|
||||
<h2>Menu</h2>
|
||||
<p>Source order: 2</p>
|
||||
</header>
|
||||
<a href="#">Alice</a> ★
|
||||
<a href="#">Mad Hatter</a> ★
|
||||
<a href="#">The Queen</a> ★
|
||||
<a href="#">Tom Petty</a>
|
||||
</nav>
|
||||
|
||||
<aside class="grid-item grid-item__aside1">
|
||||
<header>
|
||||
<h2>Aside</h2>
|
||||
<p>Source order: 3</p>
|
||||
</header>
|
||||
<p>‘Have some wine,’ the March Hare said in an encouraging tone.</p>
|
||||
</aside>
|
||||
|
||||
<aside class="grid-item grid-item__aside2">
|
||||
<header>
|
||||
<h2>Aside</h2>
|
||||
<p>Source order: 4</p>
|
||||
</header>
|
||||
<p>‘Please would you tell me,’ said Alice, a little timidly, for she was not quite sure whether it was good manners for her to speak first, ‘why your cat grins like that?’</p>
|
||||
<p>‘It’s a Cheshire cat,’ said the Duchess, ‘and that’s why. Pig!’</p>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<small>© 2013. The small print.</small>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,24 @@
|
||||
description "The Zen Grids system."
|
||||
|
||||
stylesheet '_init.scss', :media => 'all'
|
||||
stylesheet '_layout.scss', :media => 'all'
|
||||
stylesheet '_modules.scss', :media => 'all'
|
||||
stylesheet '_visually-hidden.scss', :media => 'all'
|
||||
stylesheet 'styles.scss', :media => 'all'
|
||||
|
||||
html 'example.html'
|
||||
|
||||
help %Q{
|
||||
Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts. To learn more, visit:
|
||||
|
||||
http://zengrids.com
|
||||
}
|
||||
|
||||
welcome_message %Q{
|
||||
You rock! The Zen Grids system is now installed on your computer. Go check out
|
||||
how to use the system at:
|
||||
|
||||
http://zengrids.com
|
||||
|
||||
It's easy!
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
// Import the initialization partial.
|
||||
@import "init";
|
||||
|
||||
// Aggregate all the stylesheets into one file.
|
||||
@import "layout";
|
||||
@import "modules";
|
@ -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.
|
@ -0,0 +1,39 @@
|
||||
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-background.scss', :media => 'all', :to => 'zen-grid-background.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-background.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.
|
||||
}
|
@ -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);
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
/**
|
||||
* @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, $grid-width: 1000px) */
|
||||
width: zen-grid-item-width(2, 5, $grid-width: 1000px);
|
||||
|
||||
/* Test zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box) */
|
||||
width: zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box);
|
||||
|
||||
/* Test zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box) */
|
||||
width: zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box);
|
||||
}
|
@ -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);
|
||||
}
|
@ -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);
|
||||
}
|
@ -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);
|
||||
}
|
@ -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);
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-grid-background()
|
||||
*/
|
||||
|
||||
@import "zen/background";
|
||||
|
||||
#test-zen-grid-background {
|
||||
/* Test zen-grid-background() with 1 column grid and 20px gutter */
|
||||
$zen-grid-numbers: top;
|
||||
@include zen-grid-background();
|
||||
$zen-grid-numbers: both;
|
||||
|
||||
// Turn off numbers for all other tests.
|
||||
$zen-grid-numbers: none;
|
||||
|
||||
/* Test zen-grid-background() with 12 column grid and 20px gutter */
|
||||
$zen-column-count: 12;
|
||||
@include zen-grid-background();
|
||||
$zen-column-count: 1;
|
||||
|
||||
/* Test zen-grid-background(), 5 column grid, 10% gutter and black grid color */
|
||||
$zen-column-count: 5;
|
||||
$zen-gutter-width: 10%;
|
||||
$zen-grid-color: #000;
|
||||
@include zen-grid-background();
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
$zen-grid-color: rgba(#ffdede, 0.8);
|
||||
|
||||
/* Test zen-grid-background() with 5 column grid and 40px gutter */
|
||||
$zen-column-count: 5;
|
||||
$zen-gutter-width: 40px;
|
||||
@include zen-grid-background();
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
|
||||
/* Test zen-grid-background(), 5 column grid and 10% gutter and $zen-reverse-all-floats */
|
||||
$zen-column-count: 5;
|
||||
$zen-gutter-width: 10%;
|
||||
$zen-reverse-all-floats: true;
|
||||
@include zen-grid-background();
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
$zen-reverse-all-floats: false;
|
||||
|
||||
/* Test zen-grid-background() 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-background();
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
$zen-reverse-all-floats: false;
|
||||
|
||||
/* Test zen-grid-background() 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-background();
|
||||
$zen-grid-width: 100%;
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
|
||||
/* Test zen-grid-background() with all 24 grid numbers */
|
||||
$zen-column-count: 24;
|
||||
@include zen-grid-background();
|
||||
$zen-column-count: 1;
|
||||
}
|
@ -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;
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
/**
|
||||
* @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 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) with 5 columns, 20px gutter and $zen-grid-width: 1000px */
|
||||
$zen-column-count: 5;
|
||||
$zen-grid-width: 1000px;
|
||||
@include zen-grid-flow-item(1);
|
||||
$zen-column-count: 1;
|
||||
$zen-grid-width: 100%;
|
||||
|
||||
/* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px, $alpha-gutter: true and $omega-gutter: false */
|
||||
$zen-column-count: 5;
|
||||
$zen-grid-width: 1000px;
|
||||
@include zen-grid-flow-item(1, $alpha-gutter: true, $omega-gutter: false);
|
||||
$zen-column-count: 1;
|
||||
$zen-grid-width: 100%;
|
||||
|
||||
/* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px and $omega-gutter: false */
|
||||
$zen-column-count: 5;
|
||||
$zen-grid-width: 1000px;
|
||||
@include zen-grid-flow-item(1, $omega-gutter: false);
|
||||
$zen-column-count: 1;
|
||||
$zen-grid-width: 100%;
|
||||
|
||||
/* 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);
|
||||
}
|
@ -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;
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
/**
|
||||
* @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);
|
||||
$zen-column-count: 1;
|
||||
|
||||
/* 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-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
$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);
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
|
||||
/* 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);
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
|
||||
/* 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-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
$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-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
$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);
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
|
||||
/* 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);
|
||||
$zen-grid-width: 100%;
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
}
|
@ -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;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-direction-flip()
|
||||
*/
|
||||
#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;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-grid-item-width()
|
||||
*/
|
||||
#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, $grid-width: 1000px) */
|
||||
width: 400px;
|
||||
/* Test zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box) */
|
||||
width: 380px;
|
||||
/* Test zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box) */
|
||||
width: 390px;
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-half-gutter()
|
||||
*/
|
||||
#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;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-unit-width()
|
||||
*/
|
||||
#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;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-clear()
|
||||
*/
|
||||
#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;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-float()
|
||||
*/
|
||||
#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;
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-grid-container()
|
||||
*/
|
||||
#test-zen-grid-container {
|
||||
/* Test zen-grid-container() */
|
||||
}
|
||||
#test-zen-grid-container:before, #test-zen-grid-container:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
#test-zen-grid-container:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#test-zen-grid-container-2 {
|
||||
/* Test zen-grid-container() with $legacy-support-for-ie7: true */
|
||||
*position: relative;
|
||||
*zoom: 1;
|
||||
}
|
||||
#test-zen-grid-container-2:before, #test-zen-grid-container-2:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
#test-zen-grid-container-2:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#test-zen-grid-container-3 {
|
||||
/* Test zen-grid-container() with $legacy-support-for-ie6: true */
|
||||
*position: relative;
|
||||
*zoom: 1;
|
||||
}
|
||||
#test-zen-grid-container-3:before, #test-zen-grid-container-3:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
#test-zen-grid-container-3:after {
|
||||
clear: both;
|
||||
}
|
@ -0,0 +1,165 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-grid-flow-item()
|
||||
*/
|
||||
#test-zen-grid-flow-item {
|
||||
/* Test zen-grid-flow-item(1) without setting $column-count */
|
||||
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;
|
||||
width: 100%;
|
||||
padding-left: 0;
|
||||
padding-right: 0px;
|
||||
margin-right: 20px;
|
||||
/* Test zen-grid-flow-item(1, 4) with 20px gutter */
|
||||
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;
|
||||
width: 25%;
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
margin-right: 5px;
|
||||
/* Test zen-grid-flow-item(1, 4) with 15px gutter */
|
||||
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;
|
||||
width: 25%;
|
||||
padding-left: 0;
|
||||
padding-right: 11.25px;
|
||||
margin-right: 3.75px;
|
||||
/* Test zen-grid-flow-item(1) with 5 columns, 20px gutter and $zen-grid-width: 1000px */
|
||||
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;
|
||||
width: 200px;
|
||||
padding-left: 0;
|
||||
padding-right: 20px;
|
||||
/* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px, $alpha-gutter: true and $omega-gutter: false */
|
||||
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;
|
||||
width: 200px;
|
||||
padding-left: 20px;
|
||||
padding-right: 0;
|
||||
/* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px and $omega-gutter: false */
|
||||
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;
|
||||
width: 180px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
/* Test zen-grid-flow-item(1, 4) with 15px gutter 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;
|
||||
width: 25%;
|
||||
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 */
|
||||
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;
|
||||
width: 25%;
|
||||
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 */
|
||||
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;
|
||||
width: 25%;
|
||||
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 */
|
||||
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;
|
||||
width: 75%;
|
||||
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 */
|
||||
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;
|
||||
width: 75%;
|
||||
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 */
|
||||
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;
|
||||
width: 25%;
|
||||
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 */
|
||||
padding-left: 5%;
|
||||
padding-right: 5%;
|
||||
border-left: 0 !important;
|
||||
border-right: 0 !important;
|
||||
word-wrap: break-word;
|
||||
width: 15%;
|
||||
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;
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-grid-item-base()
|
||||
*/
|
||||
#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-left: 0 !important;
|
||||
border-right: 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;
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-grid-item()
|
||||
*/
|
||||
#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-left: 0 !important;
|
||||
border-right: 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;
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @file
|
||||
* Test zen-nested-container()
|
||||
*/
|
||||
#test-zen-nested-container {
|
||||
/* Test zen-nested-container() */
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#test-zen-nested-container-2 {
|
||||
/* Test zen-nested-container() with $legacy-support-for-ie7: true */
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#test-zen-nested-container-3 {
|
||||
/* Test zen-nested-container() with $legacy-support-for-ie6: true */
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
63
themes/openstack/sass-extensions/zen-grids/zen-grids.gemspec
Normal file
@ -0,0 +1,63 @@
|
||||
# -*- 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.license = 'GPL-2'
|
||||
s.rubyforge_project =
|
||||
|
||||
s.version = '1.4'
|
||||
s.date = '2013-04-02'
|
||||
|
||||
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.scss
|
||||
stylesheets/zen/_grids.scss
|
||||
templates/project/_init.scss
|
||||
templates/project/_layout.scss
|
||||
templates/project/_modules.scss
|
||||
templates/project/_visually-hidden.scss
|
||||
templates/project/example.html
|
||||
templates/project/manifest.rb
|
||||
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-background.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-background.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
|
58
themes/openstack/sass/README.txt
Normal 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 beginning:
|
||||
#environment = :production
|
||||
- Regenerate all the CSS files by running: compass compile
|
||||
|
||||
And don't forget to turn on Drupal's CSS aggregation. :-)
|
126
themes/openstack/sass/_init.scss
Normal file
@ -0,0 +1,126 @@
|
||||
//
|
||||
// Initialization partial
|
||||
//
|
||||
// To make it easier to use all variables and mixins in any Sass file in this
|
||||
// theme, each .scss file has a @import "init" declaration. And this _init.scss
|
||||
// file is in charge of importing all the other partials needed for the theme.
|
||||
//
|
||||
// This initialization partial is organized in this way:
|
||||
// - First we set any shared Sass variables.
|
||||
// - Next we import Compass plug-ins (Sass mixin libraries).
|
||||
// - Last we define our custom mixins for this theme.
|
||||
//
|
||||
|
||||
|
||||
// =============================================================================
|
||||
// Variables
|
||||
// =============================================================================
|
||||
|
||||
//
|
||||
// Legacy IE support
|
||||
//
|
||||
// These variables are used by many mixins to add additional CSS to support
|
||||
// specific versions of IE or specific vendor prefixes.
|
||||
//
|
||||
// IE6-7 don't support box-sizing: border-box. We can fix this in 1 of 3 ways:
|
||||
// - Drop support for IE 6/7. :-) 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 and gutter width in resonsive-sidebars.scss
|
||||
// (use px for both or use % for both) and set the box-sizing variable to content-box.
|
||||
//
|
||||
// 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.67 * $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;
|
||||
|
||||
// The height of the navigation container.
|
||||
$nav-height: 3em;
|
||||
|
||||
// Tab styling.
|
||||
$tabs-container-bg: #fff;
|
||||
$tabs-border: #bbb;
|
||||
|
||||
|
||||
// =============================================================================
|
||||
// Partials to be shared with all .scss files.
|
||||
// =============================================================================
|
||||
|
||||
// Add Compass' IE and vendor prefix support variables.
|
||||
@import "compass/support";
|
||||
// Better than Drupal's clearfix.
|
||||
@import "compass/utilities/general/clearfix";
|
||||
// See http://compass-style.org/help/tutorials/spriting/
|
||||
@import "compass/utilities/sprites";
|
||||
// Use one CSS3 mixin instead of multiple vendor prefixes.
|
||||
@import "compass/css3";
|
||||
// Helps set up a vertical rhythm.
|
||||
@import "compass/typography/vertical_rhythm";
|
||||
// Add the Zen Grids responsive layout mixins.
|
||||
@import "zen";
|
||||
|
||||
// Now we add our custom helper mixins.
|
||||
@import "mixins";
|
37
themes/openstack/sass/_mixins.scss
Normal file
@ -0,0 +1,37 @@
|
||||
// @file
|
||||
// Custom sass mixins
|
||||
//
|
||||
// Define the custom mixins for your project here.
|
||||
// http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#defining_a_mixin
|
||||
|
||||
// Makes an element visually hidden, but accessible.
|
||||
// @see 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;
|
||||
}
|
||||
|
||||
// Makes an element visually hidden by default, but visible when focused.
|
||||
@mixin element-focusable {
|
||||
@include element-invisible;
|
||||
|
||||
&:active,
|
||||
&:focus {
|
||||
@include element-invisible-off;
|
||||
}
|
||||
}
|
29
themes/openstack/sass/_normalize-rtl.scss
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @file
|
||||
* Normalize-rtl.scss is the RTL language extension of normalize.scss
|
||||
*/
|
||||
|
||||
/**
|
||||
* Lists
|
||||
*/
|
||||
dd {
|
||||
margin: 0 $indent-amount 0 0;
|
||||
}
|
||||
|
||||
/* Address paddings set differently in IE 6/7. */
|
||||
menu,
|
||||
ol,
|
||||
ul {
|
||||
padding: 0 $indent-amount 0 0;
|
||||
}
|
||||
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
/**
|
||||
* Forms
|
||||
*/
|
||||
legend {
|
||||
/* Correct alignment displayed oddly in IE 6/7. */
|
||||
*margin-left: 0;
|
||||
*margin-right: -7px;
|
||||
}
|
||||
}
|
545
themes/openstack/sass/_normalize.scss
Normal file
@ -0,0 +1,545 @@
|
||||
/**
|
||||
* @file
|
||||
* Normalize.css is intended to be used as an alternative to CSS resets.
|
||||
*
|
||||
* This file is a slight fork of these original sources:
|
||||
* - normalize.css v2.1.2 | MIT License | git.io/normalize
|
||||
* - normalize.scss v2.1.2 | MIT/GPLv2 License | bit.ly/normalize-with-compass
|
||||
*
|
||||
* It's suggested that you read the normalize.scss file and customise it to meet
|
||||
* your needs, rather then including the file in your project and overriding the
|
||||
* defaults later in your CSS.
|
||||
* @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
|
||||
*/
|
||||
|
||||
/* Correct `block` display not defined in IE 8/9. */
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Correct `inline-block` display not defined in IE 8/9. */
|
||||
audio,
|
||||
canvas,
|
||||
video {
|
||||
display: inline-block;
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*display: inline;
|
||||
*zoom: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* Address styling not present in IE 8/9. */
|
||||
[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. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
* 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
||||
* `em` units.
|
||||
*/
|
||||
html {
|
||||
font-family: $base-font-family; /* 1 */
|
||||
font-size: 100% * ($base-font-size / 16px); /* 3 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
// Establish a vertical rhythm unit using $base-line-height.
|
||||
@include adjust-leading-to(1);
|
||||
}
|
||||
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
/* Address `font-family` inconsistency between `textarea` and other form elements. */
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: $base-font-family;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove default margin. */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 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 {
|
||||
}
|
||||
|
||||
/* Address `outline` inconsistency between Chrome and other browsers. */
|
||||
a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
|
||||
/* Improve readability when focused and also mouse hovered in all browsers. */
|
||||
a:active,
|
||||
a:hover {
|
||||
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
|
||||
*/
|
||||
|
||||
/* Set 1 unit of vertical rhythm on the top and bottom margin. */
|
||||
p,
|
||||
pre {
|
||||
margin: rhythm(1) 0;
|
||||
}
|
||||
blockquote {
|
||||
/* Also indent the quote on both sides. */
|
||||
margin: rhythm(1) $indent-amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari 5, and Chrome.
|
||||
*/
|
||||
h1 {
|
||||
/* Set the font-size and line-height while keeping a proper vertical rhythm. */
|
||||
@include adjust-font-size-to( $h1-font-size );
|
||||
|
||||
/* Set 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);
|
||||
}
|
||||
|
||||
/* Address styling not present in IE 8/9, Safari 5, and Chrome. */
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Address styling not present in Safari 5 and Chrome. */
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Address differences between Firefox and other browsers. */
|
||||
hr {
|
||||
@include box-sizing(content-box);
|
||||
height: 0;
|
||||
border: 1px solid #666;
|
||||
padding-bottom: -1px;
|
||||
margin: rhythm(1) 0;
|
||||
}
|
||||
|
||||
/* Address styling not present in IE 8/9. */
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Correct font family set oddly in Safari 5 and Chrome. */
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp,
|
||||
tt,
|
||||
var {
|
||||
font-family: $font-monospace; // The value of $font-monospace ends with ", serif".
|
||||
@if $legacy-support-for-ie6 {
|
||||
_font-family: 'courier new', monospace;
|
||||
}
|
||||
@include adjust-font-size-to( $base-font-size );
|
||||
}
|
||||
|
||||
/* Improve readability of pre-formatted text in all browsers. */
|
||||
pre {
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
white-space: pre;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
@else {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
/* Set consistent quote types. */
|
||||
q {
|
||||
quotes: "\201C" "\201D" "\2018" "\2019";
|
||||
}
|
||||
|
||||
/* Address inconsistent and variable font size in all browsers. */
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists
|
||||
*/
|
||||
dl,
|
||||
menu,
|
||||
ol,
|
||||
ul {
|
||||
/* Address margins set differently in IE 6/7. */
|
||||
margin: rhythm(1) 0;
|
||||
}
|
||||
ol,
|
||||
ul {
|
||||
ol,
|
||||
ul {
|
||||
/* Turn off margins on nested lists. */
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
dd {
|
||||
margin: 0 0 0 $indent-amount; /* LTR */
|
||||
}
|
||||
|
||||
/* Address paddings set differently in IE 6/7. */
|
||||
menu,
|
||||
ol,
|
||||
ul {
|
||||
padding: 0 0 0 $indent-amount; /* LTR */
|
||||
}
|
||||
|
||||
@if $legacy-support-for-ie7 {
|
||||
/* Correct list images handled incorrectly in IE 7. */
|
||||
nav ul,
|
||||
nav ol {
|
||||
list-style: none;
|
||||
list-style-image: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Embedded content and figures
|
||||
*
|
||||
* @todo Look into adding responsive embedded video.
|
||||
*/
|
||||
img {
|
||||
/* Remove border when inside `a` element in IE 8/9. */
|
||||
border: 0;
|
||||
@if $legacy-support-for-ie7 {
|
||||
/* Improve image quality when scaled in IE 7. */
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
/* Suppress the space beneath the baseline */
|
||||
/* vertical-align: bottom; */
|
||||
|
||||
/* Responsive images */
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
@if $legacy-support-for-ie8 {
|
||||
/* Correct IE 8 not scaling image height when resized. */
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Correct overflow displayed oddly in IE 9. */
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Address margin not present in IE 8/9 and Safari 5. */
|
||||
figure {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms
|
||||
*/
|
||||
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
/* Correct margin displayed oddly in IE 6/7. */
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Define consistent border, margin, and padding. */
|
||||
fieldset {
|
||||
margin: 0 2px;
|
||||
/* Apply borders and padding that keep the vertical rhythm. */
|
||||
border-color: #c0c0c0;
|
||||
@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. Correct `color` not being inherited in IE 8/9.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
* 3. Correct alignment displayed oddly in IE 6/7.
|
||||
*/
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*margin-left: -7px; /* 3 */ /* LTR */
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct font family not being inherited in all browsers.
|
||||
* 2. Correct font size not being inherited in all browsers.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
||||
* 4. Improve appearance and consistency with IE 6/7.
|
||||
* 5. Keep form elements constrained in their containers.
|
||||
*/
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
vertical-align: baseline; /* 4 */
|
||||
*vertical-align: middle; /* 4 */
|
||||
}
|
||||
max-width: 100%; /* 5 */
|
||||
@include box-sizing(border-box); /* 5 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
button,
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
||||
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
||||
*/
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
|
||||
* Known issue: inner spacing remains in IE 6.
|
||||
*/
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
@if $legacy-support-for-ie7 {
|
||||
*overflow: visible; /* 4 */
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9.
|
||||
* 2. Remove excess padding in IE 8/9.
|
||||
* 3. Remove excess padding in IE 7.
|
||||
* Known issue: excess padding remains in IE 6.
|
||||
*/
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
@include box-sizing(border-box); /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
@if $legacy-support-for-ie7 {
|
||||
*height: 13px; /* 3 */
|
||||
*width: 13px; /* 3 */
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
@include box-sizing(content-box); /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
||||
* on OS X.
|
||||
*/
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/* Remove inner padding and border in Firefox 4+. */
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove default vertical scrollbar in IE 8/9.
|
||||
* 2. Improve readability and alignment in all browsers.
|
||||
*/
|
||||
textarea {
|
||||
overflow: auto; /* 1 */
|
||||
vertical-align: top; /* 2 */
|
||||
}
|
||||
|
||||
/* Drupal-style form labels. */
|
||||
label {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tables
|
||||
*/
|
||||
table {
|
||||
/* Remove most spacing between table cells. */
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
/* Prevent cramped-looking tables */
|
||||
/* width: 100%; */
|
||||
/* Add vertical rhythm margins. */
|
||||
@include leader(1);
|
||||
@include trailer(1);
|
||||
}
|
81
themes/openstack/sass/_print.scss
Normal file
@ -0,0 +1,81 @@
|
||||
/**
|
||||
* @file
|
||||
* Print styling
|
||||
*
|
||||
* We provide some sane print styling for Drupal using Zen's layout method.
|
||||
*/
|
||||
|
||||
/**
|
||||
* By importing this CSS file as media "all", we allow this print file to be
|
||||
* aggregated with other stylesheets, for improved front-end performance.
|
||||
*/
|
||||
@media print {
|
||||
|
||||
/* Underline all links. */
|
||||
a:link,
|
||||
a:visited {
|
||||
text-decoration: underline !important;
|
||||
|
||||
/* Don't underline header. */
|
||||
&.header__site-link {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
#content {
|
||||
/* Add visible URL after links. */
|
||||
a[href]:after {
|
||||
content: " (" attr(href) ")";
|
||||
font-weight: normal;
|
||||
font-size: $base-font-size;
|
||||
}
|
||||
|
||||
/* Only display useful links. */
|
||||
a[href^="javascript:"]:after,
|
||||
a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
/* Add visible title after abbreviations. */
|
||||
abbr[title]:after {
|
||||
content: " (" attr(title) ")";
|
||||
}
|
||||
}
|
||||
|
||||
/* Un-float the content. */
|
||||
#content {
|
||||
float: none !important;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* Turn off any background colors or images. */
|
||||
body,
|
||||
#page,
|
||||
#main,
|
||||
#content {
|
||||
color: #000;
|
||||
background-color: transparent !important;
|
||||
background-image: none !important;
|
||||
}
|
||||
|
||||
/* Hide sidebars and nav elements. */
|
||||
#skip-link,
|
||||
#toolbar,
|
||||
#navigation,
|
||||
.region-sidebar-first,
|
||||
.region-sidebar-second,
|
||||
#footer,
|
||||
.breadcrumb,
|
||||
.tabs,
|
||||
.action-links,
|
||||
.links,
|
||||
.book-navigation,
|
||||
.forum-topic-navigation,
|
||||
.pager,
|
||||
.feed-icons {
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
}
|
||||
}
|
167
themes/openstack/sass/components/_misc-rtl.scss
Normal file
@ -0,0 +1,167 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the modular-styles.css file.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Branding header.
|
||||
*/
|
||||
|
||||
/* Wrapping link for logo. */
|
||||
.header__logo {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* The secondary menu (login, etc.) */
|
||||
.header__secondary-menu {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation bar.
|
||||
*/
|
||||
|
||||
/* Main menu and secondary menu links and menu block links. */
|
||||
#navigation {
|
||||
.links,
|
||||
.menu {
|
||||
text-align: right;
|
||||
|
||||
li {
|
||||
/* A simple method to get navigation links to appear in one line. */
|
||||
float: right;
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Messages.
|
||||
*/
|
||||
.messages {
|
||||
padding: 10px 50px 10px 10px;
|
||||
background-position: 99% 8px;
|
||||
}
|
||||
.messages--status {
|
||||
@extend .messages;
|
||||
}
|
||||
.messages--warning {
|
||||
@extend .messages;
|
||||
}
|
||||
.messages--error {
|
||||
@extend .messages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tabs.
|
||||
*/
|
||||
%tabs__tab {
|
||||
float: right;
|
||||
}
|
||||
.tabs-primary__tab {
|
||||
@extend %tabs__tab;
|
||||
}
|
||||
.tabs-primary__tab.is-active {
|
||||
@extend .tabs-primary__tab;
|
||||
}
|
||||
.tabs-secondary__tab,
|
||||
.tabs-secondary__tab.is-active {
|
||||
@extend %tabs__tab;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inline styles.
|
||||
*/
|
||||
|
||||
/* List of links */
|
||||
.inline li {
|
||||
/* Bug in Safari causes display: inline to fail. */
|
||||
display: inline-block;
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/* The inline field label used by the Fences.module */
|
||||
span.field-label {
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
/**
|
||||
* "More" links.
|
||||
*/
|
||||
.more-link {
|
||||
text-align: left;
|
||||
}
|
||||
.more-help-link {
|
||||
text-align: left;
|
||||
}
|
||||
.more-help-link a {
|
||||
background-position: 100% 50%;
|
||||
padding: 1px 20px 1px 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menus.
|
||||
*/
|
||||
.menu__item.is-collapsed {
|
||||
list-style-image: inline-image("menu-collapsed-rtl.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*list-style-image: image-url("menu-collapsed-rtl.png");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Comments.
|
||||
*/
|
||||
|
||||
/* Nested comments are indented. */
|
||||
.indented {
|
||||
margin-left: 0;
|
||||
margin-right: $indent-amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms.
|
||||
*/
|
||||
|
||||
/* Drupal's default login form block */
|
||||
#user-login-form {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
html.js #user-login-form li.openid-link,
|
||||
#user-login-form li.openid-link {
|
||||
/* Un-do some of the padding on the ul list. */
|
||||
margin-left: 0;
|
||||
margin-right: -20px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Drupal admin tables.
|
||||
*/
|
||||
form {
|
||||
th {
|
||||
text-align: right;
|
||||
padding-left: 1em;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Collapsible fieldsets.
|
||||
*
|
||||
* @see collapse.js
|
||||
*/
|
||||
.fieldset-legend {
|
||||
html.js .collapsible & {
|
||||
background-position: 98% 75%;
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
html.js .collapsed & {
|
||||
background-image: inline-image("menu-collapsed-rtl.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*background-image: image-url("menu-collapsed-rtl.png");
|
||||
}
|
||||
background-position: 98% 50%;
|
||||
}
|
||||
}
|
807
themes/openstack/sass/components/_misc.scss
Normal file
@ -0,0 +1,807 @@
|
||||
/**
|
||||
* @file
|
||||
* SMACSS Modules
|
||||
*
|
||||
* Adds modular sets of styles.
|
||||
*
|
||||
* Additional useful selectors can be found in Zen's online documentation.
|
||||
* https://drupal.org/node/1707736
|
||||
*/
|
||||
|
||||
/**
|
||||
* Wireframes.
|
||||
*/
|
||||
.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 & {
|
||||
/* IE6/7 do not support the outline property. */
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Accessibility features.
|
||||
*/
|
||||
|
||||
/* element-invisible as defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
|
||||
.element-invisible,
|
||||
%element-invisible {
|
||||
@include element-invisible;
|
||||
}
|
||||
|
||||
/* Turns off the element-invisible effect. */
|
||||
%element-invisible-off {
|
||||
@include element-invisible-off;
|
||||
}
|
||||
|
||||
.element-focusable,
|
||||
%element-focusable {
|
||||
@extend %element-invisible;
|
||||
|
||||
&:active,
|
||||
&:focus {
|
||||
@extend %element-invisible-off;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The skip-link link will be completely hidden until a user tabs to the link.
|
||||
*/
|
||||
#skip-link {
|
||||
margin: 0;
|
||||
|
||||
a,
|
||||
a:visited {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 2px 0 3px 0;
|
||||
text-align: center;
|
||||
background-color: #666;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Branding header.
|
||||
*/
|
||||
|
||||
/* Wrapping link for logo. */
|
||||
.header__logo {
|
||||
float: left; /* LTR */
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Logo image. */
|
||||
.header__logo-image {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
/* Wrapper for website name and slogan. */
|
||||
.header__name-and-slogan {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* The name of the website. */
|
||||
.header__site-name {
|
||||
margin: 0;
|
||||
@include adjust-font-size-to( $h1-font-size );
|
||||
}
|
||||
|
||||
/* The link around the name of the website. */
|
||||
.header__site-link {
|
||||
&:link,
|
||||
&:visited {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
/* The slogan (or tagline) of a website. */
|
||||
.header__site-slogan {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* The secondary menu (login, etc.) */
|
||||
.header__secondary-menu {
|
||||
float: right; /* LTR */
|
||||
}
|
||||
|
||||
/* Wrapper for any blocks placed in the header region. */
|
||||
.header__region {
|
||||
/* Clear the logo. */
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/**
|
||||
* Navigation bar.
|
||||
*/
|
||||
#navigation {
|
||||
/* Sometimes you want to prevent overlapping with main div. */
|
||||
/* overflow: hidden; */
|
||||
|
||||
.block {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.block-menu .block__title,
|
||||
.block-menu-block .block__title {
|
||||
@extend %element-invisible;
|
||||
}
|
||||
|
||||
/* Main menu and secondary menu links and menu block links. */
|
||||
.links,
|
||||
.menu {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Breadcrumb navigation.
|
||||
*/
|
||||
.breadcrumb {
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Titles.
|
||||
*/
|
||||
.page__title, /* The title of the page. */
|
||||
.node__title, /* Title of a piece of content when it is given in a list of content. */
|
||||
.block__title, /* Block title. */
|
||||
.comments__title, /* Comment section heading. */
|
||||
.comments__form-title, /* Comment form heading. */
|
||||
.comment__title { /* Comment title. */
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Messages.
|
||||
*/
|
||||
.messages {
|
||||
margin: rhythm(1) 0;
|
||||
padding: 10px 10px 10px 50px; /* LTR */
|
||||
background-image: inline-image("message-24-ok.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*background-image: image-url("message-24-ok.png");
|
||||
}
|
||||
background-position: 8px 8px; /* LTR */
|
||||
background-repeat: no-repeat;
|
||||
border: 1px solid #be7;
|
||||
}
|
||||
.messages--status {
|
||||
@extend .messages;
|
||||
@extend %ok;
|
||||
}
|
||||
.messages--warning {
|
||||
@extend .messages;
|
||||
@extend %warning;
|
||||
background-image: inline-image("message-24-warning.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*background-image: image-url("message-24-warning.png");
|
||||
}
|
||||
border-color: #ed5;
|
||||
}
|
||||
.messages--error {
|
||||
@extend .messages;
|
||||
@extend %error;
|
||||
background-image: inline-image("message-24-error.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*background-image: image-url("message-24-error.png");
|
||||
}
|
||||
border-color: #ed541d;
|
||||
|
||||
}
|
||||
.messages__list {
|
||||
margin: 0;
|
||||
}
|
||||
.messages__item {
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
/* Core/module installation error messages. */
|
||||
.messages--error p.error {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* System status report. */
|
||||
.ok,
|
||||
%ok {
|
||||
background-color: #f8fff0;
|
||||
color: #234600;
|
||||
}
|
||||
.warning,
|
||||
%warning {
|
||||
background-color: #fffce5;
|
||||
color: #840;
|
||||
}
|
||||
.error,
|
||||
%error {
|
||||
background-color: #fef5f1;
|
||||
color: #8c2e0b;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tabs.
|
||||
*/
|
||||
|
||||
/* Basic positioning styles shared by primary and secondary tabs. */
|
||||
%tabs {
|
||||
@include clearfix;
|
||||
@include background-image(linear-gradient(bottom, $tabs-border 1px, transparent 1px));
|
||||
/* IE 9 and earlier don't understand gradients. */
|
||||
list-style: none;
|
||||
border-bottom: 1px solid $tabs-border \0/ie;
|
||||
margin: rhythm(1) 0;
|
||||
padding: 0 2px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
%tabs__tab {
|
||||
float: left; /* LTR */
|
||||
margin: 0 3px;
|
||||
}
|
||||
%tabs__tab-link {
|
||||
border: 1px solid #e9e9e9;
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
display: block;
|
||||
@include adjust-leading-to(1);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Primary tabs. */
|
||||
.tabs-primary {
|
||||
@extend %tabs;
|
||||
}
|
||||
.tabs-primary__tab {
|
||||
@extend %tabs__tab;
|
||||
@include border-top-radius(4px);
|
||||
@include single-text-shadow(#fff, 1px, 1px, 0);
|
||||
border: 1px solid $tabs-border;
|
||||
border-bottom-color: transparent;
|
||||
/* IE 9 and earlier don't understand gradients. */
|
||||
border-bottom: 0 \0/ie;
|
||||
}
|
||||
.tabs-primary__tab.is-active {
|
||||
@extend .tabs-primary__tab;
|
||||
border-bottom-color: $tabs-container-bg;
|
||||
}
|
||||
|
||||
// We use 3 placeholder styles to prevent @extend from going selector crazy.
|
||||
%tabs-primary__tab-link {
|
||||
@extend %tabs__tab-link;
|
||||
@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;
|
||||
}
|
||||
%tabs-primary__tab-link-is-hover {
|
||||
background-color: #e9e9e9;
|
||||
border-color: #f2f2f2;
|
||||
}
|
||||
%tabs-primary__tab-link-is-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;
|
||||
}
|
||||
|
||||
a.tabs-primary__tab-link {
|
||||
@extend %tabs-primary__tab-link;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@extend %tabs-primary__tab-link-is-hover;
|
||||
}
|
||||
&:active {
|
||||
@extend %tabs-primary__tab-link-is-active;
|
||||
}
|
||||
}
|
||||
a.tabs-primary__tab-link.is-active {
|
||||
@extend %tabs-primary__tab-link;
|
||||
@extend %tabs-primary__tab-link-is-active;
|
||||
}
|
||||
|
||||
/* Secondary tabs. */
|
||||
.tabs-secondary {
|
||||
@extend %tabs;
|
||||
font-size: .9em;
|
||||
/* Collapse bottom margin of ul.primary. */
|
||||
margin-top: -(rhythm(1));
|
||||
}
|
||||
.tabs-secondary__tab,
|
||||
.tabs-secondary__tab.is-active {
|
||||
@extend %tabs__tab;
|
||||
margin: rhythm(1)/2 3px;
|
||||
}
|
||||
|
||||
// We use 3 placeholder styles to prevent @extend from going selector crazy.
|
||||
%tabs-secondary__tab-link {
|
||||
@extend %tabs__tab-link;
|
||||
@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;
|
||||
}
|
||||
%tabs-secondary__tab-link-is-focus {
|
||||
background-color: #dedede;
|
||||
border-color: #999;
|
||||
color: #333;
|
||||
}
|
||||
%tabs-secondary__tab-link-is-active {
|
||||
@include single-text-shadow(#333, 1px, 1px, 0);
|
||||
background-color: #666;
|
||||
border-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
a.tabs-secondary__tab-link {
|
||||
@extend %tabs-secondary__tab-link;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@extend %tabs-secondary__tab-link-is-focus;
|
||||
}
|
||||
&:active {
|
||||
@extend %tabs-secondary__tab-link-is-active;
|
||||
}
|
||||
}
|
||||
a.tabs-secondary__tab-link.is-active {
|
||||
@extend %tabs-secondary__tab-link;
|
||||
@extend %tabs-secondary__tab-link-is-active;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inline styles.
|
||||
*/
|
||||
|
||||
/* List of links generated by theme_links(). */
|
||||
.inline {
|
||||
display: inline;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding: 0 1em 0 0; /* LTR */
|
||||
}
|
||||
}
|
||||
|
||||
/* The inline field label used by the Fences module. */
|
||||
span.field-label {
|
||||
padding: 0 1em 0 0; /* LTR */
|
||||
}
|
||||
|
||||
/**
|
||||
* "More" links.
|
||||
*/
|
||||
.more-link {
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
.more-help-link {
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
.more-help-link a {
|
||||
background-image: inline-image("help.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*background-image: image-url("help.png");
|
||||
}
|
||||
background-position: 0 50%; /* LTR */
|
||||
background-repeat: no-repeat;
|
||||
padding: 1px 0 1px 20px; /* LTR */
|
||||
}
|
||||
|
||||
/**
|
||||
* Pager.
|
||||
*/
|
||||
|
||||
/* A list of page numbers when more than 1 page of content is available. */
|
||||
.pager {
|
||||
clear: both;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
%pager__item {
|
||||
display: inline;
|
||||
padding: 0 0.5em;
|
||||
list-style-type: none;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.pager-item, /* A list item containing a page number in the list of pages. */
|
||||
.pager-first, /* The first page's list item. */
|
||||
.pager-previous, /* The previous page's list item. */
|
||||
.pager-next, /* The next page's list item. */
|
||||
.pager-last, /* The last page's list item. */
|
||||
.pager-ellipsis { /* A concatenation of several list items using an ellipsis. */
|
||||
@extend %pager__item;
|
||||
}
|
||||
|
||||
/* The current page's list item. */
|
||||
.pager-current {
|
||||
@extend %pager__item;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Blocks.
|
||||
*/
|
||||
|
||||
/* Block wrapper. */
|
||||
.block {
|
||||
margin-bottom: rhythm(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Menus.
|
||||
*/
|
||||
.menu__item.is-leaf {
|
||||
list-style-image: inline-image("menu-leaf.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*list-style-image: image-url("menu-leaf.png");
|
||||
}
|
||||
list-style-type: square;
|
||||
}
|
||||
.menu__item.is-expanded {
|
||||
list-style-image: inline-image("menu-expanded.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*list-style-image: image-url("menu-expanded.png");
|
||||
}
|
||||
list-style-type: circle;
|
||||
}
|
||||
.menu__item.is-collapsed {
|
||||
list-style-image: inline-image("menu-collapsed.png"); /* LTR */
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*list-style-image: image-url("menu-collapsed.png"); /* LTR */
|
||||
}
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
/* The active item in a Drupal menu. */
|
||||
.menu a.active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marker.
|
||||
*/
|
||||
|
||||
/* The "new" or "updated" marker. */
|
||||
.new,
|
||||
.update {
|
||||
color: #c00;
|
||||
/* Remove background highlighting from <mark> in normalize. */
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unpublished note.
|
||||
*/
|
||||
|
||||
/* The word "Unpublished" displayed underneath the content. */
|
||||
.unpublished {
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
/* Remove background highlighting from <mark> in normalize. */
|
||||
background-color: transparent;
|
||||
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;
|
||||
/* A very nice CSS3 property. */
|
||||
word-wrap: break-word;
|
||||
}
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
.lt-ie8 .node-unpublished>*,
|
||||
.lt-ie8 .comment-unpublished>* {
|
||||
/* Otherwise these elements will appear below the "Unpublished" text. */
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Comments.
|
||||
*/
|
||||
|
||||
/* Wrapper for the list of comments and its title. */
|
||||
.comments {
|
||||
margin: rhythm(1) 0;
|
||||
}
|
||||
|
||||
/* Preview of the comment before submitting new or updated comment. */
|
||||
.comment-preview {
|
||||
/* Drupal core will use a #ffffea background. See #1110842. */
|
||||
background-color: #ffffea;
|
||||
}
|
||||
|
||||
/* Wrapper for a single comment. */
|
||||
.comment {
|
||||
|
||||
/* Comment's permalink wrapper. */
|
||||
.permalink {
|
||||
text-transform: uppercase;
|
||||
font-size: 75%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Nested comments are indented. */
|
||||
.indented {
|
||||
/* Drupal core uses a 25px left margin. */
|
||||
margin-left: $indent-amount; /* LTR */
|
||||
}
|
||||
|
||||
/**
|
||||
* Forms.
|
||||
*/
|
||||
|
||||
/* Wrapper for a form element (or group of form elements) and its label. */
|
||||
.form-item {
|
||||
margin: rhythm(1) 0;
|
||||
|
||||
/* Pack groups of checkboxes and radio buttons closer together. */
|
||||
.form-checkboxes & ,
|
||||
.form-radios & {
|
||||
/* Drupal core uses "0.4em 0". */
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Form items in a table. */
|
||||
tr.odd &,
|
||||
tr.even & {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Highlight the form elements that caused a form submission error. */
|
||||
input.error,
|
||||
textarea.error,
|
||||
select.error {
|
||||
border: 1px solid #c00;
|
||||
}
|
||||
|
||||
/* The descriptive help text (separate from the label). */
|
||||
.description {
|
||||
font-size: 0.85em;
|
||||
}
|
||||
}
|
||||
|
||||
.form-type-radio,
|
||||
.form-type-checkbox {
|
||||
.description {
|
||||
margin-left: 2.4em;
|
||||
}
|
||||
}
|
||||
|
||||
/* The part of the label that indicates a required field. */
|
||||
.form-required {
|
||||
color: #c00;
|
||||
}
|
||||
|
||||
/* Labels for radios and checkboxes. */
|
||||
label.option {
|
||||
display: inline;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Buttons used by contrib modules like Media. */
|
||||
a.button {
|
||||
@include appearance(button);
|
||||
}
|
||||
|
||||
/* Password confirmation. */
|
||||
.password-parent,
|
||||
.confirm-parent {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* OpenID creates a new ul above the login form's links. */
|
||||
.openid-links {
|
||||
/* Position OpenID's ul next to the rest of the links. */
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* The "Log in using OpenID" and "Cancel OpenID login" links. */
|
||||
.openid-link,
|
||||
.user-link {
|
||||
margin-top: rhythm(1);
|
||||
}
|
||||
html.js #user-login-form li.openid-link,
|
||||
#user-login-form li.openid-link {
|
||||
/* Un-do some of the padding on the ul list. */
|
||||
margin-left: -20px; /* LTR */
|
||||
}
|
||||
#user-login ul {
|
||||
margin: rhythm(1) 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Drupal admin tables.
|
||||
*/
|
||||
form {
|
||||
th {
|
||||
text-align: left; /* LTR */
|
||||
padding-right: 1em; /* LTR */
|
||||
border-bottom: 3px solid #ccc;
|
||||
}
|
||||
tbody {
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
table ul {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
tr.even,
|
||||
tr.odd {
|
||||
background-color: #eee;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding: 0.1em 0.6em;
|
||||
}
|
||||
tr.even {
|
||||
background-color: #fff;
|
||||
}
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
.lt-ie8 tr.even,
|
||||
.lt-ie8 tr.odd {
|
||||
th,
|
||||
td {
|
||||
/* IE doesn't display borders on table rows. */
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Markup generated by theme_tablesort_indicator(). */
|
||||
td.active {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
/* Center checkboxes inside table cell. */
|
||||
td.checkbox,
|
||||
th.checkbox {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Drupal core wrongly puts this in system.menus.css. Since we override that, add it back. */
|
||||
td.menu-disabled {
|
||||
background: #ccc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Autocomplete.
|
||||
*
|
||||
* @see autocomplete.js
|
||||
*/
|
||||
|
||||
/* Suggestion list. */
|
||||
#autocomplete .selected {
|
||||
background: #0072b9;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collapsible fieldsets.
|
||||
*
|
||||
* @see collapse.js
|
||||
*/
|
||||
.fieldset-legend {
|
||||
html.js .collapsible & {
|
||||
background-image: inline-image("menu-expanded.png");
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*background-image: image-url("menu-expanded.png");
|
||||
}
|
||||
background-position: 5px 65%; /* LTR */
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 15px; /* LTR */
|
||||
}
|
||||
html.js .collapsed & {
|
||||
background-image: inline-image("menu-collapsed.png"); /* LTR */
|
||||
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
||||
*background-image: image-url("menu-collapsed.png"); /* LTR */
|
||||
}
|
||||
background-position: 5px 50%; /* LTR */
|
||||
}
|
||||
.summary {
|
||||
color: #999;
|
||||
font-size: 0.9em;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TableDrag behavior.
|
||||
*
|
||||
* @see tabledrag.js
|
||||
*/
|
||||
tr.drag {
|
||||
background-color: #fffff0;
|
||||
}
|
||||
tr.drag-previous {
|
||||
background-color: #ffd;
|
||||
}
|
||||
.tabledrag-toggle-weight {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/**
|
||||
* TableSelect behavior.
|
||||
*
|
||||
* @see tableselect.js
|
||||
*/
|
||||
tr.selected td {
|
||||
background: #ffc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Progress bar.
|
||||
*
|
||||
* @see progress.js
|
||||
*/
|
||||
.progress {
|
||||
font-weight: bold;
|
||||
|
||||
.bar {
|
||||
background: #ccc;
|
||||
border-color: #666;
|
||||
margin: 0 0.2em;
|
||||
@include border-radius(3px);
|
||||
}
|
||||
.filled {
|
||||
background-color: #0072b9;
|
||||
background-image: image-url("progress.gif");
|
||||
}
|
||||
}
|
182
themes/openstack/sass/custom.scss
Normal file
@ -0,0 +1,182 @@
|
||||
/**
|
||||
* @file
|
||||
* Common scss rules
|
||||
*
|
||||
*/
|
||||
|
||||
@import "compass/css3";
|
||||
@import "compass/layout.scss";
|
||||
@import "compass/typography";
|
||||
@import "compass/utilities";
|
||||
|
||||
/** COLORS **/
|
||||
|
||||
$basicColor: #535353;
|
||||
|
||||
$blue0: #F2F6F7;
|
||||
$blue1: #E3EDED;
|
||||
$blue2: #c4e0e9;
|
||||
$blue3: #254C7C;
|
||||
$blue4: #264D69;
|
||||
|
||||
$red: #BC1518;
|
||||
|
||||
$green: #D5EFD4;
|
||||
|
||||
@mixin font($size, $color, $weight){
|
||||
font-size: $size;
|
||||
color: $color;
|
||||
font-weight: $weight;
|
||||
}
|
||||
|
||||
/** BASIC STLYES **/
|
||||
|
||||
body {
|
||||
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
@include font(13px, $basicColor, normal);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
.blueline {
|
||||
background: image-url("header-line.gif") repeat-x scroll 0 bottom rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
#logo {
|
||||
line-height: 24px;
|
||||
verical-align: baseline;
|
||||
img {
|
||||
padding-top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
/** PRIMARY MENU **/
|
||||
|
||||
#navigation {
|
||||
height: auto;
|
||||
line-height: 24px;
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
nav {
|
||||
margin-left: 30px;
|
||||
}
|
||||
.links li {
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
vertical-align: baseline;
|
||||
margin-right: 20px;
|
||||
a {
|
||||
display: block;
|
||||
color: #353535;
|
||||
padding: 20px 0 5px;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
li.active {
|
||||
a {
|
||||
border-bottom: 3px solid #CF2F19;
|
||||
color: #CF2F19;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** UTILITY LINKS **/
|
||||
|
||||
.block-commons-utility-links {
|
||||
ul {
|
||||
float: right;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
display: inline-block;
|
||||
padding-left: 0.5em;
|
||||
a {
|
||||
color: #1F7A95;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** BLOCK SEARCH FORM **/
|
||||
|
||||
#header #block-search-form {
|
||||
float: right;
|
||||
.form-type-textfield {
|
||||
border: 1px solid #c5e2ea;
|
||||
display: inline-block;
|
||||
input {
|
||||
border: none;
|
||||
outline: none;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
.form-submit {
|
||||
background: #CF2F19;
|
||||
color: #ffffff;
|
||||
border: none;
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
/** FOOTER **/
|
||||
|
||||
#footer {
|
||||
hr {
|
||||
height: 1px;
|
||||
background: none repeat scroll 0 0 #DDDDDD;
|
||||
border: medium none;
|
||||
clear: both;
|
||||
color: #DDDDDD;
|
||||
float: none;
|
||||
height: 0.1em;
|
||||
margin: 0 0 1.45em;
|
||||
width: 100%;
|
||||
}
|
||||
.span-8, .span-4 {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.span-8 {
|
||||
width: 310px;
|
||||
}
|
||||
.span-4 {
|
||||
width: 150px;
|
||||
}
|
||||
.span-4.last {
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
10
themes/openstack/sass/layouts/_fixed-rtl.scss
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the layout-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";
|
126
themes/openstack/sass/layouts/_fixed.scss
Normal file
@ -0,0 +1,126 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
// 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;
|
||||
|
||||
// If you need IE6/7 support for box-sizing: border-box (default), see _base.scss
|
||||
// Since the same CSS unit for grid width and gutter width are set here
|
||||
// we can use box-sizing: content-box; without worrying about polyfills.
|
||||
$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;
|
||||
|
||||
// Suppress this section of CSS for RTL layouts since it contains no LTR-specific styles.
|
||||
@if $zen-reverse-all-floats == false {
|
||||
|
||||
/**
|
||||
* Center the page.
|
||||
*
|
||||
* If you want to make the page a fixed width and centered in the viewport,
|
||||
* this is the standards-compliant way to do that.
|
||||
*/
|
||||
#page,
|
||||
.region-bottom {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: $zen-grid-width;
|
||||
}
|
||||
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
#header,
|
||||
#content,
|
||||
#navigation,
|
||||
.region-sidebar-first,
|
||||
.region-sidebar-second,
|
||||
#footer {
|
||||
// See the note about $zen-auto-include-item-base above.
|
||||
@include zen-grid-item-base();
|
||||
}
|
||||
|
||||
/* Containers for grid items and flow items. */
|
||||
#header,
|
||||
#main,
|
||||
#footer {
|
||||
@include zen-grid-container();
|
||||
}
|
||||
|
||||
/* Navigation bar */
|
||||
#main {
|
||||
/* Move all the children of #main down to make room. */
|
||||
padding-top: $nav-height;
|
||||
position: relative;
|
||||
}
|
||||
#navigation {
|
||||
/* Move the navbar up inside #main's padding. */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: $nav-height;
|
||||
width: $zen-grid-width - $zen-gutter-width;
|
||||
}
|
||||
|
||||
} // End of @if $zen-reverse-all-floats == true
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
.sidebar-first {
|
||||
/* Span 4 columns, starting in 2nd column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(4, 2);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.region-sidebar-first {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
.sidebar-second {
|
||||
/* Span 4 columns, starting in 1st column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(4, 1);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.region-sidebar-second {
|
||||
@include zen-grid-item(1, 5);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
.two-sidebars {
|
||||
/* Span 3 columns, starting in 2nd column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(3, 2);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.region-sidebar-first {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.region-sidebar-second {
|
||||
@include zen-grid-item(1, 5);
|
||||
}
|
||||
}
|
10
themes/openstack/sass/layouts/_responsive-rtl.scss
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the layout-responsive.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";
|
210
themes/openstack/sass/layouts/_responsive.scss
Normal file
@ -0,0 +1,210 @@
|
||||
/**
|
||||
* @file
|
||||
* Positioning for a responsive layout.
|
||||
*
|
||||
* Define CSS classes to create a fluid grid layout with optional sidebars
|
||||
* depending on whether blocks are placed in the left or right sidebars.
|
||||
*
|
||||
* This layout uses the Zen Grids plugin for Compass: http://zengrids.com
|
||||
*/
|
||||
|
||||
// We are going to create a fluid grid with 1, 3, or 5 columns and 20px gutters
|
||||
// between columns (applied as 10px of left/right padding on each column).
|
||||
$zen-column-count: 1;
|
||||
$zen-gutter-width: 20px;
|
||||
|
||||
// If you need IE6/7 support for box-sizing: border-box (default), see _base.scss
|
||||
//$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;
|
||||
|
||||
// Suppress this section of CSS for RTL layouts since it contains no LTR-specific styles.
|
||||
@if $zen-reverse-all-floats == false {
|
||||
|
||||
/**
|
||||
* Center the page.
|
||||
*
|
||||
* For screen sizes larger than 1200px, prevent excessively long lines of text
|
||||
* by setting a max-width.
|
||||
*/
|
||||
#page,
|
||||
.region-bottom {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
#header,
|
||||
#content,
|
||||
#navigation,
|
||||
.region-sidebar-first,
|
||||
.region-sidebar-second,
|
||||
#footer {
|
||||
// See the note about $zen-auto-include-item-base above.
|
||||
@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 {
|
||||
/* Move all the children of #main down to make room. */
|
||||
padding-top: $nav-height;
|
||||
position: relative;
|
||||
}
|
||||
#navigation {
|
||||
/* Move the navbar up inside #main's padding. */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: $nav-height;
|
||||
width: $zen-grid-width;
|
||||
}
|
||||
}
|
||||
|
||||
} // End of @if $zen-reverse-all-floats == true
|
||||
|
||||
/**
|
||||
* Use 3 grid columns for smaller screens.
|
||||
*/
|
||||
@media all and (min-width: 480px) and (max-width: 959px) {
|
||||
|
||||
$zen-column-count: 3;
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
.sidebar-first {
|
||||
/* Span 2 columns, starting in 2nd column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(2, 2);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.region-sidebar-first {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
.sidebar-second {
|
||||
/* Span 2 columns, starting in 1st column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(2, 1);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 3rd column from left. */
|
||||
.region-sidebar-second {
|
||||
@include zen-grid-item(1, 3);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
.two-sidebars {
|
||||
/* Span 2 columns, starting in 2nd column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(2, 2);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.region-sidebar-first {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
|
||||
/* Start a new row and span all 3 columns. */
|
||||
.region-sidebar-second {
|
||||
@include zen-grid-item(3, 1);
|
||||
@include zen-nested-container(); // Since we're making every block in this region be a grid item.
|
||||
@include zen-clear();
|
||||
|
||||
/* Apply the shared properties of grid items in a single, efficient ruleset. */
|
||||
.block {
|
||||
@include zen-grid-item-base();
|
||||
}
|
||||
/* Span 1 column, starting in the 1st column from left. */
|
||||
.block:nth-child(3n+1) {
|
||||
@include zen-grid-item(1, 1);
|
||||
@include zen-clear();
|
||||
}
|
||||
/* Span 1 column, starting in the 2nd column from left. */
|
||||
.block:nth-child(3n+2) {
|
||||
@include zen-grid-item(1, 2);
|
||||
}
|
||||
/* Span 1 column, starting in the 3rd column from left. */
|
||||
.block:nth-child(3n) {
|
||||
@include zen-grid-item(1, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Use 5 grid columns for larger screens.
|
||||
*/
|
||||
@media all and (min-width: 960px) {
|
||||
|
||||
$zen-column-count: 5;
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the left one.
|
||||
*/
|
||||
.sidebar-first {
|
||||
/* Span 4 columns, starting in 2nd column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(4, 2);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.region-sidebar-first {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there is only one sidebar, the right one.
|
||||
*/
|
||||
.sidebar-second {
|
||||
/* Span 4 columns, starting in 1st column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(4, 1);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.region-sidebar-second {
|
||||
@include zen-grid-item(1, 5);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The layout when there are two sidebars.
|
||||
*/
|
||||
.two-sidebars {
|
||||
/* Span 3 columns, starting in 2nd column from left. */
|
||||
#content {
|
||||
@include zen-grid-item(3, 2);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 1st column from left. */
|
||||
.region-sidebar-first {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
|
||||
/* Span 1 column, starting in 5th column from left. */
|
||||
.region-sidebar-second {
|
||||
@include zen-grid-item(1, 5);
|
||||
}
|
||||
}
|
||||
}
|
39
themes/openstack/sass/page-layouts.scss
Normal file
@ -0,0 +1,39 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* Layout of inner page elements.
|
||||
*
|
||||
*/
|
||||
|
||||
@import "init";
|
||||
|
||||
// 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;
|
||||
|
||||
#header {
|
||||
#logo {
|
||||
/*background: #00ff00;*/
|
||||
}
|
||||
#navigation {
|
||||
/*background: #e0e0e0;*/
|
||||
/*position: static;
|
||||
width: auto;
|
||||
height: 56px;*/
|
||||
}
|
||||
}
|
||||
|
||||
#branding {
|
||||
@include zen-grid-container();
|
||||
}
|
||||
|
||||
#logo {
|
||||
@include zen-grid-item(1, 1);
|
||||
}
|
||||
|
||||
#navigation {
|
||||
@include zen-grid-item(4, 2);
|
||||
position: static;
|
||||
}
|
20
themes/openstack/sass/styles-rtl.scss
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL companion for the styles.scss file.
|
||||
*/
|
||||
|
||||
/* Import Sass mixins, variables, Compass modules, etc. */
|
||||
@import "init";
|
||||
|
||||
/* HTML element (SMACSS base) rules */
|
||||
@import "normalize-rtl";
|
||||
|
||||
/* Layout rules */
|
||||
@import "layouts/responsive-rtl";
|
||||
|
||||
/* Component (SMACSS module) rules */
|
||||
@import "components/misc-rtl";
|
||||
|
||||
/* SMACSS theme rules */
|
||||
/* @import "theme-A-rtl"; */
|
||||
/* @import "theme-B-rtl"; */
|
26
themes/openstack/sass/styles.scss
Normal file
@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @file
|
||||
* Styles are organized using the SMACSS technique. @see http://smacss.com/book/
|
||||
*
|
||||
* When you turn on CSS aggregation at admin/config/development/performance, all
|
||||
* of these @include files will be combined into a single file.
|
||||
*/
|
||||
|
||||
/* Import Sass mixins, variables, Compass modules, etc. */
|
||||
@import "init";
|
||||
|
||||
/* HTML element (SMACSS base) rules */
|
||||
@import "normalize";
|
||||
|
||||
/* Layout rules */
|
||||
/*@import "layouts/responsive";*/
|
||||
@import "layouts/responsive";
|
||||
|
||||
/* Component (SMACSS module) rules */
|
||||
@import "components/misc";
|
||||
// Optionally, add your own components here.
|
||||
@import "print";
|
||||
|
||||
/* SMACSS theme rules */
|
||||
/* @import "theme-A"; */
|
||||
/* @import "theme-B"; */
|
BIN
themes/openstack/screenshot.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
145
themes/openstack/template.php
Normal file
@ -0,0 +1,145 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Contains the theme's functions to manipulate Drupal's default markup.
|
||||
*
|
||||
* Complete documentation for this file is available online.
|
||||
* @see https://drupal.org/node/1728096
|
||||
*/
|
||||
|
||||
/**
|
||||
* Alter page elements.
|
||||
*
|
||||
*/
|
||||
|
||||
function openstack_page_alter(&$page) {
|
||||
// Relocate utility links from header to toolbar region.
|
||||
if (isset($page['header']['commons_utility_links_commons_utility_links'])) {
|
||||
$page['toolbar']['commons_utility_links_commons_utility_links'] =
|
||||
$page['header']['commons_utility_links_commons_utility_links'];
|
||||
unset($page['header']['commons_utility_links_commons_utility_links']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Override or insert variables into the maintenance page template.
|
||||
*
|
||||
* @param $variables
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered ("maintenance_page" in this case.)
|
||||
*/
|
||||
/* -- Delete this line if you want to use this function
|
||||
function STARTERKIT_preprocess_maintenance_page(&$variables, $hook) {
|
||||
// When a variable is manipulated or added in preprocess_html or
|
||||
// preprocess_page, that same work is probably needed for the maintenance page
|
||||
// as well, so we can just re-use those functions to do that work here.
|
||||
STARTERKIT_preprocess_html($variables, $hook);
|
||||
STARTERKIT_preprocess_page($variables, $hook);
|
||||
}
|
||||
// */
|
||||
|
||||
/**
|
||||
* Override or insert variables into the html templates.
|
||||
*
|
||||
* @param $variables
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered ("html" in this case.)
|
||||
*/
|
||||
/* -- Delete this line if you want to use this function
|
||||
function STARTERKIT_preprocess_html(&$variables, $hook) {
|
||||
$variables['sample_variable'] = t('Lorem ipsum.');
|
||||
|
||||
// The body tag's classes are controlled by the $classes_array variable. To
|
||||
// remove a class from $classes_array, use array_diff().
|
||||
//$variables['classes_array'] = array_diff($variables['classes_array'], array('class-to-remove'));
|
||||
}
|
||||
// */
|
||||
|
||||
/**
|
||||
* Override or insert variables into the page templates.
|
||||
*
|
||||
* @param $variables
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered ("page" in this case.)
|
||||
*/
|
||||
/* -- Delete this line if you want to use this function
|
||||
function STARTERKIT_preprocess_page(&$variables, $hook) {
|
||||
$variables['sample_variable'] = t('Lorem ipsum.');
|
||||
}
|
||||
// */
|
||||
|
||||
/**
|
||||
* Override or insert variables into the node templates.
|
||||
*
|
||||
* @param $variables
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered ("node" in this case.)
|
||||
*/
|
||||
/* -- Delete this line if you want to use this function
|
||||
function STARTERKIT_preprocess_node(&$variables, $hook) {
|
||||
$variables['sample_variable'] = t('Lorem ipsum.');
|
||||
|
||||
// Optionally, run node-type-specific preprocess functions, like
|
||||
// STARTERKIT_preprocess_node_page() or STARTERKIT_preprocess_node_story().
|
||||
$function = __FUNCTION__ . '_' . $variables['node']->type;
|
||||
if (function_exists($function)) {
|
||||
$function($variables, $hook);
|
||||
}
|
||||
}
|
||||
// */
|
||||
|
||||
/**
|
||||
* Override or insert variables into the comment templates.
|
||||
*
|
||||
* @param $variables
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered ("comment" in this case.)
|
||||
*/
|
||||
/* -- Delete this line if you want to use this function
|
||||
function STARTERKIT_preprocess_comment(&$variables, $hook) {
|
||||
$variables['sample_variable'] = t('Lorem ipsum.');
|
||||
}
|
||||
// */
|
||||
|
||||
/**
|
||||
* Override or insert variables into the region templates.
|
||||
*
|
||||
* @param $variables
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered ("region" in this case.)
|
||||
*/
|
||||
/* -- Delete this line if you want to use this function
|
||||
function STARTERKIT_preprocess_region(&$variables, $hook) {
|
||||
// Don't use Zen's region--sidebar.tpl.php template for sidebars.
|
||||
//if (strpos($variables['region'], 'sidebar_') === 0) {
|
||||
// $variables['theme_hook_suggestions'] = array_diff($variables['theme_hook_suggestions'], array('region__sidebar'));
|
||||
//}
|
||||
}
|
||||
// */
|
||||
|
||||
/**
|
||||
* Override or insert variables into the block templates.
|
||||
*
|
||||
* @param $variables
|
||||
* An array of variables to pass to the theme template.
|
||||
* @param $hook
|
||||
* The name of the template being rendered ("block" in this case.)
|
||||
*/
|
||||
/* -- Delete this line if you want to use this function
|
||||
function STARTERKIT_preprocess_block(&$variables, $hook) {
|
||||
// Add a count to all the blocks in the region.
|
||||
// $variables['classes_array'][] = 'count-' . $variables['block_id'];
|
||||
|
||||
// By default, Zen will use the block--no-wrapper.tpl.php for the main
|
||||
// content. This optional bit of code undoes that:
|
||||
//if ($variables['block_html_id'] == 'block-system-main') {
|
||||
// $variables['theme_hook_suggestions'] = array_diff($variables['theme_hook_suggestions'], array('block__no_wrapper'));
|
||||
//}
|
||||
}
|
||||
// */
|
100
themes/openstack/templates/README.txt
Normal file
@ -0,0 +1,100 @@
|
||||
TEMPLATES
|
||||
---------
|
||||
|
||||
Drupal 7 contains the following template files which you can override and modify
|
||||
by copying them to your sub-theme.
|
||||
|
||||
The Zen theme overrides a handful of Drupal's templates. In order to override
|
||||
those templates, you should copy them from the zen/templates folder to your
|
||||
sub-theme's templates folder.
|
||||
|
||||
As always, when adding a new template file to your sub-theme, you will need to
|
||||
rebuild the "theme registry" in order for Drupal to see it. For more info, see:
|
||||
https://drupal.org/node/173880#theme-registry
|
||||
|
||||
Located in zen/templates:
|
||||
html.tpl.php
|
||||
page.tpl.php
|
||||
maintenance-page.tpl.php
|
||||
node.tpl.php
|
||||
region.tpl.php
|
||||
region--footer.tpl.php
|
||||
region--sidebar.tpl.php
|
||||
region--no-wrapper.tpl.php
|
||||
block.tpl.php
|
||||
block--no-wrapper.tpl.php
|
||||
comment-wrapper.tpl.php
|
||||
comment.tpl.php
|
||||
user-picture.tpl.php
|
||||
|
||||
Located in /modules/aggregator:
|
||||
aggregator-feed-source.tpl.php
|
||||
aggregator-item.tpl.php
|
||||
aggregator-summary-item.tpl.php
|
||||
aggregator-summary-items.tpl.php
|
||||
aggregator-wrapper.tpl.php
|
||||
|
||||
Located in /modules/block:
|
||||
block.tpl.php (overridden by Zen)
|
||||
block-admin-display-form.tpl.php
|
||||
|
||||
Located in /modules/book:
|
||||
book-all-books-block.tpl.php
|
||||
book-export-html.tpl.php
|
||||
book-navigation.tpl.php
|
||||
book-node-export-html.tpl.php
|
||||
|
||||
Located in /modules/comment:
|
||||
comment-wrapper.tpl.php (overridden by Zen)
|
||||
comment.tpl.php (overridden by Zen)
|
||||
|
||||
Located in /modules/field/theme:
|
||||
field.tpl.php (not used; core uses theme_field() instead)
|
||||
|
||||
Located in /modules/forum:
|
||||
forum-icon.tpl.php
|
||||
forum-list.tpl.php
|
||||
forum-submitted.tpl.php
|
||||
forum-topic-list.tpl.php
|
||||
forums.tpl.php
|
||||
|
||||
Located in /modules/node:
|
||||
node.tpl.php (overridden by Zen)
|
||||
|
||||
Located in /modules/overlay:
|
||||
overlay.tpl.php
|
||||
|
||||
Located in /modules/poll:
|
||||
poll-bar--block.tpl.php
|
||||
poll-bar.tpl.php
|
||||
poll-results--block.tpl.php
|
||||
poll-results.tpl.php
|
||||
poll-vote.tpl.php
|
||||
|
||||
Located in /modules/profile:
|
||||
profile-block.tpl.php
|
||||
profile-listing.tpl.php
|
||||
profile-wrapper.tpl.php
|
||||
|
||||
Located in /modules/search:
|
||||
search-block-form.tpl.php
|
||||
search-result.tpl.php
|
||||
search-results.tpl.php
|
||||
|
||||
Located in /modules/system:
|
||||
html.tpl.php (overridden by Zen)
|
||||
maintenance-page.tpl.php (overridden by Zen)
|
||||
page.tpl.php (overridden by Zen)
|
||||
region.tpl.php (overridden by Zen)
|
||||
|
||||
Located in /modules/taxonomy:
|
||||
taxonomy-term.tpl.php
|
||||
|
||||
Located in /modules/toolbar:
|
||||
toolbar.tpl.php
|
||||
|
||||
Located in /modules/user:
|
||||
user-picture.tpl.php (overridden by Zen)
|
||||
user-profile-category.tpl.php
|
||||
user-profile-item.tpl.php
|
||||
user-profile.tpl.php
|
94
themes/openstack/templates/page.tpl.php
Normal file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Returns the HTML for a single Drupal page.
|
||||
*
|
||||
* Complete documentation for this file is available online.
|
||||
* @see https://drupal.org/node/1728148
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="page">
|
||||
|
||||
<header class="header" id="header" role="banner">
|
||||
|
||||
<?php print render($page['toolbar']); ?>
|
||||
|
||||
<div id="branding">
|
||||
<?php if ($logo): ?>
|
||||
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" class="header__logo" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" class="header__logo-image" /></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="navigation">
|
||||
|
||||
<?php if ($main_menu): ?>
|
||||
<nav id="main-menu" role="navigation" tabindex="-1" class="blueline">
|
||||
<?php
|
||||
// This code snippet is hard to modify. We recommend turning off the
|
||||
// "Main menu" on your sub-theme's settings form, deleting this PHP
|
||||
// code block, and, instead, using the "Menu block" module.
|
||||
// @see https://drupal.org/project/menu_block
|
||||
print theme('links__system_main_menu', array(
|
||||
'links' => $main_menu,
|
||||
'attributes' => array(
|
||||
'class' => array('links', 'inline', 'clearfix'),
|
||||
),
|
||||
'heading' => array(
|
||||
'text' => t('Main menu'),
|
||||
'level' => 'h2',
|
||||
'class' => array('element-invisible'),
|
||||
),
|
||||
)); ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php print render($page['navigation']); ?>
|
||||
</div>
|
||||
|
||||
<?php print render($page['header']); ?>
|
||||
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
<div id="main">
|
||||
|
||||
<div id="content" class="column" role="main">
|
||||
<?php print render($page['highlighted']); ?>
|
||||
<?php print $breadcrumb; ?>
|
||||
<a id="main-content"></a>
|
||||
<?php print render($title_prefix); ?>
|
||||
<?php if ($title): ?>
|
||||
<h1 class="page__title title" id="page-title"><?php print $title; ?></h1>
|
||||
<?php endif; ?>
|
||||
<?php print render($title_suffix); ?>
|
||||
<?php print $messages; ?>
|
||||
<?php print render($tabs); ?>
|
||||
<?php print render($page['help']); ?>
|
||||
<?php if ($action_links): ?>
|
||||
<ul class="action-links"><?php print render($action_links); ?></ul>
|
||||
<?php endif; ?>
|
||||
<?php print render($page['content']); ?>
|
||||
<?php print $feed_icons; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// Render the sidebars to see if there's anything in them.
|
||||
$sidebar_first = render($page['sidebar_first']);
|
||||
$sidebar_second = render($page['sidebar_second']);
|
||||
?>
|
||||
|
||||
<?php if ($sidebar_first || $sidebar_second): ?>
|
||||
<aside class="sidebars">
|
||||
<?php print $sidebar_first; ?>
|
||||
<?php print $sidebar_second; ?>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php print render($page['footer']); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php print render($page['bottom']); ?>
|
33
themes/openstack/theme-settings.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Implements hook_form_system_theme_settings_alter().
|
||||
*
|
||||
* @param $form
|
||||
* Nested array of form elements that comprise the form.
|
||||
* @param $form_state
|
||||
* A keyed array containing the current state of the form.
|
||||
*/
|
||||
function STARTERKIT_form_system_theme_settings_alter(&$form, &$form_state, $form_id = NULL) {
|
||||
// Work-around for a core bug affecting admin themes. See issue #943212.
|
||||
if (isset($form_id)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Create the form using Forms API: http://api.drupal.org/api/7
|
||||
|
||||
/* -- Delete this line if you want to use this setting
|
||||
$form['STARTERKIT_example'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('STARTERKIT sample setting'),
|
||||
'#default_value' => theme_get_setting('STARTERKIT_example'),
|
||||
'#description' => t("This option doesn't do anything; it's just an example."),
|
||||
);
|
||||
// */
|
||||
|
||||
// Remove some of the base theme's settings.
|
||||
/* -- Delete this line if you want to turn off this setting.
|
||||
unset($form['themedev']['zen_wireframes']); // We don't need to toggle wireframes on this site.
|
||||
// */
|
||||
|
||||
// We are editing the $form in place, so we don't need to return anything.
|
||||
}
|