Newer
Older
John Albin Wilkins
committed
/**
* @file
* Layout Styling (DIV Positioning)
* 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 is based on the Zen Columns layout method.
*
* Only CSS that affects the layout (positioning) of major elements should be
* listed here. Such as:
* display, position, float, clear, width, height, min-width, min-height
* margin, border, padding, overflow
John Albin Wilkins
committed
/*
* Body
*/
body {
John Albin Wilkins
committed
}
John Albin Wilkins
committed
.region-bottom {
min-width: 960px; /* Don't allow the browser to make the site unreadable. */
John Albin Wilkins
committed
}
John Albin Wilkins
committed
}
/*
* Header
*/
#header {
John Albin Wilkins
committed
}
John Albin Wilkins
committed
#header .section {
John Albin Wilkins
committed
}
John Albin Wilkins
committed
.region-header {
John Albin Wilkins
committed
}
/*
* Main (container for everything else)
*/
#main-wrapper {
John Albin Wilkins
committed
position: relative;
}
John Albin Wilkins
committed
}
/*
* Content
*/
#content {
float: left; /* LTR */
John Albin Wilkins
committed
width: 100%;
margin-left: 0; /* LTR */
margin-right: -100%; /* LTR */ /* Negative value of #content's width + left margin. */
John Albin Wilkins
committed
padding: 0; /* DO NOT CHANGE. Add padding or margin to #content .section. */
John Albin Wilkins
committed
}
John Albin Wilkins
committed
#content .section,
.no-sidebars #content .section {
John Albin Wilkins
committed
margin: 0;
padding: 0;
}
John Albin Wilkins
committed
.sidebar-first #content .section {
padding-left: 200px; /* LTR */ /* The width + left margin of .region-sidebar-first. */
padding-right: 0; /* LTR */
John Albin Wilkins
committed
}
John Albin Wilkins
committed
.sidebar-second #content .section {
padding-left: 0; /* LTR */
padding-right: 200px; /* LTR */ /* The width + right margin of .region-sidebar-second. */
John Albin Wilkins
committed
}
John Albin Wilkins
committed
.two-sidebars #content .section {
padding-left: 200px; /* The width + left margin of .region-sidebar-first. */
padding-right: 200px; /* The width + right margin of .region-sidebar-second. */
John Albin Wilkins
committed
}
/*
* Navigation
John Albin Wilkins
committed
*/
#navigation {
float: left; /* LTR */
John Albin Wilkins
committed
width: 100%;
margin-left: 0; /* LTR */
margin-right: -100%; /* LTR */ /* Negative value of #navigation's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to #navigation .section. */
height: 2.3em; /* The navigation can have any arbritrary height. We picked one
John Albin Wilkins
committed
that is the line-height plus 1em: 1.3 + 1 = 2.3
John Albin Wilkins
committed
Set this to the same value as the margin-top below. */
}
.with-navigation #content,
.with-navigation .region-sidebar-first,
.with-navigation .region-sidebar-second {
margin-top: 2.3em; /* Set this to the same value as the navigation height above. */
John Albin Wilkins
committed
}
#navigation .section {
John Albin Wilkins
committed
}
/*
John Albin Wilkins
committed
* First sidebar
John Albin Wilkins
committed
*/
.region-sidebar-first {
float: left; /* LTR */
John Albin Wilkins
committed
width: 200px;
margin-left: 0; /* LTR */
margin-right: -200px; /* LTR */ /* Negative value of .region-sidebar-first's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-first .section. */
John Albin Wilkins
committed
}
.region-sidebar-first .section {
margin: 0 20px 0 0; /* LTR */
John Albin Wilkins
committed
padding: 0;
}
/*
John Albin Wilkins
committed
* Second sidebar
John Albin Wilkins
committed
*/
.region-sidebar-second {
float: right; /* LTR */
John Albin Wilkins
committed
width: 200px;
margin-left: -200px; /* LTR */ /* Negative value of .region-sidebar-second's width + right margin. */
margin-right: 0; /* LTR */
padding: 0; /* DO NOT CHANGE. Add padding or margin to .region-sidebar-second .section. */
John Albin Wilkins
committed
}
.region-sidebar-second .section {
margin: 0 0 0 20px; /* LTR */
John Albin Wilkins
committed
padding: 0;
}
/*
* Footer
*/
.region-footer {
John Albin Wilkins
committed
}
/*
John Albin Wilkins
committed
* Page bottom
John Albin Wilkins
committed
*/
John Albin Wilkins
committed
.region-bottom /* See also the #page-wrapper declaration above that this div shares. */ {
John Albin Wilkins
committed
}
/*
* Prevent overflowing content
*/
#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
.region-footer,
John Albin Wilkins
committed
.region-bottom {
John Albin Wilkins
committed
overflow: visible;
word-wrap: break-word; /* A very nice CSS3 property */
}
/*
John Albin Wilkins
committed
* If a div.clearfix doesn't have any content after it and its bottom edge
John Albin Wilkins
committed
* touches the bottom of the viewport, Firefox and Safari will mistakenly
* place several pixels worth of space between the bottom of the div and the
* bottom of the viewport. Uncomment this CSS property to fix this.
* Note: with some over-large content, this property might cause scrollbars
* to appear on the #page-wrapper div.
John Albin Wilkins
committed
*/
/*
John Albin Wilkins
committed
overflow-y: hidden;
}
*/