Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated styleguide to follow 1.1.x #14

Merged
merged 1 commit into from
Jun 23, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions core/layouts/one_column/one-column.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* @file
* CSS for the one column layout.
*/
.layout--one-column .l-header,
.layout--one-column .l-top,
.layout--one-column .l-messages,
.layout--one-column .l-container,
.layout--one-column .l-footer {
width: 100%;
margin-left: auto;
margin-right: auto;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
clear: both;
}
206 changes: 206 additions & 0 deletions core/layouts/three_three_four_column/three-three-four-column.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
/**
* @file
* CSS for the three-three-four layout.
*/

/* Clearfix for all region wrappers. */
.layout--three-three-four-column .l-header:after,
.layout--three-three-four-column .l-top:after,
.layout--three-three-four-column .l-featured:after,
.layout--three-three-four-column .l-messages:after,
.layout--three-three-four-column .l-container:after,
.layout--three-three-four-column .l-triptych:after,
.layout--three-three-four-column .l-footer-columns:after,
.layout--three-three-four-column .l-footer:after {
content: "";
display: table;
clear: both;
}

.layout--three-three-four-column .l-header,
.layout--three-three-four-column .l-top,
.layout--three-three-four-column .l-featured,
.layout--three-three-four-column .l-messages,
.layout--three-three-four-column .l-container,
.layout--three-three-four-column .l-triptych,
.layout--three-three-four-column .l-footer-wrapper {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
margin-left: auto;
margin-right: auto;
}
.layout--three-three-four-column .l-content,
.layout--three-three-four-column .l-sidebar {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0 15px;
}
.layout--three-three-four-column .l-footer {
padding: 35px 0 30px;
}
.layout--three-three-four-column .l-triptych-first,
.layout--three-three-four-column .l-triptych-middle,
.layout--three-three-four-column .l-triptych-last {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0 20px 0;
}
.layout--three-three-four-column .l-footer-first-column,
.layout--three-three-four-column .l-footer-second-column,
.layout--three-three-four-column .l-footer-third-column,
.layout--three-three-four-column .l-footer-fourth-column {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0 10px;
}

@media all and (min-width: 560px) and (max-width: 850px) {
.layout--three-three-four-column .l-sidebar-first,
.layout--three-three-four-column .l-triptych-first,
.layout--three-three-four-column .l-triptych-middle,
.layout--three-three-four-column .l-triptych-last,
.layout--three-three-four-column .l-footer-first-column,
.layout--three-three-four-column .l-footer-second-column,
.layout--three-three-four-column .l-footer-third-column,
.layout--three-three-four-column .l-footer-fourth-column {
display: inline;
float: left; /* LTR */
position: relative;
}
[dir="rtl"] .layout--three-three-four-column .l-sidebar-first,
[dir="rtl"] .layout--three-three-four-column .l-triptych-first,
[dir="rtl"] .layout--three-three-four-column .l-triptych-middle,
[dir="rtl"] .layout--three-three-four-column .l-triptych-last,
[dir="rtl"] .layout--three-three-four-column .l-footer-first-column,
[dir="rtl"] .layout--three-three-four-column .l-footer-second-column,
[dir="rtl"] .layout--three-three-four-column .l-footer-third-column,
[dir="rtl"] .layout--three-three-four-column .l-footer-fourth-column {
float: right;
}
.layout--three-three-four-column.layout-two-sidebars .l-sidebar-first {
width: 49%;
}
.layout--three-three-four-column.layout-two-sidebars .l-sidebar-second {
width: 49%;
margin-left: 51%; /* LTR */
}
[dir="rtl"] .layout--three-three-four-column.layout-two-sidebars .l-sidebar-second {
margin-right: 51%;
}
.layout--three-three-four-column .l-triptych-first,
.layout--three-three-four-column .l-triptych-middle,
.layout--three-three-four-column .l-triptych-last {
padding: 20px 15px 30px;
width: 33%;
}
.layout--three-three-four-column .l-triptych-middle {
padding: 20px 5px 30px;
}
.layout--three-three-four-column .l-footer-first-column,
.layout--three-three-four-column .l-footer-second-column {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0 10px;
width: 50%;
}
.layout--three-three-four-column .l-footer-third-column,
.layout--three-three-four-column .l-footer-fourth-column {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0 10px;
width: 50%;
}
.layout--three-three-four-column .l-footer-third-column {
clear: both;
}
}

