forked from Automattic/_s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the css layout to use grid and flex
Remove #primary Remove #primary, take 2 Change primary layout module to CSS grid. Remove ::before / ::after based clearfixes. When using flex and grid, pseudo-elements are considered flex/grid elements and cause unexpected behavior. Clearfix is a tool to resolve clearing when using float-based layouts. Modern flex/grid-based layouts do not need them. Main menu: Use flex as layout module. Main menu cleanup. Comments, Posts, and Post Navigation: Use flex for layout. Automatic RTL. Remove errant test data. - Fixed skip to content link to point to main content (#primary). - Changed ID for <main> to #primary to preserve original separation between main and sidebar (#secondary). - Removed superfluous ID reference to #secondary in CSS. - Cleaned up whitespace triggering Travis errors. Fix wpcs issues Cleaning the rebase Compile CSS Remove primary div from WooCommerce too grid-template-columns property doesn't support negative values
- Loading branch information
1 parent
0fb601b
commit 31df471
Showing
25 changed files
with
123 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
.content-area { | ||
float: left; | ||
margin: 0 (-$size__site-sidebar) 0 0; | ||
width: $size__site-main; | ||
.site { | ||
display: grid; | ||
grid-template-columns: auto ($size__site-sidebar); | ||
grid-template-areas: | ||
"header header" | ||
"main sidebar" | ||
"footer footer"; | ||
} | ||
|
||
.site-header { | ||
grid-area: header; | ||
} | ||
|
||
.site-main { | ||
margin: 0 $size__site-sidebar 0 0; | ||
grid-area: main; | ||
overflow: hidden; /* Resolves issue with <pre> elements forcing full width. */ | ||
} | ||
|
||
.site-content .widget-area { | ||
float: right; | ||
overflow: hidden; | ||
width: $size__site-sidebar; | ||
.widget-area { | ||
grid-area: sidebar; | ||
} | ||
|
||
.site-footer { | ||
clear: both; | ||
width: $size__site-main; | ||
grid-area: footer; | ||
} | ||
|
||
@import "no-sidebar"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
.content-area { | ||
float: right; | ||
margin: 0 0 0 (-$size__site-sidebar); | ||
width: $size__site-main; | ||
.site { | ||
display: grid; | ||
grid-template-columns: ($size__site-sidebar) auto; | ||
grid-template-areas: | ||
"header header" | ||
"sidebar main" | ||
"footer footer"; | ||
} | ||
|
||
.site-header { | ||
grid-area: header; | ||
} | ||
|
||
.site-main { | ||
margin: 0 0 0 $size__site-sidebar; | ||
grid-area: main; | ||
overflow: hidden; /* Resolves issue with <pre> elements forcing full width. */ | ||
} | ||
|
||
.site-content .widget-area { | ||
float: left; | ||
overflow: hidden; | ||
width: $size__site-sidebar; | ||
.widget-area { | ||
grid-area: sidebar; | ||
} | ||
|
||
.site-footer { | ||
clear: both; | ||
width: $size__site-main; | ||
grid-area: footer; | ||
} | ||
|
||
@import "no-sidebar"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.