@media all and (min-width: 851px) {
.layout--three-three-four-column .l-content,
.layout--three-three-four-column .l-sidebar-first,
.layout--three-three-four-column .l-sidebar-second,
.layout--three-three-four-column .l-triptych-first,
.layout--three-three-four-column .l-triptych-middle,
.layout--three-three-four-column .l-triptych-last,
.layout--three-three-four-column .l-footer-first-column,
.layout--three-three-four-column .l-footer-second-column,
.layout--three-three-four-column .l-footer-third-column,
.layout--three-three-four-column .l-footer-fourth-column {
display: inline;
float: left; /* LTR */
position: relative;
}
[dir="rtl"] .layout--three-three-four-column .l-content,
[dir="rtl"] .layout--three-three-four-column .l-sidebar-first,
[dir="rtl"] .layout--three-three-four-column .l-sidebar-second,
[dir="rtl"] .layout--three-three-four-column .l-triptych-first,
[dir="rtl"] .layout--three-three-four-column .l-triptych-middle,
[dir="rtl"] .layout--three-three-four-column .l-triptych-last,
[dir="rtl"] .layout--three-three-four-column .l-footer-first-column,
[dir="rtl"] .layout--three-three-four-column .l-footer-second-column,
[dir="rtl"] .layout--three-three-four-column .l-footer-third-column,
[dir="rtl"] .layout--three-three-four-column .l-footer-fourth-column {
float: right;
}
.layout--three-three-four-column.layout-two-sidebars .l-content {
margin-left: 25%;
margin-right: 25%;
width: 50%;
}
.layout--three-three-four-column.layout-one-sidebar .l-content {
width: 75%;
}
.layout--three-three-four-column.layout-no-sidebars .l-content {
width: 100%;
}
.layout--three-three-four-column.layout-sidebar-first .l-content {
margin-left: 25%; /* LTR */
margin-right: 0; /* LTR */
}
[dir="rtl"] .layout--three-three-four-column.layout-sidebar-first .l-content {
margin-left: 0;
margin-right: 25%;
}
.layout--three-three-four-column.layout-sidebar-second .l-content {
margin-right: 25%; /* LTR */
margin-left: 0; /* LTR */
}
[dir="rtl"] .layout--three-three-four-column.layout-sidebar-second .l-content {
margin-right: 0;
margin-left: 25%;
}
.layout--three-three-four-column .l-sidebar-first {
width: 25%;
margin-left: -100%; /* LTR */
}
[dir="rtl"] .layout--three-three-four-column .l-sidebar-first {
margin-right: -100%;
}
.layout--three-three-four-column .l-sidebar-second {
width: 25%;
margin-left: -25%; /* LTR */
clear: none;
}
[dir="rtl"] .layout--three-three-four-column .l-sidebar-second {
margin-right: -25%;
}
.layout--three-three-four-column .l-triptych-first,
.layout--three-three-four-column .l-triptych-middle,
.layout--three-three-four-column .l-triptych-last {
width: 33%;
}
.layout--three-three-four-column .l-footer-first-column,
.layout--three-three-four-column .l-footer-second-column,
.layout--three-three-four-column .l-footer-third-column,
.layout--three-three-four-column .l-footer-fourth-column {
padding: 0 10px;
width: 25%;
}
}
65 changes: 65 additions & 0 deletions core/layouts/two_column/two-column.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* @file
* CSS for the two column layout.
*/

/* Clearfix for all regions. */
.layout--two-column .l-header:after,
.layout--two-column .l-main-wrapper:after,
.layout--two-column .l-footer:after,
.layout--two-column .l-container:after,
.layout--two-column .l-content:after,
.layout--two-column .l-sidebar:after {
content: "";
display: table;
clear: both;
}

.layout--two-column .l-header,
.layout--two-column .l-top,
.layout--two-column .l-messages,
.layout--two-column .l-container,
.layout--two-column .l-footer {
width: 100%;
margin-left: auto;
margin-right: auto;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
clear: both;
}
.layout--two-column .l-content,
.layout--two-column .l-sidebar {
padding: 0 15px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

@media all and (min-width: 851px) {
.layout--two-column .l-content,
.layout--two-column .l-sidebar {
display: inline;
float: left; /* LTR */
position: relative;
}
[dir="rtl"] .layout--two-column .l-content,
[dir="rtl"] .layout--two-column .l-sidebar {
float: right;
}
.layout--two-column .l-content {
margin-right: 30%;
width: 70%;
}
[dir="rtl"] .layout--two-column .l-content {
margin-left: 30%;
margin-right: 0;
}
.layout--two-column .l-sidebar {
width: 30%;
margin-left: -30%; /* LTR */
}
[dir="rtl"] .layout--two-column .l-sidebar {
margin-right: -30%;
}
}
65 changes: 65 additions & 0 deletions core/layouts/two_column_flipped/two-column-flipped.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* @file
* CSS for the two column flipped layout.
*/

/* Clearfix for all regions. */
.layout--two-column-flipped .l-header:after,
.layout--two-column-flipped .l-main-wrapper:after,
.layout--two-column-flipped .l-footer:after,
.layout--two-column-flipped .l-container:after,
.layout--two-column-flipped .l-content:after,
.layout--two-column-flipped .l-sidebar:after {
content: "";
display: table;
clear: both;
}

.layout--two-column-flipped .l-header,
.layout--two-column-flipped .l-top,
.layout--two-column-flipped .l-messages,
.layout--two-column-flipped .l-container,
.layout--two-column-flipped .l-footer {
width: 100%;
margin-left: auto;
margin-right: auto;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
clear: both;
}
.layout--two-column-flipped .l-content,
.layout--two-column-flipped .l-sidebar {
padding: 0 15px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

@media all and (min-width: 851px) {
.layout--two-column-flipped .l-content,
.layout--two-column-flipped .l-sidebar {
display: inline;
float: right; /* LTR */
position: relative;
}
[dir="rtl"] .layout--two-column-flipped .l-content,
[dir="rtl"] .layout--two-column-flipped .l-sidebar {
float: left;
}
.layout--two-column-flipped .l-content {
margin-left: 30%;
width: 70%;
}
[dir="rtl"] .layout--two-column-flipped .l-content {
margin-right: 30%;
margin-left: 0;
}
.layout--two-column-flipped .l-sidebar {
width: 30%;
margin-right: -30%; /* LTR */
}
[dir="rtl"] .layout--two-column-flipped .l-sidebar {
margin-left: -30%;
}
}
Loading